Skip to content
Browse files

taglib: Add tests variant

  • Loading branch information
ryandesign committed Jun 30, 2020
1 parent fd6dbbe commit 2f0e2f5362b3fe764f530b05676cce389fb01e53
Showing with 27 additions and 0 deletions.
  1. +27 −0 audio/taglib/Portfile
@@ -39,4 +39,31 @@ configure.args-append ../${distname} \
# Change to make them optional was reportedly political

variant tests description "Enable running tests" {
depends_build-append port:cppunit

# cppunit requires C++11
compiler.cxx_standard 2011
configure.cxxflags-append \

configure.args-replace -DBUILD_SHARED_LIBS=On -DBUILD_SHARED_LIBS=Off
configure.args-append -DBUILD_TESTS=On test_runner yes
test.cmd tests/test_runner

pre-destroot {
ui_error "Do not install this port with the +tests variant; it doesn't include"
ui_error "the dynamic libraries. Only use this variant to run the tests:"
ui_error ""
ui_error " sudo port test ${subport} +tests"
ui_error ""
return -code error

github.livecheck.regex {([0-9.]+)}

0 comments on commit 2f0e2f5

Please sign in to comment.
You can’t perform that action at this time.