Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/autoconf21/autoconf21-2.13-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14910 - (hide annotations) (download)
Thu Aug 6 12:49:16 2020 UTC (3 years, 9 months ago) by niro
File size: 1536 byte(s)
-release branches/alx07x-stable
1 niro 13955 # $Id$
2    
3     PNAME="autoconf21"
4     PVER="2.13"
5     PBUILD="r7"
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]*/}?C=M;O=A\" | grep ${PVER:0:3} | lasttarball 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     }