aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-06-17 17:27:25 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-06-17 17:28:52 +0500
commit4c6e5ac3e96feffdb72072ea244601d4f2521057 (patch)
treeaa6808176f81de1b931ea4d9a049e56395ad5b3d /dev-nim
parentapp-editors/pulsar-bin: Update ebuild according to suggestions (diff)
downloadguru-4c6e5ac3e96feffdb72072ea244601d4f2521057.tar.gz
guru-4c6e5ac3e96feffdb72072ea244601d4f2521057.tar.bz2
guru-4c6e5ac3e96feffdb72072ea244601d4f2521057.zip
dev-nim/jester: add 0.6.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'dev-nim')
-rw-r--r--dev-nim/jester/Manifest2
-rw-r--r--dev-nim/jester/files/jester-0.6.0-remove-test.patch15
-rw-r--r--dev-nim/jester/jester-0.6.0.ebuild56
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-nim/jester/Manifest b/dev-nim/jester/Manifest
index 1c79db935..32776971d 100644
--- a/dev-nim/jester/Manifest
+++ b/dev-nim/jester/Manifest
@@ -1 +1,3 @@
+DIST NIA-a776a247bef10a61697530742d70c1c214ad2a78.tar.gz 11454 BLAKE2B 8f4105a0a35d132d029952c77973ce162582b5a0b8210d023f649ab739b88e6d4a65cddd1a0c4ab3bd29a485725aaf9a7cffdc638b2808db58fad91825500cd2 SHA512 1c89cd2c01f3cbe65cc6215acfb858af198cfa0a494da37a49fec07dd9af17d3dfb054abad5b290efb36407520d827a6cc70aafd384943ee3fb94709ed57dd51
DIST jester-0.5.0.tar.gz 27750 BLAKE2B 488d2076ecb84e75b50582084a69a8810fea4953421d2fd7aafc282629c2c636511ede82cf05ebaed8b84295d9c7b76fa244b59a35a8349f4e78ec25dd8142ad SHA512 e000635e89560aa267056f1753eec1718e8ccbf9ee966745a5bfe5db7337f102f43a76a0e8d89961f607c517ecab40919027e3a8a12e86355c76db01897a21b8
+DIST jester-0.6.0.tar.gz 29234 BLAKE2B 265bc4711f21ebe8d636a641206ce86f4e4efd0dab654158da475d86c638ff6405abe6d6383afb0f2605ffd4eea1e767faa8814f48750ec7e3d9d8abffb306ab SHA512 cf4331e5e7aff97f463ca7e3e59c1fcc29344efe24ed781f51cbb7852b69a83c340449b214ef1716066300844eb3be1ef383c07543b05607ad1a0a9630741dae
diff --git a/dev-nim/jester/files/jester-0.6.0-remove-test.patch b/dev-nim/jester/files/jester-0.6.0-remove-test.patch
new file mode 100644
index 000000000..7e7c8565f
--- /dev/null
+++ b/dev-nim/jester/files/jester-0.6.0-remove-test.patch
@@ -0,0 +1,15 @@
+Remove Tweeter test
+
+--- a/tests/tester.nim
++++ b/tests/tester.nim
+@@ -286,10 +286,5 @@ when isMainModule:
+ issue150(useStdLib=true)
+ customRouterTest(useStdLib=false)
+ customRouterTest(useStdLib=true)
+-
+- # Verify that Nim in Action Tweeter still compiles.
+- test "Nim in Action - Tweeter":
+- let path = "tests/nim-in-action-code/Chapter7/Tweeter/src/tweeter.nim"
+- check execCmd("nim c --path:. " & path) == QuitSuccess
+ finally:
+ doAssert execCmd("kill -15 " & $serverProcess.processID()) == QuitSuccess
diff --git a/dev-nim/jester/jester-0.6.0.ebuild b/dev-nim/jester/jester-0.6.0.ebuild
new file mode 100644
index 000000000..abd39a730
--- /dev/null
+++ b/dev-nim/jester/jester-0.6.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 2022-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nimble
+
+NIA_COMMIT="a776a247bef10a61697530742d70c1c214ad2a78"
+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
+ test? ( https://github.com/dom96/nim-in-action-code/archive/${NIA_COMMIT}.tar.gz -> NIA-${NIA_COMMIT}.tar.gz )
+"
+
+LICENSE="MIT"
+SLOT="${PV}"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-nim/httpbeast"
+DEPEND="
+ test? (
+ ${RDEPEND}
+ dev-nim/asynctools
+ )
+"
+
+PATCHES=( "${FILESDIR}"/${P}-remove-test.patch )
+
+DOCS=( {changelog,readme,todo}.markdown )
+
+set_package_url "https://github.com/dom96/jester"
+
+src_unpack() {
+ default
+
+ if use test; then
+ rmdir "${S}"/tests/nim-in-action-code || die
+ mv "${WORKDIR}"/nim-in-action-code-${NIA_COMMIT} ${S}/tests/nim-in-action-code || die
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed "s/0.5.0/${PV}/" -i jester.nimble || die
+ sed "s/nimble \(c --hints:off\) -y/nim \1/g" -i tests/tester.nim || die
+}
+
+src_test() {
+ enim r tests/tester
+}