mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-crystal/spectator: add 0.12.4, drop 0.12.1-r1
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
DIST spectator-0.12.1.tar.gz 156923 BLAKE2B a36c18c339d4cf295fd64433daf5d9c642858598dcd91e7adfe57f813e0e2a3adfaca7b42968b95eb332541e666b32d2b1a02931e0b68b7280d20b26a5d3e276 SHA512 f003e79608c5e4dd5965de446698e7bcb8049bc45185cbd7bfcb0a6523a77ca68d8d875b7985c1efce5533630845a9eb929c3aa26ec190f5613e5b450824f7d6
|
||||
DIST spectator-v0.12.2.tar.bz2 119342 BLAKE2B c677ffa18bb1e8b672d2a0e51cb3fd50eecc9262dc34a1a73b0dfa6056c9278443ae0a6bf30ab538b6c7e4014ee116f0b06659455b7a0fc7d73c38481d333484 SHA512 d2f5ca5d7f461263a3f4f58b3de5efd9c51fc00ede0add74254d2f90d3ddacc4474bf4b280b9d11b7dca31203bc3f4696a305ce374781712fb8ef420df726c4c
|
||||
DIST spectator-v0.12.4.tar.bz2 120393 BLAKE2B af1def2af2388d247ee109d9b62fac5d8e4cdabf1802cbfaec59817cf8564e6eba51ade3c92db0406424998c5d9f61a25bbe371838fbb3095e8f1edf2c6adf93 SHA512 d37e38ee78137fd04acd0a0328b2cd87c78ad82b36fbf937079bf8f5bfe33a812b55c7c148694063ab3b95526bd31f7e23d2c9ec11b1732fa7e1ae8c4ae43b88
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
# Copyright 2022-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit shards
|
||||
|
||||
DESCRIPTION="Feature-rich testing framework for Crystal inspired by RSpec"
|
||||
HOMEPAGE="https://github.com/icy-arctic-fox/spectator"
|
||||
SRC_URI="https://github.com/icy-arctic-fox/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( {ARCHITECTURE,CHANGELOG,CONTRIBUTING,README}.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove a test that might fail to build (bug 945172)
|
||||
rm spec/issues/github_issue_48_spec.cr || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# adopted from .gitlab-ci.yml
|
||||
shards_src_test spec/matchers/ spec/spectator/*.cr
|
||||
shards_src_test spec/docs/
|
||||
shards_src_test spec/features/
|
||||
shards_src_test spec/issues/
|
||||
shards_src_test spec/rspec/
|
||||
|
||||
# Build failure
|
||||
#shards_src_test spec/spectator/dsl/
|
||||
|
||||
# Compile each test individually, because otherwise
|
||||
# up to 3G of RAM is eaten by compilation.
|
||||
local t
|
||||
for t in spec/spectator/mocks/*; do
|
||||
shards_src_test "${t}"
|
||||
done
|
||||
}
|
||||
52
dev-crystal/spectator/spectator-0.12.4.ebuild
Normal file
52
dev-crystal/spectator/spectator-0.12.4.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=9
|
||||
|
||||
inherit shards
|
||||
|
||||
MY_P="${PN}-v${PV}"
|
||||
DESCRIPTION="Feature-rich testing framework for Crystal inspired by RSpec"
|
||||
HOMEPAGE="https://gitlab.com/arctic-fox/spectator"
|
||||
SRC_URI="https://gitlab.com/arctic-fox/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( {ARCHITECTURE,CHANGELOG,CONTRIBUTING,README}.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local tests_to_remove=(
|
||||
# broken in v0.12.4
|
||||
spec/rspec/expectations/contain_exactly_matcher_spec.cr
|
||||
spec/spectator/mocks/mock_spec.cr
|
||||
|
||||
# bug #945172
|
||||
spec/issues/github_issue_48_spec.cr
|
||||
)
|
||||
|
||||
rm "${tests_to_remove[@]}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# adopted from .gitlab-ci.yml
|
||||
crystal_spec spec/matchers/ spec/spectator/*.cr
|
||||
crystal_spec spec/docs/
|
||||
crystal_spec spec/features/
|
||||
crystal_spec spec/issues/
|
||||
crystal_spec spec/rspec/
|
||||
|
||||
# Build failure
|
||||
#crystal_spec spec/spectator/dsl/
|
||||
|
||||
# Compile each test individually, because otherwise
|
||||
# up to 3G of RAM are eaten by compilation.
|
||||
local t
|
||||
for t in spec/spectator/mocks/*; do
|
||||
crystal_spec "${t}"
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user