Annotation of /branches/R11-stable/core/automake110/automake110-1.10.3-r2.smage2
Parent Directory | Revision Log
Revision 17237 -
(hide annotations)
(download)
Thu Jun 6 07:27:25 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/core/automake110/automake110-1.10.3-r2.smage2
File size: 1549 byte(s)
Thu Jun 6 07:27:25 2013 UTC (11 years, 3 months ago) by niro
Original Path: trunk/core/automake110/automake110-1.10.3-r2.smage2
File size: 1549 byte(s)
-fixed patch name
1 | niro | 17230 | # $Id$ |
2 | |||
3 | PNAME="automake110" | ||
4 | PVER="1.10.3" | ||
5 | PBUILD="r2" | ||
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 | niro | 17237 | mirror://automake/automake-${PVER}-texinfo5.patch |
27 | niro | 17230 | ) |
28 | |||
29 | UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | lasttarball" | ||
30 | |||
31 | src_prepare() | ||
32 | { | ||
33 | munpack ${SRCFILE} || die | ||
34 | cd ${SRCDIR} | ||
35 | |||
36 | mpatch automake-1.10-infopage-namechange.patch || die | ||
37 | niro | 17237 | mpatch automake-${PVER}-texinfo5.patch || die |
38 | niro | 17230 | |
39 | sed -i \ | ||
40 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ | ||
41 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ | ||
42 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ | ||
43 | doc/automake.texi || die | ||
44 | } | ||
45 | |||
46 | src_compile() | ||
47 | { | ||
48 | cd ${SRCDIR} | ||
49 | |||
50 | # stupid configure script goes and run autoconf in a subdir, | ||
51 | # so 'ac-wrapper.pl' do not detect that it should use | ||
52 | # autoconf-2.5x | ||
53 | export WANT_AUTOCONF=2.5 | ||
54 | |||
55 | mconfigure || die | ||
56 | mmake || die | ||
57 | } | ||
58 | |||
59 | src_install() | ||
60 | { | ||
61 | cd ${SRCDIR} | ||
62 | |||
63 | make DESTDIR=${BINDIR} install || die | ||
64 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die | ||
65 | |||
66 | minstallinfo doc/*.info || die | ||
67 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die | ||
68 | } |