# $Id$ PNAME="automake111" PVER="1.11.1" PBUILD="r3" PCATEGORIE="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.11-infopage-namechange.patch ) UP2DATE="updatecmd \"http://ftp.gnu.org/gnu/${PNAME/[0-9]*/}?C=M;O=A\" | grep \"$( echo ${PVER%.*} | sed 's:\.:\\.:g' )\" | lasttarball" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch automake-1.11-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})|" \ doc/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 doc/*.info || die minstalldocs COPYING NEWS README THANKS TODO AUTHORS ChangeLog || die }