dev-java/jflex: Make use of ${PN} when installing the launcher.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 1 Oct 2015 08:29:12 +0000 (08:29 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 1 Oct 2015 08:29:12 +0000 (08:29 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/jflex/jflex-1.6.0-r2.ebuild

index 1ea7715b68e53f3a3303fb4405110835fe24b782..0ceee0a9cde788c6649c02db9bccdaa3bafe834e 100644 (file)
@@ -51,7 +51,6 @@ EANT_GENTOO_CLASSPATH_EXTRA="lib/${P}.jar"
 # 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_ANT_REWRITE_CLASSPATH="true"
 EANT_GENTOO_CLASSPATH="
        ant-core
@@ -76,7 +75,7 @@ src_test() {
 
 src_install() {
        java-pkg_newjar build/${P}.jar ${PN}.jar
-       java-pkg_dolauncher "${PN}" --main jflex.Main
+       java-pkg_dolauncher "${PN}" --main "${PN}.Main"
        java-pkg_register-ant-task
 
        if use doc ; then