diff options
author | Bernhard Froehlich <decke@FreeBSD.org> | 2011-02-27 09:39:00 +0000 |
---|---|---|
committer | Bernhard Froehlich <decke@FreeBSD.org> | 2011-02-27 09:39:00 +0000 |
commit | 7545aeef1513c14e117a5dac7dca800b67e3de63 (patch) | |
tree | 6ad9ed8c0ce97e1b6fcd42bec058ebd7fdbad213 | |
parent | - Update to 0.55.0 (diff) |
- Fix with ruby-gems 1.5.x
- Bump PORTREVISION
Reported by: Armin Pirkovitsch <armin at frozen-zone dot org>
Obtained from: http://www.redmine.org/issues/7516
Notes
Notes:
svn path=/head/; revision=269880
-rw-r--r-- | www/redmine/Makefile | 1 | ||||
-rw-r--r-- | www/redmine/files/patch-config-environment.rb | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/www/redmine/Makefile b/www/redmine/Makefile index 4689500381cc..10b7ab1286d1 100644 --- a/www/redmine/Makefile +++ b/www/redmine/Makefile @@ -7,6 +7,7 @@ PORTNAME= redmine PORTVERSION= 1.1.1 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_RUBYFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/www/redmine/files/patch-config-environment.rb b/www/redmine/files/patch-config-environment.rb new file mode 100644 index 000000000000..09a11fe8761b --- /dev/null +++ b/www/redmine/files/patch-config-environment.rb @@ -0,0 +1,22 @@ +--- config/environment.rb.orig 2011-01-28 03:25:48.000000000 +0100 ++++ config/environment.rb 2011-02-26 21:20:07.000000000 +0100 +@@ -17,6 +17,19 @@ + # Not available + end + ++# Workaround for RubyGems 1.5.0 ++# http://www.redmine.org/issues/7516 ++if Gem::VERSION >= "1.3.6" ++ module Rails ++ class GemDependency ++ def requirement ++ r = super ++ (r == Gem::Requirement.default) ? nil : r ++ end ++ end ++ end ++end ++ + Rails::Initializer.run do |config| + # Settings in config/environments/* take precedence those specified here + |