diff options
author | knu <knu@FreeBSD.org> | 2001-04-10 15:23:49 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-04-10 15:23:49 +0800 |
commit | e37faa4b4bfd2c810dd9ea33812d7057414c3c74 (patch) | |
tree | f3741b0f5403500c331847946e86eba7ee00127b /Mk | |
parent | 35e5f256fbc2cabf908c19f7f201d1930ca8ad76 (diff) | |
download | freebsd-ports-gnome-e37faa4b4bfd2c810dd9ea33812d7057414c3c74.tar.gz freebsd-ports-gnome-e37faa4b4bfd2c810dd9ea33812d7057414c3c74.tar.zst freebsd-ports-gnome-e37faa4b4bfd2c810dd9ea33812d7057414c3c74.zip |
Update to 1.6.4-preview1.
Make bsd.ruby.mk easily handle preview releases.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 20 |
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} |