Magellan Linux

Contents of /branches/R11-stable/core/elfutils/elfutils-0.158-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20777 - (show annotations) (download)
Tue Feb 11 09:46:13 2014 UTC (10 years, 2 months ago) by niro
File size: 2265 byte(s)
-release branches/R11-stable
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
14 SDEPEND=">= virtual/sed
15 >= sys-dev/gettext-0.18"
16
17 SRCFILE="${PNAME}-${PVER}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild multilib
21
22 # disable src_check
23 msetfeature "!check"
24
25 SRC_URI=(
26 https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/${PVER}/${SRCFILE}
27 mirror://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${PNAME}-${PVER}-portability.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-robustify.patch
30 )
31
32 UP2DATE="updatecmd https://fedorahosted.org/releases/${PNAME:0:1}/${PNAME:1:1}/${PNAME}/ | grep '/${PNAME}/.*/$' | sed -n 's:.*/${PNAME}/\(.*\)/$:\1:;$ p'"
33
34 split_info_libelf()
35 {
36 DESCRIPTION="Library to read and write ELF files."
37 DEPEND="${LIB_DEPEND}"
38 PCAT="sys-libs"
39 }
40
41 split_info_elfutils-libs()
42 {
43 DESCRIPTION="Libs to handle elf objects."
44 DEPEND="== sys-libs/libelf-${PVER}"
45 }
46
47 split_info_elfutils()
48 {
49 DESCRIPTION="Utils to handle elf objects."
50 DEPEND="== sys-libs/libelf-${PVER}
51 == dev-libs/elfutils-libs-${PVER}"
52 }
53
54 src_prepare()
55 {
56 munpack ${SRCFILE} || die
57
58 # redhat patches:
59 mpatch ${PNAME}-${PVER}-portability.patch || die
60 mpatch ${PNAME}-${PVER}-robustify.patch || die
61
62 mautoreconf || die
63
64 # fix some noisiness (taken from gentoo ebuild)
65 all-abis "find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'"
66 }
67
68 src_compile()
69 {
70 mconfigure \
71 --program-prefix="eu-" \
72 --enable-shared \
73 --enable-nls \
74 || die
75
76 mmake || die
77 }
78
79 src_install_libelf()
80 {
81 mmake -C libelf DESTDIR=${BINDIR} install || die
82 # install version.h
83 mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
84 }
85
86 src_install_elfutils-libs()
87 {
88 mmake -C libebl DESTDIR=${BINDIR} install || die
89 mmake -C libdw DESTDIR=${BINDIR} install || die
90 mmake -C libdwfl DESTDIR=${BINDIR} install || die
91 mmake -C libasm DESTDIR=${BINDIR} install || die
92 mmake -C backends DESTDIR=${BINDIR} install || die
93 }
94
95 src_install_elfutils()
96 {
97 mmake -C src DESTDIR=${BINDIR} install || die
98 mmake -C po DESTDIR=${BINDIR} install || die
99
100 minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
101 GPG-KEY NEWS NOTES README THANKS TODO || die
102 }