aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-12-25 02:12:20 +0800
committerknu <knu@FreeBSD.org>2002-12-25 02:12:20 +0800
commit04add8815acabc1c524727540808910339ea3de9 (patch)
tree0e28f7fdcc3d660d9ab7f3e886f1803e7733637f /Mk/bsd.ruby.mk
parent3e5d3e0d6f29f35f256d36f57d9e8c9a1f0a8ea0 (diff)
downloadfreebsd-ports-gnome-04add8815acabc1c524727540808910339ea3de9.tar.gz
freebsd-ports-gnome-04add8815acabc1c524727540808910339ea3de9.tar.zst
freebsd-ports-gnome-04add8815acabc1c524727540808910339ea3de9.zip
lang/ruby:
- Update to the 1.6.8 final release. (which fixes a couple of coredumping bugs) - Update Oni Guruma (alternative BSDL regexp engine) to 20021210. - Attach a small knob for debugging. lang/ruby-devel - Update to 1.8.0 preview 1 + errata patch. (fixes a couple of coredumping bugs) - Update Oni Guruma (alternative BSDL regexp engine) to 20021210. - Fix pkg-plist nits. lang/ruby16-shim-ruby18 - Update to 1.8.0 preview 1. (sync with 1.6.8 & 1.8.0 preview1) - Fix pkg-plist nits. Approved by: lioux (and self) A Merry Christmas to: all of you
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk34
1 files changed, 19 insertions, 15 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 016cdab2b593..aa3e7197a327 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -15,7 +15,7 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org
# [variables that a user may define]
#
# RUBY_VER - (See below)
-# RUBY_DEFAULT_VER - Set to (e.g.) "1.7" if you want to refer to "ruby17" just as "ruby".
+# RUBY_DEFAULT_VER - Set to (e.g.) "1.8" if you want to refer to "ruby18" just as "ruby".
# RUBY_ARCH - (See below)
# RUBY_NO_RD_HTML - Define if you don't want HTML files generated from RD files.
#
@@ -97,7 +97,7 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org
#
#.if ${ARCH} == alpha || ${ARCH} == sparc64
-#RUBY_VER?= 1.7
+#RUBY_VER?= 1.8
#.endif
.if defined(RUBY)
@@ -123,22 +123,25 @@ _RUBY_SITEDIR!= ${_RUBY_CONFIG} 'puts C["sitedir"]'
.else
RUBY?= ${LOCALBASE}/bin/${RUBY_NAME}
-.if defined(RUBY_VER) && ${RUBY_VER} == 1.7
-RUBY_VERSION?= 1.7.3
+.if defined(RUBY_VER) && ${RUBY_VER} == 1.8
+RUBY_VERSION?= 1.8.0
RUBY_PORT?= lang/ruby${RUBY_R}-devel
-RUBY_DISTVERSION?= ${RUBY_VERSION}-2002.12.12
-#RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-yyyy.mm.dd.diff.bz2
-RUBY_PORTVERSION?= ${RUBY_VERSION}.2002.12.12
-MASTER_SITE_SUBDIR_RUBY= snapshots
+RUBY_DISTVERSION?= ${RUBY_VERSION}-preview1
+RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-errata.diff
+RUBY_PORTVERSION?= ${RUBY_VERSION}.p1
+RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_VERSION}
+#MASTER_SITE_SUBDIR_RUBY= snapshots
+.elif defined(RUBY_VER) && ${RUBY_VER} == 1.7
+.error "Ruby 1.7 is obsolete; set RUBY_VER to 1.8 instead."
.else
RUBY_VERSION?= 1.6.8
-RUBY_DISTVERSION?= ${RUBY_VERSION}-preview3
+#RUBY_DISTVERSION?= ${RUBY_VERSION}
#RUBY_PATCHFILES?= ruby-${RUBY_DISTVERSION}-yyyy.mm.dd.diff.bz2
-RUBY_PORTVERSION?= ${RUBY_VERSION}.p3
-RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_VERSION}
-MASTER_SITE_SUBDIR_RUBY= ${RUBY_VER}
+#RUBY_PORTVERSION?= ${RUBY_VERSION}
+#RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_VERSION}
+#MASTER_SITE_SUBDIR_RUBY= snapshots
.endif
-# defined(RUBY_VER) && ${RUBY_VER} == 1.7
+# defined(RUBY_VER) && ${RUBY_VER} == 1.8
RUBY_ARCH?= ${ARCH}-freebsd${OSREL:C/\..*//}${RUBY_R}
RUBY_NAME?= ruby${RUBY_SUFFIX}
@@ -149,7 +152,7 @@ _RUBY_SITEDIR?= ${_RUBY_SYSLIBDIR}/ruby/site_ruby
# defined(RUBY)
#.if ${ARCH} == alpha || ${ARCH} == sparc64
-#RUBY_DEFAULT_VER?= 1.7
+#RUBY_DEFAULT_VER?= 1.8
#.else
RUBY_DEFAULT_VER?= 1.6
#.endif
@@ -157,6 +160,7 @@ RUBY_DEFAULT_SUFFIX?= ${RUBY_DEFAULT_VER:S/.//}
RUBY_DISTVERSION?= ${RUBY_VERSION}
RUBY_PORTVERSION?= ${RUBY_VERSION}
+MASTER_SITE_SUBDIR_RUBY?= ${RUBY_VER}
RUBY_DISTNAME?= ruby-${RUBY_DISTVERSION}
RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
@@ -383,7 +387,7 @@ shim= ${USE_RUBY_FEATURES:Mbenchmark} \
${USE_RUBY_FEATURES:Mstringio} \
${USE_RUBY_FEATURES:Mstrscan} \
${USE_RUBY_FEATURES:Mtsort}
-.if !empty(shim) && ${RUBY_VER} < 1.7
+.if !empty(shim) && ${RUBY_VER} <= 1.6
BUILD_DEPENDS+= ${DEPEND_RUBY_SHIM18}
RUN_DEPENDS+= ${DEPEND_RUBY_SHIM18}
.endif