Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit autotools libtool eutils versionator |
7 |
inherit autotools-multilib libtool eutils versionator |
8 |
|
8 |
|
9 |
DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
9 |
DESCRIPTION="A TLS 1.2 and SSL 3.0 implementation for the GNU project" |
10 |
HOMEPAGE="http://www.gnutls.org/" |
10 |
HOMEPAGE="http://www.gnutls.org/" |
Lines 21-36
IUSE="+cxx +crywrap dane doc examples gu
Link Here
|
21 |
|
21 |
|
22 |
# NOTICE: sys-devel/autogen is required at runtime as we |
22 |
# NOTICE: sys-devel/autogen is required at runtime as we |
23 |
# use system libopts |
23 |
# use system libopts |
24 |
RDEPEND=">=dev-libs/libtasn1-2.14 |
24 |
RDEPEND=">=dev-libs/libtasn1-2.14[${MULTILIB_USEDEP}] |
25 |
>=dev-libs/nettle-2.7[gmp] |
25 |
>=dev-libs/nettle-2.7[gmp,${MULTILIB_USEDEP}] |
26 |
dev-libs/gmp |
26 |
dev-libs/gmp[${MULTILIB_USEDEP}] |
27 |
sys-devel/autogen |
27 |
sys-devel/autogen[${MULTILIB_USEDEP}] |
28 |
crywrap? ( net-dns/libidn ) |
28 |
crywrap? ( net-dns/libidn ) |
29 |
dane? ( net-dns/unbound ) |
29 |
dane? ( net-dns/unbound[${MULTILIB_USEDEP}] ) |
30 |
guile? ( >=dev-scheme/guile-1.8[networking] ) |
30 |
guile? ( >=dev-scheme/guile-1.8[networking,${MULTILIB_USEDEP}] ) |
31 |
nls? ( virtual/libintl ) |
31 |
nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
32 |
pkcs11? ( >=app-crypt/p11-kit-0.11 ) |
32 |
pkcs11? ( >=app-crypt/p11-kit-0.11[${MULTILIB_USEDEP}] ) |
33 |
zlib? ( >=sys-libs/zlib-1.2.3.1 )" |
33 |
zlib? ( >=sys-libs/zlib-1.2.3.1[${MULTILIB_USEDEP}] ) |
|
|
34 |
abi_x86_32? ( |
35 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r9 |
36 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
37 |
)" |
34 |
DEPEND="${RDEPEND} |
38 |
DEPEND="${RDEPEND} |
35 |
>=sys-devel/automake-1.11.6 |
39 |
>=sys-devel/automake-1.11.6 |
36 |
virtual/pkgconfig |
40 |
virtual/pkgconfig |
Lines 40-45
DEPEND="${RDEPEND}
Link Here
|
40 |
|
44 |
|
41 |
DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
45 |
DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO ) |
42 |
|
46 |
|
|
|
47 |
use_enable_binaries() { |
48 |
if false && multilib_build_binaries; then |
49 |
use_enable "$@" |
50 |
else |
51 |
local flag="$1" |
52 |
local name="${2:-${flag}}" |
53 |
echo "--disable-${name}" |
54 |
fi |
55 |
} |
56 |
|
43 |
src_prepare() { |
57 |
src_prepare() { |
44 |
# tests/suite directory is not distributed |
58 |
# tests/suite directory is not distributed |
45 |
sed -i \ |
59 |
sed -i \ |
Lines 70-93
src_prepare() {
Link Here
|
70 |
|
84 |
|
71 |
# bug 497472 |
85 |
# bug 497472 |
72 |
use cxx || epunt_cxx |
86 |
use cxx || epunt_cxx |
|
|
87 |
|
88 |
multilib_copy_sources |
73 |
} |
89 |
} |
74 |
|
90 |
|
75 |
src_configure() { |
91 |
multilib_src_configure() { |
76 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
92 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
77 |
|
93 |
|
78 |
# TPM needs to be tested before being enabled |
94 |
# TPM needs to be tested before being enabled |
79 |
# hardware-accell is disabled on OSX because the asm files force |
95 |
# hardware-accell is disabled on OSX because the asm files force |
80 |
# GNU-stack (as doesn't support that) and when that's removed ld |
96 |
# GNU-stack (as doesn't support that) and when that's removed ld |
81 |
# complains about duplicate symbols |
97 |
# complains about duplicate symbols |
82 |
econf \ |
98 |
ECONF_SOURCE="${S}" econf \ |
83 |
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
99 |
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
84 |
--disable-valgrind-tests \ |
100 |
--disable-valgrind-tests \ |
85 |
--enable-heartbeat-support \ |
101 |
--enable-heartbeat-support \ |
86 |
$(use_enable cxx) \ |
102 |
$(use_enable cxx) \ |
87 |
$(use_enable dane libdane) \ |
103 |
$(use_enable dane libdane) \ |
88 |
$(use_enable doc gtk-doc) \ |
104 |
$(use_enable_binaries doc gtk-doc) \ |
89 |
$(use_enable doc gtk-doc-pdf) \ |
105 |
$(use_enable_binaries doc gtk-doc-pdf) \ |
90 |
$(use_enable guile) \ |
106 |
$(use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" ) \ |
91 |
$(use_enable crywrap) \ |
107 |
$(use_enable crywrap) \ |
92 |
$(use_enable nls) \ |
108 |
$(use_enable nls) \ |
93 |
$(use_enable static-libs static) \ |
109 |
$(use_enable static-libs static) \ |
Lines 97-111
src_configure() {
Link Here
|
97 |
$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
113 |
$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
98 |
} |
114 |
} |
99 |
|
115 |
|
100 |
src_test() { |
116 |
multilib_src_test() { |
101 |
# parallel testing often fails |
117 |
# parallel testing often fails |
102 |
emake -j1 check |
118 |
emake -j1 check |
103 |
} |
119 |
} |
104 |
|
120 |
|
105 |
src_install() { |
121 |
multilib_src_install_all() { |
106 |
default |
122 |
prune_libtool_files |
107 |
|
|
|
108 |
find "${ED}" -name '*.la' -delete |
109 |
|
123 |
|
110 |
dodoc doc/certtool.cfg |
124 |
dodoc doc/certtool.cfg |
111 |
|
125 |
|