exempi: fix expat dependency (#26221)

* exempi: fix expat dependency and fix test with --test=root

Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
This commit is contained in:
Manuela Kuhn 2021-09-27 14:52:23 +02:00 committed by GitHub
parent 8710353336
commit 2acfe55b74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,17 @@ class Exempi(AutotoolsPackage):
depends_on('iconv')
depends_on('boost@1.48.0:')
depends_on('pkgconfig')
depends_on('expat')
conflicts('%gcc@:4.5')
def patch(self):
# fix make check: Fix undefined reference to `boost::unit_test::unit_test_main`:
# BOOST_TEST_DYN_LINK only works with shlib and when boost is linked after src:
# https://bugs.launchpad.net/widelands/+bug/662908
# https://github.com/bincrafters/community/issues/127
filter_file('#define BOOST_TEST_DYN_LINK', '', 'exempi/tests/test-adobesdk.cpp')
def configure_args(self):
args = ['--with-boost={0}'.format(self.spec['boost'].prefix)]