diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-02-19 09:05:49 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-02-19 09:10:34 +0100 |
commit | 5bde424d8f2134ca2c82aca2743bfadad9b3157d (patch) | |
tree | ecc81e9c760b0af8e8278807e4cc19fdcb9a80ae /dev-ruby/ruby-feedparser | |
parent | dev-ruby/sus: add 0.18.0 (diff) | |
download | gentoo-5bde424d8f2134ca2c82aca2743bfadad9b3157d.tar.gz gentoo-5bde424d8f2134ca2c82aca2743bfadad9b3157d.tar.bz2 gentoo-5bde424d8f2134ca2c82aca2743bfadad9b3157d.zip |
dev-ruby/ruby-feedparser: add 0.11.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/ruby-feedparser')
-rw-r--r-- | dev-ruby/ruby-feedparser/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ruby-feedparser/ruby-feedparser-0.11.2.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/ruby-feedparser/Manifest b/dev-ruby/ruby-feedparser/Manifest index a20800a3ccad..1fa9901dd048 100644 --- a/dev-ruby/ruby-feedparser/Manifest +++ b/dev-ruby/ruby-feedparser/Manifest @@ -1,2 +1,3 @@ DIST ruby-feedparser-0.10.0.tar.gz 2697849 BLAKE2B 679e8442b5b11eb56b30d346edc54d76d8f94f43ab26299ec0dd831faf6acb7fde304b4d6f8147d67ab013c9d7e50c163fcb75e8aa10ddc9091529e29eeb0d79 SHA512 0cbf8543a73385f1bd7fd2bcd647828e4e03ec648a62cd898cfd58ed574ede68760184037a5c7ba58acc42d1d51c54158ad1247216ede415791d0bbaf99a5ce8 DIST ruby-feedparser-0.11.0.tar.gz 2698521 BLAKE2B 55e3107fbef971e865b05ac0dc4ced0c0033689a93124c7ee7aff5c9979a8bdabf65a88484f744b7a4703cd8e10473d8fe76d6970f00b248afe37681154fe4ca SHA512 96f0d0471f3a1f61e4889c988e154bf4a1f8df5e3117e9c31fdcad905435276be58ad1027bd86f9ca9872f50ee020a04b78df0ad44b39b6ae096fdce7b64ed42 +DIST ruby-feedparser-0.11.2.tar.gz 2698609 BLAKE2B b516c7d50ba6bfd769dd42b5cfe85142df596556d21551f69c7d180eb172cae1d4c8ad86e44ae20cd87734b1d8f4b11456315b9c2a7df1a428a05dd8060bd8fd SHA512 1e067b0170f2c9df531b9378d004b06d098ddc21899755843fa2a2ae37a965e1f6060272525943e8b140b9f82bb6aad37a307dbb77adf74743ae76fd2a7c26d0 diff --git a/dev-ruby/ruby-feedparser/ruby-feedparser-0.11.2.ebuild b/dev-ruby/ruby-feedparser/ruby-feedparser-0.11.2.ebuild new file mode 100644 index 000000000000..4388459c4a69 --- /dev/null +++ b/dev-ruby/ruby-feedparser/ruby-feedparser-0.11.2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +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:1.0 )" + +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 + sed -i -e '2igem "mocha", "<2"' test/tc_sgml_parser.rb || die +} + +each_ruby_prepare() { + sed -i -e '/PKG_VERSION/ s:ruby:'${RUBY}':' Rakefile || die +} |