commit:     ae6555427df0e538c5a3ce66d197dd9dfe8356bd
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  7 13:46:28 2025 +0000
Commit:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Oct  7 13:46:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae655542

dev-db/timescaledb: add 2.22.1

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

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

diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest
index df98b70d48b4..6495338c2e93 100644
--- a/dev-db/timescaledb/Manifest
+++ b/dev-db/timescaledb/Manifest
@@ -1,3 +1,4 @@
 DIST timescaledb-2.19.3.tar.gz 8010948 BLAKE2B 
f1bf6b376c281b35f154f47d00c1e7777cf7cfe9bece09097ac28d0d14b90f23c589f2cd8e5377fda1a65ef066530c8d958d0456d320304da26d013c318e12bd
 SHA512 
44310ddced2899b6a60989fc5e96aa4c999898e5ec59a29ea1bc4c82e6ae9339fa11fd6e20805a2d09a351c1c6fe1429593367f73a91229043c02ba6648468e7
 DIST timescaledb-2.20.3.tar.gz 7802166 BLAKE2B 
5dcc9c121d2dee7bf81f92ed38c8a32c23fa2ea814aa52d6253fba921e13e5937836a39a018c6decf1941b5362e7849336ab6cdb32385b5a44ac324895da613d
 SHA512 
657dd5d5f6583b03a8daccbe9c4432d810614c65700a881ac5e30e0a75d4f07083d1085c71682552fe46e4bb211439b37bbf2b267d41d1ed60744d83776a42b6
 DIST timescaledb-2.21.4.tar.gz 7913696 BLAKE2B 
cf2af165d4d76812cd27ee38565328c772bb83d90a923a7c29ae1ad02b40bdb9b467a3fe180a43074d52d94827d73289b7be6a77f2ef34278d8d5f10d6402484
 SHA512 
3741f068739482f5d3b76732401cd989b8081ecc9fd93034e8c33f34576dd10497bedd6688ab35f693c914c0b4bacb73c7430ab355a9f68be32239e31c575261
+DIST timescaledb-2.22.1.tar.gz 8149506 BLAKE2B 
2881795480f181126db5547dfcff2e34acf6d5e74ad4e1b72e9f5830e0b3fa54ffc9655ffed207d15b12ee6ad3155e164a3322257cf04f0235ff1eda31e89356
 SHA512 
5cd2938d2d04b7e1daa27ee46fddc09b9342022f536841ead1560ce4c6264dc0e83a737d87ed4cb903008c2c96a65273da25861a49c7f0c7a0a2685bbaec07ee

diff --git a/dev-db/timescaledb/timescaledb-2.22.1.ebuild 
b/dev-db/timescaledb/timescaledb-2.22.1.ebuild
new file mode 100644
index 000000000000..2a59f8c42a15
--- /dev/null
+++ b/dev-db/timescaledb/timescaledb-2.22.1.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=( 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