blob: 4d00f99db5556f318f598616c643177f40cb6293 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26"
RUBY_FAKEGEM_RECIPE_DOC="none"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.md"
inherit ruby-fakegem
DESCRIPTION="Use libsass with Ruby"
HOMEPAGE="https://github.com/sass/sassc-ruby"
LICENSE="MIT"
KEYWORDS="~amd64"
SLOT="2"
IUSE=""
RDEPEND+=">=dev-libs/libsass-3.6.1"
ruby_add_rdepend "
>=dev-ruby/ffi-1.9.6
"
ruby_add_bdepend "test? (
dev-ruby/test_construct
dev-ruby/minitest-around
)"
all_ruby_prepare() {
# Use unbundled libsass
rm -rf ext || die
sed -i -e '/ffi_lib/ s:__dir__:"/usr/lib64":' \
lib/sassc/native.rb || die
# Avoid version-specific test so newer libsass versions can be used.
sed -i -e '/test_it_reports_the_libsass_version/,/end/ s:^:#:' test/native_test.rb || die
sed -i -e '/pry/ s:^:#:' test/test_helper.rb || die
}
each_ruby_test() {
${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die
}
|