--- qpdf-9.1.0.ebuild.orig 2019-11-21 22:25:38.185404668 +0100 +++ qpdf-9.1.0.ebuild 2019-11-21 22:25:29.601681674 +0100 @@ -13,14 +13,16 @@ SLOT="0/26" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris" -IUSE="doc examples perl static-libs test" +IUSE="doc examples +gnutls perl static-libs test" RESTRICT="!test? ( test )" CDEPEND=" - net-libs/gnutls:0= sys-libs/zlib virtual/jpeg:0= + gnutls? ( + net-libs/gnutls:0= + ) " DEPEND="${CDEPEND} test? ( @@ -39,12 +41,16 @@ src_configure() { local myeconfargs=( --disable-implicit-crypto - --enable-crypto-gnutls --enable-crypto-native - --with-default-crypto=gnutls + $(use_enable gnutls crypto-gnutls) $(use_enable static-libs static) $(use_enable test test-compare-images) ) + if use gnutls ; then + myeconfargs+=( --with-default-crypto=gnutls ) + else + myeconfargs+=( --with-default-crypto=native ) + fi CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}" }