1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

Update to the latest stable snapshot as of 2002.03.13.

Add a WITH_ONIGURUMA knob that enables the Oni Guruma regex engine
that's currently under development that will eventually replace the
stock one that's derived from LGPL'd GNU regex. [experimental]
This commit is contained in:
Akinori MUSHA 2002-03-13 22:57:19 +00:00
parent df744e8165
commit c990483df5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56043
5 changed files with 52 additions and 10 deletions

View File

@ -109,8 +109,8 @@ RUBY_PORTVERSION?= ${RUBY_VERSION}.2002.03.01
.else
RUBY_VERSION?= 1.6.7
RUBY_DISTVERSION?= ${RUBY_VERSION}
#RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-yyyy.mm.dd.diff.bz2
RUBY_PORTVERSION?= ${RUBY_VERSION}
RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-2002.03.13.diff.bz2
RUBY_PORTVERSION?= ${RUBY_VERSION}.2002.03.13
.endif
# defined(RUBY_VER) && ${RUBY_VER} == 1.7

View File

@ -8,10 +8,14 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES= lang ruby ipv6
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= stable
DISTNAME= ${RUBY_DISTNAME}
MASTER_SITES= ${MASTER_SITE_RUBY} \
${ONIGURUMA_MASTER_SITES:S,$,:oniguruma,}
MASTER_SITE_SUBDIR= stable \
${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,12 @@ 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= onigd20020313.tar.gz
.endif
#USE_BZIP2= yes
USE_RUBY= yes
@ -62,8 +72,17 @@ IRB_WITH_SUFFIX= ${IRB_WITHOUT_SUFFIX}${_RUBY_SUFFIX}
OBSOLETED_MODULES= sha1 shell 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.166.patch
.endif
${FIND} ${WRKSRC} -name '*.orig' -delete
.for d in Win32API
${RM} -rf ${WRKSRC}/ext/${d}
.endfor

View File

@ -1 +1,3 @@
MD5 (ruby/ruby-1.6.7.tar.gz) = 4213d723911ce346717d60256fa925e1
MD5 (ruby/onigd20020313.tar.gz) = d1bfc1cdff9c399e8ae532883943e6c1
MD5 (ruby/ruby-1.6.7-2002.03.13.diff.bz2) = 6279da2be167ad7a1140775a51fa06af

View File

@ -8,10 +8,14 @@
PORTNAME= ruby${RUBY_R}
PORTVERSION= ${RUBY_PORTVERSION}
CATEGORIES= lang ruby ipv6
MASTER_SITES= ${MASTER_SITE_RUBY}
MASTER_SITE_SUBDIR= stable
DISTNAME= ${RUBY_DISTNAME}
MASTER_SITES= ${MASTER_SITE_RUBY} \
${ONIGURUMA_MASTER_SITES:S,$,:oniguruma,}
MASTER_SITE_SUBDIR= stable \
${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,12 @@ 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= onigd20020313.tar.gz
.endif
#USE_BZIP2= yes
USE_RUBY= yes
@ -62,8 +72,17 @@ IRB_WITH_SUFFIX= ${IRB_WITHOUT_SUFFIX}${_RUBY_SUFFIX}
OBSOLETED_MODULES= sha1 shell 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.166.patch
.endif
${FIND} ${WRKSRC} -name '*.orig' -delete
.for d in Win32API
${RM} -rf ${WRKSRC}/ext/${d}
.endfor

View File

@ -1 +1,3 @@
MD5 (ruby/ruby-1.6.7.tar.gz) = 4213d723911ce346717d60256fa925e1
MD5 (ruby/onigd20020313.tar.gz) = d1bfc1cdff9c399e8ae532883943e6c1
MD5 (ruby/ruby-1.6.7-2002.03.13.diff.bz2) = 6279da2be167ad7a1140775a51fa06af