diff options
author | swills <swills@FreeBSD.org> | 2011-07-27 08:45:13 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2011-07-27 08:45:13 +0800 |
commit | 56797e50ee7ffb7d8c124e04cdecbd7925503e22 (patch) | |
tree | 78b1797b37f521ea0d5b4a0288243316e6c9e9d1 /mail/quickml | |
parent | 279d39883cca49fefbef1662a7ec428beb3dc76d (diff) | |
download | freebsd-ports-gnome-56797e50ee7ffb7d8c124e04cdecbd7925503e22.tar.gz freebsd-ports-gnome-56797e50ee7ffb7d8c124e04cdecbd7925503e22.tar.zst freebsd-ports-gnome-56797e50ee7ffb7d8c124e04cdecbd7925503e22.zip |
- Fix build with Ruby 1.9
With hat: ruby@
Diffstat (limited to 'mail/quickml')
-rw-r--r-- | mail/quickml/Makefile | 4 | ||||
-rw-r--r-- | mail/quickml/files/extra-patch-ruby19-Makefile.in | 11 |
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' \ |