Magellan Linux

Contents of /smage/trunk/core/automake14/automake14-1.4_p6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2792 - (show annotations) (download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1321 byte(s)
-merged branch alx-0_6_0 into trunk
1 # $Id$
2
3 PNAME="automake14"
4 PVER="1.4_p6"
5 PBUILD="r1"
6
7 PCATEGORIE="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 REMOVE_DEPRECATED_MAGE_TARGETS=1
21 sminclude alx
22
23 SRC_URI=(
24 ftp://ftp.gnu.org/pub/gnu/automake/${SRCFILE}
25 mirror://automake/${SRCFILE}
26 )
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 sed -i \
34 -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \
35 -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \
36 -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \
37 automake.texi || die
38 }
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 # stupid configure script goes and run autoconf in a subdir,
45 # so 'ac-wrapper.pl' do not detect that it should use
46 # autoconf-2.5x
47 export WANT_AUTOCONF=2.5
48
49 mconfigure || die
50 mmake || die
51 }
52
53 src_install()
54 {
55 cd ${SRCDIR}
56
57 make DESTDIR=${BINDIR} \
58 pkgdatadir=/usr/share/automake-${PVER:0:3} \
59 m4datadir=/usr/share/aclocal-${PVER:0:3} \
60 install || die
61
62 rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die
63
64 minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die
65 }