| 1 |
ago |
1.3 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
flameeyes |
1.1 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
blueness |
1.13 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libelf/libelf-0.8.13-r1.ebuild,v 1.12 2012/11/29 13:37:32 blueness Exp $ |
| 4 |
grobian |
1.9 |
|
| 5 |
|
|
EAPI="3" |
| 6 |
flameeyes |
1.1 |
|
| 7 |
|
|
inherit eutils multilib autotools |
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="A ELF object file access library" |
| 10 |
|
|
HOMEPAGE="http://www.mr511.de/software/" |
| 11 |
|
|
SRC_URI="http://www.mr511.de/software/${P}.tar.gz" |
| 12 |
|
|
|
| 13 |
|
|
LICENSE="LGPL-2" |
| 14 |
|
|
SLOT="0" |
| 15 |
blueness |
1.13 |
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 |
flameeyes |
1.1 |
IUSE="debug nls elibc_FreeBSD" |
| 17 |
|
|
|
| 18 |
|
|
RDEPEND="!dev-libs/elfutils" |
| 19 |
|
|
DEPEND="nls? ( sys-devel/gettext )" |
| 20 |
|
|
|
| 21 |
|
|
src_prepare() { |
| 22 |
|
|
epatch "${FILESDIR}/${P}-build.patch" |
| 23 |
|
|
eautoreconf |
| 24 |
|
|
|
| 25 |
|
|
} |
| 26 |
|
|
|
| 27 |
|
|
src_configure() { |
| 28 |
|
|
# prefix might want to play with this; unfortunately the stupid |
| 29 |
|
|
# 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. |
| 31 |
|
|
export mr_cv_target_elf=yes |
| 32 |
|
|
|
| 33 |
|
|
econf \ |
| 34 |
|
|
$(use_enable nls) \ |
| 35 |
|
|
--enable-shared \ |
| 36 |
|
|
$(use_enable debug) |
| 37 |
|
|
} |
| 38 |
|
|
|
| 39 |
|
|
src_install() { |
| 40 |
|
|
emake \ |
| 41 |
grobian |
1.9 |
prefix="${ED}usr" \ |
| 42 |
|
|
libdir="${ED}usr/$(get_libdir)" \ |
| 43 |
flameeyes |
1.1 |
install \ |
| 44 |
grobian |
1.9 |
install-compat \ |
| 45 |
|
|
-j1 || die |
| 46 |
flameeyes |
1.1 |
|
| 47 |
|
|
dodoc ChangeLog README || die |
| 48 |
|
|
|
| 49 |
|
|
# Stop libelf from stamping on the system nlist.h |
| 50 |
grobian |
1.9 |
use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h |
| 51 |
flameeyes |
1.1 |
} |