# $Id: autoconf-7-r1.smage2 3726 2009-11-01 11:13:06Z niro $ PNAME="autoconf" PVER="8" PBUILD="r1" PCATEGORIE="sys-dev" STATE="unstable" DESCRIPTION="Wrapper for autoconf to utilize serveral versions." HOMEPAGE="http://gentoo.org" DEPEND=">= sys-dev/autoconf21-2.13 >= sys-dev/autoconf25-2.59 >= sys-dev/autoconf26-2.67" SRCFILE="ac-wrapper-${PVER}.sh" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( mirror://${PNAME}/${SRCFILE}) src_install() { # needed directories minstalldir /usr/bin || die minstalldir /usr/$(mlibdir)/misc || die # install wrapper minstallexec -s ${SRCFILE} /usr/$(mlibdir)/misc/ac-wrapper.sh || die # install proper symlinks local i for i in autoconf \ autoheader \ autom4te \ autoreconf \ autoscan \ autoupdate \ ifnames do mlink ../$(mlibdir)/misc/ac-wrapper.sh /usr/bin/${i} || die done } preinstall() { # remove these to make sure symlinks install properly if # old versions were binaries for x in autoconf autoheader autoreconf autoscan autoupdate ifnames autom4te do if [ -e ${MROOT}/usr/bin/${x} ] then rm -f ${MROOT}/usr/bin/${x} fi done }