2024-07-11 17:23:58 +02:00
|
|
|
# Copyright 1999-2024 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2024-11-16 20:03:55 +01:00
|
|
|
POSTGRES_COMPAT=( {14..17} )
|
2024-07-11 17:23:58 +02:00
|
|
|
POSTGRES_USEDEP="ssl"
|
|
|
|
|
2024-11-17 13:45:01 +01:00
|
|
|
inherit postgres-multi cmake
|
2024-07-11 17:23:58 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Open-source time-series SQL database"
|
|
|
|
HOMEPAGE="https://www.timescale.com/"
|
|
|
|
SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0
|
|
|
|
tsl? ( timescale )"
|
2024-11-17 13:45:01 +01:00
|
|
|
SLOT=0
|
|
|
|
KEYWORDS="~amd64"
|
2024-07-11 17:23:58 +02:00
|
|
|
IUSE="+tsl"
|
2024-11-17 13:45:01 +01:00
|
|
|
|
2024-07-11 17:23:58 +02:00
|
|
|
RESTRICT="test"
|
|
|
|
|
|
|
|
DEPEND="${POSTGRES_DEP}"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2024-11-16 20:03:55 +01:00
|
|
|
timescale_src_prepare() {
|
|
|
|
local CMAKE_USE_DIR=$BUILD_DIR
|
|
|
|
cmake_src_prepare
|
|
|
|
}
|
|
|
|
|
2024-07-11 17:23:58 +02:00
|
|
|
src_prepare() {
|
|
|
|
postgres-multi_src_prepare
|
2024-11-16 20:03:55 +01:00
|
|
|
postgres-multi_foreach timescale_src_prepare
|
|
|
|
}
|
|
|
|
|
2024-11-17 13:45:01 +01:00
|
|
|
timescale_configure() {
|
2024-11-16 20:03:55 +01:00
|
|
|
local CMAKE_USE_DIR=$BUILD_DIR
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DAPACHE_ONLY=$(usex tsl OFF ON)
|
|
|
|
-DWARNINGS_AS_ERRORS=OFF
|
|
|
|
-DSEND_TELEMETRY_DEFAULT=OFF
|
|
|
|
-DREGRESS_CHECKS=OFF
|
|
|
|
-DPG_CONFIG=${PG_CONFIG}
|
|
|
|
)
|
|
|
|
cmake_src_configure
|
2024-07-11 17:23:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
2024-11-17 13:45:01 +01:00
|
|
|
postgres-multi_foreach timescale_configure
|
2024-11-16 20:03:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
timescale_src_compile() {
|
|
|
|
local CMAKE_USE_DIR=$BUILD_DIR
|
|
|
|
cmake_src_compile
|
2024-07-11 17:23:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2024-11-16 20:03:55 +01:00
|
|
|
postgres-multi_foreach timescale_src_compile
|
|
|
|
}
|
|
|
|
|
|
|
|
timescale_src_install() {
|
|
|
|
local CMAKE_USE_DIR=$BUILD_DIR
|
|
|
|
cmake_src_install
|
2024-07-11 17:23:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2024-11-16 20:03:55 +01:00
|
|
|
postgres-multi_foreach timescale_src_install
|
2024-07-11 17:23:58 +02:00
|
|
|
|
|
|
|
find "${ED}" -name '*.a' -delete
|
|
|
|
}
|