2023-02-07 14:19:48 +01:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2021-08-25 00:07:32 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2023-02-07 14:19:48 +01:00
|
|
|
POSTGRES_COMPAT=( {12..15} )
|
2022-03-12 22:25:46 +01:00
|
|
|
POSTGRES_USEDEP="ssl"
|
2021-08-25 00:07:32 +02:00
|
|
|
|
|
|
|
inherit cmake postgres-multi
|
|
|
|
|
|
|
|
DESCRIPTION="A time-series database optimized for fast ingest and complex queries"
|
|
|
|
HOMEPAGE="https://www.timescale.com/"
|
2022-03-12 22:25:46 +01:00
|
|
|
SRC_URI="https://github.com/timescale/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
2021-08-25 00:07:32 +02:00
|
|
|
|
|
|
|
LICENSE="Apache-2.0
|
|
|
|
tsl? ( timescale )"
|
|
|
|
SLOT="0"
|
2022-03-12 22:25:46 +01:00
|
|
|
IUSE="+tsl"
|
2021-08-25 00:07:32 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2022-03-12 22:25:46 +01:00
|
|
|
RESTRICT="test"
|
2021-08-25 00:07:32 +02:00
|
|
|
|
2022-03-12 22:25:46 +01:00
|
|
|
DEPEND="${POSTGRES_DEP}"
|
2021-08-25 00:07:32 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
postgres-multi_foreach cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
pg_src_configure () {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DAPACHE_ONLY=$(usex tsl OFF ON)
|
2022-03-12 22:25:46 +01:00
|
|
|
-DUSE_OPENSSL=ON
|
2021-08-25 00:07:32 +02:00
|
|
|
-DWARNINGS_AS_ERRORS=OFF
|
|
|
|
-DSEND_TELEMETRY_DEFAULT=OFF
|
|
|
|
-DREGRESS_CHECKS=OFF
|
|
|
|
-DPG_CONFIG=${PG_CONFIG}
|
|
|
|
)
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
|
|
|
postgres-multi_foreach pg_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
postgres-multi_foreach cmake_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
postgres-multi_foreach cmake_src_install
|
|
|
|
|
|
|
|
find "${ED}" -name '*.a' -delete
|
|
|
|
}
|