Magellan Linux

Annotation of /branches/R11-unstable/core/automake113/automake113-1.13.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29751 - (hide annotations) (download)
Tue Oct 10 11:00:29 2017 UTC (6 years, 7 months ago) by niro
Original Path: trunk/core/automake113/automake113-1.13.4-r2.smage2
File size: 1684 byte(s)
-perl and src_uri fixes
1 niro 29751 # $Id$
2    
3     PNAME="automake113"
4     PVER="1.13.4"
5     PBUILD="r2"
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.12-infopage-namechange-2.patch
26     mirror://automake/automake-1.13-perl-5.26.patch
27     )
28    
29     UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | highesttarball xz"
30    
31     src_prepare()
32     {
33     munpack ${SRCFILE} || die
34     cd ${SRCDIR}
35    
36     mpatch automake-1.12-infopage-namechange-2.patch || die
37     mpatch automake-1.13-perl-5.26.patch || die
38    
39     sed -i \
40     -e "/^@setfilename/s|automake|automake${PVER%.*}|" \
41     -e "s|automake: (automake)|automake v${PVER%.*}: (automake${PVER%.*})|" \
42     -e "s|aclocal: (automake)|aclocal v${PVER%.*}: (automake${PVER%.*})|" \
43     doc/automake.texi || die
44    
45     # fix help2man issues with newer perl version
46     sed -i 's:doc/help2man --output=:doc/help2man --no-discard-stderr --output=:g' Makefile.in || die
47     }
48    
49     src_compile()
50     {
51     cd ${SRCDIR}
52    
53     # stupid configure script goes and run autoconf in a subdir,
54     # so 'ac-wrapper.pl' do not detect that it should use
55     # autoconf-2.5x
56     export WANT_AUTOCONF=2.5
57    
58     mconfigure || die
59     mmake || die
60     }
61    
62     src_install()
63     {
64     cd ${SRCDIR}
65    
66     make DESTDIR=${BINDIR} install || die
67     rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die
68    
69     minstallinfo doc/*.info || die
70     minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
71     }