2020-05-14 14:12:47 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
POSTGRES_COMPAT=( 9.6 {10..12} )
|
2020-09-03 17:09:42 +02:00
|
|
|
POSTGRES_USEDEP="server,ssl?,static-libs?"
|
2020-05-14 14:12:47 +02:00
|
|
|
|
|
|
|
inherit cmake postgres-multi
|
|
|
|
|
|
|
|
DESCRIPTION="A time-series database optimized for fast ingest and complex queries"
|
|
|
|
HOMEPAGE="https://www.timescale.com/"
|
|
|
|
SRC_URI="https://github.com/timescale/${PN}/releases/download/${PV}/${P}.tar.lzma"
|
|
|
|
|
2020-07-20 12:36:56 +02:00
|
|
|
LICENSE="Apache-2.0
|
2020-12-22 00:43:51 +01:00
|
|
|
tsl? ( TIMESCALE-1.7 )"
|
2020-05-14 14:12:47 +02:00
|
|
|
SLOT="0"
|
2020-07-20 12:36:56 +02:00
|
|
|
IUSE="ssl +tsl static-libs"
|
2020-05-14 14:12:47 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
|
|
|
DEPEND="${POSTGRES_DEP}"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
postgres-multi_foreach cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2020-09-03 17:09:42 +02:00
|
|
|
pg_src_configure () {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DUSE_OPENSSL=$(usex ssl ON OFF)
|
|
|
|
-DAPACHE_ONLY=$(usex tsl OFF ON)
|
|
|
|
-DSEND_TELEMETRY_DEFAULT=OFF
|
|
|
|
-DREGRESS_CHECKS=OFF
|
|
|
|
-DPG_CONFIG=${PG_CONFIG}
|
|
|
|
)
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
postgres-multi_foreach pg_src_configure
|
2020-05-14 14:12:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
postgres-multi_foreach cmake_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
postgres-multi_foreach cmake_src_install
|
|
|
|
|
|
|
|
use static-libs || find "${ED}" -name '*.a' -delete
|
|
|
|
}
|