pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby lang/ruby: add Ruby on Rails 5.1.5 support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0141c49c204
branches:  trunk
changeset: 377633:c0141c49c204
user:      taca <taca%pkgsrc.org@localhost>
date:      Wed Mar 21 09:32:48 2018 +0000

description:
lang/ruby: add Ruby on Rails 5.1.5 support

diffstat:

 lang/ruby/rails.mk |  31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diffs (105 lines):

diff -r 64c2f9f6bca8 -r c0141c49c204 lang/ruby/rails.mk
--- a/lang/ruby/rails.mk        Wed Mar 21 09:23:06 2018 +0000
+++ b/lang/ruby/rails.mk        Wed Mar 21 09:32:48 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rails.mk,v 1.65 2018/03/21 09:15:04 taca Exp $
+# $NetBSD: rails.mk,v 1.66 2018/03/21 09:32:48 taca Exp $
 
 .if !defined(_RUBY_RAILS_MK)
 _RUBY_RAILS_MK=        # defined
@@ -9,7 +9,7 @@
 # RUBY_RAILS_DEFAULT
 #      Select default Ruby on Rails version.
 #
-#      Possible values: 32 42
+#      Possible values: 32 42 51
 #      Default: 32
 #
 #
@@ -27,7 +27,7 @@
 # RUBY_RAILS_ACCEPTED
 #      The Ruby on Rails versions that are acceptable for the package.
 #
-#      Possible values: 32 42
+#      Possible values: 32 42 51
 #      Default: (empty)
 #
 # RUBY_RAILS_STRICT_DEP
@@ -41,7 +41,7 @@
 # RUBY_RAILS
 #      Selected Ruby on Rails version.
 #
-#      Possible values: 32 42
+#      Possible values: 32 42 51
 #
 
 #
@@ -49,13 +49,14 @@
 #
 RUBY_RAILS32_VERSION?= 3.2.22.5
 RUBY_RAILS42_VERSION?= 4.2.10
+RUBY_RAILS51_VERSION?= 5.1.5
 
 RUBY_RAILS_ACCEPTED?=  # defined
 RUBY_RAILS_DEFAULT?=   32
 
 RUBY_RAILS_STRICT_DEP?=        no
 
-RUBY_RAILS_SUPPORTED=  32 42
+RUBY_RAILS_SUPPORTED=  32 42 51
 
 .if empty(RUBY_RAILS_SUPPORTED:M${RUBY_RAILS_DEFAULT})
 .error Unsupported RUBY_RAILS_DEFAULT: ${RUBY_RAILS_DEFAULT}
@@ -88,7 +89,9 @@
 
 RUBY_RAILS?=   ${RUBY_RAILS_SUPPORTED}
 
-.if ${RUBY_RAILS} == "42"
+.if ${RUBY_RAILS} == "51"
+RAILS_VERSION:=        ${RUBY_RAILS51_VERSION}
+.elif ${RUBY_RAILS} == "42"
 RAILS_VERSION:=        ${RUBY_RAILS42_VERSION}
 .else
 RAILS_VERSION:=        ${RUBY_RAILS32_VERSION}
@@ -117,19 +120,19 @@
 
 #
 MAKE_ENV+=     RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
-               RUBY_RAILS_ACCEPTED=${RUBY_RAILS} \
-               RUBY_RAILS_REQD=${RUBY_RAILS}
+               RUBY_RAILS_ACCEPTED=${RUBY_RAILS}
 #
-MULTI+=                RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
-               RUBY_RAILS_ACCEPTED=${RUBY_RAILS}  \
-               RUBY_RAILS_REQD=${RUBY_RAILS}
+MULTI+=                        RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
+                       RUBY_RAILS_ACCEPTED=${RUBY_RAILS}
 
 RUBY_ACTIVESUPPORT_DEPENDS= \
        ${RUBY_PKGPREFIX}-activesupport${_RAILS_DEP}:../../devel/ruby-activesupport${RUBY_RAILS}
 RUBY_ACTIVEMODEL_DEPENDS= \
        ${RUBY_PKGPREFIX}-activemodel${_RAILS_DEP}:../../devel/ruby-activemodel${RUBY_RAILS}
+.if ${RUBY_RAILS} != "51"
 RUBY_ACTIONPACK_DEPENDS= \
        ${RUBY_PKGPREFIX}-actionpack${_RAILS_DEP}:../../www/ruby-actionpack${RUBY_RAILS}
+.endif
 RUBY_ACTIVERECORD_DEPENDS= \
        ${RUBY_PKGPREFIX}-activerecord${_RAILS_DEP}:../../databases/ruby-activerecord${RUBY_RAILS}
 RUBY_ACTIONMAILER_DEPENDS= \
@@ -142,11 +145,15 @@
 .if ${RUBY_RAILS} == "32"
 RUBY_ACTIVERESOURCE_DEPENDS= \
        ${RUBY_PKGPREFIX}-activeresource${_RAILS_DEP}:../../www/ruby-activeresource${RUBY_RAILS}
-.elif ${RUBY_RAILS} == "42"
+.elif ${RUBY_RAILS} == "42" || ${RUBY_RAILS} == "51"
 RUBY_ACTIONVIEW_DEPENDS= \
        ${RUBY_PKGPREFIX}-actionview${_RAILS_DEP}:../../www/ruby-actionview${RUBY_RAILS}
 RUBY_ACTIVEJOB_DEPENDS= \
        ${RUBY_PKGPREFIX}-activejob${_RAILS_DEP}:../../devel/ruby-activejob${RUBY_RAILS}
 .endif
+.if ${RUBY_RAILS} == "51"
+RUBY_ACTIONCABLE_DEPENDS= \
+       ${RUBY_PKGPREFIX}-actioncable${_RAILS_DEP}:../../www/ruby-actioncable${RUBY_RAILS}
+.endif
 
 .endif



Home | Main Index | Thread Index | Old Index