summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-09-20 09:18:26 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-09-20 09:18:26 +0000
commit8e55ee5807651906ce915e4a65225d522838f201 (patch)
tree41f8c903e901cfcc6ce727f3a750a64e9db7d654 /lang
parentUpdate to 2.9 (diff)
Add jruby, an implementation of Ruby Interpreter in Pure Java.
That it is still in the alpha stage, but it actually works.
Notes
Notes: svn path=/head/; revision=48007
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/jruby/Makefile53
-rw-r--r--lang/jruby/distinfo2
-rw-r--r--lang/jruby/pkg-comment1
-rw-r--r--lang/jruby/pkg-descr6
-rw-r--r--lang/jruby/pkg-plist3
6 files changed, 66 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 322d24cc3c8d..36b7a4ea107b 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 000000000000..c8125437dcb5
--- /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 000000000000..9f54fa9ede7e
--- /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 000000000000..91d280fb5801
--- /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 000000000000..d13c8b8d003d
--- /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 000000000000..59bf9b464e0d
--- /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