dev-crystal/spectator: add 0.12.2

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-10-30 11:51:36 +05:00
parent f6b8b9814e
commit 03a3757c6e
3 changed files with 53 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST spectator-0.12.0.tar.gz 156833 BLAKE2B 49fb7de6bbf9091fc081f18fce921f2f37d4a56aecb7927296f27e7168deacb4ace8c2a720e039e122d29366735ba2bc0484893c5f617f9b202f350b329d8266 SHA512 4f67c1609c8055de9f354634bcd15aab408dfddf9392e05e34a882ba027a23135c8f00322286dad6ff6adaed3b934dbef44f9816ecd48b0d59fa25d200e71b16
DIST spectator-0.12.1.tar.gz 156923 BLAKE2B a36c18c339d4cf295fd64433daf5d9c642858598dcd91e7adfe57f813e0e2a3adfaca7b42968b95eb332541e666b32d2b1a02931e0b68b7280d20b26a5d3e276 SHA512 f003e79608c5e4dd5965de446698e7bcb8049bc45185cbd7bfcb0a6523a77ca68d8d875b7985c1efce5533630845a9eb929c3aa26ec190f5613e5b450824f7d6
DIST spectator-v0.12.2.tar.bz2 119342 BLAKE2B c677ffa18bb1e8b672d2a0e51cb3fd50eecc9262dc34a1a73b0dfa6056c9278443ae0a6bf30ab538b6c7e4014ee116f0b06659455b7a0fc7d73c38481d333484 SHA512 d2f5ca5d7f461263a3f4f58b3de5efd9c51fc00ede0add74254d2f90d3ddacc4474bf4b280b9d11b7dca31203bc3f4696a305ce374781712fb8ef420df726c4c

View File

@@ -11,5 +11,6 @@
<email>icy.arctic.fox@gmail.com</email>
</maintainer>
<remote-id type="github">icy-arctic-fox/spectator</remote-id>
<remote-id type="gitlab">arctic-fox/spectator</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,51 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
# broken tests
RESTRICT="test"
DOCS=( {ARCHITECTURE,CHANGELOG,CONTRIBUTING,README}.md )
src_prepare() {
default
local tests_to_remove=(
# bug #945172
spec/issues/github_issue_48_spec.cr
)
rm "${tests_to_remove[@]}" || 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 are eaten by compilation.
local t
for t in spec/spectator/mocks/*; do
shards_src_test "${t}"
done
}