Lines 13-26
Link Here
|
13 |
SLOT="0/26" |
13 |
SLOT="0/26" |
14 |
|
14 |
|
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~m68k-mint ~sparc-solaris" |
16 |
IUSE="doc examples perl static-libs test" |
16 |
IUSE="doc examples +gnutls perl static-libs test" |
17 |
|
17 |
|
18 |
RESTRICT="!test? ( test )" |
18 |
RESTRICT="!test? ( test )" |
19 |
|
19 |
|
20 |
CDEPEND=" |
20 |
CDEPEND=" |
21 |
net-libs/gnutls:0= |
|
|
22 |
sys-libs/zlib |
21 |
sys-libs/zlib |
23 |
virtual/jpeg:0= |
22 |
virtual/jpeg:0= |
|
|
23 |
gnutls? ( |
24 |
net-libs/gnutls:0= |
25 |
) |
24 |
" |
26 |
" |
25 |
DEPEND="${CDEPEND} |
27 |
DEPEND="${CDEPEND} |
26 |
test? ( |
28 |
test? ( |
Lines 39-50
Link Here
|
39 |
src_configure() { |
41 |
src_configure() { |
40 |
local myeconfargs=( |
42 |
local myeconfargs=( |
41 |
--disable-implicit-crypto |
43 |
--disable-implicit-crypto |
42 |
--enable-crypto-gnutls |
|
|
43 |
--enable-crypto-native |
44 |
--enable-crypto-native |
44 |
--with-default-crypto=gnutls |
45 |
$(use_enable gnutls crypto-gnutls) |
45 |
$(use_enable static-libs static) |
46 |
$(use_enable static-libs static) |
46 |
$(use_enable test test-compare-images) |
47 |
$(use_enable test test-compare-images) |
47 |
) |
48 |
) |
|
|
49 |
if use gnutls ; then |
50 |
myeconfargs+=( --with-default-crypto=gnutls ) |
51 |
else |
52 |
myeconfargs+=( --with-default-crypto=native ) |
53 |
fi |
48 |
CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}" |
54 |
CONFIG_SHELL=/bin/bash econf "${myeconfargs[@]}" |
49 |
} |
55 |
} |
50 |
|
56 |
|