diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-02-19 15:55:35 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-02-19 15:55:35 +0000 |
commit | 04d1ec84c62089088d418fe5aaf177a646d1fdf0 (patch) | |
tree | 3521ee5686e74ca64dd40cfe29ba63404109ccee /lang/ruby16_static | |
parent | dd43b8b9db24d9722fc4d06a9cdab099cdc4b23a (diff) | |
download | ports-04d1ec84c62089088d418fe5aaf177a646d1fdf0.tar.gz ports-04d1ec84c62089088d418fe5aaf177a646d1fdf0.zip |
Notes
Diffstat (limited to 'lang/ruby16_static')
-rw-r--r-- | lang/ruby16_static/Makefile | 68 | ||||
-rw-r--r-- | lang/ruby16_static/pkg-comment | 1 | ||||
-rw-r--r-- | lang/ruby16_static/pkg-plist | 2 |
3 files changed, 71 insertions, 0 deletions
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 |