blob: 458ef63240418c0e64364b21ebf1d8145f855570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sass/sass-3.3.11.ebuild,v 1.2 2014/08/05 16:00:26 mrueg Exp $
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21 jruby"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.md"
RUBY_FAKEGEM_EXTRAINSTALL="rails init.rb VERSION VERSION_NAME"
inherit ruby-fakegem versionator
DESCRIPTION="An extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more"
HOMEPAGE="http://sass-lang.com/"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
SLOT="$(get_version_component_range 1-2)"
IUSE=""
ruby_add_bdepend "doc? ( >=dev-ruby/yard-0.5.3 )"
ruby_add_rdepend ">=dev-ruby/listen-1.3.1:1 !!<dev-ruby/haml-3.1 !!<dev-ruby/sass-3.2.19-r1"
# tests could use `less` if we had it
all_ruby_prepare() {
rm -rf vendor/listen || die
# Don't require maruku as markdown provider but let yard decide.
sed -i -e '/maruku/d' .yardopts || die
}
each_ruby_prepare() {
case ${RUBY} in
*jruby)
# Test fails on jruby for us, upstream can't
# reproduce. Avoiding it since it only affects debug
# information in the CSS file.
# https://github.com/nex3/sass/issues/563
sed -i -e '24s/filename_fn//' test/sass/plugin_test.rb || die
sed -i -e '/test_random/,/^ end/ s:^:#:' test/sass/functions_test.rb || die
;;
*)
;;
esac
}
each_ruby_test() {
RUBOCOP=false ${RUBY} -S rake test || die
}
|