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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Thu Nov 29 13:42:25 2012 UTC (22 months ago) by blueness
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -2 lines
Rapid stabilization arm and ppc64

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)

1 # Copyright 1999-2012 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.12 2012/11/29 13:37:32 blueness Exp $
4
5 EAPI="3"
6
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 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 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 prefix="${ED}usr" \
42 libdir="${ED}usr/$(get_libdir)" \
43 install \
44 install-compat \
45 -j1 || die
46
47 dodoc ChangeLog README || die
48
49 # Stop libelf from stamping on the system nlist.h
50 use elibc_FreeBSD && rm "${ED}"/usr/include/nlist.h
51 }

  ViewVC Help
Powered by ViewVC 1.1.20