summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-02-12 06:48:55 +0100
committerHans de Graaff <graaff@gentoo.org>2019-02-12 19:17:16 +0100
commit04952da3c2ebdb2148b8eb0f553b90586d1cd606 (patch)
treec8fa824ac57c84af2a5a37f6c4fc50b2baade8d3 /dev-ruby/css_parser
parentdev-db/mariadb: Drop old (diff)
downloadgentoo-04952da3c2ebdb2148b8eb0f553b90586d1cd606.tar.gz
gentoo-04952da3c2ebdb2148b8eb0f553b90586d1cd606.tar.bz2
gentoo-04952da3c2ebdb2148b8eb0f553b90586d1cd606.zip
dev-ruby/css_parser: add 1.7.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
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.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index 9621ff520275..7fac06facc7a 100644
--- a/dev-ruby/css_parser/Manifest
+++ b/dev-ruby/css_parser/Manifest
@@ -1 +1,2 @@
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
diff --git a/dev-ruby/css_parser/css_parser-1.7.0.ebuild b/dev-ruby/css_parser/css_parser-1.7.0.ebuild
new file mode 100644
index 000000000000..5533ed58c75d
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.7.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+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="http://compass-style.org/ 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
+}