summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-12-04 09:19:26 +0100
committerHans de Graaff <graaff@gentoo.org>2019-12-04 09:19:37 +0100
commitfb07d0edd9066f597900b551097c1c076a4e812f (patch)
tree3a5cacc18688fb0d86b083a0283d132caba10c5c /dev-ruby
parentdev-ruby/sassc-rails: cleanup (diff)
downloadgentoo-fb07d0edd9066f597900b551097c1c076a4e812f.tar.gz
gentoo-fb07d0edd9066f597900b551097c1c076a4e812f.tar.bz2
gentoo-fb07d0edd9066f597900b551097c1c076a4e812f.zip
dev-ruby/sassc-rails: fix gemspec generation
Closes: https://bugs.gentoo.org/692918 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/sassc-rails/sassc-rails-2.1.2-r1.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/sassc-rails/sassc-rails-2.1.2-r1.ebuild b/dev-ruby/sassc-rails/sassc-rails-2.1.2-r1.ebuild
new file mode 100644
index 000000000000..089cbd49d652
--- /dev/null
+++ b/dev-ruby/sassc-rails/sassc-rails-2.1.2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem eapi7-ver
+
+DESCRIPTION="Integrate SassC-Ruby with Rails"
+HOMEPAGE="https://github.com/sass/sassc-rails"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/sassc-2.0
+ dev-ruby/tilt:*
+ >=dev-ruby/railties-4:*
+ >=dev-ruby/sprockets-3.0:*
+ dev-ruby/sprockets-rails:*
+"
+
+ruby_add_bdepend "
+ test? ( dev-ruby/bundler dev-ruby/mocha )"
+
+all_ruby_prepare() {
+ sed -e '/rake/ s/,.*$//' \
+ -e 's/git ls-files -z/find . -print0/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -S bundle exec rake test || die
+}