pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel * Update ruby-railties32 and ruby-railties42 pac...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8dea227a6582
branches: trunk
changeset: 364136:8dea227a6582
user: taca <taca%pkgsrc.org@localhost>
date: Wed Jun 21 13:13:48 2017 +0000
description:
* Update ruby-railties32 and ruby-railties42 package to updated rails
framework.
* Add support of pkg_alternatives to coexist of ruby-rails32 and
ruby-rails42.
diffstat:
devel/ruby-railties32/ALTERNATIVES | 1 +
devel/ruby-railties32/Makefile | 15 +++++++++++----
devel/ruby-railties32/PLIST | 6 +++---
devel/ruby-railties42/ALTERNATIVES | 1 +
devel/ruby-railties42/Makefile | 16 ++++++++++++----
devel/ruby-railties42/PLIST | 6 +++---
6 files changed, 31 insertions(+), 14 deletions(-)
diffs (104 lines):
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties32/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-railties32/ALTERNATIVES Wed Jun 21 13:13:48 2017 +0000
@@ -0,0 +1,1 @@
+bin/rails @PREFIX@/bin/rails32@RUBY_SUFFIX@
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties32/Makefile
--- a/devel/ruby-railties32/Makefile Wed Jun 21 13:12:20 2017 +0000
+++ b/devel/ruby-railties32/Makefile Wed Jun 21 13:13:48 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.12 2016/11/19 14:38:03 taca Exp $
+# $NetBSD: Makefile,v 1.13 2017/06/21 13:13:48 taca Exp $
-DISTNAME= railties-${RUBY_RAILS_VERSION}
+DISTNAME= railties-${RAILS_VERSION}
+PKGNAME= ${RUBY_PKGPREFIX}-railties${RUBY_RAILS}-${RAILS_VERSION}
CATEGORIES= databases
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
@@ -16,8 +17,14 @@
RUBY_RAILS_SUPPORTED= 32
RUBY_RAILS_STRICT_DEP= yes
-USE_RAKE= RUN
-OVERRIDE_GEMSPEC+= rack-ssl>=1.3.2 rdoc>=3.4
+RUBYGEM_OPTIONS+= --format-executable
+OVERRIDE_GEMSPEC+= rack-ssl>=1.3.2 rdoc>=3.4 \
+ :executables rails=rails32 :files bin/rails=bin/rails32
+
+pre-configure:
+ ${TEST} ! -f ${WRKSRC}/bin/rails || \
+ ${MV} ${WRKSRC}/bin/rails ${WRKSRC}/bin/rails32
+ ${CHMOD} ${BINMODE} ${WRKSRC}/bin/rails32
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties32/PLIST
--- a/devel/ruby-railties32/PLIST Wed Jun 21 13:12:20 2017 +0000
+++ b/devel/ruby-railties32/PLIST Wed Jun 21 13:13:48 2017 +0000
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.5 2013/09/11 13:38:19 taca Exp $
-bin/rails
+@comment $NetBSD: PLIST,v 1.6 2017/06/21 13:13:48 taca Exp $
+bin/rails32${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG.md
${GEM_LIBDIR}/README.rdoc
-${GEM_LIBDIR}/bin/rails
+${GEM_LIBDIR}/bin/rails32
${GEM_LIBDIR}/guides/assets/images/belongs_to.png
${GEM_LIBDIR}/guides/assets/images/book_icon.gif
${GEM_LIBDIR}/guides/assets/images/bullet.gif
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties42/ALTERNATIVES
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-railties42/ALTERNATIVES Wed Jun 21 13:13:48 2017 +0000
@@ -0,0 +1,1 @@
+bin/rails @PREFIX@/bin/rails42@RUBY_SUFFIX@
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties42/Makefile
--- a/devel/ruby-railties42/Makefile Wed Jun 21 13:12:20 2017 +0000
+++ b/devel/ruby-railties42/Makefile Wed Jun 21 13:13:48 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2017/05/04 07:37:09 taca Exp $
+# $NetBSD: Makefile,v 1.3 2017/06/21 13:13:48 taca Exp $
-DISTNAME= railties-${RUBY_RAILS_VERSION}
+DISTNAME= railties-${RAILS_VERSION}
+PKGNAME= ${RUBY_PKGPREFIX}-railties${RUBY_RAILS}-${RAILS_VERSION}
CATEGORIES= databases
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
@@ -14,8 +15,15 @@
RUBY_RAILS_SUPPORTED= 42
RUBY_RAILS_STRICT_DEP= yes
-USE_RAKE= RUN
-OVERRIDE_GEMSPEC+= rack-ssl>=1.3.2 rdoc>=3.4
+RUBYGEM_OPTIONS+= --format-executable
+RUBYGEM_OPTIONS+= --format-executable
+OVERRIDE_GEMSPEC+= rack-ssl>=1.3.2 rdoc>=3.4 \
+ :executables rails=rails42 :files bin/rails=bin/rails42
+
+pre-configure:
+ ${TEST} ! -f ${WRKSRC}/bin/rails || \
+ ${MV} ${WRKSRC}/bin/rails ${WRKSRC}/bin/rails42
+ ${CHMOD} ${BINMODE} ${WRKSRC}/bin/rails42
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 0b49562a8445 -r 8dea227a6582 devel/ruby-railties42/PLIST
--- a/devel/ruby-railties42/PLIST Wed Jun 21 13:12:20 2017 +0000
+++ b/devel/ruby-railties42/PLIST Wed Jun 21 13:13:48 2017 +0000
@@ -1,10 +1,10 @@
-@comment $NetBSD: PLIST,v 1.1 2017/04/22 10:17:30 minskim Exp $
-bin/rails
+@comment $NetBSD: PLIST,v 1.2 2017/06/21 13:13:48 taca Exp $
+bin/rails42${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/CHANGELOG.md
${GEM_LIBDIR}/RDOC_MAIN.rdoc
${GEM_LIBDIR}/README.rdoc
-${GEM_LIBDIR}/bin/rails
+${GEM_LIBDIR}/bin/rails42
${GEM_LIBDIR}/lib/rails.rb
${GEM_LIBDIR}/lib/rails/all.rb
${GEM_LIBDIR}/lib/rails/api/task.rb
Home |
Main Index |
Thread Index |
Old Index