--- /var/db/paludis/gentoo/app-text/qpdf/qpdf-10.0.4.ebuild 2020-12-27 16:16:36.121800872 +0100 +++ qpdf-10.0.4.ebuild 2021-01-01 17:11:09.071788355 +0100 @@ -11,13 +11,15 @@ # subslot = libqpdf soname version SLOT="0/28" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris" -IUSE="doc examples libressl ssl test" +IUSE="doc examples +gnutls libressl ssl test" RESTRICT="!test? ( test )" RDEPEND=" - net-libs/gnutls:0= sys-libs/zlib virtual/jpeg:0= + gnutls? ( + net-libs/gnutls:0= + ) ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) @@ -36,13 +38,19 @@ src_configure() { local myeconfargs=( --disable-implicit-crypto - --enable-crypto-gnutls --enable-crypto-native - --with-default-crypto=gnutls --disable-static + $(use_enable gnutls crypto-gnutls) $(use_enable ssl crypto-openssl) $(use_enable test test-compare-images) ) + if use gnutls ; then + myeconfargs+=( --with-default-crypto=gnutls ) + elif use ssl ; then + myeconfargs+=( --with-default-crypto=openssl ) + else + myeconfargs+=( --with-default-crypto=native ) + fi CONFIG_SHELL="${BROOT}/bin/bash" econf "${myeconfargs[@]}" }