Contents of /branches/magellan-next/core/elfutils/elfutils-0.152-r2.smage2
Parent Directory | Revision Log
Revision 7527 -
(show annotations)
(download)
Tue May 24 19:22:54 2011 UTC (13 years, 4 months ago) by niro
File size: 1229 byte(s)
Tue May 24 19:22:54 2011 UTC (13 years, 4 months ago) by niro
File size: 1229 byte(s)
auto added: ver bump to 0.152-r2
1 | # $Id$ |
2 | |
3 | PNAME="elfutils" |
4 | PVER="0.152" |
5 | PBUILD="r2" |
6 | |
7 | PCATEGORIE="dev-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Utils and libs to handle elf objects." |
11 | HOMEPAGE="https://fedorahosted.org/elfutils/" |
12 | |
13 | DEPEND=">= sys-dev/binutils-2.21 |
14 | >= sys-dev/gcc-4.6" |
15 | |
16 | SDEPEND=">= sys-apps/sed-4 |
17 | >= sys-dev/gettext-0.18" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mbuild |
23 | |
24 | SRC_URI=( |
25 | https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-${PVER}-portability.patch |
28 | mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | # redhat patches: |
39 | mpatch ${PNAME}-${PVER}-portability.patch || die |
40 | mpatch ${PNAME}-${PVER}-robustify.patch || die |
41 | |
42 | autoreconf --verbose --install --force || die |
43 | |
44 | # fix some noisiness (taken from gentoo ebuild) |
45 | find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g' |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure \ |
53 | --program-prefix="eu-" \ |
54 | --enable-shared \ |
55 | --enable-nls \ |
56 | || die |
57 | |
58 | mmake || die |
59 | } |