Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/autoconf21/autoconf21-2.13-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1757 - (show annotations) (download)
Mon Apr 11 20:51:58 2011 UTC (13 years, 2 months ago) by niro
File size: 1531 byte(s)
auto added: ver bump to 2.13-r1
1 # $Id$
2
3 PNAME="autoconf21"
4 PVER="2.13"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-dev"
8 STATE="stable"
9
10 DESCRIPTION="Used to generate configure scripts."
11 HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html"
12
13 DEPEND=">= sys-apps/texinfo-4.3
14 >= sys-dev/m4-1.4
15 >= dev-lang/perl-5"
16
17 SRCFILE="autoconf-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/autoconf-${PVER}"
19
20 REMOVE_DEPRECATED_MAGE_TARGETS=1
21 sminclude alx
22
23 SRC_URI=(
24 ftp://ftp.gnu.org/pub/gnu/autoconf/${SRCFILE}
25 mirror://autoconf/${SRCFILE}
26 mirror://autoconf/autoconf-2.13-configure-gentoo.diff
27 mirror://autoconf/autoconf-2.13-configure.in-gentoo.diff
28 mirror://autoconf/autoconf-2.13-destdir.patch
29 )
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 }