Contents of /smage/trunk/core/automake14/automake14-1.4_p6-r8.smage2
Parent Directory | Revision Log
Revision 13959 -
(show annotations)
(download)
Thu Jul 2 08:15:48 2020 UTC (4 years, 2 months ago) by niro
File size: 1660 byte(s)
Thu Jul 2 08:15:48 2020 UTC (4 years, 2 months ago) by niro
File size: 1660 byte(s)
auto added: ver bump to 1.4_p6-r8
1 | # $Id$ |
2 | |
3 | PNAME="automake14" |
4 | PVER="1.4_p6" |
5 | PBUILD="r8" |
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.gz" |
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.4-perl-5.11.patch |
26 | mirror://automake/automake-1.4-perl-dyn-call.patch |
27 | ) |
28 | |
29 | UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | sed 's/-\(p[0-9]\)/_\1/' | highesttarball gz" |
30 | |
31 | src_prepare() |
32 | { |
33 | munpack ${SRCFILE} || die |
34 | cd ${SRCDIR} |
35 | |
36 | # perl fixes |
37 | mpatch automake-1.4-perl-5.11.patch || die |
38 | mpatch automake-1.4-perl-dyn-call.patch || die |
39 | |
40 | sed -i \ |
41 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ |
42 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ |
43 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ |
44 | automake.texi || die |
45 | } |
46 | |
47 | src_compile() |
48 | { |
49 | cd ${SRCDIR} |
50 | |
51 | # stupid configure script goes and run autoconf in a subdir, |
52 | # so 'ac-wrapper.pl' do not detect that it should use |
53 | # autoconf-2.5x |
54 | export WANT_AUTOCONF=2.5 |
55 | |
56 | mconfigure || die |
57 | mmake || die |
58 | } |
59 | |
60 | src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | make DESTDIR=${BINDIR} \ |
65 | pkgdatadir=/usr/share/automake-${PVER:0:3} \ |
66 | m4datadir=/usr/share/aclocal-${PVER:0:3} \ |
67 | install || die |
68 | |
69 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die |
70 | |
71 | minstallinfo *.info || die |
72 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die |
73 | } |