aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-19 23:55:35 +0800
committerknu <knu@FreeBSD.org>2001-02-19 23:55:35 +0800
commit5968621720f2969a3f40a1a8d12d0e270fb6c36f (patch)
treef6b4b7db34618a2384e1f9b6e1fca8d054ba6f83 /lang
parent3f310169738db14fbd6754116f24991ce3895f31 (diff)
downloadfreebsd-ports-gnome-5968621720f2969a3f40a1a8d12d0e270fb6c36f.tar.gz
freebsd-ports-gnome-5968621720f2969a3f40a1a8d12d0e270fb6c36f.tar.zst
freebsd-ports-gnome-5968621720f2969a3f40a1a8d12d0e270fb6c36f.zip
Add lang/ruby_static, the statically linked version of the "ruby"
executable, with some basic extensions compiled in. This is added so people can use ruby even in an emergency.
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/ruby16_static/Makefile68
-rw-r--r--lang/ruby16_static/pkg-comment1
-rw-r--r--lang/ruby16_static/pkg-plist2
-rw-r--r--lang/ruby_static/Makefile68
-rw-r--r--lang/ruby_static/pkg-comment1
-rw-r--r--lang/ruby_static/pkg-plist2
7 files changed, 143 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 2a01959d8168..f988b7ae5706 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -113,6 +113,7 @@
SUBDIR += ruby14
SUBDIR += ruby14-irb
SUBDIR += ruby14-tcltklib
+ SUBDIR += ruby_static
SUBDIR += scheme48
SUBDIR += schemetoc
SUBDIR += scm
diff --git a/lang/ruby16_static/Makefile b/lang/ruby16_static/Makefile
new file mode 100644
index 000000000000..ca9525335d4d
--- /dev/null
+++ b/lang/ruby16_static/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: ruby_static
+# Date created: 19 February 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ruby_static
+PORTVERSION= ${RUBY_PORTVERSION}
+CATEGORIES= lang ruby ipv6
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ${NONEXISTENT}:${.CURDIR}/../../${RUBY_PORT}:patch
+
+USE_RUBY= yes
+
+USE_AUTOCONF= yes
+
+# Beware, we can't statically link the gdbm module because gdbm is GPL'ed.
+EXT_PORTS= archivers/ruby-zlib \
+ devel/ruby-strscan \
+ sysutils/ruby-syslog
+_PORTSDIR= ${.CURDIR}/../..
+_RUBY_PORTDIR= ${_PORTSDIR}/${RUBY_PORT}
+
+.for p in ${EXT_PORTS}
+BUILD_DEPENDS+= ${NONEXISTENT}:${_PORTSDIR}/${p}:patch
+.endfor
+
+WRKSRC= ${RUBY_WRKSRC}
+
+DESCR= ${_RUBY_PORTDIR}/pkg-descr
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ENV= XLDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS!= cd ${_RUBY_PORTDIR} && ${MAKE} -V CONFIGURE_ARGS
+CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-shared:M-*} \
+ --with-static-linked-ext=yes \
+ --with-opt-dir="${LOCALBASE}"
+
+do-fetch:
+ @${DO_NADA}
+
+post-patch:
+ ${RUBY} -i -pe 'gsub /-rdynamic/, "-static"' ${WRKSRC}/configure.in
+
+do-extract:
+ ${MKDIR} ${WRKDIR}
+ ${LN} -sf `cd ${_RUBY_PORTDIR} && ${MAKE} -V WRKSRC` ${WRKSRC}
+.for p in ${EXT_PORTS}
+ wrksrc=$$(cd ${_PORTSDIR}/${p} && ${MAKE} -V WRKSRC) ; \
+ extdir=$$(find $$wrksrc -name extconf.rb); \
+ extdir=$${extdir%/extconf.rb}; \
+ ${CP} -RPp $$extdir ${WRKSRC}/ext/
+.endfor
+ (cd ${WRKSRC}/ext && \
+ ${ECHO} "option nodynamic" > Setup; \
+ for x in *; do [ -d $$x ] && echo $$x >> Setup; done)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY}${_RUBY_SUFFIX}_s
+ ${LN} -fs ${RUBY}${_RUBY_SUFFIX}_s ${RUBY}_s
+
+.include <bsd.port.post.mk>
diff --git a/lang/ruby16_static/pkg-comment b/lang/ruby16_static/pkg-comment
new file mode 100644
index 000000000000..6430c9d862ca
--- /dev/null
+++ b/lang/ruby16_static/pkg-comment
@@ -0,0 +1 @@
+An object-oriented interpreted scripting language (statically linked)
diff --git a/lang/ruby16_static/pkg-plist b/lang/ruby16_static/pkg-plist
new file mode 100644
index 000000000000..d63178114962
--- /dev/null
+++ b/lang/ruby16_static/pkg-plist
@@ -0,0 +1,2 @@
+bin/ruby_s
+bin/ruby%%_RUBY_SUFFIX%%_s
diff --git a/lang/ruby_static/Makefile b/lang/ruby_static/Makefile
new file mode 100644
index 000000000000..ca9525335d4d
--- /dev/null
+++ b/lang/ruby_static/Makefile
@@ -0,0 +1,68 @@
+# New ports collection makefile for: ruby_static
+# Date created: 19 February 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ruby_static
+PORTVERSION= ${RUBY_PORTVERSION}
+CATEGORIES= lang ruby ipv6
+MASTER_SITES= # none
+DISTFILES= # none
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ${NONEXISTENT}:${.CURDIR}/../../${RUBY_PORT}:patch
+
+USE_RUBY= yes
+
+USE_AUTOCONF= yes
+
+# Beware, we can't statically link the gdbm module because gdbm is GPL'ed.
+EXT_PORTS= archivers/ruby-zlib \
+ devel/ruby-strscan \
+ sysutils/ruby-syslog
+_PORTSDIR= ${.CURDIR}/../..
+_RUBY_PORTDIR= ${_PORTSDIR}/${RUBY_PORT}
+
+.for p in ${EXT_PORTS}
+BUILD_DEPENDS+= ${NONEXISTENT}:${_PORTSDIR}/${p}:patch
+.endfor
+
+WRKSRC= ${RUBY_WRKSRC}
+
+DESCR= ${_RUBY_PORTDIR}/pkg-descr
+
+.include <bsd.port.pre.mk>
+
+CONFIGURE_ENV= XLDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS!= cd ${_RUBY_PORTDIR} && ${MAKE} -V CONFIGURE_ARGS
+CONFIGURE_ARGS:= ${CONFIGURE_ARGS:N--enable-shared:M-*} \
+ --with-static-linked-ext=yes \
+ --with-opt-dir="${LOCALBASE}"
+
+do-fetch:
+ @${DO_NADA}
+
+post-patch:
+ ${RUBY} -i -pe 'gsub /-rdynamic/, "-static"' ${WRKSRC}/configure.in
+
+do-extract:
+ ${MKDIR} ${WRKDIR}
+ ${LN} -sf `cd ${_RUBY_PORTDIR} && ${MAKE} -V WRKSRC` ${WRKSRC}
+.for p in ${EXT_PORTS}
+ wrksrc=$$(cd ${_PORTSDIR}/${p} && ${MAKE} -V WRKSRC) ; \
+ extdir=$$(find $$wrksrc -name extconf.rb); \
+ extdir=$${extdir%/extconf.rb}; \
+ ${CP} -RPp $$extdir ${WRKSRC}/ext/
+.endfor
+ (cd ${WRKSRC}/ext && \
+ ${ECHO} "option nodynamic" > Setup; \
+ for x in *; do [ -d $$x ] && echo $$x >> Setup; done)
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${RUBY_NAME} ${RUBY}${_RUBY_SUFFIX}_s
+ ${LN} -fs ${RUBY}${_RUBY_SUFFIX}_s ${RUBY}_s
+
+.include <bsd.port.post.mk>
diff --git a/lang/ruby_static/pkg-comment b/lang/ruby_static/pkg-comment
new file mode 100644
index 000000000000..6430c9d862ca
--- /dev/null
+++ b/lang/ruby_static/pkg-comment
@@ -0,0 +1 @@
+An object-oriented interpreted scripting language (statically linked)
diff --git a/lang/ruby_static/pkg-plist b/lang/ruby_static/pkg-plist
new file mode 100644
index 000000000000..d63178114962
--- /dev/null
+++ b/lang/ruby_static/pkg-plist
@@ -0,0 +1,2 @@
+bin/ruby_s
+bin/ruby%%_RUBY_SUFFIX%%_s