Magellan Linux

Contents of /smage/trunk/core/automake111/automake111-1.11.6-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10514 - (show annotations) (download)
Wed Aug 23 11:59:52 2017 UTC (6 years, 8 months ago) by niro
File size: 1725 byte(s)
-perl and up2date uri fixes
1 # $Id$
2
3 PNAME="automake111"
4 PVER="1.11.6"
5 PBUILD="r5"
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.xz"
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-1.11-infopage-namechange.patch
26 mirror://automake/automake-${PVER}-texinfo5.patch
27 mirror://automake/automake-1.10-perl-5.16.patch
28 mirror://automake/automake-1.13-perl-5.26.patch
29 )
30
31 UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | highesttarball xz"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 mpatch automake-1.11-infopage-namechange.patch || die
39 mpatch automake-${PVER}-texinfo5.patch || die
40 mpatch automake-1.10-perl-5.16.patch || die
41 mpatch automake-1.13-perl-5.26.patch || die
42
43 sed -i \
44 -e "/^@setfilename/s|automake|automake${PVER%.*}|" \
45 -e "s|automake: (automake)|automake v${PVER%.*}: (automake${PVER%.*})|" \
46 -e "s|aclocal: (automake)|aclocal v${PVER%.*}: (automake${PVER%.*})|" \
47 doc/automake.texi || die
48 }
49
50 src_compile()
51 {
52 cd ${SRCDIR}
53
54 # stupid configure script goes and run autoconf in a subdir,
55 # so 'ac-wrapper.pl' do not detect that it should use
56 # autoconf-2.5x
57 export WANT_AUTOCONF=2.5
58
59 mconfigure || die
60 mmake || die
61 }
62
63 src_install()
64 {
65 cd ${SRCDIR}
66
67 make DESTDIR=${BINDIR} install || die
68 rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die
69
70 minstallinfo doc/*.info || die
71 minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
72 }