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

Collapse All | Expand All

(-)libgpg-error-1.12.ebuild (-10 / +31 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit libtool
7
inherit eutils libtool multilib-minimal
8
8
9
DESCRIPTION="Contains error handling functions used by GnuPG software"
9
DESCRIPTION="Contains error handling functions used by GnuPG software"
10
HOMEPAGE="http://www.gnupg.org/related_software/libgpg-error"
10
HOMEPAGE="http://www.gnupg.org/related_software/libgpg-error"
Lines 12-37 SRC_URI="mirror://gnupg/${PN}/${P}.tar.b Link Here
12
12
13
LICENSE="GPL-2 LGPL-2.1"
13
LICENSE="GPL-2 LGPL-2.1"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16
IUSE="common-lisp nls static-libs"
16
IUSE="common-lisp nls static-libs"
17
17
18
RDEPEND="nls? ( virtual/libintl )"
18
RDEPEND="nls? ( virtual/libintl[${MULTILIB_USEDEP}] )
19
DEPEND="nls? ( sys-devel/gettext )"
19
	abi_x86_32? (
20
		!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
21
		!<=app-emulation/emul-linux-x86-baselibs-20131008-r8
22
	)"
23
DEPEND="${RDEPEND}
24
	nls? ( sys-devel/gettext )"
20
25
21
src_prepare() {
26
src_prepare() {
27
	epatch_user
22
	elibtoolize
28
	elibtoolize
23
}
29
}
24
30
25
src_configure() {
31
multilib_src_configure() {
26
	econf \
32
	local myeconfargs=(
27
		$(use_enable nls) \
33
		$(use_enable nls)
28
		$(use_enable static-libs static) \
34
		$(use_enable static-libs static)
29
		$(use_enable common-lisp languages)
35
		$(use_enable common-lisp languages)
36
	)
37
38
	multilib_build_binaries || myeconfargs+=(
39
		--disable-languages
40
	)
41
42
	ECONF_SOURCE=${S} \
43
	econf "${myeconfargs[@]}"
30
}
44
}
31
45
32
src_install() {
46
multilib_src_install() {
33
	default
47
	default
48
	mv "${ED}"/usr/bin/{,"${CHOST}"-}gpg-error-config || die
49
	if multilib_build_binaries; then
50
		dosym "${CHOST}"-gpg-error-config /usr/bin/gpg-error-config
51
	fi
52
}
34
53
54
multilib_src_install_all() {
55
	einstalldocs
35
	# library has no dependencies, so it does not need the .la file
56
	# library has no dependencies, so it does not need the .la file
36
	find "${D}" -name '*.la' -delete
57
	prune_libtool_files --all
37
}
58
}

Return to bug 480396