diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-04-07 07:43:22 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-04-07 07:53:06 +0200 |
commit | 7fa28682697bfd6b1c21942f384d2baf808b6b69 (patch) | |
tree | 19766c7645144b5c4ddcf39ace920ab990c5f6c1 /dev-ruby | |
parent | dev-ruby/css_parser: drop 1.14.0, 1.15.0 (diff) | |
download | gentoo-7fa28682697bfd6b1c21942f384d2baf808b6b69.tar.gz gentoo-7fa28682697bfd6b1c21942f384d2baf808b6b69.tar.bz2 gentoo-7fa28682697bfd6b1c21942f384d2baf808b6b69.zip |
dev-ruby/css_parser: add 1.17.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/css_parser/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/css_parser/css_parser-1.17.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest index 98bbf4e6ac09..eccf3e1466e3 100644 --- a/dev-ruby/css_parser/Manifest +++ b/dev-ruby/css_parser/Manifest @@ -1 +1,2 @@ DIST css_parser-1.16.0.tar.gz 39719 BLAKE2B 19c6e741bdfac308ea2b2edc557fbbe79580cb44f7a8e8538a3fbb55dcc02a76a56ec151d26ee2af887624fbe348a29c1acfbca30f17e0f2c73850ed7d3808af SHA512 d21f07da73ec3d164f766a392d88053fb156eb15645c4dbf3e4b70b73fdfad6c0b715368d9b000e668cf40dc338611be946064d586f4efcf7e13f261df74b6fa +DIST css_parser-1.17.0.tar.gz 39746 BLAKE2B c94f0b03d3e5e54ff390f83bc87c2bc9cd1aa0426898361d3f61fc36263fbb19251cccf346767e8d844b49471186051ffcadb3b87ad3092aa403ef02764a5e5a SHA512 9097b13c578727a7ab918be9b54f846d3f85bb666a54416f54bf509efebfbaf64dd22ec827adef61ba2fd8b46abc81cc302ba3bba35e7d87dee181d21f4cf578 diff --git a/dev-ruby/css_parser/css_parser-1.17.0.ebuild b/dev-ruby/css_parser/css_parser-1.17.0.ebuild new file mode 100644 index 000000000000..220acb7872bb --- /dev/null +++ b/dev-ruby/css_parser/css_parser-1.17.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_DOC_DIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md " +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +GITHUB_USER="premailer" +GITHUB_PROJECT="${PN}" +inherit ruby-fakegem + +DESCRIPTION="Sass-based Stylesheet Framework" +HOMEPAGE="https://github.com/premailer/css_parser/" +LICENSE="MIT" + +SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/v${PV}.tar.gz -> ${GITHUB_PROJECT}-${PV}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="doc test" + +ruby_add_rdepend "dev-ruby/addressable + virtual/ruby-ssl" + +ruby_add_bdepend "test? ( dev-ruby/maxitest dev-ruby/webrick )" + +all_ruby_prepare() { + # get rid of bundler usage + rm Gemfile || die + sed -i -e '/bundler/d' -e '/bump/d' Rakefile || die + sed -i -e '/bundler/d' test/test_helper.rb || die + # Avoid tests using the network. + sed -i -e '/test_loading_a_remote_file_over_ssl/,/end/ s:^:#:' test/test_css_parser_loading.rb || die + +} + +each_ruby_test() { + ${RUBY} -Ilib test/*.rb || die +} |