aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby_static
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-02-20 13:52:50 +0800
committerAkinori MUSHA <knu@FreeBSD.org>2002-02-20 13:52:50 +0800
commit9f048e867a71a434ed90f20c3693fc219638751c (patch)
tree5ed51b845d72aef0dca72c93a19344223d12d2ab /lang/ruby_static
parent608b3cf5cce2eb31fe717f4f02496491cba5b440 (diff)
downloadfreebsd-ports-9f048e867a71a434ed90f20c3693fc219638751c.tar.gz
freebsd-ports-9f048e867a71a434ed90f20c3693fc219638751c.tar.zst
freebsd-ports-9f048e867a71a434ed90f20c3693fc219638751c.zip
Include databases/ruby-bdb1.
Improve the extconf.rb detection routine in Makefile. Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=54944
Diffstat (limited to 'lang/ruby_static')
-rw-r--r--lang/ruby_static/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/lang/ruby_static/Makefile b/lang/ruby_static/Makefile
index 866f8828193a..7932ed5e6c15 100644
--- a/lang/ruby_static/Makefile
+++ b/lang/ruby_static/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ruby_static
PORTVERSION= ${RUBY_PORTVERSION}
+PORTREVISION?= 1
CATEGORIES= lang ruby ipv6
MASTER_SITES= # none
DISTFILES= # none
@@ -20,8 +21,9 @@ USE_RUBY= yes
USE_AUTOCONF= yes
# Beware, because gdbm is under GPL, you must treat the whole binary
-# as GPL says.
+# as GPL says if you include gdbm in it.
EXT_PORTS= archivers/ruby-zlib \
+ databases/ruby-bdb1 \
devel/ruby-strscan
_PORTSDIR= ${.CURDIR}/../..
_RUBY_PORTDIR= ${_PORTSDIR}/${RUBY_PORT}
@@ -77,10 +79,13 @@ do-extract:
${MKDIR} ${WRKDIR}
${LN} -sf `cd ${_RUBY_PORTDIR} && ${MAKE} -V WRKSRC` ${WRKSRC}
.for p in ${EXT_PORTS}
+ m="${p:T:S,^ruby-,,}"; \
wrksrc=$$(cd ${_PORTSDIR}/${p} && ${MAKE} -V WRKSRC) ; \
- extdir=$$(find -L $$wrksrc -name extconf.rb); \
+ extdir=$$(${FIND} -L $$wrksrc -name extconf.rb | \
+ ${XARGS} ${GREP} -l create_makefile | ${HEAD} -1 ); \
extdir=$${extdir%/extconf.rb}; \
- ${CP} -RPp $$extdir ${WRKSRC}/ext/
+ ${CP} -RPp $$extdir ${WRKSRC}/ext/$$m; \
+ ${TOUCH} ${WRKSRC}/ext/$$m/MANIFEST
.endfor
.if defined(STATIC)
${ECHO_CMD} "option nodynamic" > ${WRKSRC}/ext/Setup