forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patrick Lauer <[email protected]>
- Loading branch information
1 parent
2c1a81c
commit 1826914
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST timescaledb-2.15.3.tar.gz 7441097 BLAKE2B 35d6edb31be79045ab8b8b409e4fcd28acac261f96be946dfa079bc544890391a6fe1f4695b0c88c8d56aca674563b4f347bb1f5519923b38aeb992e4a527f1c SHA512 c259bea088a03286a392812b23eda05ba7e5c714f9b52cd25b39ea9a280c5147e43d13a71027c43a5029df03e021a0022feb1ae311baae577ec3c56f1d7dfcae | ||
DIST timescaledb-2.16.1.tar.gz 7449327 BLAKE2B 4eac0f41596db1b7669850cbb576a2d710998f7207f566fb9b4965804e6810f1571d18058a126acdae7862bf77424db44f27720f3600d1191ae1a3c3cf8680ae SHA512 4972ccc385a3c7bda8fab8736c63f75c5b290a3a0206add84718326fcd07c24a52dbbae2114e857fb78246bf5a4b5ec3310cc2219a163af4d5f30f1766e37fae | ||
DIST timescaledb-2.17.0.tar.gz 7559829 BLAKE2B 59ae1acabd9cc2657eaef04b42a2e4a9a633bf6dca0080897b2c0645ad2faa3b82c0f693ea121fbda8becf4088877b87f5aac8cf300d73ba85b3226a057ea5e0 SHA512 0c10f04b62e6e57da0e53234d25b82e68724a7925fd8696a9872e2934cbd1a7af9798576afceb504d4a7207ef8b0407421bbeeb4a3deef0f4b4ad17c2753443c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright 1999-2024 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" | ||
|
||
IUSE="proprietary-extensions" | ||
LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )" | ||
|
||
KEYWORDS="~amd64" | ||
|
||
SLOT=0 | ||
|
||
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 | ||
} |