aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-08-30 16:13:20 +0800
committerknu <knu@FreeBSD.org>2001-08-30 16:13:20 +0800
commit032da83ba1db77766c017cf617545f84413f654c (patch)
tree4d50c6932316225e9b6548e3c7ae9965de729724 /lang
parenta97426e3f345542e7d5b635145f3d9986396c69d (diff)
downloadfreebsd-ports-gnome-032da83ba1db77766c017cf617545f84413f654c.tar.gz
freebsd-ports-gnome-032da83ba1db77766c017cf617545f84413f654c.tar.zst
freebsd-ports-gnome-032da83ba1db77766c017cf617545f84413f654c.zip
Add ruby-lua, a Ruby extension to make Lua script language as a class.
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/ruby-lua/Makefile40
-rw-r--r--lang/ruby-lua/distinfo1
-rw-r--r--lang/ruby-lua/pkg-comment1
-rw-r--r--lang/ruby-lua/pkg-descr7
-rw-r--r--lang/ruby-lua/pkg-plist3
6 files changed, 53 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 094f0caa1093..6528175979d2 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -129,6 +129,7 @@
SUBDIR += rscheme
SUBDIR += ruby
SUBDIR += ruby-devel
+ SUBDIR += ruby-lua
SUBDIR += ruby-man
SUBDIR += ruby-mode.el
SUBDIR += ruby-perl
diff --git a/lang/ruby-lua/Makefile b/lang/ruby-lua/Makefile
new file mode 100644
index 000000000000..02354e0ba4c3
--- /dev/null
+++ b/lang/ruby-lua/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: Ruby/Lua
+# Date created: 30 August 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= lua
+PORTVERSION= 0.0.1
+CATEGORIES= lang ruby
+MASTER_SITES= http://ruby-lua.unolotiene.com/img/18/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby${PORTNAME}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/liblua.a:${PORTSDIR}/lang/lua
+
+USE_ZIP= yes
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+NO_WRKSUBDIR= yes
+INSTALL_TARGET= site-install
+
+post-extract:
+ ${ECHO} 'require "mkmf"' > ${WRKSRC}/extconf.rb
+ ${ECHO} 'have_library("lua") &&' >> ${WRKSRC}/extconf.rb
+ ${ECHO} ' have_library("lualib") &&' >> ${WRKSRC}/extconf.rb
+ ${ECHO} ' create_makefile("lua")' >> ${WRKSRC}/extconf.rb
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/rubylua.txt ${RUBY_DOCDIR}/${PORTNAME}/
+.endif
+
+.include <bsd.port.mk>
diff --git a/lang/ruby-lua/distinfo b/lang/ruby-lua/distinfo
new file mode 100644
index 000000000000..dccfc98cda2d
--- /dev/null
+++ b/lang/ruby-lua/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/rubylua.zip) = b2b9c7e61081ecdc2a4e5e9beb5c3000
diff --git a/lang/ruby-lua/pkg-comment b/lang/ruby-lua/pkg-comment
new file mode 100644
index 000000000000..4de068195073
--- /dev/null
+++ b/lang/ruby-lua/pkg-comment
@@ -0,0 +1 @@
+A Ruby extension to make Lua script language as a class
diff --git a/lang/ruby-lua/pkg-descr b/lang/ruby-lua/pkg-descr
new file mode 100644
index 000000000000..9b3cfe6bba1d
--- /dev/null
+++ b/lang/ruby-lua/pkg-descr
@@ -0,0 +1,7 @@
+Ruby-Lua -- an embebed scripting language for ruby programs
+
+This is a first attempt to make Lua script language as a class for
+ruby, it's very basic right now.
+
+Author: Domingo Alvarez <domingo@dad-it.com>
+WWW: http://ruby-lua.unolotiene.com/
diff --git a/lang/ruby-lua/pkg-plist b/lang/ruby-lua/pkg-plist
new file mode 100644
index 000000000000..a4137f757a0b
--- /dev/null
+++ b/lang/ruby-lua/pkg-plist
@@ -0,0 +1,3 @@
+%%RUBY_SITEARCHLIBDIR%%/lua.so
+%%PORTDOCS%%%%RUBY_DOCDIR%%/lua/rubylua.txt
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/lua