Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3659 - (show annotations) (download)
Fri Jul 13 16:42:25 2012 UTC (11 years, 10 months ago) by niro
File size: 1063 byte(s)
auto added: ver bump to 9-r3
1 # $Id$
2
3 PNAME="autoconf"
4 PVER="9"
5 PBUILD="r3"
6
7 PCAT="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
20
21 SRC_URI=( mirror://${PNAME}/${SRCFILE})
22
23 src_install()
24 {
25 # needed directories
26 minstalldir /usr/bin || die
27 minstalldir /usr/$(mlibdir)/misc || die
28
29 # install wrapper
30 minstallexec -s ${SRCFILE} /usr/$(mlibdir)/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 ../$(mlibdir)/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 ${MROOT}/usr/bin/${x} ]
53 then
54 rm -f ${MROOT}/usr/bin/${x}
55 fi
56 done
57 }