Annotation of /trunk/core/automake16/automake16-1.6.3-r7.smage2
Parent Directory | Revision Log
Revision 29744 -
(hide annotations)
(download)
Tue Oct 10 10:52:22 2017 UTC (6 years, 11 months ago) by niro
File size: 1411 byte(s)
Tue Oct 10 10:52:22 2017 UTC (6 years, 11 months ago) by niro
File size: 1411 byte(s)
-perl and src_uri fixes
1 | niro | 29744 | # $Id$ |
2 | |||
3 | PNAME="automake16" | ||
4 | PVER="1.6.3" | ||
5 | PBUILD="r7" | ||
6 | |||
7 | PCAT="sys-dev" | ||
8 | |||
9 | DESCRIPTION="Used to generate Makefile.in from Makefile.am." | ||
10 | HOMEPAGE="http://www.gnu.org/software/automake/automake.html" | ||
11 | |||
12 | DEPEND=">= dev-lang/perl-5 | ||
13 | >= sys-dev/autoconf-5" | ||
14 | |||
15 | SDEPEND=">= virtual/sed" | ||
16 | |||
17 | SRCFILE="automake-${PVER}.tar.bz2" | ||
18 | SRCDIR="${BUILDDIR}/automake-${PVER}" | ||
19 | |||
20 | sminclude mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | gnu://automake/${SRCFILE} | ||
24 | mirror://automake/${SRCFILE} | ||
25 | mirror://automake/automake-1.5-perl-5.11.patch | ||
26 | ) | ||
27 | |||
28 | UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | highesttarball" | ||
29 | |||
30 | src_prepare() | ||
31 | { | ||
32 | munpack ${SRCFILE} || die | ||
33 | cd ${SRCDIR} | ||
34 | |||
35 | mpatch automake-1.5-perl-5.11.patch || die | ||
36 | |||
37 | sed -i \ | ||
38 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ | ||
39 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ | ||
40 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ | ||
41 | automake.texi || die | ||
42 | } | ||
43 | |||
44 | src_compile() | ||
45 | { | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | # stupid configure script goes and run autoconf in a subdir, | ||
49 | # so 'ac-wrapper.pl' do not detect that it should use | ||
50 | # autoconf-2.5x | ||
51 | export WANT_AUTOCONF=2.5 | ||
52 | |||
53 | mconfigure || die | ||
54 | mmake || die | ||
55 | } | ||
56 | |||
57 | src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | |||
61 | make DESTDIR=${BINDIR} install || die | ||
62 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die | ||
63 | |||
64 | minstallinfo *.info || die | ||
65 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die | ||
66 | } |