Revision 0c9cb3cb
Added by Michael Moll about 9 years ago
dependencies/precise/locale/changelog | ||
---|---|---|
ruby-locale (2.0.8-2) unstable; urgency=low
|
||
|
||
* Rebuild for Foreman repositories.
|
||
* Add transitional packages again for precise.
|
||
|
||
-- Michael Moll <mmoll@mmoll.at> Fri, 24 Apr 2015 14:43:17 +0200
|
||
|
||
ruby-locale (2.0.8-1) unstable; urgency=low
|
||
|
||
* New upstream release.
|
||
* Bump Standards-Version to 3.9.4 (no changes).
|
||
* Remove obsoleted DM-Upload-Allowed.
|
||
* Update watch file.
|
||
* Drop transitional packages.
|
||
* Update Vcs-* fields to use anonscm.debian.org.
|
||
* Update homepage.
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Sat, 17 Aug 2013 17:55:22 +0300
|
||
|
||
ruby-locale (2.0.5-6) unstable; urgency=low
|
||
|
||
* Fix various bugs with charset handling (Closes: #520181)
|
||
* Fix lintian complaints.
|
||
* Better package description (thanks to Justin B. Rye).
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Tue, 09 Oct 2012 22:33:28 +0300
|
||
|
||
ruby-locale (2.0.5-5) unstable; urgency=low
|
||
|
||
* Team upload.
|
||
* Bump build dependency on gem2deb to >= 0.3.0~.
|
||
|
||
-- Cédric Boutillier <cedric.boutillier@gmail.com> Sat, 30 Jun 2012 16:21:58 +0200
|
||
|
||
ruby-locale (2.0.5-4) unstable; urgency=low
|
||
|
||
* Bugfix release, fixes are for:
|
||
- environmental variable LANGUAGE exists, but
|
||
isn't set (Closes: #670320)
|
||
- Locale.current= can't accept value from previuos
|
||
call to Locale.current (Closes: #600713)
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Thu, 26 Apr 2012 21:27:28 +0300
|
||
|
||
ruby-locale (2.0.5-3) unstable; urgency=low
|
||
|
||
* Switch to gem2deb-based packaging.
|
||
- source and binary packages renamed to ruby-locale
|
||
- transitional packages added
|
||
- source format changed to 3.0 (quilt)
|
||
* Fix SecurityError under ruby1.9.1 and $SAFE>=1
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Wed, 14 Mar 2012 20:57:38 +0300
|
||
|
||
liblocale-ruby (2.0.5-2) unstable; urgency=low
|
||
|
||
* Fix build-depends; add ruby1.9.1 (Closes: #571370)
|
||
|
||
-- Tatsuki Sugiura <sugi@nemui.org> Thu, 18 Feb 2010 21:13:45 +0900
|
||
|
||
liblocale-ruby (2.0.5-1) unstable; urgency=medium
|
||
|
||
* Initial release (Closes: #570367)
|
||
|
||
-- Tatsuki Sugiura <sugi@nemui.org> Thu, 18 Feb 2010 20:50:05 +0900
|
dependencies/precise/locale/compat | ||
---|---|---|
7
|
dependencies/precise/locale/control | ||
---|---|---|
Source: ruby-locale
|
||
Section: ruby
|
||
Priority: optional
|
||
Maintainer: Michael Moll <mmoll@mmoll.at>
|
||
Build-Depends: debhelper (>= 7.0.50~), gem2deb
|
||
Standards-Version: 3.9.4
|
||
Homepage: https://github.com/ruby-gettext/locale
|
||
XS-Ruby-Versions: all
|
||
|
||
Package: ruby-locale
|
||
Architecture: all
|
||
XB-Ruby-Versions: ${ruby:Versions}
|
||
Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
|
||
Description: Locale library for Ruby
|
||
Ruby-Locale is a pure Ruby library which provides a basic API for
|
||
localization.
|
||
.
|
||
It aims to support programs of every kind, from GUI applications to web
|
||
libraries, on all the platforms that Ruby works on, and to provide a
|
||
central hub for other i18n/l10n software.
|
||
|
||
Package: liblocale-ruby
|
||
Section: oldlibs
|
||
Priority: extra
|
||
Architecture: all
|
||
Depends: ${misc:Depends}, ruby-locale
|
||
Description: Transitional package for ruby-locale
|
||
This is a transitional package to ease upgrades to the ruby-locale
|
||
package. It can safely be removed.
|
||
|
||
Package: liblocale-ruby1.8
|
||
Section: oldlibs
|
||
Priority: extra
|
||
Architecture: all
|
||
Depends: ${misc:Depends}, ruby-locale
|
||
Description: Transitional package for ruby-locale
|
||
This is a transitional package to ease upgrades to the ruby-locale
|
||
package. It can safely be removed.
|
||
|
||
Package: liblocale-ruby1.9.1
|
||
Section: oldlibs
|
||
Priority: extra
|
||
Architecture: all
|
||
Depends: ${misc:Depends}, ruby-locale
|
||
Description: Transitional package for ruby-locale
|
||
This is a transitional package to ease upgrades to the ruby-locale
|
||
package. It can safely be removed.
|
dependencies/precise/locale/copyright | ||
---|---|---|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||
Upstream-Name: locale
|
||
Source: http://rubyforge.org/projects/locale/
|
||
|
||
Files: *
|
||
Copyright: 2002-2009 Masao Mutoh <mutomasa@gmail.com>
|
||
License: Ruby or GPL-2
|
||
|
||
License: GPL-2
|
||
This program is free software; you can redistribute it
|
||
and/or modify it under the terms of the GNU General Public
|
||
License as published by the Free Software Foundation; either
|
||
version 2 of the License, or (at your option) any later
|
||
version.
|
||
.
|
||
This program is distributed in the hope that it will be
|
||
useful, but WITHOUT ANY WARRANTY; without even the implied
|
||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
PURPOSE. See the GNU General Public License for more
|
||
details.
|
||
.
|
||
You should have received a copy of the GNU General Public
|
||
License along with this package; if not, write to the Free
|
||
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||
Boston, MA 02110-1301 USA
|
||
.
|
||
On Debian systems, the full text of the GNU General Public
|
||
License version 2 can be found in the file
|
||
`/usr/share/common-licenses/GPL-2'.
|
||
|
||
License: Ruby
|
||
1. You may make and give away verbatim copies of the source form of the
|
||
software without restriction, provided that you duplicate all of the
|
||
original copyright notices and associated disclaimers.
|
||
.
|
||
2. You may modify your copy of the software in any way, provided that
|
||
you do at least ONE of the following:
|
||
.
|
||
a) place your modifications in the Public Domain or otherwise
|
||
make them Freely Available, such as by posting said
|
||
modifications to Usenet or an equivalent medium, or by allowing
|
||
the author to include your modifications in the software.
|
||
.
|
||
b) use the modified software only within your corporation or
|
||
organization.
|
||
.
|
||
c) rename any non-standard executables so the names do not conflict
|
||
with standard executables, which must also be provided.
|
||
.
|
||
d) make other distribution arrangements with the author.
|
||
.
|
||
3. You may distribute the software in object code or executable
|
||
form, provided that you do at least ONE of the following:
|
||
.
|
||
a) distribute the executables and library files of the software,
|
||
together with instructions (in the manual page or equivalent)
|
||
on where to get the original distribution.
|
||
.
|
||
b) accompany the distribution with the machine-readable source of
|
||
the software.
|
||
.
|
||
c) give non-standard executables non-standard names, with
|
||
instructions on where to get the original software distribution.
|
||
.
|
||
d) make other distribution arrangements with the author.
|
||
.
|
||
4. You may modify and include the part of the software into any other
|
||
software (possibly commercial). But some files in the distribution
|
||
are not written by the author, so that they are not under this terms.
|
||
.
|
||
They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
|
||
files under the ./missing directory. See each file for the copying
|
||
condition.
|
||
.
|
||
5. The scripts and library files supplied as input to or produced as
|
||
output from the software do not automatically fall under the
|
||
copyright of the software, but belong to whomever generated them,
|
||
and may be sold commercially, and may be aggregated with this
|
||
software.
|
||
.
|
||
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
||
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE.
|
||
|
||
Files: debian/*
|
||
Copyright: These files ain't copyrighted
|
||
License: public-domain
|
||
These files are in Public Domain.
|
dependencies/precise/locale/patches/0001-fix-bugs-with-charset-handling.patch | ||
---|---|---|
From: Hleb Valoshka <375GNU@Gmail.COM>
|
||
Date: Mon, 1 Apr 2013 21:39:49 +0300
|
||
Subject: fix bugs with charset handling
|
||
|
||
Fixes #520181
|
||
---
|
||
lib/locale/taglist.rb | 6 +-----
|
||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||
|
||
diff --git a/lib/locale/taglist.rb b/lib/locale/taglist.rb
|
||
index e5d879c..2b6c8e7 100644
|
||
--- a/lib/locale/taglist.rb
|
||
+++ b/lib/locale/taglist.rb
|
||
@@ -46,11 +46,7 @@ module Locale
|
||
end
|
||
# Returns the top priority charset. (posix)
|
||
def charset
|
||
- if self[0].respond_to? :charset
|
||
- self[0].charset
|
||
- else
|
||
- ::Locale.driver_module.charset
|
||
- end
|
||
+ self[0].respond_to?(:charset) and self[0].charset or ::Locale.driver_module.charset
|
||
end
|
||
memoize :charset
|
||
|
dependencies/precise/locale/patches/0002-use-proper-envvar-LC_CTYPE.patch | ||
---|---|---|
From: Hleb Valoshka <375GNU@Gmail.COM>
|
||
Date: Sun, 31 Mar 2013 18:45:43 +0300
|
||
Subject: use proper envvar LC_CTYPE
|
||
|
||
---
|
||
doc/text/news.md | 2 +-
|
||
lib/locale/driver/env.rb | 6 +++---
|
||
lib/locale/driver/posix.rb | 2 +-
|
||
test/test_detect_general.rb | 10 +++++-----
|
||
test/test_driver_jruby.rb | 2 +-
|
||
5 files changed, 11 insertions(+), 11 deletions(-)
|
||
|
||
diff --git a/doc/text/news.md b/doc/text/news.md
|
||
index 263f7a6..0b15066 100644
|
||
--- a/doc/text/news.md
|
||
+++ b/doc/text/news.md
|
||
@@ -45,7 +45,7 @@ Ruby 1.9 on Windows support release.
|
||
Windows platform. [Patch by J. Pablo Fernández]
|
||
* [jruby] Fixed wrong variant format.
|
||
[GitHub#mutoh/locale#5] [Patch by Hleb Valoshka]
|
||
- * Fixed wrong environment variable check. `LC_CTYPES` is checked
|
||
+ * Fixed wrong environment variable check. `LC_CTYPE` is checked
|
||
instead of `LC_MESSAGES`.
|
||
[GitHub#mutoh/locale#5] [Debian#520181]
|
||
[Reported by Adeodato Simó] [Patch by Hleb Valoshka]
|
||
diff --git a/lib/locale/driver/env.rb b/lib/locale/driver/env.rb
|
||
index b4e96c6..a023383 100644
|
||
--- a/lib/locale/driver/env.rb
|
||
+++ b/lib/locale/driver/env.rb
|
||
@@ -34,11 +34,11 @@ module Locale
|
||
module Env
|
||
module_function
|
||
|
||
- # Gets the locale from environment variable. (LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locale from environment variable. (LC_ALL > LC_CTYPE > LANG)
|
||
# Returns: the locale as Locale::Tag::Posix.
|
||
def locale
|
||
# At least one environment valiables should be set on *nix system.
|
||
- [ENV["LC_ALL"], ENV["LC_CTYPES"], ENV["LANG"]].each do |loc|
|
||
+ [ENV["LC_ALL"], ENV["LC_CTYPE"], ENV["LANG"]].each do |loc|
|
||
if loc != nil and loc.size > 0
|
||
return Locale::Tag::Posix.parse(loc)
|
||
end
|
||
@@ -46,7 +46,7 @@ module Locale
|
||
nil
|
||
end
|
||
|
||
- # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPE > LANG)
|
||
# * Returns: an Array of the locale as Locale::Tag::Posix or nil.
|
||
def locales
|
||
locales = ENV["LANGUAGE"]
|
||
diff --git a/lib/locale/driver/posix.rb b/lib/locale/driver/posix.rb
|
||
index 16d8efd..eaf03e4 100644
|
||
--- a/lib/locale/driver/posix.rb
|
||
+++ b/lib/locale/driver/posix.rb
|
||
@@ -30,7 +30,7 @@ module Locale
|
||
$stderr.puts self.name + " is loaded." if $DEBUG
|
||
|
||
module_function
|
||
- # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPE > LANG)
|
||
# Only LANGUAGE accept plural languages such as "nl_BE;
|
||
# * Returns: an Array of the locale as Locale::Tag::Posix or nil.
|
||
def locales
|
||
diff --git a/test/test_detect_general.rb b/test/test_detect_general.rb
|
||
index ca0af22..6d47192 100644
|
||
--- a/test/test_detect_general.rb
|
||
+++ b/test/test_detect_general.rb
|
||
@@ -28,14 +28,14 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
Locale.init
|
||
Locale.clear_all
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = nil
|
||
ENV["LANGUAGE"] = nil
|
||
end
|
||
|
||
def test_lc_all
|
||
ENV["LC_ALL"] = "ja_JP.eucJP"
|
||
- ENV["LC_CTYPES"] = "zh_CN.UTF-8" #Ignored.
|
||
+ ENV["LC_CTYPE"] = "zh_CN.UTF-8" #Ignored.
|
||
ENV["LANG"] = "ko_KR.UTF-8" #Ignored.
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -51,7 +51,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lc_messages
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = "ja_JP.eucJP"
|
||
+ ENV["LC_CTYPE"] = "ja_JP.eucJP"
|
||
ENV["LANG"] = "ko_KR.UTF-8" #Ignored.
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -67,7 +67,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lang
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = "ja_JP.eucJP"
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -83,7 +83,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lang_complex
|
||
ENV["LC_ALL"] = "zh_CN.UTF-8" # Ignored.
|
||
- ENV["LC_CTYPES"] = "ko_KR.UTF-8" #Ingored.
|
||
+ ENV["LC_CTYPE"] = "ko_KR.UTF-8" #Ingored.
|
||
ENV["LANG"] = "en_US.UTF-8" # Ignored.
|
||
ENV["LANGUAGE"] ="ja_JP.eucJP:zh_CN.UTF-8"
|
||
|
||
diff --git a/test/test_driver_jruby.rb b/test/test_driver_jruby.rb
|
||
index 27e8e14..3eb7b84 100644
|
||
--- a/test/test_driver_jruby.rb
|
||
+++ b/test/test_driver_jruby.rb
|
||
@@ -26,7 +26,7 @@ begin
|
||
|
||
def setup
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = nil
|
||
ENV["LANGUAGE"] = nil
|
||
end
|
dependencies/precise/locale/patches/series | ||
---|---|---|
0001-fix-bugs-with-charset-handling.patch
|
||
0002-use-proper-envvar-LC_CTYPE.patch
|
dependencies/precise/locale/ruby-locale.docs | ||
---|---|---|
README.rdoc
|
dependencies/precise/locale/ruby-locale.examples | ||
---|---|---|
samples/*
|
dependencies/precise/locale/ruby-test-files.yaml | ||
---|---|---|
---
|
||
- test/test_detect_general.rb
|
||
#- test/test_detect_cgi.rb
|
||
- test/test_info.rb
|
||
- test/test_memoizable.rb
|
||
- test/test_taglist.rb
|
||
- test/test_tag.rb
|
||
- test/test_thread.rb
|
dependencies/precise/locale/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
#export DH_VERBOSE=1
|
||
#
|
||
# Uncomment to ignore all test failures (but the tests will run anyway)
|
||
#export DH_RUBY_IGNORE_TESTS=all
|
||
#
|
||
# Uncomment to ignore some test failures (but the tests will run anyway).
|
||
# Valid values:
|
||
#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
|
||
#
|
||
# If you need to specify the .gemspec (eg there is more than one)
|
||
#export DH_RUBY_GEMSPEC=gem.gemspec
|
||
|
||
%:
|
||
dh $@ --buildsystem=ruby --with ruby
|
dependencies/precise/locale/source/format | ||
---|---|---|
3.0 (quilt)
|
dependencies/precise/locale/source/local-options | ||
---|---|---|
unapply-patches
|
dependencies/precise/locale/watch | ||
---|---|---|
version=3
|
||
http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/locale .*/locale-(.*).tar.gz
|
dependencies/wheezy/locale/changelog | ||
---|---|---|
ruby-locale (2.0.8-2) unstable; urgency=low
|
||
|
||
* Rebuild for Foreman repositories.
|
||
|
||
-- Michael Moll <mmoll@mmoll.at> Fri, 24 Apr 2015 14:43:17 +0200
|
||
|
||
ruby-locale (2.0.8-1) unstable; urgency=low
|
||
|
||
* New upstream release.
|
||
* Bump Standards-Version to 3.9.4 (no changes).
|
||
* Remove obsoleted DM-Upload-Allowed.
|
||
* Update watch file.
|
||
* Drop transitional packages.
|
||
* Update Vcs-* fields to use anonscm.debian.org.
|
||
* Update homepage.
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Sat, 17 Aug 2013 17:55:22 +0300
|
||
|
||
ruby-locale (2.0.5-6) unstable; urgency=low
|
||
|
||
* Fix various bugs with charset handling (Closes: #520181)
|
||
* Fix lintian complaints.
|
||
* Better package description (thanks to Justin B. Rye).
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Tue, 09 Oct 2012 22:33:28 +0300
|
||
|
||
ruby-locale (2.0.5-5) unstable; urgency=low
|
||
|
||
* Team upload.
|
||
* Bump build dependency on gem2deb to >= 0.3.0~.
|
||
|
||
-- Cédric Boutillier <cedric.boutillier@gmail.com> Sat, 30 Jun 2012 16:21:58 +0200
|
||
|
||
ruby-locale (2.0.5-4) unstable; urgency=low
|
||
|
||
* Bugfix release, fixes are for:
|
||
- environmental variable LANGUAGE exists, but
|
||
isn't set (Closes: #670320)
|
||
- Locale.current= can't accept value from previuos
|
||
call to Locale.current (Closes: #600713)
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Thu, 26 Apr 2012 21:27:28 +0300
|
||
|
||
ruby-locale (2.0.5-3) unstable; urgency=low
|
||
|
||
* Switch to gem2deb-based packaging.
|
||
- source and binary packages renamed to ruby-locale
|
||
- transitional packages added
|
||
- source format changed to 3.0 (quilt)
|
||
* Fix SecurityError under ruby1.9.1 and $SAFE>=1
|
||
|
||
-- Hleb Valoshka <375gnu@gmail.com> Wed, 14 Mar 2012 20:57:38 +0300
|
||
|
||
liblocale-ruby (2.0.5-2) unstable; urgency=low
|
||
|
||
* Fix build-depends; add ruby1.9.1 (Closes: #571370)
|
||
|
||
-- Tatsuki Sugiura <sugi@nemui.org> Thu, 18 Feb 2010 21:13:45 +0900
|
||
|
||
liblocale-ruby (2.0.5-1) unstable; urgency=medium
|
||
|
||
* Initial release (Closes: #570367)
|
||
|
||
-- Tatsuki Sugiura <sugi@nemui.org> Thu, 18 Feb 2010 20:50:05 +0900
|
dependencies/wheezy/locale/compat | ||
---|---|---|
7
|
dependencies/wheezy/locale/control | ||
---|---|---|
Source: ruby-locale
|
||
Section: ruby
|
||
Priority: optional
|
||
Maintainer: Michael Moll <mmoll@mmoll.at>
|
||
Build-Depends: debhelper (>= 7.0.50~), gem2deb
|
||
Standards-Version: 3.9.4
|
||
Homepage: https://github.com/ruby-gettext/locale
|
||
XS-Ruby-Versions: all
|
||
|
||
Package: ruby-locale
|
||
Architecture: all
|
||
XB-Ruby-Versions: ${ruby:Versions}
|
||
Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
|
||
Description: Locale library for Ruby
|
||
Ruby-Locale is a pure Ruby library which provides a basic API for
|
||
localization.
|
||
.
|
||
It aims to support programs of every kind, from GUI applications to web
|
||
libraries, on all the platforms that Ruby works on, and to provide a
|
||
central hub for other i18n/l10n software.
|
dependencies/wheezy/locale/copyright | ||
---|---|---|
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||
Upstream-Name: locale
|
||
Source: http://rubyforge.org/projects/locale/
|
||
|
||
Files: *
|
||
Copyright: 2002-2009 Masao Mutoh <mutomasa@gmail.com>
|
||
License: Ruby or GPL-2
|
||
|
||
License: GPL-2
|
||
This program is free software; you can redistribute it
|
||
and/or modify it under the terms of the GNU General Public
|
||
License as published by the Free Software Foundation; either
|
||
version 2 of the License, or (at your option) any later
|
||
version.
|
||
.
|
||
This program is distributed in the hope that it will be
|
||
useful, but WITHOUT ANY WARRANTY; without even the implied
|
||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||
PURPOSE. See the GNU General Public License for more
|
||
details.
|
||
.
|
||
You should have received a copy of the GNU General Public
|
||
License along with this package; if not, write to the Free
|
||
Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||
Boston, MA 02110-1301 USA
|
||
.
|
||
On Debian systems, the full text of the GNU General Public
|
||
License version 2 can be found in the file
|
||
`/usr/share/common-licenses/GPL-2'.
|
||
|
||
License: Ruby
|
||
1. You may make and give away verbatim copies of the source form of the
|
||
software without restriction, provided that you duplicate all of the
|
||
original copyright notices and associated disclaimers.
|
||
.
|
||
2. You may modify your copy of the software in any way, provided that
|
||
you do at least ONE of the following:
|
||
.
|
||
a) place your modifications in the Public Domain or otherwise
|
||
make them Freely Available, such as by posting said
|
||
modifications to Usenet or an equivalent medium, or by allowing
|
||
the author to include your modifications in the software.
|
||
.
|
||
b) use the modified software only within your corporation or
|
||
organization.
|
||
.
|
||
c) rename any non-standard executables so the names do not conflict
|
||
with standard executables, which must also be provided.
|
||
.
|
||
d) make other distribution arrangements with the author.
|
||
.
|
||
3. You may distribute the software in object code or executable
|
||
form, provided that you do at least ONE of the following:
|
||
.
|
||
a) distribute the executables and library files of the software,
|
||
together with instructions (in the manual page or equivalent)
|
||
on where to get the original distribution.
|
||
.
|
||
b) accompany the distribution with the machine-readable source of
|
||
the software.
|
||
.
|
||
c) give non-standard executables non-standard names, with
|
||
instructions on where to get the original software distribution.
|
||
.
|
||
d) make other distribution arrangements with the author.
|
||
.
|
||
4. You may modify and include the part of the software into any other
|
||
software (possibly commercial). But some files in the distribution
|
||
are not written by the author, so that they are not under this terms.
|
||
.
|
||
They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
|
||
files under the ./missing directory. See each file for the copying
|
||
condition.
|
||
.
|
||
5. The scripts and library files supplied as input to or produced as
|
||
output from the software do not automatically fall under the
|
||
copyright of the software, but belong to whomever generated them,
|
||
and may be sold commercially, and may be aggregated with this
|
||
software.
|
||
.
|
||
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
||
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE.
|
||
|
||
Files: debian/*
|
||
Copyright: These files ain't copyrighted
|
||
License: public-domain
|
||
These files are in Public Domain.
|
dependencies/wheezy/locale/patches/0001-fix-bugs-with-charset-handling.patch | ||
---|---|---|
From: Hleb Valoshka <375GNU@Gmail.COM>
|
||
Date: Mon, 1 Apr 2013 21:39:49 +0300
|
||
Subject: fix bugs with charset handling
|
||
|
||
Fixes #520181
|
||
---
|
||
lib/locale/taglist.rb | 6 +-----
|
||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||
|
||
diff --git a/lib/locale/taglist.rb b/lib/locale/taglist.rb
|
||
index e5d879c..2b6c8e7 100644
|
||
--- a/lib/locale/taglist.rb
|
||
+++ b/lib/locale/taglist.rb
|
||
@@ -46,11 +46,7 @@ module Locale
|
||
end
|
||
# Returns the top priority charset. (posix)
|
||
def charset
|
||
- if self[0].respond_to? :charset
|
||
- self[0].charset
|
||
- else
|
||
- ::Locale.driver_module.charset
|
||
- end
|
||
+ self[0].respond_to?(:charset) and self[0].charset or ::Locale.driver_module.charset
|
||
end
|
||
memoize :charset
|
||
|
dependencies/wheezy/locale/patches/0002-use-proper-envvar-LC_CTYPE.patch | ||
---|---|---|
From: Hleb Valoshka <375GNU@Gmail.COM>
|
||
Date: Sun, 31 Mar 2013 18:45:43 +0300
|
||
Subject: use proper envvar LC_CTYPE
|
||
|
||
---
|
||
doc/text/news.md | 2 +-
|
||
lib/locale/driver/env.rb | 6 +++---
|
||
lib/locale/driver/posix.rb | 2 +-
|
||
test/test_detect_general.rb | 10 +++++-----
|
||
test/test_driver_jruby.rb | 2 +-
|
||
5 files changed, 11 insertions(+), 11 deletions(-)
|
||
|
||
diff --git a/doc/text/news.md b/doc/text/news.md
|
||
index 263f7a6..0b15066 100644
|
||
--- a/doc/text/news.md
|
||
+++ b/doc/text/news.md
|
||
@@ -45,7 +45,7 @@ Ruby 1.9 on Windows support release.
|
||
Windows platform. [Patch by J. Pablo Fernández]
|
||
* [jruby] Fixed wrong variant format.
|
||
[GitHub#mutoh/locale#5] [Patch by Hleb Valoshka]
|
||
- * Fixed wrong environment variable check. `LC_CTYPES` is checked
|
||
+ * Fixed wrong environment variable check. `LC_CTYPE` is checked
|
||
instead of `LC_MESSAGES`.
|
||
[GitHub#mutoh/locale#5] [Debian#520181]
|
||
[Reported by Adeodato Simó] [Patch by Hleb Valoshka]
|
||
diff --git a/lib/locale/driver/env.rb b/lib/locale/driver/env.rb
|
||
index b4e96c6..a023383 100644
|
||
--- a/lib/locale/driver/env.rb
|
||
+++ b/lib/locale/driver/env.rb
|
||
@@ -34,11 +34,11 @@ module Locale
|
||
module Env
|
||
module_function
|
||
|
||
- # Gets the locale from environment variable. (LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locale from environment variable. (LC_ALL > LC_CTYPE > LANG)
|
||
# Returns: the locale as Locale::Tag::Posix.
|
||
def locale
|
||
# At least one environment valiables should be set on *nix system.
|
||
- [ENV["LC_ALL"], ENV["LC_CTYPES"], ENV["LANG"]].each do |loc|
|
||
+ [ENV["LC_ALL"], ENV["LC_CTYPE"], ENV["LANG"]].each do |loc|
|
||
if loc != nil and loc.size > 0
|
||
return Locale::Tag::Posix.parse(loc)
|
||
end
|
||
@@ -46,7 +46,7 @@ module Locale
|
||
nil
|
||
end
|
||
|
||
- # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPE > LANG)
|
||
# * Returns: an Array of the locale as Locale::Tag::Posix or nil.
|
||
def locales
|
||
locales = ENV["LANGUAGE"]
|
||
diff --git a/lib/locale/driver/posix.rb b/lib/locale/driver/posix.rb
|
||
index 16d8efd..eaf03e4 100644
|
||
--- a/lib/locale/driver/posix.rb
|
||
+++ b/lib/locale/driver/posix.rb
|
||
@@ -30,7 +30,7 @@ module Locale
|
||
$stderr.puts self.name + " is loaded." if $DEBUG
|
||
|
||
module_function
|
||
- # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPES > LANG)
|
||
+ # Gets the locales from environment variables. (LANGUAGE > LC_ALL > LC_CTYPE > LANG)
|
||
# Only LANGUAGE accept plural languages such as "nl_BE;
|
||
# * Returns: an Array of the locale as Locale::Tag::Posix or nil.
|
||
def locales
|
||
diff --git a/test/test_detect_general.rb b/test/test_detect_general.rb
|
||
index ca0af22..6d47192 100644
|
||
--- a/test/test_detect_general.rb
|
||
+++ b/test/test_detect_general.rb
|
||
@@ -28,14 +28,14 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
Locale.init
|
||
Locale.clear_all
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = nil
|
||
ENV["LANGUAGE"] = nil
|
||
end
|
||
|
||
def test_lc_all
|
||
ENV["LC_ALL"] = "ja_JP.eucJP"
|
||
- ENV["LC_CTYPES"] = "zh_CN.UTF-8" #Ignored.
|
||
+ ENV["LC_CTYPE"] = "zh_CN.UTF-8" #Ignored.
|
||
ENV["LANG"] = "ko_KR.UTF-8" #Ignored.
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -51,7 +51,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lc_messages
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = "ja_JP.eucJP"
|
||
+ ENV["LC_CTYPE"] = "ja_JP.eucJP"
|
||
ENV["LANG"] = "ko_KR.UTF-8" #Ignored.
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -67,7 +67,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lang
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = "ja_JP.eucJP"
|
||
ENV["LANGUAGE"] = nil
|
||
|
||
@@ -83,7 +83,7 @@ class TestDetectGeneral < Test::Unit::TestCase
|
||
|
||
def test_lang_complex
|
||
ENV["LC_ALL"] = "zh_CN.UTF-8" # Ignored.
|
||
- ENV["LC_CTYPES"] = "ko_KR.UTF-8" #Ingored.
|
||
+ ENV["LC_CTYPE"] = "ko_KR.UTF-8" #Ingored.
|
||
ENV["LANG"] = "en_US.UTF-8" # Ignored.
|
||
ENV["LANGUAGE"] ="ja_JP.eucJP:zh_CN.UTF-8"
|
||
|
||
diff --git a/test/test_driver_jruby.rb b/test/test_driver_jruby.rb
|
||
index 27e8e14..3eb7b84 100644
|
||
--- a/test/test_driver_jruby.rb
|
||
+++ b/test/test_driver_jruby.rb
|
||
@@ -26,7 +26,7 @@ begin
|
||
|
||
def setup
|
||
ENV["LC_ALL"] = nil
|
||
- ENV["LC_CTYPES"] = nil
|
||
+ ENV["LC_CTYPE"] = nil
|
||
ENV["LANG"] = nil
|
||
ENV["LANGUAGE"] = nil
|
||
end
|
dependencies/wheezy/locale/patches/series | ||
---|---|---|
0001-fix-bugs-with-charset-handling.patch
|
||
0002-use-proper-envvar-LC_CTYPE.patch
|
dependencies/wheezy/locale/ruby-locale.docs | ||
---|---|---|
README.rdoc
|
dependencies/wheezy/locale/ruby-locale.examples | ||
---|---|---|
samples/*
|
dependencies/wheezy/locale/ruby-test-files.yaml | ||
---|---|---|
---
|
||
- test/test_detect_general.rb
|
||
#- test/test_detect_cgi.rb
|
||
- test/test_info.rb
|
||
- test/test_memoizable.rb
|
||
- test/test_taglist.rb
|
||
- test/test_tag.rb
|
||
- test/test_thread.rb
|
dependencies/wheezy/locale/rules | ||
---|---|---|
#!/usr/bin/make -f
|
||
#export DH_VERBOSE=1
|
||
#
|
||
# Uncomment to ignore all test failures (but the tests will run anyway)
|
||
#export DH_RUBY_IGNORE_TESTS=all
|
||
#
|
||
# Uncomment to ignore some test failures (but the tests will run anyway).
|
||
# Valid values:
|
||
#export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems
|
||
#
|
||
# If you need to specify the .gemspec (eg there is more than one)
|
||
#export DH_RUBY_GEMSPEC=gem.gemspec
|
||
|
||
%:
|
||
dh $@ --buildsystem=ruby --with ruby
|
dependencies/wheezy/locale/source/format | ||
---|---|---|
3.0 (quilt)
|
dependencies/wheezy/locale/source/local-options | ||
---|---|---|
unapply-patches
|
dependencies/wheezy/locale/watch | ||
---|---|---|
version=3
|
||
http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/locale .*/locale-(.*).tar.gz
|
Also available in: Unified diff
package locale gem 2.0.8 for wheezy and precise