Magellan Linux

Annotation of /smage/trunk/core/autoconf/autoconf-8-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 692 - (hide annotations) (download)
Thu Oct 21 14:43:14 2010 UTC (13 years, 6 months ago) by niro
File size: 1140 byte(s)
auto added: ver bump to 8-r1
1 niro 597 # $Id: autoconf-7-r1.smage2 3726 2009-11-01 11:13:06Z niro $
2    
3     PNAME="autoconf"
4     PVER="8"
5     PBUILD="r1"
6    
7     PCATEGORIE="sys-dev"
8     STATE="unstable"
9    
10     DESCRIPTION="Wrapper for autoconf to utilize serveral versions."
11     HOMEPAGE="http://gentoo.org"
12    
13     DEPEND=">= sys-dev/autoconf21-2.13
14     >= sys-dev/autoconf25-2.59
15     >= sys-dev/autoconf26-2.67"
16    
17     SRCFILE="ac-wrapper-${PVER}.sh"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20 niro 692 sminclude mtools
21 niro 597
22     SRC_URI=( mirror://${PNAME}/${SRCFILE})
23    
24     src_install()
25     {
26     # needed directories
27     minstalldir /usr/bin || die
28     minstalldir /usr/$(mlibdir)/misc || die
29    
30     # install wrapper
31     minstallexec -s ${SRCFILE} /usr/$(mlibdir)/misc/ac-wrapper.sh || die
32    
33     # install proper symlinks
34     local i
35     for i in autoconf \
36     autoheader \
37     autom4te \
38     autoreconf \
39     autoscan \
40     autoupdate \
41     ifnames
42     do
43     mlink ../$(mlibdir)/misc/ac-wrapper.sh /usr/bin/${i} || die
44     done
45     }
46    
47     preinstall()
48     {
49     # remove these to make sure symlinks install properly if
50     # old versions were binaries
51     for x in autoconf autoheader autoreconf autoscan autoupdate ifnames autom4te
52     do
53     if [ -e ${MROOT}/usr/bin/${x} ]
54     then
55     rm -f ${MROOT}/usr/bin/${x}
56     fi
57     done
58     }