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

(-)/usr/portage/net-libs/gnutls/gnutls-3.2.12.1.ebuild (-23 / +35 lines)
Lines 1-10 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.12.1.ebuild,v 1.1 2014/03/05 19:42:46 radhermit Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-libs/gnutls/gnutls-3.2.12.ebuild,v 1.1 2014/03/03 20:09:58 radhermit Exp $
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 38-47 Link Here
38
	nls? ( sys-devel/gettext )
42
	nls? ( sys-devel/gettext )
39
	test? ( app-misc/datefudge )"
43
	test? ( app-misc/datefudge )"
40
44
41
DOCS=( AUTHORS ChangeLog NEWS README THANKS doc/TODO )
42
43
S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
45
S=${WORKDIR}/${PN}-$(get_version_component_range 1-3)
44
46
47
use_enable_binaries() {
48
	if 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
45
src_prepare() {
57
src_prepare() {
46
	# tests/suite directory is not distributed
58
	# tests/suite directory is not distributed
47
	sed -i \
59
	sed -i \
Lines 69-92 Link Here
69
81
70
	# bug 497472
82
	# bug 497472
71
	use cxx || epunt_cxx
83
	use cxx || epunt_cxx
84
85
	multilib_copy_sources
72
}
86
}
73
87
74
src_configure() {
88
multilib_src_configure() {
75
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
89
	LINGUAS="${LINGUAS//en/en@boldquot en@quot}"
76
90
77
	# TPM needs to be tested before being enabled
91
	# TPM needs to be tested before being enabled
78
	# hardware-accell is disabled on OSX because the asm files force
92
	# hardware-accell is disabled on OSX because the asm files force
79
	#   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
80
	#   complains about duplicate symbols
94
	#   complains about duplicate symbols
81
	econf \
95
	ECONF_SOURCE="${S}" econf \
82
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
96
		--htmldir="${EPREFIX}/usr/share/doc/${PF}/html" \
83
		--disable-valgrind-tests \
97
		--disable-valgrind-tests \
84
		--enable-heartbeat-support \
98
		--enable-heartbeat-support \
85
		$(use_enable cxx) \
99
		$(use_enable cxx) \
86
		$(use_enable dane libdane) \
100
		$(use_enable dane libdane) \
87
		$(use_enable doc gtk-doc) \
101
		$(use_enable_binaries doc gtk-doc) \
88
		$(use_enable doc gtk-doc-pdf) \
102
		$(use_enable_binaries doc gtk-doc-pdf) \
89
		$(use_enable guile) \
103
		$(use_enable_binaries guile guile) \
90
		$(use_enable crywrap) \
104
		$(use_enable crywrap) \
91
		$(use_enable nls) \
105
		$(use_enable nls) \
92
		$(use_enable static-libs static) \
106
		$(use_enable static-libs static) \
Lines 96-112 Link Here
96
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
110
		$([[ ${CHOST} == *-darwin* ]] && echo --disable-hardware-acceleration)
97
}
111
}
98
112
99
src_test() {
113
multilib_src_test() {
100
	# parallel testing often fails
114
	# parallel testing often fails
101
	emake -j1 check
115
	emake -j1 check
102
}
116
}
103
117
104
src_install() {
118
multilib_src_install_all() {
105
	default
119
	prune_libtool_files
106
107
	find "${ED}" -name '*.la' -delete
108
120
109
	dodoc doc/certtool.cfg
121
	dodoc AUTHORS ChangeLog NEWS README THANKS doc/TODO doc/certtool.cfg
110
122
111
	if use doc; then
123
	if use doc; then
112
		dodoc doc/gnutls.pdf
124
		dodoc doc/gnutls.pdf

Return to bug 493166