/[gentoo-x86]/dev-libs/libelf/libelf-0.8.13-r2.ebuild
Gentoo

Contents of /dev-libs/libelf/libelf-0.8.13-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Fri Aug 16 12:36:10 2013 UTC (12 months ago) by aballier
Branch: MAIN
CVS Tags: HEAD
Convert to multilib, bug #479316. Stack it for emul-baselibs r12

(Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 160F534A)

1 # Copyright 1999-2013 Gentoo Foundation
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 $
4
5 EAPI="5"
6
7 inherit eutils multilib autotools multilib-minimal
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 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"
17
18 RDEPEND="!dev-libs/elfutils
19 abi_x86_32? (
20 !<=app-emulation/emul-linux-x86-baselibs-20130224-r11
21 !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
22 )"
23 DEPEND="nls? ( sys-devel/gettext )"
24
25 DOCS=( ChangeLog README )
26 MULTILIB_WRAPPED_HEADERS=( /usr/include/libelf/sys_elf.h )
27
28 src_prepare() {
29 epatch "${FILESDIR}/${P}-build.patch"
30 eautoreconf
31 }
32
33 multilib_src_configure() {
34 # prefix might want to play with this; unfortunately the stupid
35 # macro used to detect whether we're building ELF is so screwed up
36 # that trying to fix it is just a waste of time.
37 export mr_cv_target_elf=yes
38
39 ECONF_SOURCE="${S}" econf \
40 $(use_enable nls) \
41 --enable-shared \
42 $(use_enable debug)
43 }
44
45 multilib_src_install() {
46 emake \
47 prefix="${ED}usr" \
48 libdir="${ED}usr/$(get_libdir)" \
49 install \
50 install-compat \
51 -j1 || die
52
53 # Stop libelf from stamping on the system nlist.h
54 use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h
55 }

  ViewVC Help
Powered by ViewVC 1.1.20