diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-05-28 15:19:03 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-05-28 15:19:03 +0000 |
commit | 44e2c83e662b6b83cc40ce976f34d0258ff55e79 (patch) | |
tree | 7b56aa0830d0774009ed31b9cbe2788cd62c7781 /java/jasmin | |
parent | 7f0e3a8319686020cdec9f1eec2f42edd1959852 (diff) | |
download | ports-44e2c83e662b6b83cc40ce976f34d0258ff55e79.tar.gz ports-44e2c83e662b6b83cc40ce976f34d0258ff55e79.zip |
Notes
Diffstat (limited to 'java/jasmin')
-rw-r--r-- | java/jasmin/Makefile | 52 | ||||
-rw-r--r-- | java/jasmin/distinfo | 2 | ||||
-rw-r--r-- | java/jasmin/pkg-descr | 6 | ||||
-rw-r--r-- | java/jasmin/pkg-install | 8 | ||||
-rw-r--r-- | java/jasmin/pkg-plist | 61 |
5 files changed, 129 insertions, 0 deletions
diff --git a/java/jasmin/Makefile b/java/jasmin/Makefile new file mode 100644 index 000000000000..7ac9039d8761 --- /dev/null +++ b/java/jasmin/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: jasmin +# Date created: May 26, 2004 +# Whom: Volker Stolz <vs@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= jasmin +PORTVERSION= 1.06 +CATEGORIES= java +MASTER_SITES= http://www.cat.nyu.edu/~meyer/jasmin/ + +MAINTAINER= plexus@snafu.de +COMMENT= Java Assembler Interface + +USE_JAVA= 1.1+ +NEED_JAVAC= yes + +WRKSRC= ${WRKDIR}/jasmin + +post-extract: + @${MKDIR} ${WRKSRC}/FreeBSD + @${ECHO_CMD} Main-Class: jasmin.Main >${WRKSRC}/FreeBSD/manifest + +do-build: + cd ${WRKSRC}/lib/cup && ${JAVAC} -d ${WRKSRC}/FreeBSD java_cup/*.java java_cup/runtime/*.java + cd ${WRKSRC}/lib/jas/src && ${JAVAC} -d ${WRKSRC}/FreeBSD jas/*.java + cd ${WRKSRC}/FreeBSD && ${JAVA} java_cup.Main < ${WRKSRC}/src/jasmin/parser.cup + @${RM} ${WRKSRC}/src/jasmin/parser.java + @${RM} ${WRKSRC}/src/jasmin/sym.java + @${MV} ${WRKSRC}/FreeBSD/sym.java ${WRKSRC}/FreeBSD/parser.java ${WRKSRC}/src/jasmin + cd ${WRKSRC}/FreeBSD && ${JAVAC} -d ../FreeBSD ../src/jasmin/*.java + cd ${WRKSRC}/FreeBSD && ${JAR} -cmf manifest jasmin.jar jas jasmin java_cup + +do-install: + ${INSTALL_DATA} ${WRKSRC}/FreeBSD/jasmin.jar ${PREFIX}/share/java + ${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/examples ; \ + ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/\{} \; ;\ + ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${EXAMPLESDIR}/\{} \; + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCDIR} + cd ${WRKSRC}/doc ; \ + ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/\{} \; ;\ + ${FIND} . -type f -exec ${INSTALL_DATA} \{} ${DOCSDIR}/\{} \; +.endif + +post-install: + ${ENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + +.include <bsd.port.mk> diff --git a/java/jasmin/distinfo b/java/jasmin/distinfo new file mode 100644 index 000000000000..32030114c1b5 --- /dev/null +++ b/java/jasmin/distinfo @@ -0,0 +1,2 @@ +MD5 (jasmin-1.06.tar.gz) = 30b077ab597bb3091a2c58223a57743b +SIZE (jasmin-1.06.tar.gz) = 410897 diff --git a/java/jasmin/pkg-descr b/java/jasmin/pkg-descr new file mode 100644 index 000000000000..4c9a17a8b390 --- /dev/null +++ b/java/jasmin/pkg-descr @@ -0,0 +1,6 @@ +Jasmin is a Java Assembler Interface. It takes ASCII descriptions for Java +classes, written in a simple assembler-like syntax and using the Java Virtual +Machine instruction set. It converts them into binary Java class files +suitable for loading into a JVM implementation. + +WWW: http://mrl.nyu.edu/~meyer/jasmin/ diff --git a/java/jasmin/pkg-install b/java/jasmin/pkg-install new file mode 100644 index 000000000000..bfcc64a512c2 --- /dev/null +++ b/java/jasmin/pkg-install @@ -0,0 +1,8 @@ +#!/bin/sh +if [ x$2 = xPOST-INSTALL ]; then +sed s+%%PKG_PREFIX%%+${PKG_PREFIX}+ >${PKG_PREFIX}/bin/jasmin.sh << 'EOF' +#!/bin/sh +java -jar %%PKG_PREFIX%%/share/java/jasmin.jar $* +EOF +chmod 755 ${PKG_PREFIX}/bin/jasmin.sh +fi diff --git a/java/jasmin/pkg-plist b/java/jasmin/pkg-plist new file mode 100644 index 000000000000..8f877edbc524 --- /dev/null +++ b/java/jasmin/pkg-plist @@ -0,0 +1,61 @@ +share/java/jasmin.jar +bin/jasmin.sh +%%EXAMPLESDIR%%/ANewArray.j +%%EXAMPLESDIR%%/AnInterface.j +%%EXAMPLESDIR%%/Arrays.j +%%EXAMPLESDIR%%/Catch.j +%%EXAMPLESDIR%%/Checkcast.j +%%EXAMPLESDIR%%/Count.j +%%EXAMPLESDIR%%/HelloWeb.html +%%EXAMPLESDIR%%/HelloWeb.j +%%EXAMPLESDIR%%/HelloWorld.j +%%EXAMPLESDIR%%/Implementor.j +%%EXAMPLESDIR%%/InvokeInterface.j +%%EXAMPLESDIR%%/MultiANewArray.j +%%EXAMPLESDIR%%/MultiArrays.j +%%EXAMPLESDIR%%/NewArray.j +%%EXAMPLESDIR%%/Switch.j +%%EXAMPLESDIR%%/Uncaught.j +%%EXAMPLESDIR%%/VerifyTest.j +%%EXAMPLESDIR%%/VerifyTest1.j +@dirrm %%EXAMPLESDIR%% +%%PORTDOCS%%%%DOCSDIR%%/about.html +%%PORTDOCS%%%%DOCSDIR%%/api/AllNames.html +%%PORTDOCS%%%%DOCSDIR%%/api/Package-jasmin.html +%%PORTDOCS%%%%DOCSDIR%%/api/images/OpenBookIcon.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/blue-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/blue-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/class-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/constructor-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/constructors.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/cyan-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/cyan-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/error-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/exception-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/green-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/green-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/interface-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/magenta-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/magenta-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/method-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/methods.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/package-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/red-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/red-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/things +%%PORTDOCS%%%%DOCSDIR%%/api/images/variable-index.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/variables.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/yellow-ball-small.gif +%%PORTDOCS%%%%DOCSDIR%%/api/images/yellow-ball.gif +%%PORTDOCS%%%%DOCSDIR%%/api/jasmin.ClassFile.html +%%PORTDOCS%%%%DOCSDIR%%/api/jasmin.Main.html +%%PORTDOCS%%%%DOCSDIR%%/api/packages.html +%%PORTDOCS%%%%DOCSDIR%%/api/tree.html +%%PORTDOCS%%%%DOCSDIR%%/guide.html +%%PORTDOCS%%%%DOCSDIR%%/instructions.html +%%PORTDOCS%%%%DOCSDIR%%/jasmin.gif +%%PORTDOCS%%%%DOCSDIR%%/javavm.gif +%%PORTDOCS%%%%DOCSDIR%%/syntax.bnf +%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/images +%%PORTDOCS%%@dirrm %%DOCSDIR%%/api +%%PORTDOCS%%@dirrm %%DOCSDIR%% |