Contents of /smage/branches/alx-0_6_0/core/automake15/automake15-1.5-r1.smage2
Parent Directory | Revision Log
Revision 2506 -
(show annotations)
(download)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1516 byte(s)
Thu Jun 30 13:55:15 2011 UTC (13 years, 3 months ago) by niro
File size: 1516 byte(s)
-removed STATE variable from smage files, use global distribution file for package/distribution states
1 | # $Id$ |
2 | |
3 | PNAME="automake15" |
4 | PVER="1.5" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
21 | sminclude alx |
22 | |
23 | SRC_URI=( |
24 | ftp://ftp.gnu.org/pub/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 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | mpatch -Np1 automake-${PVER}-target_hook.patch || die |
36 | mpatch -Np0 automake-${PVER}-slot.patch || die |
37 | |
38 | sed -i \ |
39 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ |
40 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ |
41 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ |
42 | automake.texi || die |
43 | } |
44 | |
45 | src_compile() |
46 | { |
47 | cd ${SRCDIR} |
48 | |
49 | # stupid configure script goes and run autoconf in a subdir, |
50 | # so 'ac-wrapper.pl' do not detect that it should use |
51 | # autoconf-2.5x |
52 | export WANT_AUTOCONF=2.5 |
53 | |
54 | mconfigure || die |
55 | mmake || die |
56 | } |
57 | |
58 | src_install() |
59 | { |
60 | cd ${SRCDIR} |
61 | |
62 | make DESTDIR=${BINDIR} install || die |
63 | |
64 | local i |
65 | for i in aclocal automake |
66 | do |
67 | mv ${BINDIR}/usr/bin/${i}{,-${PVER:0:3}} || die |
68 | mv ${BINDIR}/usr/share/${i}{,-${PVER:0:3}} || die |
69 | done |
70 | |
71 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die |
72 | } |