Files
guru/dev-crystal/crystal-pg/crystal-pg-0.28.0.ebuild
Anna (cybertailor) Vyalkova b884f8c647 dev-crystal/crystal-pg: add 0.28.0, drop 0.27.0
Closes: https://bugs.gentoo.org/922917
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2024-04-27 14:50:05 +05:00

35 lines
744 B
Bash

# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
declare -Ag DAEMONS_REQ_USE=(
[postgresql]="xml"
)
inherit daemons 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-0.13.0
<dev-crystal/crystal-db-0.14.0
"
DOCS=( CHANGELOG CONTRIBUTORS {CONTRIBUTING,README}.md )
daemons_enable postgresql test
src_test() {
daemons_start postgresql --host 127.0.0.1
local -x DATABASE_URL="${POSTGRESQL_URL:?}"
shards_src_test
daemons_stop postgresql
}