summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2011-09-07 07:49:43 +0000
committerStanislav Sedov <stas@FreeBSD.org>2011-09-07 07:49:43 +0000
commit847e2e652580231059e2782bf2001f54e6ea611e (patch)
tree6991007d538e5045f9417418f96e69943dd5c7ee
parent- Update to 0.5 (diff)
- Unbreak with recent version of rubygems. This library uses method deprecated
in the new version of rubygems which prevented it from working.
Notes
Notes: svn path=/head/; revision=281357
-rw-r--r--devel/rubygem-gettext/Makefile7
-rw-r--r--devel/rubygem-gettext/files/extra::patch-lib_gettext_runtime_locale_path.rb12
2 files changed, 18 insertions, 1 deletions
diff --git a/devel/rubygem-gettext/Makefile b/devel/rubygem-gettext/Makefile
index 82d4095f78a2..7e769c6cc9b6 100644
--- a/devel/rubygem-gettext/Makefile
+++ b/devel/rubygem-gettext/Makefile
@@ -7,7 +7,7 @@
PORTNAME= gettext
PORTVERSION= 2.1.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel rubygems
MASTER_SITES= RG
@@ -21,4 +21,9 @@ USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes
PLIST_FILES= bin/rgettext bin/rmsgfmt bin/rmsgmerge
+post-install:
+ @(cd ${PREFIX}/${GEM_LIB_DIR} && \
+ ${PATCH} -s -f -p0 < ${PATCHDIR}/extra::patch-lib_gettext_runtime_locale_path.rb && \
+ ${RM} lib/gettext/runtime/locale_path.rb.orig)
+
.include <bsd.port.mk>
diff --git a/devel/rubygem-gettext/files/extra::patch-lib_gettext_runtime_locale_path.rb b/devel/rubygem-gettext/files/extra::patch-lib_gettext_runtime_locale_path.rb
new file mode 100644
index 000000000000..34cfbf135d6d
--- /dev/null
+++ b/devel/rubygem-gettext/files/extra::patch-lib_gettext_runtime_locale_path.rb
@@ -0,0 +1,12 @@
+--- lib/gettext/runtime/locale_path.rb.orig 2011-09-07 00:13:32.000000000 -0700
++++ lib/gettext/runtime/locale_path.rb 2011-09-07 00:13:46.000000000 -0700
+@@ -52,9 +52,6 @@
+ default_path_rules += DEFAULT_RULES
+
+ load_path = $LOAD_PATH
+- if defined? ::Gem
+- load_path += Gem.all_load_paths
+- end
+ load_path.map!{|v| v.match(/(.*?)(\/lib)*?$/); $1}
+ load_path.each {|path|
+ default_path_rules += [