mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-nim/zedeus_redis: new package, add 0.3.0_p20211226
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
1
dev-nim/zedeus_redis/Manifest
Normal file
1
dev-nim/zedeus_redis/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST zedeus_redis-0.3.0_p20211226.tar.gz 14502 BLAKE2B ac88fe57e87bc9718914d8fa1364bd9c7ad52af7f192507fe1ebdb9b37aabdee047a96bc3eaa4763327ed0d65f6b83fa3e182b9717161611ccabd7f85d9dd7de SHA512 b4e0fdbdc9ae5a8cc17cca16db6b18a9832b079f772cb99f80e1147d0c7c65b6c4d6701cefbb6ce765c600035564f6b4d00ddfdfcb65592b9f4628e97d6b6873
|
||||
11
dev-nim/zedeus_redis/metadata.xml
Normal file
11
dev-nim/zedeus_redis/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>cyber+gentoo@sysrq.in</email>
|
||||
<name>Anna</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">zedeus/redis</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
52
dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild
Normal file
52
dev-nim/zedeus_redis/zedeus_redis-0.3.0_p20211226.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit nimble
|
||||
|
||||
MY_PN="redis"
|
||||
COMMIT="d0a0e6fb3010015f0cc483ca2e540ace02446570"
|
||||
DESCRIPTION="Fork of the official redis client for Nim"
|
||||
HOMEPAGE="https://github.com/zedeus/redis"
|
||||
SRC_URI="https://github.com/zedeus/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${COMMIT}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1-3)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( dev-db/redis )"
|
||||
|
||||
set_package_url "https://github.com/zedeus/redis"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv redis.nimble ${PN}.nimble || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests that don't require redis, currently broken
|
||||
#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 ${?}
|
||||
|
||||
nimble_src_test
|
||||
|
||||
ebegin "Stopping Redis"
|
||||
kill "$(<"${redis_pid}")"
|
||||
eend ${?}
|
||||
}
|
||||
Reference in New Issue
Block a user