Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 493166 | Differences between
and this patch

Collapse All | Expand All

(-)gnutls-3.2.11.ebuild (-19 / +35 lines)
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 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-3.2[${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] )
31
	nls? ( virtual/libintl )
31
	nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
32
	pkcs11? ( >=app-crypt/p11-kit-0.19.2 )
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 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 67-90 Link Here
67
81
68
	# bug 497472
82
	# bug 497472
69
	use cxx || epunt_cxx
83
	use cxx || epunt_cxx
84
85
	multilib_copy_sources
70
}
86
}
71
87
72
src_configure() {
88
multilib_src_configure() {
73
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
89
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
74
90
75
	# TPM needs to be tested before being enabled
91
	# TPM needs to be tested before being enabled
76
	# hardware-accell is disabled on OSX because the asm files force
92
	# hardware-accell is disabled on OSX because the asm files force
77
	#   GNU-stack (as doesn't support that) and when that's removed ld
93
	#   GNU-stack (as doesn't support that) and when that's removed ld
78
	#   complains about duplicate symbols
94
	#   complains about duplicate symbols
79
	econf \
95
	ECONF_SOURCE="${S}" econf \
80
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
96
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
81
		--disable-valgrind-tests \
97
		--disable-valgrind-tests \
82
		--enable-heartbeat-support \
98
		--enable-heartbeat-support \
83
		$(use_enable cxx) \
99
		$(use_enable cxx) \
84
		$(use_enable dane libdane) \
100
		$(use_enable dane libdane) \
85
		$(use_enable doc gtk-doc) \
101
		$(use_enable_binaries doc gtk-doc) \
86
		$(use_enable doc gtk-doc-pdf) \
102
		$(use_enable_binaries doc gtk-doc-pdf) \
87
		$(use_enable guile) \
103
		$(multilib_is_native_abi \
104
			&& use_enable guile guile "${EPREFIX}/usr/$(get_libdir)" \
105
			|| echo --disable-guile) \
88
		$(use_enable crywrap) \
106
		$(use_enable crywrap) \
89
		$(use_enable nls) \
107
		$(use_enable nls) \
90
		$(use_enable static-libs static) \
108
		$(use_enable static-libs static) \
Lines 94-108 Link Here
94
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
112
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
95
}
113
}
96
114
97
src_test() {
115
multilib_src_test() {
98
	# parallel testing often fails
116
	# parallel testing often fails
99
	emake -j1 check
117
	emake -j1 check
100
}
118
}
101
119
102
src_install() {
120
multilib_src_install_all() {
103
	default
121
	prune_libtool_files
104
105
	find "${ED}" -name '*.la' -delete
106
122
107
	dodoc doc/certtool.cfg
123
	dodoc doc/certtool.cfg
108
124

Return to bug 493166