1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Fix build with Ruby 1.9

With hat:	ruby@
This commit is contained in:
Steve Wills 2011-07-27 00:45:13 +00:00
parent 1c314aea11
commit 985a32c374
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=278389
2 changed files with 15 additions and 0 deletions

View File

@ -36,6 +36,10 @@ CONFIGURE_ARGS+= --with-rubydir="${RUBY_LIBDIR}"
.include <bsd.port.pre.mk>
.if ${RUBY_VER} == 1.9
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-ruby19-Makefile.in
.endif
.if !defined(WITHOUT_LIMIT)
PATCH_DIST_STRIP= -p1
.endif

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig 2004-06-07 10:21:36.000000000 +0000
+++ Makefile.in 2011-07-26 21:48:59.000000000 +0000
@@ -605,7 +605,7 @@
quickml: quickml.in
for i in $(MESSAGES); do\
- $(RUBY) lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
+ $(RUBY) -E Shift_JIS:UTF-16LE lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
done
rm -f quickml
sed -e 's!%RUBY%!$(RUBY)!g' \