Contents of /smage/branches/alx-0_6_0/core/automake16/automake16-1.6.3-r1.smage2
Parent Directory | Revision Log
Revision 2352 -
(show annotations)
(download)
Fri Jun 10 08:13:10 2011 UTC (13 years ago) by niro
File size: 1231 byte(s)
Fri Jun 10 08:13:10 2011 UTC (13 years ago) by niro
File size: 1231 byte(s)
-fixed sed dependencies
1 | # $Id$ |
2 | |
3 | PNAME="automake16" |
4 | PVER="1.6.3" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-dev" |
8 | STATE="stable" |
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=">= virtual/sed" |
17 | |
18 | SRCFILE="automake-${PVER}.tar.bz2" |
19 | SRCDIR="${BUILDDIR}/automake-${PVER}" |
20 | |
21 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
22 | sminclude alx |
23 | |
24 | SRC_URI=( |
25 | ftp://ftp.gnu.org/pub/gnu/automake/${SRCFILE} |
26 | mirror://automake/${SRCFILE} |
27 | ) |
28 | |
29 | src_prepare() |
30 | { |
31 | munpack ${SRCFILE} || die |
32 | cd ${SRCDIR} |
33 | |
34 | sed -i \ |
35 | -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ |
36 | -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ |
37 | -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ |
38 | automake.texi || die |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | # stupid configure script goes and run autoconf in a subdir, |
46 | # so 'ac-wrapper.pl' do not detect that it should use |
47 | # autoconf-2.5x |
48 | export WANT_AUTOCONF=2.5 |
49 | |
50 | mconfigure || die |
51 | mmake || die |
52 | } |
53 | |
54 | src_install() |
55 | { |
56 | cd ${SRCDIR} |
57 | |
58 | make DESTDIR=${BINDIR} install || die |
59 | rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die |
60 | |
61 | minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die |
62 | } |