From 5968621720f2969a3f40a1a8d12d0e270fb6c36f Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 19 Feb 2001 15:55:35 +0000 Subject: 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. --- lang/Makefile | 1 + lang/ruby16_static/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++ lang/ruby16_static/pkg-comment | 1 + lang/ruby16_static/pkg-plist | 2 ++ lang/ruby_static/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++ lang/ruby_static/pkg-comment | 1 + lang/ruby_static/pkg-plist | 2 ++ 7 files changed, 143 insertions(+) create mode 100644 lang/ruby16_static/Makefile create mode 100644 lang/ruby16_static/pkg-comment create mode 100644 lang/ruby16_static/pkg-plist create mode 100644 lang/ruby_static/Makefile create mode 100644 lang/ruby_static/pkg-comment create mode 100644 lang/ruby_static/pkg-plist (limited to 'lang') 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 +# +# $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 + +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 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 +# +# $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 + +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 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 -- cgit