aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ruby-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby-devel/Makefile')
-rw-r--r--lang/ruby-devel/Makefile48
1 files changed, 41 insertions, 7 deletions
diff --git a/lang/ruby-devel/Makefile b/lang/ruby-devel/Makefile
index de820da525ff..260ba8865fd3 100644
--- a/lang/ruby-devel/Makefile
+++ b/lang/ruby-devel/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 \