diff options
author | knu <knu@FreeBSD.org> | 2001-09-20 09:18:26 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-09-20 09:18:26 +0000 |
commit | 802b5317f2c54297c49817ea9ab3b1702ada5d08 (patch) | |
tree | de836c3cf98176be633e489a184106275dd54de7 /lang | |
parent | f8c4230c63323fd75bc29543551108f7c2643d22 (diff) | |
download | FreeBSD-ports-802b5317f2c54297c49817ea9ab3b1702ada5d08.zip FreeBSD-ports-802b5317f2c54297c49817ea9ab3b1702ada5d08.tar.gz |
Add jruby, an implementation of Ruby Interpreter in Pure Java.
That it is still in the alpha stage, but it actually works.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/jruby/Makefile | 53 | ||||
-rw-r--r-- | lang/jruby/distinfo | 2 | ||||
-rw-r--r-- | lang/jruby/pkg-comment | 1 | ||||
-rw-r--r-- | lang/jruby/pkg-descr | 6 | ||||
-rw-r--r-- | lang/jruby/pkg-plist | 3 |
6 files changed, 66 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index 322d24c..36b7a4e 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -64,6 +64,7 @@ SUBDIR += intercal SUBDIR += itcl SUBDIR += jgnat + SUBDIR += jruby SUBDIR += jython SUBDIR += klone SUBDIR += lcc diff --git a/lang/jruby/Makefile b/lang/jruby/Makefile new file mode 100644 index 0000000..c812543 --- /dev/null +++ b/lang/jruby/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: JRuby +# Date created: 20 September 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= jruby +PORTVERSION= 0.1.5 +CATEGORIES= lang ruby java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTFILES= ${PORTNAME}-${PORTVERSION:S/./_/g}${EXTRACT_SUFX} + +MAINTAINER= knu@FreeBSD.org + +RUN_DEPENDS= ${JAVA}:${PORTSDIR}/java/javavmwrapper +#RUN_DEPENDS= ${JAVA}:${PORTSDIR}/java/linux-jdk13 + +JAVA?= ${LOCALBASE}/bin/javavm + +NO_WRKSUBDIR= yes + +.if !defined(NOPORTDOCS) +DISTFILES+= ${PORTNAME}-src-${PORTVERSION:S/./_/g}${EXTRACT_SUFX} + +FILES= README build.xml jruby.mf org test.rb +.endif + +do-build: + ( \ + ${ECHO} '#!/bin/sh'; \ + ${ECHO} 'exec ${JAVA} -jar ${PREFIX}/share/java/classes/jruby.jar "$$@"'; \ + ) > ${WRKSRC}/jruby + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/jruby ${PREFIX}/bin/ + ${MKDIR} ${PREFIX}/share/java/classes + ${INSTALL_DATA} ${WRKSRC}/jruby.jar ${PREFIX}/share/java/classes/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/java/${PORTNAME} + cd ${WRKSRC}; ${CP} -R ${FILES} ${PREFIX}/share/java/${PORTNAME}/ +.endif + +post-install: +.if !defined(NOPORTDOCS) + cd ${WRKSRC}; find ${FILES} -type f | sort | ${SED} 's,^,share/java/${PORTNAME}/,' >> ${TMPPLIST} + cd ${WRKSRC}; find ${FILES} -type d | sort -r | ${SED} 's,^,@dirrm share/java/${PORTNAME}/,' >> ${TMPPLIST} + ${ECHO} '@dirrm share/java/${PORTNAME}' >> ${TMPPLIST} +.endif + ${ECHO} '@unexec ${RMDIR} %D/share/java 2> /dev/null || true' >> ${TMPPLIST} + +.include <bsd.port.mk> diff --git a/lang/jruby/distinfo b/lang/jruby/distinfo new file mode 100644 index 0000000..9f54fa9 --- /dev/null +++ b/lang/jruby/distinfo @@ -0,0 +1,2 @@ +MD5 (jruby-0_1_5.tar.gz) = 5f703b14acd69f50d85b321f26a941d5 +MD5 (jruby-src-0_1_5.tar.gz) = 151342c76f26bdfbd8fc30b56db909c7 diff --git a/lang/jruby/pkg-comment b/lang/jruby/pkg-comment new file mode 100644 index 0000000..91d280f --- /dev/null +++ b/lang/jruby/pkg-comment @@ -0,0 +1 @@ +An implementation of Ruby Interpreter in Pure Java diff --git a/lang/jruby/pkg-descr b/lang/jruby/pkg-descr new file mode 100644 index 0000000..d13c8b8 --- /dev/null +++ b/lang/jruby/pkg-descr @@ -0,0 +1,6 @@ +JRuby is the effort to recreate the Ruby interpreter in Java. +Currently, the interpreter is written in portable C. The Java version +will be tightly integrated with Java to allow both to script any Java +class and to embed the interpreter into any Java application. + +WWW: http://jruby.sourceforge.net/ diff --git a/lang/jruby/pkg-plist b/lang/jruby/pkg-plist new file mode 100644 index 0000000..59bf9b4 --- /dev/null +++ b/lang/jruby/pkg-plist @@ -0,0 +1,3 @@ +bin/jruby +share/java/classes/jruby.jar +@unexec rmdir %D/share/java/classes 2> /dev/null || true |