Magellan Linux

Contents of /smage/trunk/core/autoconf21/autoconf21-2.13-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2865 - (show annotations) (download)
Tue Sep 6 11:38:27 2011 UTC (12 years, 9 months ago) by niro
File size: 1592 byte(s)
auto added: ver bump to 2.13-r2
1 # $Id$
2
3 PNAME="autoconf21"
4 PVER="2.13"
5 PBUILD="r2"
6
7 PCATEGORIE="sys-dev"
8
9 DESCRIPTION="Used to generate configure scripts."
10 HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html"
11
12 DEPEND=">= sys-apps/texinfo-4.3
13 >= sys-dev/m4-1.4
14 >= dev-lang/perl-5"
15
16 SRCFILE="autoconf-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/autoconf-${PVER}"
18
19 sminclude alx
20
21 SRC_URI=(
22 ftp://ftp.gnu.org/pub/gnu/autoconf/${SRCFILE}
23 mirror://autoconf/${SRCFILE}
24 mirror://autoconf/autoconf-2.13-configure-gentoo.diff
25 mirror://autoconf/autoconf-2.13-configure.in-gentoo.diff
26 mirror://autoconf/autoconf-2.13-destdir.patch
27 )
28
29 UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep ${PVER:0:3} | lasttarball gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 mpatch -Np0 autoconf-2.13-configure-gentoo.diff || die
37 mpatch -Np0 autoconf-2.13-configure.in-gentoo.diff || die
38 mpatch -Np0 autoconf-2.13-destdir.patch || die
39
40 # make sure configure is newer than configure.in
41 touch configure || die
42
43 # this gets installed with binutils
44 rm -f standards.{texi,info} || die
45
46 sed -i 's|\* Autoconf:|\* Autoconf v2.1:|' autoconf.texi || die
47 sed -i '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' autoconf.texi || die
48 }
49
50 src_compile()
51 {
52 cd ${SRCDIR}
53
54 mconfigure --exec-prefix=/usr --bindir=/usr/bin --program-suffix="-${PVER}" || die
55 mmake || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61 make DESTDIR=${BINDIR} install || die
62
63 # fix info location
64 mv ${BINDIR}/usr/share/info/autoconf{,-${PVER}}.info || die
65 minstalldocs AUTHORS ChangeLog* COPYING NEWS README TODO || die
66 }