From 04d1ec84c62089088d418fe5aaf177a646d1fdf0 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA 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/ruby_static/Makefile | 68 ++++++++++++++++++++++++++++++++++++++++++++ lang/ruby_static/pkg-comment | 1 + lang/ruby_static/pkg-plist | 2 ++ 3 files changed, 71 insertions(+) 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/ruby_static') 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 v1.2.3