diff --git a/textproc/marisa-trie/Portfile b/textproc/marisa-trie/Portfile index 9aff125d539..ee9de2e77de 100644 --- a/textproc/marisa-trie/Portfile +++ b/textproc/marisa-trie/Portfile @@ -7,7 +7,7 @@ PortGroup cmake 1.1 epoch 1 github.setup s-yata marisa-trie 0.3.1 v github.tarball_from archive -revision 0 +revision 1 checksums rmd160 c18fca76f11a81ceca670011222174c40dbf26cb \ sha256 986ed5e2967435e3a3932a8c95980993ae5a196111e377721f0849cad4e807f3 \ size 212791 @@ -28,8 +28,13 @@ long_description Matching Algorithm with Recursively Implemented StorAge \ worksrcdir ${worksrcdir} distname v${version} -test.run yes -test.target test +compiler.cxx_standard \ + 2020 + +cmake.build_type Release + +configure.args-append \ + -DBUILD_SHARED_LIBS=ON post-destroot { set docdir ${prefix}/share/doc/${name} @@ -41,3 +46,12 @@ post-destroot { readme.en.html readme.ja.html style.css \ ${destroot}${docdir}/docs } + +variant tests description {Enable tests} { + test.run yes + test.target test + + configure.args-append \ + -DBUILD_TESTING=ON +} +