# $Id$ PNAME="automake16" PVER="1.6.3" PBUILD="r7" PCAT="sys-dev" 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-1.5-perl-5.11.patch ) UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME/[0-9]*/} | grep \"$( echo ${PVER:0:3} | sed 's:\.:\\.:g' )\" | highesttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch automake-1.5-perl-5.11.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 }