summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-01-13 08:40:47 +0100
committerHans de Graaff <graaff@gentoo.org>2023-01-13 08:57:55 +0100
commiteb9e1b0e1742532db54607f3640f176521333e05 (patch)
treec6439a33a084ab6531bb0e3fcafea6406fbf9e6d /dev-ruby/css_parser
parentnet-firewall/xtables-addons: drop 3.13, 3.18 (diff)
downloadgentoo-eb9e1b0e1742532db54607f3640f176521333e05.tar.gz
gentoo-eb9e1b0e1742532db54607f3640f176521333e05.tar.bz2
gentoo-eb9e1b0e1742532db54607f3640f176521333e05.zip
dev-ruby/css_parser: add 1.14.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/css_parser')
-rw-r--r--dev-ruby/css_parser/Manifest1
-rw-r--r--dev-ruby/css_parser/css_parser-1.14.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index eda035f3edd6..0351087c5214 100644
--- a/dev-ruby/css_parser/Manifest
+++ b/dev-ruby/css_parser/Manifest
@@ -1,2 +1,3 @@
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.14.0.tar.gz 39396 BLAKE2B 0cbed83854bf85779b7f3e495030f796e93310794f2f022d9cd5fa4ba29699e1e3676b18b0cc1027353e2d8daeb56001b5fbfd583e000ebb67499d8ea0aae735 SHA512 2d5da004b4c904e040d9814245c8a1e05cc08a5dff5ca8ec5050c1f2f288fa65c14b952fdc73aa88e1b945403f3b262c0958e942a5b20edd89cb9a8d97e07e22
diff --git a/dev-ruby/css_parser/css_parser-1.14.0.ebuild b/dev-ruby/css_parser/css_parser-1.14.0.ebuild
new file mode 100644
index 000000000000..3875807891b4
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.14.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="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
+}