commit: 81a45802e77a82558eaaab8c9098175e9fd3bb5b Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> AuthorDate: Wed Mar 12 10:54:11 2025 +0000 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> CommitDate: Wed Mar 12 10:54:11 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81a45802
dev-db/timescaledb: add 2.18.2 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> dev-db/timescaledb/Manifest | 1 + dev-db/timescaledb/timescaledb-2.18.2.ebuild | 65 ++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest index 261cc9f8cf93..5e6d65b90a88 100644 --- a/dev-db/timescaledb/Manifest +++ b/dev-db/timescaledb/Manifest @@ -1,2 +1,3 @@ DIST timescaledb-2.17.2.tar.gz 7567447 BLAKE2B c2d5d9883377ffce57184c9c29413d12a41c7ef7891abb088aa72d0d7c410db28370c53585d7ec286fd52b3fe5c89b10f3b6deb547b6a1de132dc9c6697aa8cb SHA512 fc74d41062735bd4136ac71b0e10aecf34a64cdb29fd2ff31eae3f406beb8db00866e8ed7e142d47852e1586a6ad2ffa1652fbd792a45e995174b62464963d1e DIST timescaledb-2.18.1.tar.gz 7903462 BLAKE2B d52814524f485593973c671cbdf5ed7c81bcbb5d4b9df1cfdc0a5b27edbc1a8b35d28feda786f9b1137bc986d2efed797be1b347e2204626d2251c0b7df5f7ae SHA512 94d6d10b8b74a55211d8767887962f5c37bc1ecd4dcc13fa8740904a9503d885ff635d0c93c56a5b3daacddf882f16f89f3d0afe50bc351e9abb8015cc537efb +DIST timescaledb-2.18.2.tar.gz 7908965 BLAKE2B e48bec6e92a8bde36dccb0ffc9017fd67eed202cbbb4107ca949f4e8dacee900118e43fe5c28251cb5f65bd486a090aaeecf04e95da4afcf1ef7f94e3869ae3b SHA512 eb5c2d5ab1568ca9c213c775fd665c66ae0f78d4ce18d4bddcba3de20f1a9fce8bd9bc782efd8c9c537575dfae0e8f701f34368d1a3370789f43a7d82b988f7c diff --git a/dev-db/timescaledb/timescaledb-2.18.2.ebuild b/dev-db/timescaledb/timescaledb-2.18.2.ebuild new file mode 100644 index 000000000000..93d772f03508 --- /dev/null +++ b/dev-db/timescaledb/timescaledb-2.18.2.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 +}
