diff options
author | vs <vs@FreeBSD.org> | 2004-05-28 15:19:03 +0000 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-05-28 15:19:03 +0000 |
commit | 3cc8b0f7d2e7863c99ed5e378a7ed5ef2d6b3493 (patch) | |
tree | 02bbce313293a254b0e9cdb8d8ac171fdfb69c66 /java | |
parent | 2b933fb2d02b8d9a577324ccb209dc99d38517fc (diff) | |
download | FreeBSD-ports-3cc8b0f7d2e7863c99ed5e378a7ed5ef2d6b3493.zip FreeBSD-ports-3cc8b0f7d2e7863c99ed5e378a7ed5ef2d6b3493.tar.gz |
Add jasmin 1.06, java Assembler Interface.
PR: ports/62708
Submitted by: Oliver Fischer
Tweaked by: me
Diffstat (limited to 'java')
-rw-r--r-- | java/Makefile | 1 | ||||
-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 |
6 files changed, 130 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile index 228570b..f2056b2 100644 --- a/java/Makefile +++ b/java/Makefile @@ -49,6 +49,7 @@ SUBDIR += jakarta-regexp SUBDIR += jakarta-struts SUBDIR += janosvm + SUBDIR += jasmin SUBDIR += java-checkstyle SUBDIR += java-cup SUBDIR += java-getopt diff --git a/java/jasmin/Makefile b/java/jasmin/Makefile new file mode 100644 index 0000000..7ac9039 --- /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 0000000..3203011 --- /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 0000000..4c9a17a --- /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 0000000..bfcc64a --- /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 0000000..8f877ed --- /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%% |