pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ruby



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed Mar 21 09:15:04 UTC 2018

Modified Files:
        pkgsrc/lang/ruby: rails.mk

Log Message:
lang/ruby: Honor RUBY_RAILS_DEFAULT

Honor RUBY_RAILS_DEFAULT and set RUBY_RAILS_REQD in environment.


To generate a diff of this commit:
cvs rdiff -u -r1.64 -r1.65 pkgsrc/lang/ruby/rails.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ruby/rails.mk
diff -u pkgsrc/lang/ruby/rails.mk:1.64 pkgsrc/lang/ruby/rails.mk:1.65
--- pkgsrc/lang/ruby/rails.mk:1.64      Wed Mar 21 03:40:21 2018
+++ pkgsrc/lang/ruby/rails.mk   Wed Mar 21 09:15:04 2018
@@ -1,4 +1,4 @@
-# $NetBSD: rails.mk,v 1.64 2018/03/21 03:40:21 taca Exp $
+# $NetBSD: rails.mk,v 1.65 2018/03/21 09:15:04 taca Exp $
 
 .if !defined(_RUBY_RAILS_MK)
 _RUBY_RAILS_MK=        # defined
@@ -78,7 +78,11 @@ RUBY_RAILS=  ${rr}
 
 .if !defined(RUBY_RAILS)
 .  for rr in ${RUBY_RAILS_ACCEPTED}
+.    if ${rr} == ${RUBY_RAILS_DEFAULT}
+RUBY_RAILS=    ${rr}
+.    else
 RUBY_RAILS?=   ${rr}
+.    endif
 .  endfor
 .endif
 
@@ -113,10 +117,12 @@ _RAILS_DEP=       ${RUBY_RAILS}>=${RAILS_VERSI
 
 #
 MAKE_ENV+=     RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
-               RUBY_RAILS_ACCEPTED=${RUBY_RAILS}
+               RUBY_RAILS_ACCEPTED=${RUBY_RAILS} \
+               RUBY_RAILS_REQD=${RUBY_RAILS}
 #
-MULTI+=                        RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
-                       RUBY_RAILS_ACCEPTED=${RUBY_RAILS}
+MULTI+=                RUBY_RAILS_DEFAULT=${RUBY_RAILS} \
+               RUBY_RAILS_ACCEPTED=${RUBY_RAILS}  \
+               RUBY_RAILS_REQD=${RUBY_RAILS}
 
 RUBY_ACTIVESUPPORT_DEPENDS= \
        ${RUBY_PKGPREFIX}-activesupport${_RAILS_DEP}:../../devel/ruby-activesupport${RUBY_RAILS}



Home | Main Index | Thread Index | Old Index