commit:     8af4f8016f4e74206eed173597109db6473cbd75
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Sat May  3 15:35:16 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Sat May  3 15:35:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8af4f801

dev-db/timescaledb: add 2.19.3

Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-db/timescaledb/Manifest                  |  1 +
 dev-db/timescaledb/timescaledb-2.19.3.ebuild | 65 ++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest
index fb08ce5ddb32..4af894720ced 100644
--- a/dev-db/timescaledb/Manifest
+++ b/dev-db/timescaledb/Manifest
@@ -1,2 +1,3 @@
 DIST timescaledb-2.18.2.tar.gz 7908965 BLAKE2B 
e48bec6e92a8bde36dccb0ffc9017fd67eed202cbbb4107ca949f4e8dacee900118e43fe5c28251cb5f65bd486a090aaeecf04e95da4afcf1ef7f94e3869ae3b
 SHA512 
eb5c2d5ab1568ca9c213c775fd665c66ae0f78d4ce18d4bddcba3de20f1a9fce8bd9bc782efd8c9c537575dfae0e8f701f34368d1a3370789f43a7d82b988f7c
 DIST timescaledb-2.19.0.tar.gz 7998910 BLAKE2B 
ab6af1a845330c6881e556f6b1c5ee91fb3b16b91a10a1ad8e51ac0d602429dcc91a24938d937d6c6270445f902b71628e3d585ccc61cfd2257b10718b87bed9
 SHA512 
d8196b9d5a0c3ea4fac6ae3fbe7ccd3673c8c261d1de4e480859aebd9df545303847526e8e64b83f144b71c081958a7a2bf597de7d0ddad59461e9424e3cb0b7
+DIST timescaledb-2.19.3.tar.gz 8010948 BLAKE2B 
f1bf6b376c281b35f154f47d00c1e7777cf7cfe9bece09097ac28d0d14b90f23c589f2cd8e5377fda1a65ef066530c8d958d0456d320304da26d013c318e12bd
 SHA512 
44310ddced2899b6a60989fc5e96aa4c999898e5ec59a29ea1bc4c82e6ae9339fa11fd6e20805a2d09a351c1c6fe1429593367f73a91229043c02ba6648468e7

diff --git a/dev-db/timescaledb/timescaledb-2.19.3.ebuild 
b/dev-db/timescaledb/timescaledb-2.19.3.ebuild
new file mode 100644
index 000000000000..93d772f03508
--- /dev/null
+++ b/dev-db/timescaledb/timescaledb-2.19.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POSTGRES_COMPAT=( 14 15 16 17 )
+POSTGRES_USEDEP="ssl"
+
+inherit postgres-multi cmake
+
+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="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )"
+SLOT=0
+KEYWORDS="~amd64"
+IUSE="proprietary-extensions"
+
+RESTRICT="test"
+
+DEPEND="${POSTGRES_DEP}"
+RDEPEND="${DEPEND}"
+
+CMAKE_IN_SOURCE_BUILD=yes
+CMAKE_BUILD_TYPE="RelWithDebInfo"
+BUILD_DIR=${WORKDIR}/${P}
+
+src_prepare() {
+       postgres-multi_src_prepare
+       postgres-multi_foreach cmake_src_prepare
+}
+
+timescale_configure() {
+       local CMAKE_USE_DIR=$BUILD_DIR
+       local mycmakeargs=( 
"-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" )
+
+       # licensing is tied to features, this useflag disables the non-apache2 
licensed bits
+       if ! use proprietary-extensions ; then
+               mycmakeargs+=("-DAPACHE_ONLY=ON")
+       fi
+       cmake_src_configure
+}
+
+src_configure() {
+       postgres-multi_foreach timescale_configure
+}
+
+timescale_src_compile() {
+       local CMAKE_USE_DIR=$BUILD_DIR
+       cmake_src_compile
+}
+
+src_compile() {
+       postgres-multi_foreach timescale_src_compile
+}
+
+timescale_src_install() {
+       local CMAKE_USE_DIR=$BUILD_DIR
+       cmake_src_install
+}
+
+src_install() {
+       postgres-multi_foreach timescale_src_install
+}

Reply via email to