aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby16
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2003-02-04 13:13:05 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2003-02-04 13:13:05 +0000
commite83086495025d008a2835aca01fe146ede840cff (patch)
treefe5b77f13a089208fc044fbc20c0903853622d40 /lang/ruby16
parente2ffd21d3d90e14f539df5961f1191619e955314 (diff)
downloadports-e83086495025d008a2835aca01fe146ede840cff.tar.gz
ports-e83086495025d008a2835aca01fe146ede840cff.zip
Use devel/oniguruma to build ruby with oniguruma.
Notes
Notes: svn path=/head/; revision=74668
Diffstat (limited to 'lang/ruby16')
-rw-r--r--lang/ruby16/Makefile20
-rw-r--r--lang/ruby16/distinfo1
2 files changed, 10 insertions, 11 deletions
diff --git a/lang/ruby16/Makefile b/lang/ruby16/Makefile
index 0f6cebbee944..7946636e271b 100644
--- a/lang/ruby16/Makefile
+++ b/lang/ruby16/Makefile
@@ -8,12 +8,9 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES= lang ruby ipv6
-MASTER_SITES= ${MASTER_SITE_RUBY} \
- ${ONIGURUMA_MASTER_SITES:S,$,:oniguruma,}
-MASTER_SITE_SUBDIR= ${MASTER_SITE_SUBDIR_RUBY} \
- ${ONIGURUMA_MASTER_SITE_SUBDIR:S,$,/:oniguruma,}
-DISTFILES= ${RUBY_DISTNAME}${EXTRACT_SUFX} \
- ${ONIGURUMA_DISTFILE:S,$,:oniguruma,}
+MASTER_SITES= ${MASTER_SITE_RUBY}
+MASTER_SITE_SUBDIR= ${MASTER_SITE_SUBDIR_RUBY}
+DISTFILES= ${RUBY_DISTNAME}${EXTRACT_SUFX}
DIST_SUBDIR= ruby
PATCH_SITES= ${MASTER_SITE_RUBY}
@@ -24,9 +21,10 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= knu@FreeBSD.org
.if defined(WITH_ONIGURUMA)
-ONIGURUMA_MASTER_SITES= ${MASTER_SITE_RUBY}
-ONIGURUMA_MASTER_SITE_SUBDIR= contrib
-ONIGURUMA_DISTFILE= onigd20030204.tar.gz
+PKGNAMESUFFIX= +oniguruma
+BUILD_DEPENDS+= ${NONEXISTENT}:${ONIGURUMA_PORTDIR}:patch
+ONIGURUMA_PORTDIR= ${PORTSDIR}/devel/oniguruma
+ONIGURUMA_WRKSRC= `cd ${ONIGURUMA_PORTDIR}; ${MAKE} -V WRKSRC`
PLIST_SUB+= ONIGURUMA=""
.else
PLIST_SUB+= ONIGURUMA="@comment "
@@ -103,7 +101,9 @@ post-patch:
pre-configure:
.if defined(WITH_ONIGURUMA)
- cd ${WRKDIR}/oniguruma; ./configure; ${MAKE} 16 RUBYDIR=${WRKSRC}
+ cd ${ONIGURUMA_WRKSRC}; \
+ ./configure; \
+ ${MAKE} -f Makefile ${RUBY_VER:S/.//} RUBYDIR=${WRKSRC}
.endif
post-install:
diff --git a/lang/ruby16/distinfo b/lang/ruby16/distinfo
index cf250fdf3842..55717ef7b45e 100644
--- a/lang/ruby16/distinfo
+++ b/lang/ruby16/distinfo
@@ -1,3 +1,2 @@
MD5 (ruby/ruby-1.6.8.tar.gz) = bf48d49dbd94b5c0eda5f75b3bfbac16
MD5 (ruby/ruby-1.6.8-2003.01.19.diff.bz2) = cf198340b4b7d6db6aae80e10cf64f91
-MD5 (ruby/onigd20030204.tar.gz) = aec4bb39e1211dde6cdc4a920be99a45