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.
gentoo-overlay/dev-ruby/sass/sass-3.2.3.ebuild

48 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sass/sass-3.2.3.ebuild,v 1.2 2012/11/11 17:57:37 graaff Exp $
EAPI=2
USE_RUBY="ruby18 ruby19 ree18 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
DESCRIPTION="An extension of CSS3, adding nested rules, variables, mixins, selector inheritance, and more."
HOMEPAGE="http://sass-lang.com/"
LICENSE="MIT"
KEYWORDS="~amd64 ~ppc ~ppc64"
SLOT="0"
IUSE=""
ruby_add_bdepend "doc? ( >=dev-ruby/yard-0.5.3 >=dev-ruby/maruku-0.5.9 )"
ruby_add_rdepend ">=dev-ruby/listen-0.4.2 !!<dev-ruby/haml-3.1"
# tests could use `less` if we had it
all_ruby_prepare() {
rm -rf vendor/listen
}
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
;;
*)
;;
esac
}