Magellan Linux

Annotation of /branches/R11-stable/core/elfutils/elfutils-0.155-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14730 - (hide annotations) (download)
Wed Jan 2 09:19:43 2013 UTC (11 years, 5 months ago) by niro
File size: 2276 byte(s)
-release branches/R11-stable
1 niro 13283 # $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    
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}/ | lasttarball gz"
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     cd ${SRCDIR}
58    
59     # redhat patches:
60     mpatch ${PNAME}-${PVER}-portability.patch || die
61     mpatch ${PNAME}-${PVER}-robustify.patch || die
62    
63     mautoreconf || die
64    
65     # fix some noisiness (taken from gentoo ebuild)
66     find . -name Makefile.in -print0 | xargs -0 sed -i -e 's:-W\(error\|extra\)::g'
67     }
68    
69     src_compile()
70     {
71     cd ${SRCDIR}
72    
73     mconfigure \
74     --program-prefix="eu-" \
75     --enable-shared \
76     --enable-nls \
77     || die
78    
79     mmake || die
80     }
81    
82     src_install_libelf()
83     {
84     cd ${SRCDIR}
85     mmake -C libelf DESTDIR=${BINDIR} install || die
86     # install version.h
87     mmake DESTDIR=${BINDIR} install-pkgincludeHEADERS || die
88     }
89    
90     src_install_elfutils-libs()
91     {
92     cd ${SRCDIR}
93     mmake -C libebl DESTDIR=${BINDIR} install || die
94     mmake -C libdw DESTDIR=${BINDIR} install || die
95     mmake -C libdwfl DESTDIR=${BINDIR} install || die
96     mmake -C libasm DESTDIR=${BINDIR} install || die
97     mmake -C backends DESTDIR=${BINDIR} install || die
98     }
99    
100     src_install_elfutils()
101     {
102     cd ${SRCDIR}
103     mmake -C src DESTDIR=${BINDIR} install || die
104     mmake -C po DESTDIR=${BINDIR} install || die
105    
106     minstalldocs AUTHORS COPYING ChangeLog EXCEPTION \
107     GPG-KEY NEWS NOTES README THANKS TODO || die
108     }