diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-23 14:04:09 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-24 16:00:33 +0100 |
commit | 6abae3b3ec51c4e07aca22ab0d8bd71a6a5008c3 (patch) | |
tree | e43fc8f17bd929cea96bbc6fde65da33ba129cb9 /dev-ruby/css_parser | |
parent | dev-ruby/maxitest: add 4.3.0 (diff) | |
download | gentoo-6abae3b3ec51c4e07aca22ab0d8bd71a6a5008c3.tar.gz gentoo-6abae3b3ec51c4e07aca22ab0d8bd71a6a5008c3.tar.bz2 gentoo-6abae3b3ec51c4e07aca22ab0d8bd71a6a5008c3.zip |
dev-ruby/css_parser: add 1.12.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/css_parser')
-rw-r--r-- | dev-ruby/css_parser/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/css_parser/css_parser-1.12.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 f2995e901e08..5ad5e10d72de 100644 --- a/dev-ruby/css_parser/Manifest +++ b/dev-ruby/css_parser/Manifest @@ -1,3 +1,4 @@ DIST css_parser-1.10.0.tar.gz 38843 BLAKE2B 8b611a270791e0f1e0b69d4ab0df3c119fc3f2631a7bcebab1030939e61d2799acfce0ca9f9b634d813c47c13a6c698f9449918fab1cdfb5aa4b14674b749c3f SHA512 979855df651ab56da5736f6646f4b4f0be5718899c4f81ae514299566e874d2f7b414d87616e5fba7390730bba1f20966e01641a47dc2cbb3e20fd7536f38580 DIST css_parser-1.11.0.tar.gz 38987 BLAKE2B e3420b635a7604dee4ca4c5f434dc3a8f3caf27310fb8d1a947e8d6aedb47e1130846afbe989f9d2c9c52b1db9e1266849fec09253c243a1f28a3bcb6ea58785 SHA512 9dfc1aff7f05dca82a10504c6e1c42011385e17db5f43faa5c83a2c2226b2f7a524fc626c6f7ce69e49d1919a6fc12baed35823d0da07940d41804bd1590ba50 +DIST css_parser-1.12.0.tar.gz 39191 BLAKE2B 8c112aab26248c1566df6c2f1078b6bb068406d50dc08da7c52395f4f8dd2ee16dd1e99d3812922af7c70d50a07ccab4f979c38caf8d2974a1c5d1ff29932c2f SHA512 6f5f4af113d30ba795dcf0bf104519697a2eb6cd092342c21b3236eb6db39d12ff5fde8c29971242f955bb9658c357995f37c00de69d53cc22cc4a5860446fb9 DIST css_parser-1.9.0.tar.gz 38201 BLAKE2B 6d2042429f7347613b14649e7c205e88a26dec9759a1634a3805e79e3f8599ab6b1ab2c4283dee631476e16580f447c08cd41327a62c813eb006a7e435787f9e SHA512 79ff06b471298f2fe82b096703c828122f1ae778b71fcac3f2eea1e243145729d3871c21eb1714777a2648ba91d05b9b973691b5ff41b2361eecb4170d3a2601 diff --git a/dev-ruby/css_parser/css_parser-1.12.0.ebuild b/dev-ruby/css_parser/css_parser-1.12.0.ebuild new file mode 100644 index 000000000000..1faa46577b4b --- /dev/null +++ b/dev-ruby/css_parser/css_parser-1.12.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +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 )" + +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 +} |