aboutsummaryrefslogtreecommitdiff
path: root/lang/ruby18/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-03-26 22:20:00 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-03-26 22:20:00 +0000
commit5fe1ba231541eaf8bd497d7d95a03bec43f48f9d (patch)
tree5e6d97f5197ea7e94530108baa44003f28869243 /lang/ruby18/Makefile
parentc4e74eed07eca6226d66f95c868f6adec0942308 (diff)
downloadports-5fe1ba231541eaf8bd497d7d95a03bec43f48f9d.tar.gz
ports-5fe1ba231541eaf8bd497d7d95a03bec43f48f9d.zip
Notes
Diffstat (limited to 'lang/ruby18/Makefile')
-rw-r--r--lang/ruby18/Makefile48
1 files changed, 41 insertions, 7 deletions
diff --git a/lang/ruby18/Makefile b/lang/ruby18/Makefile
index de820da525ff..260ba8865fd3 100644
--- a/lang/ruby18/Makefile
+++ b/lang/ruby18/Makefile
@@ -8,10 +8,14 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES= lang ruby ipv6
-MASTER_SITES= ${MASTER_SITE_RUBY}
-MASTER_SITE_SUBDIR= snapshots
-DISTNAME= ${RUBY_DISTNAME}
+MASTER_SITES= ${MASTER_SITE_RUBY} \
+ ${ONIGURUMA_MASTER_SITES:S,$,:oniguruma,}
+MASTER_SITE_SUBDIR= snapshots \
+ ${ONIGURUMA_MASTER_SITE_SUBDIR:S,$,/:oniguruma,}
+DISTFILES= ${RUBY_DISTNAME}${EXTRACT_SUFX} \
+ ${ONIGURUMA_DISTFILE:S,$,:oniguruma,}
DIST_SUBDIR= ruby
+EXTRACT_ONLY= ${RUBY_DISTNAME}${EXTRACT_SUFX}
PATCH_SITES= ${MASTER_SITE_RUBY}
PATCH_SITE_SUBDIR= snapshots
@@ -20,6 +24,14 @@ PATCH_DIST_STRIP= -p1
MAINTAINER= knu@FreeBSD.org
+BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
+
+.if defined(WITH_ONIGURUMA)
+ONIGURUMA_MASTER_SITES= ${MASTER_SITE_RUBY}
+ONIGURUMA_MASTER_SITE_SUBDIR= contrib
+ONIGURUMA_DISTFILE= onigd20020325.tar.gz
+.endif
+
USE_BZIP2= yes
RUBY_VER= 1.7
@@ -28,7 +40,8 @@ USE_RUBY= yes
RUBY_NO_BUILD_DEPENDS= yes
RUBY_NO_RUN_DEPENDS= yes
-USE_AUTOCONF_VER=213
+#USE_AUTOCONF= yes # does not work with 2.13; requires 2.53 or later
+GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
WRKSRC= ${RUBY_WRKSRC}
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} \
@@ -64,17 +77,38 @@ PLIST_SUB+= IF_DEFAULT=${IF_DEFAULT} \
IRB_WITHOUT_SUFFIX= ${LOCALBASE}/bin/irb
IRB_WITH_SUFFIX= ${IRB_WITHOUT_SUFFIX}${_RUBY_SUFFIX}
-OBSOLETED_MODULES= sha1 shell syslog timex urb uri
+OBSOLETED_MODULES= bigfloat \
+ fileutils \
+ racc-runtime \
+ sha1 \
+ shell \
+ strscan \
+ syslog \
+ timex \
+ urb \
+ uri
+
+post-extract:
+.if defined(WITH_ONIGURUMA)
+ cd ${WRKDIR}; ${TAR} zxvf ${_DISTDIR}/${ONIGURUMA_DISTFILE}
+.endif
post-patch:
- find ${WRKSRC} -name '*.orig' -delete
+.if defined(WITH_ONIGURUMA)
+ ${CP} -f ${WRKDIR}/oniguruma/regex.[ch] ${WRKSRC}/
+ cd ${WRKSRC}; ${PATCH} < ${WRKDIR}/oniguruma/re.c.172.patch
+.endif
+ ${FIND} ${WRKSRC} -name '*.orig' -delete
.for d in Win32API
${RM} -rf ${WRKSRC}/ext/${d}
.endfor
-.for d in gdbm tcltklib tk
+.for d in gdbm iconv tcltklib tk
${MV} ${WRKSRC}/ext/${d} ${WRKDIR}/
.endfor
+pre-configure:
+ cd ${WRKSRC}; autoconf
+
pre-install:
${RM} -f ${RUBY_WITHOUT_SUFFIX}${RUBY_R} \
${PREFIX}/man/man1/ruby${RUBY_R}.1 \