diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2016-03-31 22:07:57 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2016-03-31 22:26:54 +0000 |
commit | 4aefee58fb83b894bb4a09000b8f564e1f362b0c (patch) | |
tree | 0c2f4a569cdbb6f12dd945de1fc14a53076cf903 /dev-java/jlex/jlex-1.2.6-r2.ebuild | |
parent | sci-geosciences/opencpn-plugin-otcurrent: fix description (diff) | |
download | gentoo-4aefee58fb83b894bb4a09000b8f564e1f362b0c.tar.gz gentoo-4aefee58fb83b894bb4a09000b8f564e1f362b0c.tar.bz2 gentoo-4aefee58fb83b894bb4a09000b8f564e1f362b0c.zip |
dev-java/jlex: Stable for amd64. Retroactively mark stable for the remaining arches using the ALLARCHES policy.
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java/jlex/jlex-1.2.6-r2.ebuild')
-rw-r--r-- | dev-java/jlex/jlex-1.2.6-r2.ebuild | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/dev-java/jlex/jlex-1.2.6-r2.ebuild b/dev-java/jlex/jlex-1.2.6-r2.ebuild index 27c578284236..3babb82152c0 100644 --- a/dev-java/jlex/jlex-1.2.6-r2.ebuild +++ b/dev-java/jlex/jlex-1.2.6-r2.ebuild @@ -11,13 +11,19 @@ inherit java-pkg-2 DESCRIPTION="JLex: a lexical analyzer generator for Java" SRC_URI="mirror://gentoo/${P}.tar.bz2" HOMEPAGE="http://www.cs.princeton.edu/~appel/modern/java/JLex/" -KEYWORDS="~amd64 ~x86" + +KEYWORDS="amd64 x86" LICENSE="jlex" SLOT="0" -DEPEND=">=virtual/jdk-1.4" -RDEPEND=">=virtual/jre-1.4" IUSE="" +RDEPEND=" + >=virtual/jre-1.6" + +DEPEND=" + >=virtual/jdk-1.6 + source? ( app-arch/zip )" + src_compile() { ejavac -nowarn Main.java } @@ -25,17 +31,19 @@ src_compile() { src_install() { dodoc README Bugs - if use doc ; then + if use doc; then dohtml manual.html dodoc sample.lex fi - mkdir JLex && mv *.class JLex/ + mkdir JLex || die + mv *.class JLex/ || die jar cf jlex.jar JLex/ || die "failed to jar" - java-pkg_dojar jlex.jar - java-pkg_dolauncher jlex --main JLex.Main jlex.jar - if use source ; then + java-pkg_dojar "${PN}.jar" + java-pkg_dolauncher "${PN}" --main JLex.Main "${PN}.jar" + + if use source; then rm JLex/* cp Main.java JLex java-pkg_dosrc JLex |