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

(-)/usr/portage/dev-java/javacc/javacc-5.0.ebuild (-5 / +5 lines)
Lines 2-8 Link Here
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/javacc/javacc-5.0.ebuild,v 1.3 2012/04/13 18:13:08 ulm Exp $
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/javacc/javacc-5.0.ebuild,v 1.3 2012/04/13 18:13:08 ulm Exp $
4
4
5
EAPI="2"
5
EAPI="4"
6
JAVA_PKG_IUSE="doc examples source test"
6
JAVA_PKG_IUSE="doc examples source test"
7
7
8
inherit java-pkg-2 java-ant-2 eutils
8
inherit java-pkg-2 java-ant-2 eutils
Lines 13-19 Link Here
13
LICENSE="BSD"
13
LICENSE="BSD"
14
SLOT="0"
14
SLOT="0"
15
IUSE=""
15
IUSE=""
16
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
16
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
17
DEPEND=">=virtual/jdk-1.5
17
DEPEND=">=virtual/jdk-1.5
18
	dev-java/junit:0
18
	dev-java/junit:0
19
	test? (	dev-java/ant-junit )"
19
	test? (	dev-java/ant-junit )"
Lines 44-50 Link Here
44
src_install() {
44
src_install() {
45
	java-pkg_dojar bin/lib/${PN}.jar
45
	java-pkg_dojar bin/lib/${PN}.jar
46
46
47
	dodoc README || die
47
	dodoc README
48
48
49
	if use doc; then
49
	if use doc; then
50
		java-pkg_dohtml -r www/*
50
		java-pkg_dohtml -r www/*
Lines 52-62 Link Here
52
	fi
52
	fi
53
	if use examples; then
53
	if use examples; then
54
		dodir /usr/share/doc/${PF}/examples
54
		dodir /usr/share/doc/${PF}/examples
55
		cp -R examples/* "${D}"/usr/share/doc/${PF}/examples
55
		cp -R examples/* "${ED}"/usr/share/doc/${PF}/examples
56
	fi
56
	fi
57
	use source && java-pkg_dosrc src/*
57
	use source && java-pkg_dosrc src/*
58
58
59
	echo "JAVACC_HOME=/usr/share/javacc/" > "${T}"/22javacc
59
	echo "JAVACC_HOME=${EPREFIX}/usr/share/javacc/" > "${T}"/22javacc
60
	doenvd "${T}"/22javacc
60
	doenvd "${T}"/22javacc
61
61
62
	echo "export VERSION=${PV}" > "${T}"/pre
62
	echo "export VERSION=${PV}" > "${T}"/pre

Return to bug 435470