pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby Prepare for the import of Ruby on Rails 4.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52b5270e7e40
branches:  trunk
changeset: 361036:52b5270e7e40
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Fri Apr 14 05:34:33 2017 +0000

description:
Prepare for the import of Ruby on Rails 4.2

diffstat:

 lang/ruby/rails.mk |  36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diffs (78 lines):

diff -r 74c8985f5768 -r 52b5270e7e40 lang/ruby/rails.mk
--- a/lang/ruby/rails.mk        Fri Apr 14 00:40:29 2017 +0000
+++ b/lang/ruby/rails.mk        Fri Apr 14 05:34:33 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rails.mk,v 1.55 2016/08/21 05:55:08 taca Exp $
+# $NetBSD: rails.mk,v 1.56 2017/04/14 05:34:33 minskim Exp $
 
 .if !defined(_RUBY_RAILS_MK)
 _RUBY_RAILS_MK=        # defined
@@ -39,6 +39,7 @@
 # current Ruby on Rails versions.
 #
 RUBY_RAILS32_VERSION?= 3.2.22.4
+RUBY_RAILS42_VERSION?= 4.2.8
 
 RUBY_RAILS_SUPPORTED?= # defined
 RUBY_RAILS_DEFAULT?=   32
@@ -64,7 +65,11 @@
 . endif
 .endif
 
+.if ${RUBY_RAILS} == "42"
+RUBY_RAILS_VERSION:=   ${RUBY_RAILS42_VERSION}
+.else
 RUBY_RAILS_VERSION:=   ${RUBY_RAILS32_VERSION}
+.endif
 
 #
 # Components of Ruby's version.
@@ -96,6 +101,7 @@
 
 RUBY_ACTIVESUPPORT?=   ${RUBY_RAILS_VERSION}
 RUBY_ACTIONPACK?=      ${RUBY_RAILS_VERSION}
+RUBY_ACTIONVIEW?=      ${RUBY_RAILS_VERSION}
 RUBY_ACTIVERECORD?=    ${RUBY_RAILS_VERSION}
 RUBY_ACTIVERESOURCE?=  ${RUBY_RAILS_VERSION}
 RUBY_ACTIONMAILER?=    ${RUBY_RAILS_VERSION}
@@ -110,6 +116,33 @@
 RUBY_RAILS32_RAILTIES=         ../../devel/ruby-railties32
 RUBY_RAILS32_RAILS=            ../../www/ruby-rails32
 
+RUBY_RAILS42_ACTIVESUPPORT=    ../../devel/ruby-activesupport42
+RUBY_RAILS42_ACTIVEMODEL=      ../../devel/ruby-activemodel42
+RUBY_RAILS42_ACTIONPACK=       ../../www/ruby-actionpack42
+RUBY_RAILS42_ACTIVERECORD=     ../../databases/ruby-activerecord42
+RUBY_RAILS42_ACTIONMAILER=     ../../mail/ruby-actionmailer42
+RUBY_RAILS42_RAILTIES=         ../../devel/ruby-railties42
+RUBY_RAILS42_RAILS=            ../../www/ruby-rails42
+RUBY_RAILS42_ACTIONVIEW=       ../../www/ruby-actionview42
+
+.if ${RUBY_RAILS} == "42"
+RUBY_ACTIVESUPPORT_DEPENDS= \
+       ${RUBY_PKGPREFIX}-activesupport${_RAILS_DEP}:${RUBY_RAILS42_ACTIVESUPPORT}
+RUBY_ACTIVEMODEL_DEPENDS= \
+       ${RUBY_PKGPREFIX}-activemodel${_RAILS_DEP}:${RUBY_RAILS42_ACTIVEMODEL}
+RUBY_ACTIONPACK_DEPENDS= \
+       ${RUBY_PKGPREFIX}-actionpack${_RAILS_DEP}:${RUBY_RAILS42_ACTIONPACK}
+RUBY_ACTIONVIEW_DEPENDS= \
+       ${RUBY_PKGPREFIX}-actionview${_RAILS_DEP}:${RUBY_RAILS42_ACTIONVIEW}
+RUBY_ACTIVERECORD_DEPENDS= \
+       ${RUBY_PKGPREFIX}-activerecord${_RAILS_DEP}:${RUBY_RAILS42_ACTIVERECORD}
+RUBY_ACTIONMAILER_DEPENDS= \
+       ${RUBY_PKGPREFIX}-actionmailer${_RAILS_DEP}:${RUBY_RAILS42_ACTIONMAILER}
+RUBY_RAILTIES_DEPENDS= \
+       ${RUBY_PKGPREFIX}-railties${_RAILS_DEP}:${RUBY_RAILS42_RAILTIES}
+RUBY_RAILS_DEPENDS= \
+       ${RUBY_PKGPREFIX}-rails${_RAILS_DEP}:${RUBY_RAILS42_RAILS}
+.else
 RUBY_ACTIVESUPPORT_DEPENDS= \
        ${RUBY_PKGPREFIX}-activesupport${_RAILS_DEP}:${RUBY_RAILS32_ACTIVESUPPORT}
 RUBY_ACTIVEMODEL_DEPENDS= \
@@ -126,5 +159,6 @@
        ${RUBY_PKGPREFIX}-railties${_RAILS_DEP}:${RUBY_RAILS32_RAILTIES}
 RUBY_RAILS_DEPENDS= \
        ${RUBY_PKGPREFIX}-rails${_RAILS_DEP}:${RUBY_RAILS32_RAILS}
+.endif
 
 .endif



Home | Main Index | Thread Index | Old Index