diff options
Diffstat (limited to 'app-arch/libdeflate/libdeflate-1.19.ebuild')
-rw-r--r-- | app-arch/libdeflate/libdeflate-1.19.ebuild | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/app-arch/libdeflate/libdeflate-1.19.ebuild b/app-arch/libdeflate/libdeflate-1.19.ebuild index ef8f83f51db6..2ed3a652def2 100644 --- a/app-arch/libdeflate/libdeflate-1.19.ebuild +++ b/app-arch/libdeflate/libdeflate-1.19.ebuild @@ -18,14 +18,31 @@ fi LICENSE="MIT" SLOT="0" -IUSE="+gzip static-libs +utils +zlib test" -RESTRICT="!test? ( test )" +# the zlib USE-flag enables support for zlib +# the test USE-flag programs depend on sys-libs/zlib for comparison tests +IUSE="+gzip +utils +zlib test" + +RESTRICT=" + !test? ( test ) +" + +REQUIRED_USE=" + utils? ( gzip ) +" + +DEPEND=" + test? ( sys-libs/zlib ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.19-make-gzip-tests-conditional.patch" +) src_configure() { local mycmakeargs=( -DLIBDEFLATE_BUILD_SHARED_LIB="yes" - -DLIBDEFLATE_BUILD_STATIC_LIB="$(usex static-libs)" - -DLIBDEFLATE_USE_SHARED_LIB="$(usex !static-libs)" + -DLIBDEFLATE_BUILD_STATIC_LIB="no" + -DLIBDEFLATE_USE_SHARED_LIB="yes" -DLIBDEFLATE_COMPRESSION_SUPPORT="yes" -DLIBDEFLATE_DECOMPRESSION_SUPPORT="yes" |