add dev-db/timescaledb

This commit is contained in:
Martin Sekera 2020-05-20 10:38:14 +02:00
parent c2ac5279ea
commit 0751c8dd3a

View file

@ -0,0 +1,42 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
POSTGRES_COMPAT=( 10 11 12 )
inherit postgres-multi
DESCRIPTION="A PostgreSQL extrnsion that adds time-series queries, tools and optimization."
HOMEPAGE="https://www.timescale.com/"
SRC_URI="https://github.com/timescale/${PN}/releases/download/${PV}/${P}.tar.lzma"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="static-libs"
KEYWORDS="~amd64 ~x86 ~arm64"
DEPEND="${POSTGRES_DEP}"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_prepare() {
default
postgres-multi_src_prepare
}
src_configure() {
postgres-multi_foreach cmake-utils_src_configure
}
src_compile() {
postgres-multi_foreach cmake-utils_src_compile
}
src_install() {
postgres-multi_foreach cmake-utils_src_install
use static-libs || find "${ED}" -name '*.a' -delete
}