summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-12-01 08:46:06 +0100
committerHans de Graaff <graaff@gentoo.org>2016-12-01 08:46:06 +0100
commit339e629d8bace39548f59b90c590ca5827e005d3 (patch)
treea1ed8cd5c57971bde2eeca5bc73eea44fe8c67a4 /dev-ruby/css_parser
parentdev-ruby/css_parser: cleanup (diff)
downloadgentoo-339e629d8bace39548f59b90c590ca5827e005d3.tar.gz
gentoo-339e629d8bace39548f59b90c590ca5827e005d3.tar.bz2
gentoo-339e629d8bace39548f59b90c590ca5827e005d3.zip
dev-ruby/css_parser: add 1.4.7
Package-Manager: portage-2.3.0
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.4.7.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/css_parser/Manifest b/dev-ruby/css_parser/Manifest
index f03b93cb9e41..48e7e0613c55 100644
--- a/dev-ruby/css_parser/Manifest
+++ b/dev-ruby/css_parser/Manifest
@@ -1 +1,2 @@
DIST css_parser-1.4.6.tar.gz 25922 SHA256 d00522d5a5e116253586e9c45411ea72ed495589cf14254930c67a03dda5012b SHA512 300147893671948603ebd696449235997088cce588b57b6fb59acc2e190bf1c8ddd98c6e59cd41b157807b2cca3cc8edd3aa1c352e1865d3f5f6238a4d13cd01 WHIRLPOOL a912f1b4d9277c436b37aa2aae66f1f7e9c724373239ad7d0e7a357e917afe5ab42bb06e335871f744049611c3966b53b3f098a457ef84694f975a86ab37aaee
+DIST css_parser-1.4.7.tar.gz 25916 SHA256 2a0a502c80e76784e7d5b162a64d8d4da04653a4491aba39f5f2f548fab27c87 SHA512 f45ae04af3d78ae956392fc478cea3ccfece378acb9e169ffd29a24e3f1ed208cddf1d6d2cb5e0ce12780bd5e0dda12032d920b4cc11e2b3f25b08b3aeb92af8 WHIRLPOOL c9fd1d175d0db7135e814cf0b7205d965fa6a292d47ec4390a581ecde9ac14c6bd6cf0e87e554f8207cdd158d7250ea09fca1380a9fb6d978e86c7fb1255b1be
diff --git a/dev-ruby/css_parser/css_parser-1.4.7.ebuild b/dev-ruby/css_parser/css_parser-1.4.7.ebuild
new file mode 100644
index 000000000000..48c0b9431310
--- /dev/null
+++ b/dev-ruby/css_parser/css_parser-1.4.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+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
+}