# $Header: /magellan-cvs/smage/automake110/automake110-1.10.1-r1.smage2,v 1.2 2008/02/09 14:08:34 niro Exp $ PNAME="automake110" PVER="1.10.1" PBUILD="r1" 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-3" SDEPEND=">= sys-apps/sed-4" SRCFILE="automake-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/automake-${PVER}" sminclude mtools SRC_URI=( gnu://automake/${SRCFILE} mirror://automake/${SRCFILE} mirror://automake/automake-1.10-infopage-namechange.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch automake-1.10-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 }