Magellan Linux

Contents of /branches/R11-unstable/core/automake14/automake14-1.4_p6-r6.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 24907 - (show annotations) (download)
Tue Nov 25 02:36:43 2014 UTC (9 years, 5 months ago) by niro
File size: 1462 byte(s)
-release branches/R11-unstable
1 # $Id$
2
3 PNAME="automake14"
4 PVER="1.4_p6"
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.gz"
18 SRCDIR="${BUILDDIR}/automake-${PVER/_/-}"
19
20 sminclude mtools
21
22 SRC_URI=(
23 gnu://automake/${SRCFILE}
24 mirror://automake/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | sed 's/-\(p[0-9]\)/_\1/' | lasttarball gz"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 sed -i \
35 -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \
36 -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \
37 -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \
38 automake.texi || die
39 }
40
41 src_compile()
42 {
43 cd ${SRCDIR}
44
45 # stupid configure script goes and run autoconf in a subdir,
46 # so 'ac-wrapper.pl' do not detect that it should use
47 # autoconf-2.5x
48 export WANT_AUTOCONF=2.5
49
50 mconfigure || die
51 mmake || die
52 }
53
54 src_install()
55 {
56 cd ${SRCDIR}
57
58 make DESTDIR=${BINDIR} \
59 pkgdatadir=/usr/share/automake-${PVER:0:3} \
60 m4datadir=/usr/share/aclocal-${PVER:0:3} \
61 install || die
62
63 rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die
64
65 minstallinfo *.info || die
66 minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
67 }