# $Id$ PNAME="automake15" PVER="1.5" PBUILD="r4" PCATEGORIE="sys-dev" STATE="unstable" DESCRIPTION="Used to generate Makefile.in from Makefile.am." HOMEPAGE="http://www.gnu.org/software/automake/automake.html" DEPEND=">= dev-lang/perl-5 >= sys-dev/autoconf-5" SDEPEND=">= sys-apps/sed-4" SRCFILE="automake-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/automake-${PVER}" sminclude mtools SRC_URI=( gnu://automake/${SRCFILE} mirror://automake/${SRCFILE} mirror://automake/automake-${PVER}-target_hook.patch mirror://automake/automake-${PVER}-slot.patch ) UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch automake-${PVER}-target_hook.patch || die mpatch automake-${PVER}-slot.patch || die sed -i \ -e "/^@setfilename/s|automake|automake${PVER:0:3}|" \ -e "s|automake: (automake)|automake v${PVER:0:3}: (automake${PVER:0:3})|" \ -e "s|aclocal: (automake)|aclocal v${PVER:0:3}: (automake${PVER:0:3})|" \ automake.texi || die } src_compile() { cd ${SRCDIR} # stupid configure script goes and run autoconf in a subdir, # so 'ac-wrapper.pl' do not detect that it should use # autoconf-2.5x export WANT_AUTOCONF=2.5 mconfigure || die mmake || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die local i for i in aclocal automake do mv ${BINDIR}/usr/bin/${i}{,-${PVER:0:3}} || die mv ${BINDIR}/usr/share/${i}{,-${PVER:0:3}} || die done minstallinfo *.info || die minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die }