marisa-trie: fix not build library issue

Closes: https://trac.macports.org/ticket/73300
This commit is contained in:
Aaron Ji
2025-12-14 20:22:12 +08:00
committed by Herby Gillot
parent 49cc9c3217
commit 55bb46d820
+17 -3
View File
@@ -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
}