summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-12-02 01:41:47 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-12-02 01:41:47 +0000
commit3aa206b4455b83dcdcc08a12da863f3eb7f8b0ab (patch)
tree0238e786154470b7e2a59a06971719dbe8dfda70 /dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild
parent13510e3c98990deb74bdb1c4b5ff5ce359c4bdec (diff)
downloadbaldeagleos-repo-3aa206b4455b83dcdcc08a12da863f3eb7f8b0ab.tar.gz
baldeagleos-repo-3aa206b4455b83dcdcc08a12da863f3eb7f8b0ab.tar.xz
baldeagleos-repo-3aa206b4455b83dcdcc08a12da863f3eb7f8b0ab.zip
Adding metadata
Diffstat (limited to 'dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild')
-rw-r--r--dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild b/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild
new file mode 100644
index 000000000000..23d1ea00f7fd
--- /dev/null
+++ b/dev-ruby/ruby-feedparser/ruby-feedparser-0.10.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="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
+}