summaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-02-19 15:55:35 +0000
committerknu <knu@FreeBSD.org>2001-02-19 15:55:35 +0000
commit5968621720f2969a3f40a1a8d12d0e270fb6c36f (patch)
treef6b4b7db34618a2384e1f9b6e1fca8d054ba6f83 /lang
parent3f310169738db14fbd6754116f24991ce3895f31 (diff)
downloadFreeBSD-ports-5968621720f2969a3f40a1a8d12d0e270fb6c36f.zip
FreeBSD-ports-5968621720f2969a3f40a1a8d12d0e270fb6c36f.tar.gz
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 2a01959..f988b7a 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 0000000..ca95253
--- /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 0000000..6430c9d
--- /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 0000000..d631781
--- /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 0000000..ca95253
--- /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 0000000..6430c9d
--- /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 0000000..d631781
--- /dev/null
+++ b/lang/ruby_static/pkg-plist
@@ -0,0 +1,2 @@
+bin/ruby_s
+bin/ruby%%_RUBY_SUFFIX%%_s
OpenPOWER on IntegriCloud