aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-10 07:23:49 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-10 07:23:49 +0000
commit67551d3a377b23d05bc2726c6f46f9556fc6e423 (patch)
tree5ee743a34b299e876e90f2c8f0c9459d0d156494 /Mk/bsd.ruby.mk
parentc26bcbdf67cef1831968faf47aece0313a30bea5 (diff)
downloadports-67551d3a377b23d05bc2726c6f46f9556fc6e423.tar.gz
ports-67551d3a377b23d05bc2726c6f46f9556fc6e423.zip
Notes
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk20
1 files changed, 14 insertions, 6 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index d40471ba1a4f..58ad303aff2c 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -92,19 +92,27 @@ RUBY?= ${LOCALBASE}/bin/${RUBY_NAME}
RUBY_VERSION?= 1.4.6
RUBY_SUFFIX?= ${_RUBY_SUFFIX}
.else
-RUBY_VERSION?= 1.6.3
+RUBY_VERSION?= 1.6.4
RUBY_SUFFIX?= # empty
.endif
-RUBY_SNAPSHOTDATE= 2001.04.01
+RUBY_SNAPSHOTVERSION= preview1
+RUBY_SNAPSHOTVER= ${RUBY_SNAPSHOTVERSION:S/preview/p/}
-.if defined(RUBY_SNAPSHOTDATE) && !empty(RUBY_SNAPSHOTDATE)
-RUBY_PORTVERSION= ${RUBY_VERSION}.${RUBY_SNAPSHOTDATE}
-.else
+.if !defined(RUBY_SNAPSHOTVERSION) || empty(RUBY_SNAPSHOTVERSION)
RUBY_PORTVERSION= ${RUBY_VERSION}
+.else
+RUBY_PORTVERSION= ${RUBY_VERSION}.${RUBY_SNAPSHOTVER}
+
+.if ${RUBY_SNAPSHOTVERSION} != ${RUBY_SNAPSHOTVER}
+# preview release
+RUBY_DISTNAME?= ruby-${RUBY_VERSION}-${RUBY_SNAPSHOTVERSION}
.endif
+.endif
+
RUBY_DISTNAME?= ruby-${RUBY_VERSION}
-RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
+
+RUBY_WRKSRC?= ${WRKDIR}/ruby-${RUBY_VERSION}
RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
RUBY_NAME?= ruby${RUBY_SUFFIX}