Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 220577
Collapse All | Expand All

(-)/usr/portage/dev-libs/elfutils/elfutils-0.131-r2.ebuild (-13 / +17 lines)
Lines 7-44 Link Here
7
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
7
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
8
HOMEPAGE="http://people.redhat.com/drepper/"
8
HOMEPAGE="http://people.redhat.com/drepper/"
9
#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
9
#SRC_URI="ftp://sources.redhat.com/pub/systemtap/${PN}/${P}.tar.gz"
10
SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"
10
#SRC_URI="mirror://debian/pool/main/e/elfutils/elfutils_${PV}.orig.tar.gz"
11
SRC_URI="https://fedorahosted.org/releases/e/l/elfutils/${P}.tar.bz2"
11
12
12
LICENSE="OpenSoftware"
13
LICENSE="OpenSoftware"
13
SLOT="0"
14
SLOT="0"
14
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
15
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
15
IUSE=""
16
IUSE="bzip2 nls zlib test"
16
17
17
# This pkg does not actually seem to compile currently in a uClibc
18
# This pkg does not actually seem to compile currently in a uClibc
18
# environment (xrealloc errs), but we need to ensure that glibc never
19
# environment (xrealloc errs), but we need to ensure that glibc never
19
# gets pulled in as a dep since this package does not respect virtual/libc
20
# gets pulled in as a dep since this package does not respect virtual/libc
20
DEPEND="elibc_glibc? ( >=sys-libs/glibc-2.3.2 )
21
RDEPEND="zlib? ( >=sys-libs/zlib-1.2.2.3 )
21
	sys-devel/gettext
22
	bzip2? ( app-arch/bzip2 )"
22
	sys-devel/autoconf
23
DEPEND="${RDEPEND}
24
	elibc_glibc? ( >=sys-libs/glibc-2.7 )
25
	nls? ( sys-devel/gettext )
26
	>=sys-devel/flex-2.5.4a
27
	sys-devel/m4
23
	>=sys-devel/binutils-2.15.90.0.1
28
	>=sys-devel/binutils-2.15.90.0.1
24
	>=sys-devel/gcc-3.3.3
29
	>=sys-devel/gcc-4.1.2
25
	!dev-libs/libelf"
30
	!dev-libs/libelf"
26
RDEPEND=""
27
31
28
src_unpack() {
32
src_unpack() {
29
	unpack ${A}
33
	unpack ${A}
30
	cd "${S}"
34
	cd "${S}"
31
	epatch "${FILESDIR}"/${P}-gnu-inline.patch #204610
32
	epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
35
	epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
33
	find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
36
	find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
34
	sed -i 's:\<off64_t\>:__off64_t:g' libelf/libelf.h || die #204502
37
	use test || sed -i -e 's: tests::' Makefile.in #226349
35
}
38
}
36
39
37
src_compile() {
40
src_compile() {
38
	econf \
41
	econf \
42
		$(use_enable nls) \
39
		--program-prefix="eu-" \
43
		--program-prefix="eu-" \
40
		--enable-shared \
44
		$(use_with zlib) \
41
		|| die "./configure failed"
45
		$(use_with bzip2 bzlib)
42
	emake || die
46
	emake || die
43
}
47
}
44
48
Lines 49-53 Link Here
49
53
50
src_install() {
54
src_install() {
51
	emake DESTDIR="${D}" install || die
55
	emake DESTDIR="${D}" install || die
52
	dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO
56
	dodoc AUTHORS ChangeLog NEWS NOTES README THANKS TODO || die
53
}
57
}

Return to bug 220577