Magellan Linux

Contents of /smage/branches/alx07x-stable/core/automake15/automake15-1.5-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11458 - (show annotations) (download)
Tue Dec 19 12:37:32 2017 UTC (6 years, 4 months ago) by niro
File size: 1711 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="automake15"
4 PVER="1.5"
5 PBUILD="r7"
6
7 PCAT="sys-dev"
8
9 DESCRIPTION="Used to generate Makefile.in from Makefile.am."
10 HOMEPAGE="http://www.gnu.org/software/automake/automake.html"
11
12 DEPEND=">= dev-lang/perl-5
13 >= sys-dev/autoconf-5"
14
15 SDEPEND=">= virtual/sed"
16
17 SRCFILE="automake-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/automake-${PVER}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 gnu://automake/${SRCFILE}
24 mirror://automake/${SRCFILE}
25 mirror://automake/automake-${PVER}-target_hook.patch
26 mirror://automake/automake-${PVER}-slot.patch
27 mirror://automake/automake-${PVER}-perl-5.11.patch
28 )
29
30 UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | highesttarball gz"
31
32 src_prepare()
33 {
34 munpack ${SRCFILE} || die
35 cd ${SRCDIR}
36
37 mpatch automake-${PVER}-target_hook.patch || die
38 mpatch automake-${PVER}-slot.patch || die
39 mpatch automake-${PVER}-perl-5.11.patch || die
40
41 sed -i \
42 -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \
43 -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \
44 -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \
45 automake.texi || die
46 }
47
48 src_compile()
49 {
50 cd ${SRCDIR}
51
52 # stupid configure script goes and run autoconf in a subdir,
53 # so 'ac-wrapper.pl' do not detect that it should use
54 # autoconf-2.5x
55 export WANT_AUTOCONF=2.5
56
57 mconfigure || die
58 mmake || die
59 }
60
61 src_install()
62 {
63 cd ${SRCDIR}
64
65 make DESTDIR=${BINDIR} install || die
66
67 local i
68 for i in aclocal automake
69 do
70 mv ${BINDIR}/usr/bin/${i}{,-${PVER:0:3}} || die
71 mv ${BINDIR}/usr/share/${i}{,-${PVER:0:3}} || die
72 done
73
74 minstallinfo *.info || die
75 minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
76 }