diff options
author | taca <taca@pkgsrc.org> | 2015-01-25 16:09:16 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-01-25 16:09:16 +0000 |
commit | b29d443d04c1da351e7d743aacfd4bff3994006f (patch) | |
tree | c630892564e4267a08c5f98eab58f5d819c6adad /lang/ruby | |
parent | 765395b95a188854935f5b7e899a16137c2b0e2f (diff) | |
download | pkgsrc-b29d443d04c1da351e7d743aacfd4bff3994006f.tar.gz |
Drop RUBYGEMS_REQD. Since all ruby*-base package contains enough version
of rubygems except ruby18-base.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/gem.mk | 51 |
1 files changed, 8 insertions, 43 deletions
diff --git a/lang/ruby/gem.mk b/lang/ruby/gem.mk index d20baac45c4..673737933e7 100644 --- a/lang/ruby/gem.mk +++ b/lang/ruby/gem.mk @@ -1,23 +1,10 @@ -# $NetBSD: gem.mk,v 1.33 2015/01/16 09:18:47 taca Exp $ +# $NetBSD: gem.mk,v 1.34 2015/01/25 16:09:16 taca Exp $ # # This Makefile fragment is intended to be included by packages that build # and install Ruby gems. # # Package-settable variables: # -# RUBYGEMS_REQD -# Minimum version of required rubygems. Ruby base packages contain: -# -# ruby18-base: none -# ruby193-base: 1.8.23 -# ruby200-base: 2.0.3 -# ruby210-base: 2.2.0 -# -# If newer version of rubygems is resuiqred, set RUBYGEMS_REQD to -# minimum version. -# -# Default: not defined -# # OVERRIDE_GEMSPEC # Fix version of depending gem or modify files in gemspec. # @@ -163,40 +150,22 @@ USE_RAKE?= YES # build tool. # -.if !empty(RUBY_GEMS_VERSION) +FIND_PREFIX+= RUBYGEM_PREFIX=${RUBY_BASE} +.include "../../mk/find-prefix.mk" +RUBYGEM= ${RUBYGEM_PREFIX}/bin/${RUBYGEM_NAME} + +RUBY_GEMS_VERSION?= ${RUBY_GEMS_PKGSRC_VERS} + _RUBYGEMS_MAJOR= ${RUBY_GEMS_VERSION:C/\.[0-9\.]+$//} _RUBYGEMS_MINORS= ${RUBY_GEMS_VERSION:C/^([0-9]+)\.*//} -.endif .if ${RUBY_VER} == "18" BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-rubygems>=1.1.0:../../misc/rubygems DEPENDS+= ${RUBY_PKGPREFIX}-rubygems>=1.0.1:../../misc/rubygems -.else # !ruby18 -. if defined(RUBYGEMS_REQD) - -_RUBYGEMS_REQD_MAJOR= ${RUBYGEMS_REQD:C/\.[0-9\.]+$//} -_RUBYGEMS_REQD_MINORS= ${RUBYGEMS_REQD:C/^([0-9]+)\.*//} - -_RUBYGEMS_REQD= NO - -. if ${_RUBYGEMS_REQD_MAJOR} > ${_RUBYGEMS_MAJOR} -_RUBYGEMS_REQD= YES -. elif ${_RUBYGEMS_REQD_MAJOR} == ${_RUBYGEMS_MAJOR} -. if !empty(_RUBYGEMS_MINORS) && ${_RUBYGEMS_REQD_MINORS} > ${_RUBYGEMS_MINORS} -_RUBYGEMS_REQD= YES -. endif -. endif - -. if empty(_RUBYGEMS_REQD:M[nN][oO]) -DEPENDS+= ${RUBY_PKGPREFIX}-rubygems>=${RUBYGEMS_REQD}:../../misc/rubygems -. endif -. endif .endif # !ruby18 -.if !empty(RUBY_GEMS_VERSION) .if ${_RUBYGEMS_MAJOR} >= 2 && ${_RUBYGEMS_MINORS} >= 2 -GEM_EXTSDIR= ${GEM_HOME}/extensions/${RUBY_ARCH}/${RUBY_VERSION}/${GEM_NAME} -.endif +GEM_EXTSDIR= ${GEM_HOME}/extensions/${RUBY_ARCH}/${RUBY_VER_DIR}/${GEM_NAME} .endif CATEGORIES+= ruby @@ -234,10 +203,6 @@ GEM_BUILDINFO_DIR= ${GEM_HOME}/build_info CHECK_INTERPRETER_SKIP+= ${GEM_LIBDIR}/* CHECK_PERMS_SKIP+= ${GEM_LIBDIR}/* -# RUBYGEM holds the path to RubyGems' gem command -EVAL_PREFIX+= RUBYGEM_PREFIX=${RUBYGEM_NAME} -RUBYGEM= ${RUBYGEM_PREFIX}/bin/${RUBYGEM_NAME} - # PLIST support PLIST_SUBST+= GEM_NAME=${GEM_NAME} PLIST_SUBST+= GEM_LIBDIR=${GEM_LIBDIR} |