Magellan Linux

Contents of /trunk/core/elfutils/elfutils-0.152-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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