summaryrefslogtreecommitdiff
path: root/dev-ruby/amatch/amatch-0.6.0.ebuild
blob: c50a7f79c426bdc7bfb198c0b24ba75a75ae69b5 (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34 ruby40"

RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"

RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"

RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb)

inherit ruby-fakegem

DESCRIPTION="Approximate Matching Extension for Ruby"
HOMEPAGE="https://github.com/flori/amatch"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86"
IUSE="test"

ruby_add_rdepend "
	dev-ruby/mize
	>=dev-ruby/tins-1
"

ruby_add_bdepend "test? ( dev-ruby/debug )"

# These packages also provide agrep, bug 626480
RDEPEND="!dev-libs/tre"

all_ruby_prepare() {
	sed -e '/simplecov/I s:^:#:' \
		-i tests/test_helper.rb || die
}

each_ruby_test() {
	${RUBY} -Ilib -S testrb-2 tests/* || die
}