mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Unbreak with recent version of rubygems. This library uses method deprecated
in the new version of rubygems which prevented it from working.
This commit is contained in:
parent
1e646abb8c
commit
847e2e6525
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281357
@ -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>
|
||||
|
@ -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 += [
|
Loading…
Reference in New Issue
Block a user