summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-09-10 07:59:32 +0200
committerHans de Graaff <graaff@gentoo.org>2017-09-10 07:59:32 +0200
commitb98fd9d00b326c21b75f02178f7097758f318d63 (patch)
tree8053c3299f575708690e8e8f2f5582d89874c3d4 /dev-ruby/css_parser
parentdev-ruby/css_parser: cleanup (diff)
downloadgentoo-b98fd9d00b326c21b75f02178f7097758f318d63.tar.gz
gentoo-b98fd9d00b326c21b75f02178f7097758f318d63.tar.bz2
gentoo-b98fd9d00b326c21b75f02178f7097758f318d63.zip
dev-ruby/css_parser: add 1.6.0
Package-Manager: Portage-2.3.6, Repoman-2.3.2
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.6.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index b0ab284b9b75..410ba36bb29d 100644
--- a/dev-ruby/css_parser/Manifest
+++ b/dev-ruby/css_parser/Manifest
@@ -1,2 +1,3 @@
DIST css_parser-1.4.10.tar.gz 26718 SHA256 97e3939c705354a99041b4a741e0e91ed6ac85898fb31bc03ac9e9fb22297fec SHA512 ad48200cd9f6fd36d1b13e8699098380c7d74e5349ed1a6aa294615800689a2959f7a91acff9679a630f525d0141f40aaade498570de4f296333c9525b0f1c22 WHIRLPOOL 736b4d43835e7bd12cb7f987a20dee33cc33907239d58e3bab0615e47d36bc6acfb9a086f2126626af7aad4c0b800a04d9c7b1c9723261d5433a30ee7c198754
DIST css_parser-1.5.0.tar.gz 32835 SHA256 4a405974f2060cba41a869494f0355a999634404d6e840a612bd5ebedc1a0d92 SHA512 4d33494abac5aed71cc73345853f7df7cc21bfe1a03d6d443968c357736311104eba4e816fa4b7dae7f42cd5f38dc7a3d8752c13a58387049cfc7a7d11c4f8f6 WHIRLPOOL f02a6ec95c6c1d18c50f4fdb645c92aea1726aaaf46a6e9ba94c5d85ee6cb3dd6cc36fef5febd861531e1c6e3deefdf2f057d66d64a2c7fc7fec89568251fe14
+DIST css_parser-1.6.0.tar.gz 33251 SHA256 725c085de7512e07d1ccab35832037b693e1f7d073a38893446cfaefd9e249ea SHA512 838baf3cc4249e890f7cf006370f148261b392549e6cc25b11246e15c8347a8877b4cc3bfe70dee18a822a9a8fc496705787262d79e177d62587f41ba6f4c4d6 WHIRLPOOL ca053f40eeb85a7460f44ccf1cf51cf9d17ab0fec07617ba189c1a09350ecb5aaaf0e23a3fe40c8973793b04bc88cbea0723b3c5a80a84f5d451ef26ac9dfa03
diff --git a/dev-ruby/css_parser/css_parser-1.6.0.ebuild b/dev-ruby/css_parser/css_parser-1.6.0.ebuild
new file mode 100644
index 000000000000..b07b68486700
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+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"
+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
+}