diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-30 07:12:44 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-30 07:25:31 +0200 |
commit | 35f2e67b28690ee37e679dc65b66407cf8cff487 (patch) | |
tree | 6d4136701ddb6ff5ed6220c0b0fa6a0ee002e9d6 /dev-ruby | |
parent | dev-ruby/typeprof: add 0.21.8 (diff) | |
download | gentoo-35f2e67b28690ee37e679dc65b66407cf8cff487.tar.gz gentoo-35f2e67b28690ee37e679dc65b66407cf8cff487.tar.bz2 gentoo-35f2e67b28690ee37e679dc65b66407cf8cff487.zip |
dev-ruby/css_parser: add 1.15.0
Closes: https://bugs.gentoo.org/911904
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.15.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 08416b7e8cf4..d5d4a5bcb536 100644 --- a/dev-ruby/css_parser/Manifest +++ b/dev-ruby/css_parser/Manifest @@ -1 +1,2 @@ DIST css_parser-1.14.0.tar.gz 39396 BLAKE2B 0cbed83854bf85779b7f3e495030f796e93310794f2f022d9cd5fa4ba29699e1e3676b18b0cc1027353e2d8daeb56001b5fbfd583e000ebb67499d8ea0aae735 SHA512 2d5da004b4c904e040d9814245c8a1e05cc08a5dff5ca8ec5050c1f2f288fa65c14b952fdc73aa88e1b945403f3b262c0958e942a5b20edd89cb9a8d97e07e22 +DIST css_parser-1.15.0.tar.gz 39437 BLAKE2B c64fc7a68789a7517e9faedf63232bfe16f593b542772ee93da0989784c9eae47fda6819770b79e7f036039828b4f8320b94b8fccbd0cd784a225f08ff982131 SHA512 93c313ea922e8cdc74b3812ffdbfae84c335fc39614339e8965265e92585cabdec8828ebe296ff32e807f736ed20ff91f1c2be10948a35f57e996b39c6ab9211 diff --git a/dev-ruby/css_parser/css_parser-1.15.0.ebuild b/dev-ruby/css_parser/css_parser-1.15.0.ebuild new file mode 100644 index 000000000000..34a6b61fe253 --- /dev/null +++ b/dev-ruby/css_parser/css_parser-1.15.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +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 +} |