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-35
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 |
dane? ( net-dns/unbound ) |
28 |
dane? ( net-dns/unbound[${MULTILIB_USEDEP}] ) |
29 |
guile? ( >=dev-scheme/guile-1.8[networking] ) |
29 |
guile? ( >=dev-scheme/guile-1.8[networking,${MULTILIB_USEDEP}] ) |
30 |
nls? ( virtual/libintl ) |
30 |
nls? ( virtual/libintl[${MULTILIB_USEDEP}] ) |
31 |
pkcs11? ( >=app-crypt/p11-kit-0.11 ) |
31 |
pkcs11? ( >=app-crypt/p11-kit-0.11[${MULTILIB_USEDEP}] ) |
32 |
zlib? ( >=sys-libs/zlib-1.2.3.1 )" |
32 |
zlib? ( >=sys-libs/zlib-1.2.3.1[${MULTILIB_USEDEP}] ) |
|
|
33 |
abi_x86_32? ( |
34 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r9 |
35 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
36 |
)" |
33 |
DEPEND="${RDEPEND} |
37 |
DEPEND="${RDEPEND} |
34 |
>=sys-devel/automake-1.11.6 |
38 |
>=sys-devel/automake-1.11.6 |
35 |
virtual/pkgconfig |
39 |
virtual/pkgconfig |
Lines 66-106
Link Here
|
66 |
|
70 |
|
67 |
# Use sane .so versioning on FreeBSD. |
71 |
# Use sane .so versioning on FreeBSD. |
68 |
elibtoolize |
72 |
elibtoolize |
|
|
73 |
|
74 |
multilib_copy_sources |
69 |
} |
75 |
} |
70 |
|
76 |
|
71 |
src_configure() { |
77 |
multilib_src_configure() { |
72 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
78 |
LINGUAS="${LINGUAS//en/en@boldquot en@quot}" |
73 |
|
79 |
|
74 |
# TPM needs to be tested before being enabled |
80 |
# TPM needs to be tested before being enabled |
75 |
# hardware-accell is disabled on OSX because the asm files force |
81 |
# hardware-accell is disabled on OSX because the asm files force |
76 |
# GNU-stack (as doesn't support that) and when that's removed ld |
82 |
# GNU-stack (as doesn't support that) and when that's removed ld |
77 |
# complains about duplicate symbols |
83 |
# complains about duplicate symbols |
78 |
econf \ |
84 |
myconf=( |
79 |
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
85 |
--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \ |
80 |
--disable-valgrind-tests \ |
86 |
--disable-valgrind-tests \ |
81 |
--enable-heartbeat-support \ |
87 |
--enable-heartbeat-support \ |
82 |
$(use_enable cxx) \ |
88 |
$(use_enable cxx) \ |
83 |
$(use_enable dane libdane) \ |
89 |
$(use_enable dane libdane) \ |
84 |
$(use_enable doc gtk-doc) \ |
90 |
$(use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" ) \ |
85 |
$(use_enable doc gtk-doc-pdf) \ |
|
|
86 |
$(use_enable guile) \ |
87 |
$(use_enable nls) \ |
91 |
$(use_enable nls) \ |
88 |
$(use_enable static-libs static) \ |
92 |
$(use_enable static-libs static) \ |
89 |
$(use_with pkcs11 p11-kit) \ |
93 |
$(use_with pkcs11 p11-kit) \ |
90 |
$(use_with zlib) \ |
94 |
$(use_with zlib) \ |
91 |
--without-tpm \ |
95 |
--without-tpm \ |
92 |
$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
96 |
$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration) |
|
|
97 |
) |
98 |
|
99 |
if multilib_build_binaries; then |
100 |
myconf+=( |
101 |
$(use_enable doc gtk-doc) \ |
102 |
$(use_enable doc gtk-doc-pdf) |
103 |
) |
104 |
else |
105 |
myconf+=( |
106 |
--disable-gtk-doc |
107 |
--disable-gtk-doc-pdf |
108 |
) |
109 |
fi |
110 |
|
111 |
ECONF_SOURCE="${S}" \ |
112 |
econf \ |
113 |
${myconf[@]} |
93 |
} |
114 |
} |
94 |
|
115 |
|
95 |
src_test() { |
116 |
multilib_src_test() { |
96 |
# parallel testing often fails |
117 |
# parallel testing often fails |
97 |
emake -j1 check |
118 |
emake -j1 check |
98 |
} |
119 |
} |
99 |
|
120 |
|
100 |
src_install() { |
121 |
multilib_src_install_all() { |
101 |
default |
122 |
prune_libtool_files |
102 |
|
|
|
103 |
find "${ED}" -name '*.la' -delete |
104 |
|
123 |
|
105 |
dodoc doc/certtool.cfg |
124 |
dodoc doc/certtool.cfg |
106 |
|
125 |
|