diff options
-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 + |