diff --git a/dev-nim/sync/Manifest b/dev-nim/sync/Manifest new file mode 100644 index 0000000000..600f546f4a --- /dev/null +++ b/dev-nim/sync/Manifest @@ -0,0 +1 @@ +DIST sync-1.5.0.tar.gz 75216 BLAKE2B 9de2415cd591d0094b7bdbb0a988a3547434d099e97f41eaca225e33bbd31a3d3d253f802d60f01455e21d91f192d604e4060824f9e7da12e507cc9236ef4480 SHA512 4943afff8e219283042001c43e7e47297197c598c5885dd958f29d42d96ee911582aff56a519305a9ffa87e2e8dffa8f2d1586d94fe9758c2aab08f6743480ab diff --git a/dev-nim/sync/metadata.xml b/dev-nim/sync/metadata.xml new file mode 100644 index 0000000000..b6e2d77aed --- /dev/null +++ b/dev-nim/sync/metadata.xml @@ -0,0 +1,13 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + + planetis-m/sync + https://github.com/planetis-m/sync/issues + https://planetis-m.github.io/sync/index.html + + diff --git a/dev-nim/sync/sync-1.5.0.ebuild b/dev-nim/sync/sync-1.5.0.ebuild new file mode 100644 index 0000000000..5ef306697b --- /dev/null +++ b/dev-nim/sync/sync-1.5.0.ebuild @@ -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 +}