Contents of /trunk/core/autoconf21/autoconf21-2.13-r5.smage2
Parent Directory
|
Revision Log
Revision 29702 -
(show annotations)
(download)
Tue Oct 10 07:11:21 2017 UTC (6 years, 11 months ago) by niro
File size: 1527 byte(s)
Tue Oct 10 07:11:21 2017 UTC (6 years, 11 months ago) by niro
File size: 1527 byte(s)
-updated UP2DATE uri
1 | # $Id$ |
2 | |
3 | PNAME="autoconf21" |
4 | PVER="2.13" |
5 | PBUILD="r5" |
6 | |
7 | PCAT="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 | SRC_URI=( |
20 | gnu://autoconf/${SRCFILE} |
21 | mirror://autoconf/${SRCFILE} |
22 | mirror://autoconf/autoconf-2.13-configure-gentoo.diff |
23 | mirror://autoconf/autoconf-2.13-configure.in-gentoo.diff |
24 | mirror://autoconf/autoconf-2.13-destdir.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep ${PVER:0:3} | highesttarball gz" |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | mpatch autoconf-2.13-configure-gentoo.diff || die |
35 | mpatch autoconf-2.13-configure.in-gentoo.diff || die |
36 | mpatch autoconf-2.13-destdir.patch || die |
37 | |
38 | # make sure configure is newer than configure.in |
39 | touch configure || die |
40 | |
41 | # this gets installed with binutils |
42 | rm -f standards.{texi,info} || die |
43 | |
44 | sed -i 's|\* Autoconf:|\* Autoconf v2.1:|' autoconf.texi || die |
45 | sed -i '/START-INFO-DIR-ENTRY/ i INFO-DIR-SECTION GNU programming tools' autoconf.texi || die |
46 | } |
47 | |
48 | src_compile() |
49 | { |
50 | cd ${SRCDIR} |
51 | |
52 | mconfigure --exec-prefix=/usr --bindir=/usr/bin --program-suffix="-${PVER}" || die |
53 | mmake || die |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | cd ${SRCDIR} |
59 | make DESTDIR=${BINDIR} install || die |
60 | |
61 | # fix info location |
62 | mv ${BINDIR}/usr/share/info/autoconf{,-${PVER}}.info || die |
63 | minstalldocs AUTHORS ChangeLog* COPYING NEWS README TODO || die |
64 | } |