dev-ruby/ruby-feedparser: add 0.11.4

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-06-19 07:30:16 +02:00
parent 3a6f9f9993
commit d8a4f438aa
2 changed files with 41 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST ruby-feedparser-0.11.3.tar.gz 2688778 BLAKE2B ea7fa378de51e44ce8b02dd1004b2b83e2d14e93d2725db180e00dd90a010e4bda2bc890a48729f33f565f4e0db92044b1dd3156225ef5b23dc2da0613a2a525 SHA512 fb4e27da60b67668af4ed4c6535ea420c13e1fb53d211f63899553407f14cbdd2b0c2d95fcc07cc6acace682b3392698c99de3e5f67a1c461e26dd262b7b8249
DIST ruby-feedparser-0.11.4.tar.gz 3193181 BLAKE2B 2e570c6e8b325e3dc043c0ac44d7571b3cb682c65003198de05920bcb504767bf7fa6ea57ff8f5d7423472d585a4f41020d7752130bcce7298d9d1d4bc5aa315 SHA512 61b7c5f9263047cd3a13264d98b86d7ac163e7a0568bf6f39e3ad0ef1f84dd9b9314788d7de31843fa06f2c28f2ddc1af03693f5b18b6ce9ab06f67332e48e89

View File

@@ -0,0 +1,40 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
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"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
ruby_add_rdepend "dev-ruby/magic"
ruby_add_bdepend "dev-ruby/magic
test? ( dev-ruby/mocha:2 dev-ruby/test-unit )"
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
}