Contents of /smage/trunk/core/automake113/automake113-1.13.4-r4.smage2
Parent Directory | Revision Log
Revision 10214 -
(show annotations)
(download)
Wed Aug 16 13:46:21 2017 UTC (6 years, 8 months ago) by niro
File size: 1599 byte(s)
Wed Aug 16 13:46:21 2017 UTC (6 years, 8 months ago) by niro
File size: 1599 byte(s)
auto added: ver bump to 1.13.4-r4
1 | # $Id$ |
2 | |
3 | PNAME="automake113" |
4 | PVER="1.13.4" |
5 | PBUILD="r4" |
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.xz" |
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.12-infopage-namechange-2.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | lasttarball xz" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | mpatch automake-1.12-infopage-namechange-2.patch || die |
36 | |
37 | sed -i \ |
38 | -e "/^@setfilename/s|automake|automake${PVER%.*}|" \ |
39 | -e "s|automake: (automake)|automake v${PVER%.*}: (automake${PVER%.*})|" \ |
40 | -e "s|aclocal: (automake)|aclocal v${PVER%.*}: (automake${PVER%.*})|" \ |
41 | doc/automake.texi || die |
42 | |
43 | # fix help2man issues with newer perl version |
44 | sed -i 's:doc/help2man --output=:doc/help2man --no-discard-stderr --output=:g' Makefile.in || 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} install || die |
65 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die |
66 | |
67 | minstallinfo doc/*.info || die |
68 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die |
69 | } |