dev-nim/jester: new package, add 0.5.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-06-30 01:11:27 +05:00
parent 68f0c20f6d
commit 27213ed12a
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit nimble
DESCRIPTION="A sinatra-like web framework for Nim"
HOMEPAGE="
https://github.com/dom96/jester
https://nimble.directory/pkg/jester
"
SRC_URI="https://github.com/dom96/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="${PV}"
KEYWORDS="~amd64"
IUSE="test"
# can't deselect broken tests
RESTRICT="test"
RDEPEND="dev-nim/httpbeast"
DEPEND="
test? (
${RDEPEND}
dev-nim/asynctools
)
"
DOCS=( {changelog,readme,todo}.markdown )
set_package_url "https://github.com/dom96/jester"
src_prepare() {
default
sed "s|https://github.com/timotheecour/\(asynctools\)|\1|g" \
-i *.nimble || die
use test || nimble_comment_requires asynctools
sed "s/nimble \(c --hints:off\) -y/nim \1/g" -i tests/tester.nim || die
}
src_test() {
enim r tests/tester
}