Skip to content
Permalink
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
# http://lists.kde.org/?l=amarok&m=125338541922769&w=2

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

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

configure.args-replace -DBUILD_SHARED_LIBS=On -DBUILD_SHARED_LIBS=Off
configure.args-append -DBUILD_TESTS=On

build.target-append test_runner

test.run yes
test.cmd tests/test_runner
test.target

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.