mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
Closes: https://bugs.gentoo.org/909288 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
35 lines
768 B
Bash
35 lines
768 B
Bash
# Copyright 2022-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit databases shards
|
|
|
|
DESCRIPTION="A native, non-blocking Postgres driver for Crystal"
|
|
HOMEPAGE="https://github.com/will/crystal-pg"
|
|
SRC_URI="https://github.com/will/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="dev-crystal/crystal-db"
|
|
BDEPEND="
|
|
test? (
|
|
$(epostgres --get-depend "xml")
|
|
)
|
|
"
|
|
|
|
DOCS=( CHANGELOG CONTRIBUTORS {CONTRIBUTING,README}.md )
|
|
|
|
src_test() {
|
|
local -x DATABASE_URL="postgres://postgres@127.0.0.1:65432/testdb"
|
|
|
|
epostgres --start 65432
|
|
edo createdb -h 127.0.0.1 -p 65432 -U postgres testdb
|
|
shards_src_test
|
|
epostgres --stop
|
|
}
|