aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-05-05 22:03:07 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-05-05 22:03:07 +0000
commitd54036a13a35a5de61d0f1917d7d1c19b4e4963b (patch)
treed38b337616f907e1c8096fbf0741e0311cf48f12 /Mk/bsd.ruby.mk
parent7de9ed7fa8ad0b468b1069188a734ab7fa888d2a (diff)
downloadports-d54036a13a35a5de61d0f1917d7d1c19b4e4963b.tar.gz
ports-d54036a13a35a5de61d0f1917d7d1c19b4e4963b.zip
Notes
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk19
1 files changed, 13 insertions, 6 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 83585605a2f2..af16ef07e297 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -40,7 +40,7 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org
# RUBY_DISTNAME - DISTNAME for the standard ruby ports, i.e. the basename of the ruby distribution tarball.
# RUBY_DISTVERSION - The version number part of RUBY_DISTNAME.
# RUBY_DISTVER - Same as RUBY_DISTVERSION, but converted into PORTVERSION style (preview -> .p etc.)
-# RUBY_SNAPSHOTVERSION - Snapshot version. Mostly it is a date.
+# RUBY_PATCHLEVEL - Patchlevel, or a snapshot date.
# RUBY_WRKSRC - WRKSRC for the ruby port.
#
# RUBY_SHLIBVER - Major version of libruby (see below for current value).
@@ -94,19 +94,26 @@ RUBY?= ${LOCALBASE}/bin/${RUBY_NAME}
.if defined(RUBY_VER) && ${RUBY_VER} == 1.4
RUBY_VERSION?= 1.4.6
RUBY_SUFFIX?= ${_RUBY_SUFFIX}
+.elif defined(RUBY_VER) && ${RUBY_VER} == 1.7
+RUBY_VERSION?= 1.7.0
+RUBY_SUFFIX?= ${_RUBY_SUFFIX}
+RUBY_WRKSRC?= ${WRKDIR}/ruby
+RUBY_DISTVERSION?= ${RUBY_VERSION}-alpha-2001.05.03
+RUBY_PATCHLEVEL?= 1
.else
RUBY_VERSION?= 1.6.4
RUBY_SUFFIX?= # empty
+RUBY_DISTVERSION?= ${RUBY_VERSION}-preview2
+RUBY_PATCHLEVEL?= 2001.05.03
.endif
-RUBY_DISTVERSION?= ${RUBY_VERSION}-preview2
-RUBY_SNAPSHOTVERSION?= 2001.05.01
-RUBY_DISTVER= ${RUBY_DISTVERSION:S/-preview/.p/}
+RUBY_DISTVERSION?= ${RUBY_VERSION}
+RUBY_DISTVER= ${RUBY_DISTVERSION:S/-preview/.p/:S/-alpha-/.a/:S/-beta-/.b/}
-.if !defined(RUBY_SNAPSHOTVERSION) || empty(RUBY_SNAPSHOTVERSION)
+.if !defined(RUBY_PATCHLEVEL) || empty(RUBY_PATCHLEVEL)
RUBY_PORTVERSION= ${RUBY_DISTVER}
.else
-RUBY_PORTVERSION= ${RUBY_DISTVER}.${RUBY_SNAPSHOTVERSION}
+RUBY_PORTVERSION= ${RUBY_DISTVER}.${RUBY_PATCHLEVEL}
.endif
RUBY_DISTNAME?= ruby-${RUBY_DISTVERSION}