* [gentoo-commits] repo/proj/guru:master commit in: dev-nim/zedeus_redis/
@ 2022-11-05 15:26 Arthur Zamarin
0 siblings, 0 replies; only message in thread
From: Arthur Zamarin @ 2022-11-05 15:26 UTC (permalink / raw
To: gentoo-commits
commit: ce8aa31699d6cd0ddee05eaa427e90735de99c63
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Fri Nov 4 06:26:32 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 5 14:41:32 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ce8aa316
dev-nim/zedeus_redis: use databases eclass
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
.../zedeus_redis-0.3.0_p20211226.ebuild | 24 ++++++----------------
1 file changed, 6 insertions(+), 18 deletions(-)
diff --git a/dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild b/dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild
index 8b48aaa36..ed93ffa38 100644
--- a/dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild
+++ b/dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit nimble
+inherit databases nimble
MY_PN="redis"
COMMIT="d0a0e6fb3010015f0cc483ca2e540ace02446570"
@@ -18,7 +18,9 @@ KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
-BDEPEND="test? ( dev-db/redis )"
+BDEPEND="test? (
+ $(eredis --get-depend)
+)"
set_package_url "https://github.com/zedeus/redis"
@@ -32,21 +34,7 @@ src_test() {
#enim r tests/tawaitorder.nim
# Tests that require redis
- local redis_pid="${T}"/redis.pid
- local redis_port=6379
-
- ebegin "Spawning Redis (NOTE: port ${redis_port} must be free)"
- "${EPREFIX}"/usr/sbin/redis-server - <<- EOF > /dev/null
- daemonize yes
- pidfile ${redis_pid}
- port ${redis_port}
- bind 127.0.0.1
- EOF
- eend ${?}
-
+ eredis --start
nimble_src_test
-
- ebegin "Stopping Redis"
- kill "$(<"${redis_pid}")"
- eend ${?}
+ eredis --stop
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-05 15:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-05 15:26 [gentoo-commits] repo/proj/guru:master commit in: dev-nim/zedeus_redis/ Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox