Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 146952
Collapse All | Expand All

(-)antlr-3.1.3.ebuild.orig (-3 / +17 lines)
Lines 5-11 Link Here
5
EAPI="2"
5
EAPI="2"
6
JAVA_PKG_IUSE="source"
6
JAVA_PKG_IUSE="source"
7
7
8
inherit eutils java-pkg-2 java-ant-2
8
inherit distutils eutils java-pkg-2 java-ant-2
9
9
10
DESCRIPTION="A parser generator for C++, C#, Java, and Python"
10
DESCRIPTION="A parser generator for C++, C#, Java, and Python"
11
HOMEPAGE="http://www.antlr.org/"
11
HOMEPAGE="http://www.antlr.org/"
Lines 13-19 Link Here
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="3"
14
SLOT="3"
15
KEYWORDS="~x86"
15
KEYWORDS="~x86"
16
IUSE=""
16
IUSE="python"
17
17
18
COMMON_DEPEND=">=dev-java/stringtemplate-3.2
18
COMMON_DEPEND=">=dev-java/stringtemplate-3.2
19
	 dev-java/antlr:0"
19
	 dev-java/antlr:0"
Lines 24-29 Link Here
24
DEPEND="${RDEPEND}
24
DEPEND="${RDEPEND}
25
	>=virtual/jdk-1.5"
25
	>=virtual/jdk-1.5"
26
26
27
PYTHON_MODNAME="antlr3"
28
27
java_prepare() {
29
java_prepare() {
28
	rm -v lib/*.jar lib/.*.jar || die
30
	rm -v lib/*.jar lib/.*.jar || die
29
	rm -v runtime/ActionScript/project/lib/*.jar || die
31
	rm -v runtime/ActionScript/project/lib/*.jar || die
Lines 84-92 Link Here
84
86
85
	use source && java-pkg_dosrc tool/src/main/org \
87
	use source && java-pkg_dosrc tool/src/main/org \
86
		runtime/Java/src/main/java/org/
88
		runtime/Java/src/main/java/org/
89
90
	if use python ; then
91
		cd runtime/Python
92
		distutils_src_install
93
	fi
87
}
94
}
88
95
89
pkg_postinst() {
96
pkg_postinst() {
90
	elog "Currently the ebuild only has support for the Java backend."
97
	use python && distutils_pkg_postinst
98
99
	elog "Currently the ebuild only has support for the Java and Python backends."
91
	elog "gunit support is not included yet either."
100
	elog "gunit support is not included yet either."
92
}
101
}
102
103
pkg_postrm() {
104
	use python && distutils_pkg_postrm
105
106
}

Return to bug 146952