Contents of /smage/trunk/core/autoconf/autoconf-9-r1.smage2
Parent Directory | Revision Log
Revision 2792 -
(show annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1143 byte(s)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1143 byte(s)
-merged branch alx-0_6_0 into trunk
1 | # $Id$ |
2 | |
3 | PNAME="autoconf" |
4 | PVER="9" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-dev" |
8 | |
9 | DESCRIPTION="Wrapper for autoconf to utilize serveral versions." |
10 | HOMEPAGE="http://gentoo.org" |
11 | |
12 | DEPEND=">= sys-dev/autoconf21-2.13 |
13 | >= sys-dev/autoconf25-2.59 |
14 | >= sys-dev/autoconf26-2.67" |
15 | |
16 | SRCFILE="ac-wrapper-${PVER}.sh" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | REMOVE_DEPRECATED_MAGE_TARGETS=1 |
20 | sminclude alx |
21 | |
22 | SRC_URI=( mirror://${PNAME}/${SRCFILE}) |
23 | |
24 | src_install() |
25 | { |
26 | # needed directories |
27 | install -d ${BINDIR}/usr/bin || die |
28 | install -d ${BINDIR}/usr/lib/misc || die |
29 | |
30 | # install wrapper |
31 | install -o root -g root -m0755 \ |
32 | ${SOURCEDIR}/${PNAME}/${SRCFILE} \ |
33 | ${BINDIR}/usr/lib/misc/ac-wrapper.sh || die |
34 | |
35 | # install proper symlinks |
36 | local i |
37 | for i in autoconf \ |
38 | autoheader \ |
39 | autom4te \ |
40 | autoreconf \ |
41 | autoscan \ |
42 | autoupdate \ |
43 | ifnames |
44 | do |
45 | ln -snf ../lib/misc/ac-wrapper.sh ${BINDIR}/usr/bin/${i} || die |
46 | done |
47 | } |
48 | |
49 | preinstall() |
50 | { |
51 | # remove these to make sure symlinks install properly if |
52 | # old versions were binaries |
53 | for x in autoconf autoheader autoreconf autoscan autoupdate ifnames autom4te |
54 | do |
55 | if [ -e /usr/bin/${x} ] |
56 | then |
57 | rm -f /usr/bin/${x} |
58 | fi |
59 | done |
60 | } |