Annotation of /trunk/core/autoconf21/autoconf21-2.13-r5.smage2
Parent Directory | Revision Log
Revision 5809 -
(hide annotations)
(download)
Mon Aug 16 19:09:45 2010 UTC (14 years, 1 month ago) by niro
Original Path: branches/magellan-next/core/autoconf21/autoconf21-2.13-r5.smage2
File size: 1657 byte(s)
Mon Aug 16 19:09:45 2010 UTC (14 years, 1 month ago) by niro
Original Path: branches/magellan-next/core/autoconf21/autoconf21-2.13-r5.smage2
File size: 1657 byte(s)
auto added: ver bump to 2.13-r5
1 | niro | 5809 | # $Header: /magellan-cvs/smage/autoconf21/autoconf21-2.13-r2.smage2,v 1.1 2008/02/09 13:53:49 niro Exp $ |
2 | |||
3 | PNAME="autoconf21" | ||
4 | PVER="2.13" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCATEGORIE="sys-dev" | ||
8 | STATE="unstable" | ||
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 | SRC_URI=( | ||
21 | gnu://autoconf/${SRCFILE} | ||
22 | mirror://autoconf/${SRCFILE} | ||
23 | mirror://autoconf/autoconf-2.13-configure-gentoo.diff | ||
24 | mirror://autoconf/autoconf-2.13-configure.in-gentoo.diff | ||
25 | mirror://autoconf/autoconf-2.13-destdir.patch | ||
26 | ) | ||
27 | |||
28 | UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep ${PVER:0:3} | lasttarball gz" | ||
29 | |||
30 | src_prepare() | ||
31 | { | ||
32 | munpack ${SRCFILE} || die | ||
33 | cd ${SRCDIR} | ||
34 | |||
35 | mpatch autoconf-2.13-configure-gentoo.diff || die | ||
36 | mpatch autoconf-2.13-configure.in-gentoo.diff || die | ||
37 | mpatch autoconf-2.13-destdir.patch || die | ||
38 | |||
39 | # make sure configure is newer than configure.in | ||
40 | touch configure || die | ||
41 | |||
42 | # this gets installed with binutils | ||
43 | rm -f standards.{texi,info} || die | ||
44 | |||
45 | sed -i 's|\* Autoconf:|\* Autoconf v2.1:|' autoconf.texi || die | ||
46 | sed -i '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' autoconf.texi || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | cd ${SRCDIR} | ||
52 | |||
53 | mconfigure --exec-prefix=/usr --bindir=/usr/bin --program-suffix="-${PVER}" || die | ||
54 | mmake || die | ||
55 | } | ||
56 | |||
57 | src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | make DESTDIR=${BINDIR} install || die | ||
61 | |||
62 | # fix info location | ||
63 | mv ${BINDIR}/usr/share/info/autoconf{,-${PVER}}.info || die | ||
64 | minstalldocs AUTHORS ChangeLog* COPYING NEWS README TODO || die | ||
65 | } |