aboutsummaryrefslogtreecommitdiff
path: root/mail/quickml
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-07-27 00:45:13 +0000
committerSteve Wills <swills@FreeBSD.org>2011-07-27 00:45:13 +0000
commit985a32c3746518da7e684043c5556bf0c60fb06f (patch)
treee918592c7090b9f12ae3c8925cc2f2f2f19b2724 /mail/quickml
parent1c314aea117e29558d514f2c997c22a67cca51da (diff)
downloadports-985a32c3746518da7e684043c5556bf0c60fb06f.tar.gz
ports-985a32c3746518da7e684043c5556bf0c60fb06f.zip
Notes
Diffstat (limited to 'mail/quickml')
-rw-r--r--mail/quickml/Makefile4
-rw-r--r--mail/quickml/files/extra-patch-ruby19-Makefile.in11
2 files changed, 15 insertions, 0 deletions
diff --git a/mail/quickml/Makefile b/mail/quickml/Makefile
index ee1f604ef05b..6559d33673a5 100644
--- a/mail/quickml/Makefile
+++ b/mail/quickml/Makefile
@@ -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
diff --git a/mail/quickml/files/extra-patch-ruby19-Makefile.in b/mail/quickml/files/extra-patch-ruby19-Makefile.in
new file mode 100644
index 000000000000..ea1580b554ca
--- /dev/null
+++ b/mail/quickml/files/extra-patch-ruby19-Makefile.in
@@ -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' \