Contents of /trunk/core/automake110/automake110-1.10.3-r3.smage2
Parent Directory
|
Revision Log
Revision 29748 -
(show annotations)
(download)
Tue Oct 10 10:57:36 2017 UTC (6 years, 11 months ago) by niro
File size: 1728 byte(s)
Tue Oct 10 10:57:36 2017 UTC (6 years, 11 months ago) by niro
File size: 1728 byte(s)
-perl and src_uri fixes
1 | # $Id$ |
2 | |
3 | PNAME="automake110" |
4 | PVER="1.10.3" |
5 | PBUILD="r3" |
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.10-infopage-namechange.patch |
26 | mirror://automake/automake-${PVER}-texinfo5.patch |
27 | mirror://automake/automake-1.10-perl-5.16.patch |
28 | mirror://automake/automake-1.13-perl-5.26.patch |
29 | ) |
30 | |
31 | UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | highesttarball" |
32 | |
33 | src_prepare() |
34 | { |
35 | munpack ${SRCFILE} || die |
36 | cd ${SRCDIR} |
37 | |
38 | mpatch automake-1.10-infopage-namechange.patch || die |
39 | mpatch automake-${PVER}-texinfo5.patch || die |
40 | mpatch automake-1.10-perl-5.16.patch || die |
41 | mpatch automake-1.13-perl-5.26.patch || die |
42 | |
43 | sed -i \ |
44 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ |
45 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ |
46 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ |
47 | doc/automake.texi || die |
48 | } |
49 | |
50 | src_compile() |
51 | { |
52 | cd ${SRCDIR} |
53 | |
54 | # stupid configure script goes and run autoconf in a subdir, |
55 | # so 'ac-wrapper.pl' do not detect that it should use |
56 | # autoconf-2.5x |
57 | export WANT_AUTOCONF=2.5 |
58 | |
59 | mconfigure || die |
60 | mmake || die |
61 | } |
62 | |
63 | src_install() |
64 | { |
65 | cd ${SRCDIR} |
66 | |
67 | make DESTDIR=${BINDIR} install || die |
68 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die |
69 | |
70 | minstallinfo doc/*.info || die |
71 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die |
72 | } |