16 |
SRCFILE="${PNAME/2/}-${PVER}.tar.gz" |
SRCFILE="${PNAME/2/}-${PVER}.tar.gz" |
17 |
SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" |
SRCDIR="${BUILDDIR}/${PNAME/2/}-${PVER}" |
18 |
|
|
19 |
sminclude mbuild mtools python |
sminclude mtools python |
20 |
|
|
21 |
SRC_URI=( |
SRC_URI=( |
22 |
http://www.antlr2.org/download/${SRCFILE} |
http://www.antlr2.org/download/${SRCFILE} |
23 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
24 |
|
mirror://${PNAME}/${PNAME}-${PVER}-gcc46.patch |
25 |
) |
) |
26 |
|
|
27 |
UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/2/}-2 | grep -v rc | lasttarball gz" |
UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/2/}-2 | grep -v rc | lasttarball gz" |
39 |
>= dev-lang/python-2.7" |
>= dev-lang/python-2.7" |
40 |
} |
} |
41 |
|
|
42 |
|
src_prepare() |
43 |
|
{ |
44 |
|
munpack ${SRCFILE} || die |
45 |
|
cd ${SRCDIR} |
46 |
|
|
47 |
|
# fix build against gcc-4.6 |
48 |
|
mpatch -Np0 ${PNAME}-${PVER}-gcc46.patch || die |
49 |
|
} |
50 |
|
|
51 |
src_compile() |
src_compile() |
52 |
{ |
{ |
53 |
cd ${SRCDIR} |
cd ${SRCDIR} |