You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.5 KiB
56 lines
1.5 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
10 years ago
|
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sass/sass-3.3.8.ebuild,v 1.1 2014/05/31 06:16:20 graaff Exp $
|
||
11 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
10 years ago
|
USE_RUBY="ruby19 ruby20 ruby21 jruby"
|
||
11 years ago
|
|
||
|
RUBY_FAKEGEM_TASK_DOC=""
|
||
|
RUBY_FAKEGEM_DOCDIR="doc"
|
||
|
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||
|
|
||
|
RUBY_FAKEGEM_EXTRAINSTALL="rails init.rb VERSION VERSION_NAME"
|
||
|
|
||
10 years ago
|
inherit ruby-fakegem versionator
|
||
11 years ago
|
|
||
|
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"
|
||
10 years ago
|
SLOT="$(get_version_component_range 1-2)"
|
||
11 years ago
|
IUSE=""
|
||
|
|
||
|
ruby_add_bdepend "doc? ( >=dev-ruby/yard-0.5.3 )"
|
||
|
|
||
10 years ago
|
ruby_add_rdepend ">=dev-ruby/listen-1.3.1:1 !!<dev-ruby/haml-3.1 !!<dev-ruby/sass-3.2.19-r1"
|
||
11 years ago
|
|
||
|
# 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
|
||
10 years ago
|
sed -i -e '/test_random/,/^ end/ s:^:#:' test/sass/functions_test.rb || die
|
||
11 years ago
|
;;
|
||
|
*)
|
||
|
;;
|
||
|
esac
|
||
|
}
|
||
10 years ago
|
|
||
|
each_ruby_test() {
|
||
|
RUBOCOP=false ${RUBY} -S rake test || die
|
||
|
}
|