summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-12-02 09:36:51 +0100
committerHans de Graaff <graaff@gentoo.org>2019-12-02 09:37:01 +0100
commit9f8263e7c3ca4b626933989abf540916290b789b (patch)
tree0baa943a8ed8795be6b9f1422cd0c02028fd2325 /dev-ruby/css_parser
parentapp-admin/graylog: Revert "add version 3.1.3" (diff)
downloadgentoo-9f8263e7c3ca4b626933989abf540916290b789b.tar.gz
gentoo-9f8263e7c3ca4b626933989abf540916290b789b.tar.bz2
gentoo-9f8263e7c3ca4b626933989abf540916290b789b.zip
dev-ruby/css_parser: add 1.7.1
Package-Manager: Portage-2.3.79, Repoman-2.3.16 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.7.1.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index 7fac06facc7a..48c0ccd95465 100644
--- a/dev-ruby/css_parser/Manifest
+++ b/dev-ruby/css_parser/Manifest
@@ -1,2 +1,3 @@
DIST css_parser-1.6.0.tar.gz 33251 BLAKE2B 1e28e6999675fadc1bc6a98417cc698fb2e5f16e8d8b27e186037112ac9c3cee82161c7530b962209d76d91359d68016210a371c9e8a7f7d631c7aec73bc5c81 SHA512 838baf3cc4249e890f7cf006370f148261b392549e6cc25b11246e15c8347a8877b4cc3bfe70dee18a822a9a8fc496705787262d79e177d62587f41ba6f4c4d6
DIST css_parser-1.7.0.tar.gz 33480 BLAKE2B c9bf7f901f18f09b937d58d791a4550c37ae19b161ee8454eee4e88f55bd3871c9b264e935a00e86c8b918c45a2c4c7cbc7454f665e0a9d9c53621e21df294e5 SHA512 abf1f80577e9874e14e28bdffe9539ff2eb63a5521075e2ec481fc2b4e53c9652bcb60e7806b21a6e0866ec396cbdb495768db212018eb30dbf9e70088f0af4b
+DIST css_parser-1.7.1.tar.gz 33667 BLAKE2B 5732461958bb3abe7578c3898bd80c601fc957c38b3feda5092d89c4419cd64f0c6e4be296919c07bea5e9082cb03f32bfe9255244b56206caa7bab8e1a29765 SHA512 f1dba16fa18362e1b58d463a1f718c4c981170f3a7b0b719e5a309b74decded063cd3631540a4b76c1d78e5cfa92a35b56130979d7724d745eacdc372c69dd9b
diff --git a/dev-ruby/css_parser/css_parser-1.7.1.ebuild b/dev-ruby/css_parser/css_parser-1.7.1.ebuild
new file mode 100644
index 000000000000..e6b598cea4fb
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.7.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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
+}