Magellan Linux

Contents of /trunk/core/elfutils/elfutils-0.153-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12753 - (show annotations) (download)
Mon Jul 2 14:37:15 2012 UTC (11 years, 10 months ago) by niro
File size: 2297 byte(s)
-marked unstable
1 # $Id$
2
3 PNAME="elfutils"
4 PVER="0.153"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="libelf elfutils-libs elfutils"
8
9 PCAT="dev-libs"
10 STATE="unstable"
11
12 HOMEPAGE="https://fedorahosted.org/elfutils/"
13
14 LIB_DEPEND=">= virtual/glibc"
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 multilib
23
24 # disable src_check
25 msetfeature "!check"
26
27 SRC_URI=(
28 https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 mirror://${PNAME}/${PNAME}-${PVER}-portability.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch
32 )
33
34 UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | lasttarball gz"
35
36 split_info_libelf()
37 {
38 DESCRIPTION="Library to read and write ELF files."
39 DEPEND="${LIB_DEPEND}"
40 PCAT="sys-libs"
41 }
42
43 split_info_elfutils-libs()
44 {
45 DESCRIPTION="Libs to handle elf objects."
46 DEPEND="== sys-libs/libelf-${PVER}"
47 }
48
49 split_info_elfutils()
50 {
51 DESCRIPTION="Utils to handle elf objects."
52 DEPEND="== sys-libs/libelf-${PVER}
53 == dev-libs/elfutils-libs-${PVER}"
54 }
55
56 src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 cd ${SRCDIR}
60
61 # redhat patches:
62 mpatch ${PNAME}-${PVER}-portability.patch || die
63 mpatch ${PNAME}-${PVER}-robustify.patch || die
64
65 mautoreconf || die
66
67 # fix some noisiness (taken from gentoo ebuild)
68 find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
69 }
70
71 src_compile()
72 {
73 cd ${SRCDIR}
74
75 mconfigure \
76 --program-prefix="eu-" \
77 --enable-shared \
78 --enable-nls \
79 || die
80
81 mmake || die
82 }
83
84 src_install_libelf()
85 {
86 cd ${SRCDIR}
87 mmake -C libelf DESTDIR=${BINDIR} install || die
88 # install version.h
89 mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
90 }
91
92 src_install_elfutils-libs()
93 {
94 cd ${SRCDIR}
95 mmake -C libebl DESTDIR=${BINDIR} install || die
96 mmake -C libdw DESTDIR=${BINDIR} install || die
97 mmake -C libdwfl DESTDIR=${BINDIR} install || die
98 mmake -C libasm DESTDIR=${BINDIR} install || die
99 mmake -C backends DESTDIR=${BINDIR} install || die
100 }
101
102 src_install_elfutils()
103 {
104 cd ${SRCDIR}
105 mmake -C src DESTDIR=${BINDIR} install || die
106 mmake -C po DESTDIR=${BINDIR} install || die
107
108 minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
109 GPG-KEY NEWS NOTES README THANKS TODO || die
110 }