pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mail/quickml support for ruby 1.9



oh...
( The wrong destination of the mail... )

2012/7/22 OBATA Akio <obache%netbsd.org@localhost>:
> On Fri, 20 Jul 2012 22:59:43 +0900, 三輪晋( Miwa Susumu ) 
> <miwarin%gmail.com@localhost>
> wrote:
>
>> +post-patch:
>> +.      if ${RUBY_VER} == "19" || ${RUBY_VER} == "192" || ${RUBY_VER} ==
>> "193"
>> +               cd ${WRKSRC}; \
>> +               ${PATCH} < ${PATCHDIR}/extra-patch-ruby19-Makefile.in
>> +.      endif
>> +
>
> How about set following conditionally instead of the patch?
>
> MAKE_ENV+=      RUBYOPT="-E Shift_JIS:UTF-16LE"

good.
I had to do the following.


% cd /usr/pkgsrc/mail/quickml/

% diff -u Makefile.orig Makefile
--- Makefile.orig       2012-07-23 19:31:58.000000000 +0900
+++ Makefile    2012-07-23 20:06:31.000000000 +0900
@@ -16,8 +16,6 @@
 USE_LANGUAGES= # none
 RCD_SCRIPTS+=  quickml

-# Dose not care for Ruby 1.9's character encoding for now.
-RUBY_VERSION_SUPPORTED= 18

 QUICKML_USER=  quickml
 QUICKML_GROUP= quickml
@@ -49,6 +47,11 @@

 INSTALLATION_DIRS+=    ${QUICKML_DATA_DIR}

+.if ${RUBY_VER} == "19" || ${RUBY_VER} == "192" || ${RUBY_VER} == "193"
+        MAKE_ENV+=      RUBYOPT="-E Shift_JIS:UTF-16LE"
+.endif
+
+
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/messages.ja ${DESTDIR}${QUICKML_DATA_DIR}

-- 
miwarin


Home | Main Index | Thread Index | Old Index