# $Id$ PNAME="automake17" PVER="1.7.9" PBUILD="r6" 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=">= virtual/sed" SRCFILE="automake-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/automake-${PVER}" sminclude mtools SRC_URI=( gnu://automake/${SRCFILE} mirror://automake/${SRCFILE} mirror://automake/automake-${PVER}-infopage-namechange.patch ) UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch automake-${PVER}-infopage-namechange.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 rm -f ${BINDIR}/usr/bin/{aclocal,automake} || die minstallinfo *.info || die minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die }