diff options
author | taca <taca@pkgsrc.org> | 2011-11-08 15:19:55 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-11-08 15:19:55 +0000 |
commit | c909dd917f00f7fa2177480aee0f7fa5c162289d (patch) | |
tree | 310b73519785268cdbe7b321a4fd5d047d9bbde7 /lang/ruby | |
parent | 356906d0625f93d4bb7ca5fb27c12874c91b10d6 (diff) | |
download | pkgsrc-c909dd917f00f7fa2177480aee0f7fa5c162289d.tar.gz |
* Add LICENSE for Ruby 1.9.3.
* Add RUBY_DISTNAME to MESSAGE_SUBST.
* Move RUBY_SITE_SUBDIR from rubyversion.mk
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/Makefile.common | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/lang/ruby/Makefile.common b/lang/ruby/Makefile.common index 2d4ca923aa2..226d9020767 100644 --- a/lang/ruby/Makefile.common +++ b/lang/ruby/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.21 2011/10/20 15:13:24 taca Exp $ +# $NetBSD: Makefile.common,v 1.22 2011/11/08 15:19:55 taca Exp $ # # Ruby base distribution common definition # used by databases/ruby-gdbm/Makefile @@ -13,11 +13,18 @@ # used by textproc/ruby-psych/Makefile # used by x11/ruby-tk/Makefile -LICENSE= gnu-gpl-v2 +# Ruby's license +.if ${RUBY_VER} == "18" || ${RUBY_VER} == "19" +LICENSE= gnu-gpl-v2 OR ruby-license +.else +LICENSE= 2-clause-bsd OR ruby-license +.endif # # Ruby distribution sites. # +RUBY_SITE_SUBDIR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR} + MASTER_SITE_RUBY?= \ ftp://ftp.ruby-lang.org/pub/ruby/${RUBY_SITE_SUBDIR}/ \ ftp://www.ibiblio.org/pub/languages/ruby/${RUBY_SITE_SUBDIR}/ \ @@ -39,20 +46,22 @@ RUBY_DISTINFO_FILE= ${RUBY_SRCDIR}/distinfo RUBY_HOMEPAGE= http://www.ruby-lang.org/en/ # common default -_RUBY_PATCH_LEVEL= ${RUBY_PATCH_LEVEL:S/pl/p/:S/pre/preview/} +_RUBY_PATCHLEVEL= ${RUBY_PATCHLEVEL:S/pl/p/:S/pre/preview/} -.if !empty(_RUBY_PATCH_LEVEL) -RUBY_DISTNAME?= ruby-${RUBY_VERSION}-${_RUBY_PATCH_LEVEL} +.if !empty(_RUBY_PATCHLEVEL) +RUBY_DISTNAME?= ruby-${RUBY_VERSION}-${_RUBY_PATCHLEVEL} .else RUBY_DISTNAME?= ruby-${RUBY_VERSION} .endif + RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME} EXTRACT_SUFX= .tar.bz2 STRIP?= strip # -# PLIST substitution +# substitutions # +MESSAGE_SUBST+= RUBY_DISTNAME=${RUBY_DISTNAME} PLIST_SUBST+= RUBY_SHLIBVER=${RUBY_SHLIBVER:Q} \ RUBY_SHLIBMAJOR=${RUBY_SHLIBMAJOR:Q} \ RUBY_NOSHLIBMAJOR=${RUBY_NOSHLIBMAJOR} \ |