Annotation of /branches/magellan-next/core/automake15/automake15-1.5-r5.smage2
Parent Directory | Revision Log
Revision 5814 -
(hide annotations)
(download)
Mon Aug 16 19:11:58 2010 UTC (14 years, 1 month ago) by niro
File size: 1646 byte(s)
Mon Aug 16 19:11:58 2010 UTC (14 years, 1 month ago) by niro
File size: 1646 byte(s)
auto added: ver bump to 1.5-r5
1 | niro | 5814 | # $Id$ |
2 | |||
3 | PNAME="automake15" | ||
4 | PVER="1.5" | ||
5 | PBUILD="r5" | ||
6 | |||
7 | PCATEGORIE="sys-dev" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Used to generate Makefile.in from Makefile.am." | ||
11 | HOMEPAGE="http://www.gnu.org/software/automake/automake.html" | ||
12 | |||
13 | DEPEND=">= dev-lang/perl-5 | ||
14 | >= sys-dev/autoconf-5" | ||
15 | |||
16 | SDEPEND=">= sys-apps/sed-4" | ||
17 | |||
18 | SRCFILE="automake-${PVER}.tar.gz" | ||
19 | SRCDIR="${BUILDDIR}/automake-${PVER}" | ||
20 | |||
21 | sminclude mtools | ||
22 | |||
23 | SRC_URI=( | ||
24 | gnu://automake/${SRCFILE} | ||
25 | mirror://automake/${SRCFILE} | ||
26 | mirror://automake/automake-${PVER}-target_hook.patch | ||
27 | mirror://automake/automake-${PVER}-slot.patch | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | lasttarball gz" | ||
31 | |||
32 | src_prepare() | ||
33 | { | ||
34 | munpack ${SRCFILE} || die | ||
35 | cd ${SRCDIR} | ||
36 | |||
37 | mpatch automake-${PVER}-target_hook.patch || die | ||
38 | mpatch automake-${PVER}-slot.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} install || die | ||
65 | |||
66 | local i | ||
67 | for i in aclocal automake | ||
68 | do | ||
69 | mv ${BINDIR}/usr/bin/${i}{,-${PVER:0:3}} || die | ||
70 | mv ${BINDIR}/usr/share/${i}{,-${PVER:0:3}} || die | ||
71 | done | ||
72 | |||
73 | minstallinfo *.info || die | ||
74 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die | ||
75 | } |