Magellan Linux

Annotation of /smage/branches/alx07x-unstable/core/automake14/automake14-1.4_p6-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10977 - (hide annotations) (download)
Thu Aug 31 08:43:07 2017 UTC (6 years, 8 months ago) by niro
File size: 1660 byte(s)
-release branches/alx07x-unstable
1 niro 10507 # $Id$
2    
3     PNAME="automake14"
4     PVER="1.4_p6"
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-1.4-perl-5.11.patch
26     mirror://automake/automake-1.4-perl-dyn-call.patch
27     )
28    
29     UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | sed 's/-\(p[0-9]\)/_\1/' | highesttarball gz"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     # perl fixes
37     mpatch automake-1.4-perl-5.11.patch || die
38     mpatch automake-1.4-perl-dyn-call.patch || die
39    
40     sed -i \
41     -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \
42     -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \
43     -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \
44     automake.texi || die
45     }
46    
47     src_compile()
48     {
49     cd ${SRCDIR}
50    
51     # stupid configure script goes and run autoconf in a subdir,
52     # so 'ac-wrapper.pl' do not detect that it should use
53     # autoconf-2.5x
54     export WANT_AUTOCONF=2.5
55    
56     mconfigure || die
57     mmake || die
58     }
59    
60     src_install()
61     {
62     cd ${SRCDIR}
63    
64     make DESTDIR=${BINDIR} \
65     pkgdatadir=/usr/share/automake-${PVER:0:3} \
66     m4datadir=/usr/share/aclocal-${PVER:0:3} \
67     install || die
68    
69     rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die
70    
71     minstallinfo *.info || die
72     minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
73     }