aboutsummaryrefslogtreecommitdiff
blob: 1079b9ea5f46f9e5391398b0cb2ce74f4bf3db71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2022 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"

RDEPEND="dev-crystal/crystal-db"

DOCS=( CHANGELOG CONTRIBUTORS {CONTRIBUTING,README}.md )

src_test() {
	local -x DATABASE_URL="postgres://postgres@127.0.0.1:65432"

	epostgres --start 65432
	shards_src_test
	epostgres --stop
}