--- /var/db/paludis/gentoo/app-text/qpdf/qpdf-10.0.1-r1.ebuild 2020-06-30 09:56:58.416961014 +0200 +++ qpdf-10.0.1-r1.ebuild 2020-07-07 13:59:45.376015063 +0200 @@ -13,14 +13,16 @@ SLOT="0/28" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris" -IUSE="doc examples libressl ssl static-libs test" +IUSE="doc examples +gnutls libressl ssl static-libs 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= ) @@ -39,14 +41,20 @@ src_configure() { local myeconfargs=( --disable-implicit-crypto - --enable-crypto-gnutls --enable-crypto-native - --with-default-crypto=gnutls + $(use_enable gnutls crypto-gnutls) $(use_enable ssl crypto-openssl) $(use_enable static-libs static) $(use_enable test test-compare-images) ) - CONFIG_SHELL="/bin/bash" econf "${myeconfargs[@]}" + 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=/bin/bash econf "${myeconfargs[@]}" } src_install() {