pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/quickml Add ruby 1.9 support (and drop 1.8 support).



details:   https://anonhg.NetBSD.org/pkgsrc/rev/187ce7f3fa05
branches:  trunk
changeset: 607404:187ce7f3fa05
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Aug 11 13:51:20 2012 +0000

description:
Add ruby 1.9 support (and drop 1.8 support).
PR 46764 by Miwa Susumu.

diffstat:

 mail/quickml/Makefile                             |   5 +-
 mail/quickml/distinfo                             |  13 +++++-
 mail/quickml/patches/patch-Makefile.in            |  16 ++++++-
 mail/quickml/patches/patch-lib_quickml_config.rb  |  15 ++++++++
 mail/quickml/patches/patch-lib_quickml_core.rb    |  19 ++++++++++
 mail/quickml/patches/patch-lib_quickml_gettext.rb |  11 +++++
 mail/quickml/patches/patch-lib_quickml_mail.rb    |  11 +++++
 mail/quickml/patches/patch-lib_quickml_utils.rb   |  24 ++++++++++++
 mail/quickml/patches/patch-messages.ja            |  11 +++++
 mail/quickml/patches/patch-quickml-analog.in      |  43 ++++++++--------------
 mail/quickml/patches/patch-quickml.in             |  20 ++++++++++
 11 files changed, 151 insertions(+), 37 deletions(-)

diffs (277 lines):

diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/Makefile
--- a/mail/quickml/Makefile     Sat Aug 11 13:38:50 2012 +0000
+++ b/mail/quickml/Makefile     Sat Aug 11 13:51:20 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2011/10/03 03:42:58 taca Exp $
+# $NetBSD: Makefile,v 1.4 2012/08/11 13:51:20 obache Exp $
 #
 
 DISTNAME=      quickml-0.7
@@ -16,8 +16,7 @@
 USE_LANGUAGES= # none
 RCD_SCRIPTS+=  quickml
 
-# Dose not care for Ruby 1.9's character encoding for now.
-RUBY_VERSION_SUPPORTED= 18
+RUBY_VERSION_SUPPORTED= 192 193
 
 QUICKML_USER=  quickml
 QUICKML_GROUP= quickml
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/distinfo
--- a/mail/quickml/distinfo     Sat Aug 11 13:38:50 2012 +0000
+++ b/mail/quickml/distinfo     Sat Aug 11 13:51:20 2012 +0000
@@ -1,7 +1,14 @@
-$NetBSD: distinfo,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $
+$NetBSD: distinfo,v 1.2 2012/08/11 13:51:20 obache Exp $
 
 SHA1 (quickml-0.7.tar.gz) = 7122a100840d16762e101e62993752401e95e5bb
 RMD160 (quickml-0.7.tar.gz) = bc34b93676eb342a450bc1a2d3b92d7a06603872
 Size (quickml-0.7.tar.gz) = 94147 bytes
-SHA1 (patch-Makefile.in) = e451853e4c0542a948b9772f308fa5087e994a3c
-SHA1 (patch-quickml-analog.in) = 83f385a9eb84ace4dbb0b1d0527caad3810c6efa
+SHA1 (patch-Makefile.in) = d1c73befff63dac3f76dad27d70460527f2a1e2a
+SHA1 (patch-lib_quickml_config.rb) = f47e92e2cd2c89c2d400cca8813c5a82466cec18
+SHA1 (patch-lib_quickml_core.rb) = 21cb461fb98ca369934e05941be009ca82bcd73b
+SHA1 (patch-lib_quickml_gettext.rb) = 47f693fb71830781e28dac0e318da03c0caf684b
+SHA1 (patch-lib_quickml_mail.rb) = b80ea8007b73a7e2b736a08392f5e2153356c6b3
+SHA1 (patch-lib_quickml_utils.rb) = 1cb00ffacb3045504b1af59113a5a93327b0bad7
+SHA1 (patch-messages.ja) = bf82d499b0498844fcdd1371e240870d5c1a17f0
+SHA1 (patch-quickml-analog.in) = 834d549051bad5495cac7677eb56f4c0c0f38f2e
+SHA1 (patch-quickml.in) = cab3c2b7d4357f4b3870819cbde21faa1fd39944
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-Makefile.in
--- a/mail/quickml/patches/patch-Makefile.in    Sat Aug 11 13:38:50 2012 +0000
+++ b/mail/quickml/patches/patch-Makefile.in    Sat Aug 11 13:51:20 2012 +0000
@@ -1,10 +1,20 @@
-$NetBSD: patch-Makefile.in,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $
+$NetBSD: patch-Makefile.in,v 1.2 2012/08/11 13:51:20 obache Exp $
 
