summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-07-25 12:59:33 +0000
committerHans de Graaff <graaff@gentoo.org>2013-07-25 12:59:33 +0000
commit25cf91dce6fcb994025b4c05e43bf0b095f2222e (patch)
tree329f2dcbd658e8e578d2f90ef796df1f04ac4325 /dev-ruby/simple-rss
parentVersion bump. (diff)
downloadgentoo-2-25cf91dce6fcb994025b4c05e43bf0b095f2222e.tar.gz
gentoo-2-25cf91dce6fcb994025b4c05e43bf0b095f2222e.tar.bz2
gentoo-2-25cf91dce6fcb994025b4c05e43bf0b095f2222e.zip
Add a patch to fix regexp encoding issues. Add ruby20.
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/simple-rss')
-rw-r--r--dev-ruby/simple-rss/ChangeLog8
-rw-r--r--dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch34
-rw-r--r--dev-ruby/simple-rss/simple-rss-1.2.3-r2.ebuild23
3 files changed, 64 insertions, 1 deletions
diff --git a/dev-ruby/simple-rss/ChangeLog b/dev-ruby/simple-rss/ChangeLog
index bc5ffeed7e91..b33ac453b525 100644
--- a/dev-ruby/simple-rss/ChangeLog
+++ b/dev-ruby/simple-rss/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/simple-rss
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/simple-rss/ChangeLog,v 1.12 2013/07/03 06:01:31 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/simple-rss/ChangeLog,v 1.13 2013/07/25 12:59:33 graaff Exp $
+
+*simple-rss-1.2.3-r2 (25 Jul 2013)
+
+ 25 Jul 2013; Hans de Graaff <graaff@gentoo.org> +simple-rss-1.2.3-r2.ebuild,
+ +files/simple-rss-1.2.3-utf8.patch:
+ Add a patch to fix regexp encoding issues. Add ruby20.
03 Jul 2013; Hans de Graaff <graaff@gentoo.org> -simple-rss-1.2.3.ebuild:
Cleanup.
diff --git a/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch b/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch
new file mode 100644
index 000000000000..4be17b7276bb
--- /dev/null
+++ b/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch
@@ -0,0 +1,34 @@
+commit ef0d5db568faa75073a43f45d5f544d4414a8ea3
+Author: Lucas Carlson <lucas@rufy.com>
+Date: Tue Aug 24 14:42:26 2010 -0700
+
+ Adding support for regex of UTF8 characters
+
+Note that we also applied the change in
+http://hightechsorcery.com/2011/04/fixing-a-bug-in-simple-rss/
+
+This effectively does not force an encoding for the regexp.
+
+diff --git a/lib/simple-rss.rb b/lib/simple-rss.rb
+index 38a5623..fc375ab 100644
+--- a/lib/simple-rss.rb
++++ b/lib/simple-rss.rb
+@@ -152,13 +152,13 @@ class SimpleRSS
+ end
+
+ def unescape(content)
+- if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/n then
+- CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
++ if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/ then
++ CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
+ else
+- content.gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
++ content.gsub(/(<!\[CDATA\[|\]\]>)/,'').strip
+ end
+ end
+ end
+
+ class SimpleRSSError < StandardError
+-end
+\ No newline at end of file
++end
diff --git a/dev-ruby/simple-rss/simple-rss-1.2.3-r2.ebuild b/dev-ruby/simple-rss/simple-rss-1.2.3-r2.ebuild
new file mode 100644
index 000000000000..32a78e6e0971
--- /dev/null
+++ b/dev-ruby/simple-rss/simple-rss-1.2.3-r2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/simple-rss/simple-rss-1.2.3-r2.ebuild,v 1.1 2013/07/25 12:59:33 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby18 ruby19 ruby20 jruby"
+
+RUBY_FAKEGEM_TASK_DOC="doc"
+RUBY_FAKEGEM_DOCDIR="html"
+RUBY_FAKEGEM_EXTRADOC="README"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Simple RSS is a simple, flexible, extensible, and liberal RSS and
+Atom reader for Ruby."
+HOMEPAGE="http://simple-rss.rubyforge.org/"
+LICENSE="LGPL-2"
+
+KEYWORDS="~amd64 ~x86 ~x86-macos"
+SLOT="0"
+IUSE=""
+
+RUBY_PATCHES=( "${P}-no-media-rss.patch" "${P}-utf8.patch" )