summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-07-21 05:02:00 +0000
committerHans de Graaff <graaff@gentoo.org>2015-07-21 05:02:00 +0000
commit8ea84699c397529ed0f910b29345a355555dfdf8 (patch)
tree602efc86088b9e6e2add8313e2f38c97720cf5fe /dev-ruby
parentStable for AMD64 x86 (bug #555408). (diff)
downloadgentoo-2-8ea84699c397529ed0f910b29345a355555dfdf8.tar.gz
gentoo-2-8ea84699c397529ed0f910b29345a355555dfdf8.tar.bz2
gentoo-2-8ea84699c397529ed0f910b29345a355555dfdf8.zip
Add missing test dependency. Add ruby22.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/ruby-feedparser/ChangeLog5
-rw-r--r--dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild21
2 files changed, 20 insertions, 6 deletions
diff --git a/dev-ruby/ruby-feedparser/ChangeLog b/dev-ruby/ruby-feedparser/ChangeLog
index 76bc91d152b5..1d9462b60b27 100644
--- a/dev-ruby/ruby-feedparser/ChangeLog
+++ b/dev-ruby/ruby-feedparser/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ruby/ruby-feedparser
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-feedparser/ChangeLog,v 1.3 2015/06/07 19:34:45 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-feedparser/ChangeLog,v 1.4 2015/07/21 05:02:00 graaff Exp $
+
+ 21 Jul 2015; Hans de Graaff <graaff@gentoo.org> ruby-feedparser-0.9.3.ebuild:
+ Add missing test dependency. Add ruby22.
07 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Add github to remote-id in metadata.xml
diff --git a/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild b/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild
index 4a7f484825a9..57ffe8458096 100644
--- a/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild
+++ b/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild,v 1.2 2014/07/25 02:22:19 mrueg Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.3.ebuild,v 1.3 2015/07/21 05:02:00 graaff Exp $
EAPI=5
-USE_RUBY="ruby19 ruby20 ruby21"
+USE_RUBY="ruby19 ruby20 ruby21 ruby22"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="ChangeLog README"
@@ -13,8 +13,8 @@ inherit ruby-fakegem
GITHUB_USER="feed2imap"
DESCRIPTION="Ruby library to parse ATOM/RSS feeds"
-HOMEPAGE="http://github.com/feed2imap/ruby-feedparser"
-SRC_URI="http://github.com/${GITHUB_USER}/${PN}/archive/${P//-/_}.tar.gz"
+HOMEPAGE="https://github.com/feed2imap/ruby-feedparser"
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/${P//-/_}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64"
@@ -25,6 +25,17 @@ RUBY_S="${PN}-${P//-/_}"
ruby_add_rdepend "dev-ruby/magic"
+ruby_add_bdepend "dev-ruby/magic
+ test? ( dev-ruby/mocha )"
+
+all_ruby_prepare() {
+ sed -i -e 's/::Config/::RbConfig/' setup.rb || die
+}
+
+each_ruby_prepare() {
+ sed -i -e '/PKG_VERSION/ s:ruby:'${RUBY}':' Rakefile || die
+}
+
each_ruby_configure() {
${RUBY} setup.rb config || die
}