Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/automake111/automake111-1.11.6-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14921 - (hide annotations) (download)
Thu Aug 6 12:50:14 2020 UTC (3 years, 9 months ago) by niro
File size: 1725 byte(s)
-release branches/alx07x-stable
1 niro 13966 # $Id$
2    
3     PNAME="automake111"
4     PVER="1.11.6"
5     PBUILD="r6"
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     }