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