Magellan Linux

Contents of /smage/trunk/core/autoconf/autoconf-9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2868 - (show annotations) (download)
Tue Sep 6 11:40:16 2011 UTC (12 years, 9 months ago) by niro
File size: 1036 byte(s)
auto added: ver bump to 9-r2
1 # $Id$
2
3 PNAME="autoconf"
4 PVER="9"
5 PBUILD="r2"
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 sminclude mtools alx
20
21 SRC_URI=( mirror://${PNAME}/${SRCFILE})
22
23 src_install()
24 {
25 # needed directories
26 minstalldir /usr/bin || die
27 minstalldir /usr/lib/misc || die
28
29 # install wrapper
30 minstallexec -s ${SRCFILE} /usr/lib/misc/ac-wrapper.sh || die
31
32 # install proper symlinks
33 local i
34 for i in autoconf \
35 autoheader \
36 autom4te \
37 autoreconf \
38 autoscan \
39 autoupdate \
40 ifnames
41 do
42 mlink ../lib/misc/ac-wrapper.sh /usr/bin/${i} || die
43 done
44 }
45
46 preinstall()
47 {
48 # remove these to make sure symlinks install properly if
49 # old versions were binaries
50 for x in autoconf autoheader autoreconf autoscan autoupdate ifnames autom4te
51 do
52 if [ -e /usr/bin/${x} ]
53 then
54 rm -f /usr/bin/${x}
55 fi
56 done
57 }