-(1) fix copy&paste&modify error?
-(2) $(quickmlstatedir) will be handled by pkgsrc framework.
+(1) exactly specify KANJI code for ruby-1.9
+(2) fix copy&paste&modify error?
+(3) $(quickmlstatedir) will be handled by pkgsrc framework.
 
 --- Makefile.in.orig   2004-06-07 10:21:36.000000000 +0000
 +++ Makefile.in
+@@ -605,7 +605,7 @@ uninstall-info: uninstall-info-recursive
+ 
+ quickml: quickml.in
+       for i in $(MESSAGES); do\
+-        $(RUBY) lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
++        $(RUBY) -Ke lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
+       done
+       rm -f quickml
+       sed -e 's!%RUBY%!$(RUBY)!g' \
 @@ -626,7 +626,7 @@ quickml-ctl: quickml-ctl.in Makefile
                -e 's!%PIDFILE%!$(PIDFILE)!g' \
                quickml-ctl.in > quickml-ctl
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-lib_quickml_config.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-lib_quickml_config.rb  Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-lib_quickml_config.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* for ruby-1.9
+
+--- lib/quickml/config.rb.orig 2004-06-07 08:50:59.000000000 +0000
++++ lib/quickml/config.rb
+@@ -62,7 +62,7 @@ module QuickML
+       @confirm_ml_creation = (config[:confirm_ml_creation] or false)
+ 
+       instance_variables.each {|name|
+-      self.class.class_eval { attr_reader name.delete('@') }
++      self.class.class_eval { attr_reader name.to_s.delete('@') }
+       }
+     end
+ 
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-lib_quickml_core.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-lib_quickml_core.rb    Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-lib_quickml_core.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* specify character coding system with ruby-1.9 way
+
+--- lib/quickml/core.rb.orig   2004-06-08 20:15:11.000000000 +0000
++++ lib/quickml/core.rb
+@@ -1,3 +1,4 @@
++#coding: euc-jp
+ #
+ # quickml/core - a part of quickml server
+ #
+@@ -8,7 +9,6 @@
+ # You can redistribute it and/or modify it under the terms of 
+ # the GNU General Public License version 2.
+ #
+-$KCODE='e'
+ require 'quickml/utils'
+ require 'quickml/gettext'
+ 
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-lib_quickml_gettext.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-lib_quickml_gettext.rb Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,11 @@
+$NetBSD: patch-lib_quickml_gettext.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* specify character coding system with ruby-1.9 way
+
+--- lib/quickml/gettext.rb.orig        2004-06-07 08:50:59.000000000 +0000
++++ lib/quickml/gettext.rb
+@@ -1,3 +1,4 @@
++#coding: euc-jp
+ #
+ # quickml/gettext - a part of quickml server
+ #
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-lib_quickml_mail.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-lib_quickml_mail.rb    Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,11 @@
+$NetBSD: patch-lib_quickml_mail.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* specify character coding system with ruby-1.9 way
+
+--- lib/quickml/mail.rb.orig   2004-06-07 08:50:59.000000000 +0000
++++ lib/quickml/mail.rb
+@@ -1,3 +1,4 @@
++#coding: euc-jp
+ #
+ # quickml/mail - a part of quickml server
+ #
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-lib_quickml_utils.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-lib_quickml_utils.rb   Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-lib_quickml_utils.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* specify character coding system with ruby-1.9 way
+* use fileutils instead of deprecated ftools
+
+--- lib/quickml/utils.rb.orig  2004-06-07 08:50:59.000000000 +0000
++++ lib/quickml/utils.rb
+@@ -1,3 +1,4 @@
++#coding: euc-jp
+ #
+ # quickml/utils - a part of quickml server
+ #
+@@ -8,10 +9,9 @@
+ # You can redistribute it and/or modify it under the terms of 
+ # the GNU General Public License version 2.
+ #
+-$KCODE = 'e'
+ require 'kconv'
+ require 'net/smtp'
+-require 'ftools'
++require 'fileutils'
+ 
+ class TooLongLine < Exception; end
+ class IO
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-messages.ja
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-messages.ja    Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,11 @@
+$NetBSD: patch-messages.ja,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* specify character coding system with ruby-1.9 way
+
+--- messages.ja.orig   2004-06-07 08:50:58.000000000 +0000
++++ messages.ja
+@@ -1,3 +1,4 @@
++#coding: euc-jp
+ # -*- mode: ruby -*-
+ Messages = {
+   "<%s> was removed from the mailing list:\n<%s>\n" =>
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-quickml-analog.in
--- a/mail/quickml/patches/patch-quickml-analog.in      Sat Aug 11 13:38:50 2012 +0000
+++ b/mail/quickml/patches/patch-quickml-analog.in      Sat Aug 11 13:51:20 2012 +0000
@@ -1,52 +1,39 @@
-$NetBSD: patch-quickml-analog.in,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $
+$NetBSD: patch-quickml-analog.in,v 1.2 2012/08/11 13:51:20 obache Exp $
 
+* for ruby-1.9 (use fileutils instead of deprecated ftools)
 * gnuplot>=4.0 support.
 
 --- quickml-analog.in.orig     2004-06-07 08:50:59.000000000 +0000
 +++ quickml-analog.in
-@@ -15,6 +15,7 @@ require 'getoptlong'
- require 'ftools'
+@@ -12,9 +12,10 @@
+ #
+ 
+ require 'getoptlong'
+-require 'ftools'
++require 'fileutils'
  require 'time'
  require 'cgi'
 +require 'open3'
  
  class Array
    def tail (n)
-@@ -395,19 +396,40 @@ class QuickMLPlot
+@@ -395,6 +396,12 @@ class QuickMLPlot
    end
  
    def add_basic (f)
--    f.print '
--    set grid
--    set timefmt "%y%m%d%H"
--    set xdata time
--    set size ratio 0.76
--    set linestyle 1 linetype 1 linewidth 5
--    set linestyle 2 linetype 3 linewidth 5
--    set linestyle 3 linetype 2 linewidth 5
--    set linestyle 4 linetype 4 linewidth 5
--    set linestyle 5 linetype 5 linewidth 5
--    set linestyle 6 linetype 7 linewidth 5
 +    Open3.popen3( "gnuplot" ) { |stdin, stdout, stderr|
 +      stdin.puts "show version"
 +      stdin.close
 +      stderr.read[/[Vv]ersion (\d+\.\d+)/]
 +    }
 +    if ( Float( $1 ) < 4.0 ) then
-+      f.print '
-+      set grid
-+      set timefmt "%y%m%d%H"
-+      set xdata time
-+      set size ratio 0.76
-+      set linestyle 1 linetype 1 linewidth 5
-+      set linestyle 2 linetype 3 linewidth 5
-+      set linestyle 3 linetype 2 linewidth 5
-+      set linestyle 4 linetype 4 linewidth 5
-+      set linestyle 5 linetype 5 linewidth 5
-+      set linestyle 6 linetype 7 linewidth 5
+     f.print '
+     set grid
+     set timefmt "%y%m%d%H"
+@@ -408,6 +415,21 @@ class QuickMLPlot
+     set linestyle 6 linetype 7 linewidth 5
  
--    '.gsub(/^    /, "")
-+      '.gsub(/^    /, "")
+     '.gsub(/^    /, "")
 +    else
 +       f.print '
 +       set grid
diff -r 56502736960d -r 187ce7f3fa05 mail/quickml/patches/patch-quickml.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/quickml/patches/patch-quickml.in     Sat Aug 11 13:51:20 2012 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-quickml.in,v 1.1 2012/08/11 13:51:20 obache Exp $
+
+* sepcify character coding system with ruby-1.9 way
+
+--- quickml.in.orig    2004-06-07 08:50:58.000000000 +0000
++++ quickml.in
+@@ -1,4 +1,5 @@
+ #! %RUBY%
++#coding: euc-jp
+ # -*- mode: ruby -*-
+ #
+ # quickml - an easy-to-use mailing list server
+@@ -11,7 +12,6 @@
+ # the GNU General Public License version 2.
+ #
+ 
+-$KCODE = "e"
+ require 'quickml'
+ 
+ def error (msg)



Home | Main Index | Thread Index | Old Index