Lines 2-10
Link Here
|
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/dev-libs/libelf/libelf-0.8.13-r1.ebuild,v 1.13 2012/11/29 13:42:25 blueness Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libelf/libelf-0.8.13-r1.ebuild,v 1.13 2012/11/29 13:42:25 blueness Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="5" |
6 |
|
6 |
|
7 |
inherit eutils multilib autotools |
7 |
inherit eutils multilib autotools multilib-minimal |
8 |
|
8 |
|
9 |
DESCRIPTION="A ELF object file access library" |
9 |
DESCRIPTION="A ELF object file access library" |
10 |
HOMEPAGE="http://www.mr511.de/software/" |
10 |
HOMEPAGE="http://www.mr511.de/software/" |
Lines 12-42
Link Here
|
12 |
|
12 |
|
13 |
LICENSE="LGPL-2" |
13 |
LICENSE="LGPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="alpha amd64 arm hppa ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
16 |
IUSE="debug nls elibc_FreeBSD" |
16 |
IUSE="debug nls elibc_FreeBSD" |
17 |
|
17 |
|
18 |
RDEPEND="!dev-libs/elfutils" |
18 |
RDEPEND="!dev-libs/elfutils" |
19 |
DEPEND="nls? ( sys-devel/gettext )" |
19 |
DEPEND="nls? ( sys-devel/gettext )" |
20 |
|
20 |
|
|
|
21 |
DOCS=( ChangeLog README ) |
22 |
MULTILIB_WRAPPED_HEADERS=( |
23 |
/usr/include/libelf/sys_elf.h |
24 |
) |
25 |
|
21 |
src_prepare() { |
26 |
src_prepare() { |
22 |
epatch "${FILESDIR}/${P}-build.patch" |
27 |
epatch "${FILESDIR}/${P}-build.patch" |
23 |
eautoreconf |
28 |
eautoreconf |
24 |
|
|
|
25 |
} |
29 |
} |
26 |
|
30 |
|
27 |
src_configure() { |
31 |
multilib_src_configure() { |
28 |
# prefix might want to play with this; unfortunately the stupid |
32 |
# prefix might want to play with this; unfortunately the stupid |
29 |
# macro used to detect whether we're building ELF is so screwed up |
33 |
# macro used to detect whether we're building ELF is so screwed up |
30 |
# that trying to fix it is just a waste of time. |
34 |
# that trying to fix it is just a waste of time. |
31 |
export mr_cv_target_elf=yes |
35 |
export mr_cv_target_elf=yes |
32 |
|
36 |
|
33 |
econf \ |
37 |
ECONF_SOURCE="${S}" econf \ |
34 |
$(use_enable nls) \ |
38 |
$(use_enable nls) \ |
35 |
--enable-shared \ |
39 |
--enable-shared \ |
36 |
$(use_enable debug) |
40 |
$(use_enable debug) |
37 |
} |
41 |
} |
38 |
|
42 |
|
39 |
src_install() { |
43 |
multilib_src_install() { |
40 |
emake \ |
44 |
emake \ |
41 |
prefix="${ED}usr" \ |
45 |
prefix="${ED}usr" \ |
42 |
libdir="${ED}usr/$(get_libdir)" \ |
46 |
libdir="${ED}usr/$(get_libdir)" \ |
Lines 44-51
Link Here
|
44 |
install-compat \ |
48 |
install-compat \ |
45 |
-j1 || die |
49 |
-j1 || die |
46 |
|
50 |
|
47 |
dodoc ChangeLog README || die |
|
|
48 |
|
49 |
# Stop libelf from stamping on the system nlist.h |
51 |
# Stop libelf from stamping on the system nlist.h |
50 |
use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h |
52 |
use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h |
51 |
} |
53 |
} |