Magellan Linux

Contents of /smage/trunk/core/elfutils/elfutils-0.158-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5392 - (show annotations) (download)
Thu Jan 16 09:25:04 2014 UTC (10 years, 4 months ago) by niro
File size: 2240 byte(s)
auto added: ver bump to 0.158-r1
1 # $Id$
2
3 PNAME="elfutils"
4 PVER="0.158"
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}/ | grep '/${PNAME}/.*/$' | sed -n 's:.*/${PNAME}/\(.*\)/$:\1:;$ p'"
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
56 # redhat patches:
57 mpatch ${PNAME}-${PVER}-portability.patch || die
58 mpatch ${PNAME}-${PVER}-robustify.patch || die
59
60 mautoreconf || die
61
62 # fix some noisiness (taken from gentoo ebuild)
63 all-abis "find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'"
64 }
65
66 src_compile()
67 {
68 mconfigure \
69 --program-prefix="eu-" \
70 --enable-shared \
71 --disable-nls \
72 || die
73
74 mmake || die
75 }
76
77 src_install_libelf()
78 {
79 mmake -C libelf DESTDIR=${BINDIR} install || die
80 # install version.h
81 mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
82 }
83
84 src_install_elfutils-libs()
85 {
86 mmake -C libebl DESTDIR=${BINDIR} install || die
87 mmake -C libdw DESTDIR=${BINDIR} install || die
88 mmake -C libdwfl DESTDIR=${BINDIR} install || die
89 mmake -C libasm DESTDIR=${BINDIR} install || die
90 mmake -C backends DESTDIR=${BINDIR} install || die
91 }
92
93 src_install_elfutils()
94 {
95 mmake -C src DESTDIR=${BINDIR} install || die
96 mmake -C po DESTDIR=${BINDIR} install || die
97
98 minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
99 GPG-KEY NEWS NOTES README THANKS TODO || die
100 }