/[gentoo-x86]/dev-util/antlrworks/antlrworks-1.2.3.ebuild
Gentoo

Contents of /dev-util/antlrworks/antlrworks-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Dec 29 17:36:20 2009 UTC (4 years, 6 months ago) by josejx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
Marked ppc/ppc64 stable.
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/antlrworks/antlrworks-1.2.3.ebuild,v 1.6 2009/11/09 13:32:50 maekke Exp $
4
5 EAPI="2"
6
7 inherit java-pkg-2
8
9 DESCRIPTION="A novel grammar development environment for ANTLR v3 grammars"
10 HOMEPAGE="http://www.antlr.org/works/index.html"
11 SRC_URI="http://www.antlr.org/download/${P}-src.zip"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 ppc ppc64 x86"
16
17 IUSE=""
18
19 COMMON_DEP="
20 dev-java/stringtemplate:0
21 dev-java/antlr:0
22 >=dev-java/antlr-3.1.3:3
23 dev-java/jgoodies-forms:0
24 "
25
26 RDEPEND=">=virtual/jre-1.5
27 ${COMMON_DEP}"
28 DEPEND=">=virtual/jdk-1.5
29 app-arch/unzip
30 ${COMMON_DEP}"
31
32 S="${WORKDIR}"
33
34 java_prepare() {
35 epatch "${FILESDIR}/antlr-3.1.3.patch"
36 rm -vr src/aw/org/antlr/xjlib/appkit/app/MacOS/ || die
37 rm -v lib/*.jar || die
38 mkdir build
39 }
40
41 src_compile() {
42 find src/aw -name "*.java" > "${T}/source.list"
43 ejavac -d build -classpath \
44 $(java-pkg_getjars antlr,antlr-3,jgoodies-forms,stringtemplate) \
45 "@${T}/source.list"
46
47 local dest="${S}/${PN}.jar"
48
49 cd src/aw || die
50 jar cf "${dest}" $(find -type f -and -not -name "*.java" ) || die
51
52 cd "${S}/build" || die
53 jar uf "${dest}" org || die
54 }
55
56 src_install() {
57 java-pkg_dojar "${PN}.jar"
58 java-pkg_dolauncher ${PN} --main "org.antlr.works.IDE"
59 }

  ViewVC Help
Powered by ViewVC 1.1.20