--- branches/magellan-next/extras/antlr2/antlr2-2.7.7-r1.smage2 2011/07/27 09:47:44 8636 +++ branches/magellan-next/extras/antlr2/antlr2-2.7.7-r1.smage2 2011/07/27 09:51:56 8637 @@ -16,11 +16,12 @@ SRCFILE="${PNAME/2/}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" -sminclude mbuild mtools python +sminclude mtools python SRC_URI=( http://www.antlr2.org/download/${SRCFILE} mirror://${PNAME}/${SRCFILE} + mirror://${PNAME}/${PNAME}-${PVER}-gcc46.patch ) UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/2/}-2 | grep -v rc | lasttarball gz" @@ -38,6 +39,15 @@ >= dev-lang/python-2.7" } +src_prepare() +{ + munpack ${SRCFILE} || die + cd ${SRCDIR} + + # fix build against gcc-4.6 + mpatch ${PNAME}-${PVER}-gcc46.patch || die +} + src_compile() { cd ${SRCDIR}