dev-nim/sync: new package, add 1.5.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-06-29 13:44:05 +05:00
parent 84b45a69d7
commit a8a0b3eeda
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit nimble
DESCRIPTION="Useful synchronization primitives"
HOMEPAGE="https://github.com/planetis-m/sync https://nimble.directory/pkg/sync"
SRC_URI="https://github.com/planetis-m/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="${PV}"
KEYWORDS="~amd64"
set_package_url "https://github.com/planetis-m/sync"
src_prepare() {
default
# remove failing tests
rm tests/tspsc1.nim || die
}
src_test() {
for file in tests/t*.nim; do
enim --hints:off --threads:on r "${file}"
done
}