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

EAPI=8

USE_RUBY="ruby32 ruby33 ruby34"

RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
RUBY_FAKEGEM_GEMSPEC="json-schema.gemspec"
RUBY_FAKEGEM_RECIPE_TEST="rake"

inherit ruby-fakegem

DESCRIPTION="Ruby JSON Schema Validator"
HOMEPAGE="https://github.com/voxpupuli/json-schema/"
SRC_URI="https://github.com/voxpupuli/json-schema/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"

ruby_add_rdepend "
	>=dev-ruby/addressable-2.8
	>=dev-ruby/bigdecimal-3.1
"

ruby_add_bdepend "test? (
	dev-ruby/minitest:5
	dev-ruby/webmock
)"

PATCHES=(
	"${FILESDIR}/${P}-remove-dev-tasks.patch"
)

all_ruby_prepare() {
	# The common test suite requires a git submodule (test/test-suite) that
	# is not included in the release tarball. Remove it.
	rm test/common_test_suite_test.rb || die
}