summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-08-31 07:43:25 +0200
committerHans de Graaff <graaff@gentoo.org>2016-08-31 07:43:49 +0200
commit284dc46fb696555f906a525131ae7076924a40ce (patch)
treef5cd3ae757c256d4051581312d206e42824ad5ff /dev-ruby/ruby-feedparser
parentdev-ruby/magic: add ruby23 (diff)
downloadgentoo-284dc46fb696555f906a525131ae7076924a40ce.tar.gz
gentoo-284dc46fb696555f906a525131ae7076924a40ce.tar.bz2
gentoo-284dc46fb696555f906a525131ae7076924a40ce.zip
dev-ruby/ruby-feedparser: add 0.9.4, install as gem
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/ruby-feedparser')
-rw-r--r--dev-ruby/ruby-feedparser/Manifest1
-rw-r--r--dev-ruby/ruby-feedparser/ruby-feedparser-0.9.4.ebuild41
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/ruby-feedparser/Manifest b/dev-ruby/ruby-feedparser/Manifest
index b74c7a182cef..cb8cd01be84d 100644
--- a/dev-ruby/ruby-feedparser/Manifest
+++ b/dev-ruby/ruby-feedparser/Manifest
@@ -1 +1,2 @@
+DIST ruby-feedparser-0.9.4.tar.gz 2705393 SHA256 88c4e374f61ec7645e27e0addfe5cf668e2d4ee872cf5ada94c0fcdadda6482e SHA512 0fbecb83837996c1a9483d70275cf869a62dcb53bb42d3fc8d1c7992e37c7d2c8b3194a9d0372566c4907f8ffd893c1f6ee1b2e55fa2417c5f34b71496bfad9d WHIRLPOOL 2abd19aa2c98d2181c981400330658397c526e78abeffe230513026b041e4de06170ab35b7d8b0c580ee72da8d1354bd759a78f9ccd0a5ae5bdbf145e0b85f56
DIST ruby_feedparser_0.9.3.tar.gz 2504432 SHA256 362b2d43f79e36bf2f42fbe8a9c3b48599fd11cd1730f2f3eea5716502fed6ac SHA512 832952503d330387f74e9b12c23144e40963b909df7f11cc4968466b0222bb5313c53f254a870ebc3e9f66d1d999c60e468ac58aa397e580a229fe43304dd865 WHIRLPOOL 9ff1f1fcc63310e608d046cfff56d62aae79ebc1ec0dc3e22695a400323337bcd9ae64e72b43916f579c7e82fd37e1e0962a34aaf7f02fa8614defb72aebcbda
diff --git a/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.4.ebuild b/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.4.ebuild
new file mode 100644
index 000000000000..51a744761f4d
--- /dev/null
+++ b/dev-ruby/ruby-feedparser/ruby-feedparser-0.9.4.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="ChangeLog.md README"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+GITHUB_USER="feed2imap"
+
+DESCRIPTION="Ruby library to parse ATOM/RSS feeds"
+HOMEPAGE="https://github.com/feed2imap/ruby-feedparser"
+SRC_URI="https://github.com/${GITHUB_USER}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/magic"
+
+ruby_add_bdepend "dev-ruby/magic
+ test? ( dev-ruby/mocha )"
+
+all_ruby_prepare() {
+ # Extract gemspec source from Rakefile
+ sed -n -e '/Gem::Specification/,/end$/p' Rakefile > ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e 's/PKG_NAME/"'${PN}'"/' \
+ -e 's/PKG_VERSION/"'${PV}'"/' \
+ -e '/s.files/d' ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_prepare() {
+ sed -i -e '/PKG_VERSION/ s:ruby:'${RUBY}':' Rakefile || die
+}