diff options
author | Alistair Bush <ali_bush@gentoo.org> | 2007-07-02 05:47:25 +0000 |
---|---|---|
committer | Alistair Bush <ali_bush@gentoo.org> | 2007-07-02 05:47:25 +0000 |
commit | ee8ef67c507705aeec3dc4072823d861b8e6db4e (patch) | |
tree | 0c3d134686dba18feed13a33ca305b2d7fe2124a /dev-java/jflex | |
parent | Revert 1.3.1-r1 for hppa (diff) | |
download | historical-ee8ef67c507705aeec3dc4072823d861b8e6db4e.tar.gz historical-ee8ef67c507705aeec3dc4072823d861b8e6db4e.tar.bz2 historical-ee8ef67c507705aeec3dc4072823d861b8e6db4e.zip |
Adding jflex to tree with 2 minor fixes. Thank you to elvanor <elvanor@gmail.com> for contributing the ebuild.
Package-Manager: portage-2.1.3_rc6
Diffstat (limited to 'dev-java/jflex')
-rw-r--r-- | dev-java/jflex/Manifest | 12 | ||||
-rw-r--r-- | dev-java/jflex/files/digest-jflex-1.4.1 | 3 | ||||
-rw-r--r-- | dev-java/jflex/jflex-1.4.1.ebuild | 71 | ||||
-rw-r--r-- | dev-java/jflex/metadata.xml | 9 |
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-java/jflex/Manifest b/dev-java/jflex/Manifest new file mode 100644 index 000000000000..b7b275b36809 --- /dev/null +++ b/dev-java/jflex/Manifest @@ -0,0 +1,12 @@ +DIST jflex-1.4.1.tar.gz 986546 RMD160 043a78f092e2c89253e4c53c6cd8c37aafaf05ed SHA1 274ced17ce5e9709cdc177ea4e5096c697fee1e5 SHA256 6b70a95208b301ca6abcd80fb93c60de006b5b5d4fc9a7d63848bdf0c2e6973a +EBUILD jflex-1.4.1.ebuild 1927 RMD160 106e4b0be191a71cc3e4f6aaa5b425d98f5fcedc SHA1 6b84ba43d63992f5b96822fff18a18d50ddc70dc SHA256 5c2e69d23f0a8cdfc7a269c30c9af80462df4af461f62773e39be284e83a09bd +MD5 ea3b8f01498597c703ff45f9a3cc548b jflex-1.4.1.ebuild 1927 +RMD160 106e4b0be191a71cc3e4f6aaa5b425d98f5fcedc jflex-1.4.1.ebuild 1927 +SHA256 5c2e69d23f0a8cdfc7a269c30c9af80462df4af461f62773e39be284e83a09bd jflex-1.4.1.ebuild 1927 +MISC metadata.xml 290 RMD160 73898cd06f7e7ed62b4337ee955536899ae816c8 SHA1 592dac280e41c85b85f7b8bf082b707d45b16dda SHA256 e365b92e59f17ebb03d11d7c77908f81b3dd4cf230ff5817bf783228f144ae92 +MD5 e5c9d0dab42f4ac34ddf00361276dad9 metadata.xml 290 +RMD160 73898cd06f7e7ed62b4337ee955536899ae816c8 metadata.xml 290 +SHA256 e365b92e59f17ebb03d11d7c77908f81b3dd4cf230ff5817bf783228f144ae92 metadata.xml 290 +MD5 824e565d6bd6edb30a5d2ce669315bc3 files/digest-jflex-1.4.1 235 +RMD160 0b4ba7b6998802a6d5a998886e411b2eac8c075d files/digest-jflex-1.4.1 235 +SHA256 fe6e62868c927788bfb5505414986d125fa37c7971c62439619786de186c5ca7 files/digest-jflex-1.4.1 235 diff --git a/dev-java/jflex/files/digest-jflex-1.4.1 b/dev-java/jflex/files/digest-jflex-1.4.1 new file mode 100644 index 000000000000..c3ba776d7663 --- /dev/null +++ b/dev-java/jflex/files/digest-jflex-1.4.1 @@ -0,0 +1,3 @@ +MD5 9e4be6e826e6b344e84c0434d6fd4b46 jflex-1.4.1.tar.gz 986546 +RMD160 043a78f092e2c89253e4c53c6cd8c37aafaf05ed jflex-1.4.1.tar.gz 986546 +SHA256 6b70a95208b301ca6abcd80fb93c60de006b5b5d4fc9a7d63848bdf0c2e6973a jflex-1.4.1.tar.gz 986546 diff --git a/dev-java/jflex/jflex-1.4.1.ebuild b/dev-java/jflex/jflex-1.4.1.ebuild new file mode 100644 index 000000000000..5ea33b92bc1a --- /dev/null +++ b/dev-java/jflex/jflex-1.4.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jflex/jflex-1.4.1.ebuild,v 1.1 2007/07/02 05:47:25 ali_bush Exp $ + +# Currently, this package uses an included JFlex.jar file to bootstrap. +# Upstream was contacted and this bootstrap is really needed. The only way to avoid it would be to use a supplied pre-compiled .scanner file. + +JAVA_PKG_IUSE="source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JFlex is a lexical analyzer generator for Java" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://www.jflex.de/" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RDEPEND=">=virtual/jre-1.4 + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) + >=dev-java/ant-core-1.7.0 + >=dev-java/javacup-0.11a_beta20060608" + +DEPEND=">=virtual/jdk-1.4 + dev-java/junit + >=dev-java/javacup-0.11a_beta20060608" + +IUSE="doc source vim-syntax" + +src_unpack() { + unpack "${P}.tar.gz" + cd "${S}/src" + epatch "${FILESDIR}/${P}-build.xml.patch" + + mkdir "${S}/tools" + cp "${S}/lib/JFlex.jar" "${S}/tools/JFlex.jar" + rm -rf java_cup "${S}/lib/JFlex.jar" + + java-ant_rewrite-classpath +} + +src_compile() { + ANT_TASKS="javacup" + jflex_cp="$(java-pkg_getjars --build-only junit):$(java-pkg_getjars ant-core,javacup)" + cd "${S}/src" + eant realclean + eant -Dgentoo.classpath="${jflex_cp}" jar + + rm "${S}/tools/JFlex.jar" + cp "${S}/lib/JFlex.jar" "${S}/tools/" + rm "${S}/lib/JFlex.jar" + + eant realclean + einfo "Recompiling using the newly generated JFlex library" + eant -Dgentoo.classpath="${jflex_cp}" jar +} + +src_install() { + java-pkg_dojar lib/JFlex.jar + java-pkg_dolauncher "${PN}" --main JFlex.Main + java-pkg_register-ant-task + + dodoc doc/manual.pdf doc/manual.ps.gz src/changelog + dohtml -r doc/* + + use source && java-pkg_dosrc src/JFlex + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles/syntax + doins "${S}/lib/jflex.vim" + fi +} diff --git a/dev-java/jflex/metadata.xml b/dev-java/jflex/metadata.xml new file mode 100644 index 000000000000..7b350e8431cd --- /dev/null +++ b/dev-java/jflex/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +<longdescription lang="en"> +JFlex is a lexical analyzer generator (also known as scanner generator) for +Java(tm). +</longdescription> +</pkgmetadata> |