From 0751c8dd3a983ba736e0477fcedc916090229eb3 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Wed, 20 May 2020 10:38:14 +0200 Subject: [PATCH] add dev-db/timescaledb --- dev-db/timescaledb/timescaledb-1.7.1.ebuild | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 dev-db/timescaledb/timescaledb-1.7.1.ebuild diff --git a/dev-db/timescaledb/timescaledb-1.7.1.ebuild b/dev-db/timescaledb/timescaledb-1.7.1.ebuild new file mode 100644 index 0000000..776623c --- /dev/null +++ b/dev-db/timescaledb/timescaledb-1.7.1.ebuild @@ -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 +}