summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-12-14 07:54:23 +0100
committerHans de Graaff <graaff@gentoo.org>2021-12-14 07:54:23 +0100
commitf2ba3c5a939bf07674343891a4456f440d8aaa67 (patch)
tree5f770ffc889383befe1e61b5387510c02e436c22 /dev-ruby/css_parser
parentdev-perl/XML-Parser: adjust einfo quoting (diff)
downloadgentoo-f2ba3c5a939bf07674343891a4456f440d8aaa67.tar.gz
gentoo-f2ba3c5a939bf07674343891a4456f440d8aaa67.tar.bz2
gentoo-f2ba3c5a939bf07674343891a4456f440d8aaa67.zip
dev-ruby/css_parser: add 1.11.0
Package-Manager: Portage-3.0.28, Repoman-3.0.3 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.11.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index b8c5470ac5b1..9368d2574cfa 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.7.1.tar.gz 33667 BLAKE2B 5732461958bb3abe7578c3898bd80c601fc957c38b3feda5092d89c4419cd64f0c6e4be296919c07bea5e9082cb03f32bfe9255244b56206caa7bab8e1a29765 SHA512 f1dba16fa18362e1b58d463a1f718c4c981170f3a7b0b719e5a309b74decded063cd3631540a4b76c1d78e5cfa92a35b56130979d7724d745eacdc372c69dd9b
DIST css_parser-1.9.0.tar.gz 38201 BLAKE2B 6d2042429f7347613b14649e7c205e88a26dec9759a1634a3805e79e3f8599ab6b1ab2c4283dee631476e16580f447c08cd41327a62c813eb006a7e435787f9e SHA512 79ff06b471298f2fe82b096703c828122f1ae778b71fcac3f2eea1e243145729d3871c21eb1714777a2648ba91d05b9b973691b5ff41b2361eecb4170d3a2601
diff --git a/dev-ruby/css_parser/css_parser-1.11.0.ebuild b/dev-ruby/css_parser/css_parser-1.11.0.ebuild
new file mode 100644
index 000000000000..e2ae1feb1af3
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.11.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+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
+}