summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-09-18 10:46:17 +0000
committeragc <agc@pkgsrc.org>2002-09-18 10:46:17 +0000
commit15237414b1d219edb657d79068d2014590f0a592 (patch)
treed91cd3247a45a615c6393a8eac81fb992bd5d6b5
parent6fc1051e415aabd2318c4a3104f2eb76df4197e8 (diff)
downloadpkgsrc-15237414b1d219edb657d79068d2014590f0a592.tar.gz
Initial import of sablecc-2.16.2 into the NetBSD Packages Collection.
Provided in PR 18302 by Daniel Hagerty <hag@linnaean.org> SableCC is a java based framework for compiler construction. It generates LALR(1) parsers from an EBNF grammar syntax.
-rw-r--r--devel/sablecc/DESCR2
-rw-r--r--devel/sablecc/Makefile26
-rw-r--r--devel/sablecc/PLIST3
-rw-r--r--devel/sablecc/distinfo4
-rw-r--r--devel/sablecc/files/sablecc18
5 files changed, 53 insertions, 0 deletions
diff --git a/devel/sablecc/DESCR b/devel/sablecc/DESCR
new file mode 100644
index 00000000000..eb518f34ea0
--- /dev/null
+++ b/devel/sablecc/DESCR
@@ -0,0 +1,2 @@
+SableCC is a java based framework for compiler construction.
+It generates LALR(1) parsers from an EBNF grammar syntax.
diff --git a/devel/sablecc/Makefile b/devel/sablecc/Makefile
new file mode 100644
index 00000000000..03a279e7aae
--- /dev/null
+++ b/devel/sablecc/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/09/18 10:46:17 agc Exp $
+#
+
+DISTNAME= sablecc-2.16.2
+CATEGORIES= devel
+MASTER_SITES= http://dl.sourceforge.net/sourceforge/sablecc/
+
+MAINTAINER= hag@linnaean.org
+HOMEPAGE= http://www.sablecc.org/
+COMMENT= Java based Compiler Compiler
+
+USE_JAVA= yes
+PKG_JVM= sun-jdk
+
+WRKSRC= ${WRKDIR}/sablecc-2.16.2
+
+do-build:
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' -e 's,@JAVA_HOME@,${JAVA_HOME},g' \
+ < ${FILESDIR}/sablecc > ${WRKDIR}/sablecc
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/sablecc ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${PREFIX}/lib/java
+ ${INSTALL_DATA} ${WRKSRC}/lib/sablecc.jar ${PREFIX}/lib/java
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/sablecc/PLIST b/devel/sablecc/PLIST
new file mode 100644
index 00000000000..c75ab875b6b
--- /dev/null
+++ b/devel/sablecc/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/09/18 10:46:17 agc Exp $
+bin/sablecc
+lib/java/sablecc.jar
diff --git a/devel/sablecc/distinfo b/devel/sablecc/distinfo
new file mode 100644
index 00000000000..89a6b77594d
--- /dev/null
+++ b/devel/sablecc/distinfo
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/09/18 10:46:17 agc Exp $
+
+SHA1 (sablecc-2.16.2.tar.gz) = 02d58ae982b8704ffb594cf1f4889db9cdb777a3
+Size (sablecc-2.16.2.tar.gz) = 342386 bytes
diff --git a/devel/sablecc/files/sablecc b/devel/sablecc/files/sablecc
new file mode 100644
index 00000000000..79f4efa0e2d
--- /dev/null
+++ b/devel/sablecc/files/sablecc
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+if [ -z "$SABLECC_HOME" ] ; then
+ SABLECC_HOME=@PREFIX@
+fi
+
+if [ "$JAVA_HOME" != "" ] ; then
+ if [ "$JAVACMD" = "" ] ; then
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+else
+ JAVA_HOME=@JAVA_HOME@
+ if [ "$JAVACMD" = "" ] ; then
+ JAVACMD=$JAVA_HOME/bin/java
+ fi
+fi
+
+${JAVACMD} -jar ${SABLECC_HOME}/lib/java/sablecc.jar