summaryrefslogtreecommitdiff
path: root/devel/jflex/Makefile
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-02-22 08:24:44 +0000
committerrillig <rillig@pkgsrc.org>2007-02-22 08:24:44 +0000
commit5fe555d87f268dfa379186aa1b1671ca50afe583 (patch)
treec48dcbc258577eea0aa8cf53387233f74208c4e2 /devel/jflex/Makefile
parenta1b259a0910570a1a64b7364de4c7cc4bbc4fc35 (diff)
downloadpkgsrc-5fe555d87f268dfa379186aa1b1671ca50afe583.tar.gz
Imported jflex.
JFlex is a lexical analyzer generator for Java written in Java. It is also a rewrite of the very useful tool JLex which was developed by Elliot Berk at Princeton University. As Vern Paxson states for his C/C++ tool flex: They do not share any code though.
Diffstat (limited to 'devel/jflex/Makefile')
-rw-r--r--devel/jflex/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/jflex/Makefile b/devel/jflex/Makefile
new file mode 100644
index 00000000000..a4b38d12d5f
--- /dev/null
+++ b/devel/jflex/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/02/22 08:24:44 rillig Exp $
+#
+
+DISTNAME= jflex-1.4.1
+CATEGORIES= devel
+MASTER_SITES= http://jflex.de/
+
+MAINTAINER= rillig@NetBSD.org
+HOMEPAGE= http://jflex.de/
+COMMENT= Fast lexical analyzer generator for Java
+
+USE_LANGUAGES= # none
+USE_JAVA= run
+
+INSTALLATION_DIRS= bin lib/java share/doc/jflex share/examples/jflex
+
+do-build:
+ printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/lib/java/JFlex.jar \"\$$@\"\\n" > ${WRKSRC}/jflex.sh
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/jflex.sh ${PREFIX}/bin/jflex
+ ${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${PREFIX}/lib/java/
+ cd ${WRKSRC}/doc && pax -wr -pm * ${PREFIX}/share/doc/jflex
+ cd ${WRKSRC}/examples && pax -wr -pm * ${PREFIX}/share/examples/jflex
+
+.include "../../mk/java-vm.mk"
+.include "../../mk/bsd.pkg.mk"