blob: ab526694d3061cd39db4a1f29c9dfe38a87ae95a (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby25 ruby26 ruby27 ruby30"
RUBY_FAKEGEM_EXTRADOC="README.md HISTORY.md"
inherit ruby-fakegem
DESCRIPTION="Helper class for launching cross-platform applications"
HOMEPAGE="https://github.com/copiousfreetime/launchy"
LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE=""
ruby_add_rdepend ">=dev-ruby/addressable-2.7"
ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.0:5 )"
all_ruby_prepare() {
sed -i -e "/[Ss]implecov/d" spec/spec_helper.rb || die
# Avoid tests depending on the current user's desktop environment.
sed -e '/returns NotFound if it cannot determine/askip "gentoo"' \
-i spec/detect/nix_desktop_environment_spec.rb || die
sed -e '/asssumes we open a local file if we have an exception/askip "gentoo"' \
-i spec/launchy_spec.rb || die
sed -e "/'darwin'/ s:^:#:" \
-i spec/applications/browser_spec.rb || die
}
|