diff options
author | Koichiro Iwao <meta@FreeBSD.org> | 2019-11-06 05:20:59 +0000 |
---|---|---|
committer | Koichiro Iwao <meta@FreeBSD.org> | 2019-11-06 05:20:59 +0000 |
commit | a1a91e4c937a8664ae4b4bedca114e40c46e3d14 (patch) | |
tree | 04aa5282b4ffc53b038cacd63a2abcc464816922 /Mk/bsd.ruby.mk | |
parent | dns/cli53: Update to 0.8.16 (diff) |
Mk/bsd.ruby.mk: Remove RUBY_{PATCHLEVEL,RELVERSION,RELVERSION_CODE,RUBY_DISTVERSION}
1. RUBY_PATCHLEVEL has been 0 since Ruby 2.1
2. After RUBY_PATCHLEVEL is removed , RUBY_RELVERSION and RUBY_VERSION are always
same value and it also applies to RUBY_RELEVERSION_CODE and RUBY_VERSION_CODE
3. RUBY_PATCHLEVEL is only used to set value of CPE_UPDATE in lang/ruby2[456] and
setting CPE_UPDATE is optional
4. RUBY_RELEVERSION is only used to set value of CPE_VERSION in lang/ruby2[456]
but as is describled in 2, it can be replased with RUBY_VERSION
5. RUBY_RELVERSION_CODE is not used anywhere
PR: 241473
Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
Reviewed by: sunpoet
Notes
Notes:
svn path=/head/; revision=516858
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r-- | Mk/bsd.ruby.mk | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk index e76797ca87d2..d1860a8f5384 100644 --- a/Mk/bsd.ruby.mk +++ b/Mk/bsd.ruby.mk @@ -54,22 +54,16 @@ Ruby_Include_MAINTAINER= ruby@FreeBSD.org # # RUBY_PKGNAMEPREFIX - Common PKGNAMEPREFIX for ruby ports # (default: ruby${RUBY_SUFFIX}-) -# RUBY_RELVERSION - Full version of ruby without preview/beta suffix in +# RUBY_VERSION - Full version of ruby without preview/beta suffix in # the form of `x.y.z' (see below for current value). -# RUBY_RELVERSION_CODE - Integer version of RUBY_RELVERSION in the form of +# RUBY_VERSION_CODE - Integer version of RUBY_VERSION in the form of # `xyz'. -# RUBY_VERSION - Composite version of RUBY_RELVERSION and -# RUBY_PATCHLEVEL in the form of `x.y.z.p'. -# (default: ${RUBY_RELVERSION}.${RUBY_PATCHLEVEL}) -# RUBY_VERSION_CODE - Composite integer version of RUBY_VERSION in the form -# of `xyzp'. # RUBY_PORTVERSION - PORTVERSION for the standard ruby ports (ruby, # ruby-gdbm, etc.). # RUBY_PORTREVISION - PORTREVISION for the standard ruby ports. # RUBY_PORTEPOCH - PORTEPOCH for the standard ruby ports. # 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_PATCHFILES - PATCHFILES for the standard ruby ports, i.e. the # basename of the ruby distribution tarball. # RUBY_WRKSRC - WRKSRC for the ruby port. @@ -154,30 +148,27 @@ RUBY?= ${LOCALBASE}/bin/${RUBY_NAME} # # Ruby 2.4 # -RUBY_RELVERSION= 2.4.9 +RUBY_VERSION= 2.4.9 RUBY_PORTREVISION= 0 RUBY_PORTEPOCH= 1 -RUBY_PATCHLEVEL= 0 RUBY24= "" # PLIST_SUB helpers . elif ${RUBY_VER} == 2.5 # # Ruby 2.5 # -RUBY_RELVERSION= 2.5.7 +RUBY_VERSION= 2.5.7 RUBY_PORTREVISION= 0 RUBY_PORTEPOCH= 1 -RUBY_PATCHLEVEL= 0 RUBY25= "" # PLIST_SUB helpers . elif ${RUBY_VER} == 2.6 # # Ruby 2.6 # -RUBY_RELVERSION= 2.6.5 +RUBY_VERSION= 2.6.5 RUBY_PORTREVISION= 0 RUBY_PORTEPOCH= 1 -RUBY_PATCHLEVEL= 0 RUBY26= "" # PLIST_SUB helpers # When adding a version, please keep the comment in @@ -205,15 +196,7 @@ BROKEN= ${BROKEN_RUBY${RUBY_VER:R}${RUBY_VER:E}} .endif .endif -.if ${RUBY_PATCHLEVEL} == 0 -RUBY_VERSION?= ${RUBY_RELVERSION} -RUBY_DISTVERSION?= ${RUBY_RELVERSION} -.else -RUBY_VERSION?= ${RUBY_RELVERSION}.${RUBY_PATCHLEVEL} -RUBY_DISTVERSION?= ${RUBY_RELVERSION}-p${RUBY_PATCHLEVEL} -.endif - -RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_DISTVERSION} +RUBY_WRKSRC= ${WRKDIR}/ruby-${RUBY_VERSION} RUBY_CONFIGURE_ARGS+= --with-rubyhdrdir="${PREFIX}/include/ruby-${RUBY_VER}/" \ --with-rubylibprefix="${PREFIX}/lib/ruby" \ @@ -236,10 +219,9 @@ _RUBY_VENDORDIR?= ${_RUBY_SYSLIBDIR}/ruby/vendor_ruby 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_DISTNAME?= ruby-${RUBY_VERSION} RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME} |