Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 505498 | Differences between
and this patch

Collapse All | Expand All

(-)a/jflex-1.5.0.ebuild (-8 / +8 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2014 Gentoo Foundation
1
# Copyright 1999-2015 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.5.0.ebuild,v 1.1 2014/03/08 16:17:17 tomwij Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.5.0.ebuild,v 1.1 2014/03/08 16:17:17 tomwij Exp $
4
4
Lines 28-34 Link Here
28
IUSE="${JAVA_PKG_IUSE} source vim-syntax"
28
IUSE="${JAVA_PKG_IUSE} source vim-syntax"
29
29
30
java_prepare() {
30
java_prepare() {
31
	cp "${FILESDIR}"/${P}-build.xml build.xml || die
31
	cp ${FILESDIR}/jflex-1.5.0-build.xml ${S}/build.xml
32
}
32
}
33
33
34
# TODO: Try to avoid using bundled jar (See bug #498874)
34
# TODO: Try to avoid using bundled jar (See bug #498874)
Lines 40-56 Link Here
40
EANT_GENTOO_CLASSPATH="ant-core"
40
EANT_GENTOO_CLASSPATH="ant-core"
41
EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar"
41
EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar"
42
JAVA_ANT_REWRITE_CLASSPATH="true"
42
JAVA_ANT_REWRITE_CLASSPATH="true"
43
ANT_TASKS="javacup"
43
WANT_ANT_TASKS="javacup"
44
44
45
src_compile() {
45
src_compile() {
46
	java-pkg-2_src_compile
46
	java-pkg-2_src_compile
47
47
48
	# Compile another time, using our generated jar; for sanity.
48
	# Compile another time, using our generated jar; for sanity.
49
	cp target/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA}
49
	cp build/${P}.jar ${EANT_GENTOO_CLASSPATH_EXTRA}
50
	java-pkg-2_src_compile
50
	java-pkg-2_src_compile
51
}
51
}
52
52
53
# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet. 
53
# EANT_TEST_GENTOO_CLASSPATH doesn't support EANT_GENTOO_CLASSPATH_EXTRA yet.
54
RESTRICT="test"
54
RESTRICT="test"
55
55
56
src_test() {
56
src_test() {
Lines 58-71 Link Here
58
}
58
}
59
59
60
src_install() {
60
src_install() {
61
	java-pkg_newjar target/${P}.jar
61
	java-pkg_newjar build/${P}.jar ${PN}.jar
62
	java-pkg_dolauncher "${PN}" --main jflex.Main
62
	java-pkg_dolauncher "${PN}" --main jflex.Main
63
	java-pkg_register-ant-task
63
	java-pkg_register-ant-task
64
64
65
	if use doc ; then
65
	if use doc ; then
66
		dodoc doc/manual.pdf doc/manual.ps.gz src/changelog
66
		dodoc doc/manual.pdf changelog.md
67
		dohtml -r doc/*
67
		dohtml -r doc/*
68
		java-pkg_dojavadoc target/site/apidocs
68
		java-pkg_dojavadoc javadoc
69
	fi
69
	fi
70
70
71
	use examples && java-pkg_doexamples examples
71
	use examples && java-pkg_doexamples examples

Return to bug 505498