Add jruby, an implementation of Ruby Interpreter in Pure Java.

That it is still in the alpha stage, but it actually works.
This commit is contained in:
Akinori MUSHA 2001-09-20 09:18:26 +00:00
parent 91a1772fbc
commit 8e55ee5807
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48007
6 changed files with 66 additions and 0 deletions

View File

@ -64,6 +64,7 @@
SUBDIR += intercal
SUBDIR += itcl
SUBDIR += jgnat
SUBDIR += jruby
SUBDIR += jython
SUBDIR += klone
SUBDIR += lcc

53
lang/jruby/Makefile Normal file
View File

@ -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>

2
lang/jruby/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (jruby-0_1_5.tar.gz) = 5f703b14acd69f50d85b321f26a941d5
MD5 (jruby-src-0_1_5.tar.gz) = 151342c76f26bdfbd8fc30b56db909c7

1
lang/jruby/pkg-comment Normal file
View File

@ -0,0 +1 @@
An implementation of Ruby Interpreter in Pure Java

6
lang/jruby/pkg-descr Normal file
View File

@ -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/

3
lang/jruby/pkg-plist Normal file
View File

@ -0,0 +1,3 @@
bin/jruby
share/java/classes/jruby.jar
@unexec rmdir %D/share/java/classes 2> /dev/null || true