Gentoo Archives: gentoo-commits

From: "罗百科" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/timescaledb/
Date: Fri, 19 Aug 2022 09:30:52
Message-Id: 1660901446.528644083c6d8dafe839cd42d4cb655fa1266c7f.patrick@gentoo
1 commit: 528644083c6d8dafe839cd42d4cb655fa1266c7f
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 19 09:30:38 2022 +0000
4 Commit: 罗百科 <patrick <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 19 09:30:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52864408
7
8 dev-db/timescaledb: Add 2.7.2
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>
12
13 dev-db/timescaledb/Manifest | 1 +
14 dev-db/timescaledb/timescaledb-2.7.2.ebuild | 67 +++++++++++++++++++++++++++++
15 2 files changed, 68 insertions(+)
16
17 diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest
18 index 81b45f69e9d6..1eda235759c3 100644
19 --- a/dev-db/timescaledb/Manifest
20 +++ b/dev-db/timescaledb/Manifest
21 @@ -3,3 +3,4 @@ DIST timescaledb-2.6.0.tar.gz 2863860 BLAKE2B 14b7bbfcfe1ca874ef24a7d31f3855f78c
22 DIST timescaledb-2.6.1.tar.gz 2876847 BLAKE2B 6053e69fd6f7b86287c0ae54966a9e7528cf371d2952b6edfe80c0c616c4fcaccf04fa1f3af5f7ed787e85b7b12ac00e709664552c79561f7b4e503891cb5dd4 SHA512 edcc84c37af9670c1a7bf527f5c430405e9b04e9a35e676d04e7ac70b20184032f992d05545a180b50ac2346b076aac4fc98348c355006345394910978864a8f
23 DIST timescaledb-2.7.0.tar.gz 2962972 BLAKE2B 37a0c3c7f51936d888492b7be59d2abc635bead3681a0414c5b7bfaca6b70a162638d5f9cf8368bfd49e2a8a03bbcdbf4fde853466edebbbc8a38d57ef567674 SHA512 fb07e06be36c2a59fbbaa77c7cbc3b564ce26b8f508211ec10b19b2e9bf08afed2e734b9a578b97ed99af95936a8f722cbc4cf2b5c6952df739e777ea96bf414
24 DIST timescaledb-2.7.1.tar.gz 2987186 BLAKE2B 19f3c19ea0194b1511743b69158aa6000dfe55073b0404de917a532e9cee9efcf96aef2f64ec565529d3838ce2b531e84171bf129b8f94f133ab5e342ff99613 SHA512 0ac5433242e6481bda4f0fb6e3c99a26924e3f3a257128feee8a8ede8e472cadaadea6347e7a2734aedd01d0d1a2eb44d95c878dc44110a50cf7ae56bb9bdac4
25 +DIST timescaledb-2.7.2.tar.gz 2990906 BLAKE2B 48ed3ad549e331d0f134ba3ecdb7ffe97e6c3aa7d4e8a46d9633def40c86c8be105b0ef15de74a1528f623031645dbf04a8500d13877e7619e95d58f21a5b82e SHA512 1f80ef166bce570d741da48cf7ae3739d6be37802674d9be100017e50936f99ce7c6927c8ddbe290abfede307bfe8442701f5edf85f64669801fd859bc105804
26
27 diff --git a/dev-db/timescaledb/timescaledb-2.7.2.ebuild b/dev-db/timescaledb/timescaledb-2.7.2.ebuild
28 new file mode 100644
29 index 000000000000..b6b5d265256d
30 --- /dev/null
31 +++ b/dev-db/timescaledb/timescaledb-2.7.2.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2022 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +POSTGRES_COMPAT=( 12 13 14 )
39 +POSTGRES_USEDEP="ssl"
40 +
41 +inherit postgres-multi cmake
42 +
43 +DESCRIPTION="Open-source time-series SQL database"
44 +HOMEPAGE="https://www.timescale.com/"
45 +SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +IUSE="proprietary-extensions"
48 +LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )"
49 +
50 +KEYWORDS="~amd64"
51 +
52 +SLOT=0
53 +
54 +RESTRICT="test"
55 +
56 +DEPEND="${POSTGRES_DEP}"
57 +RDEPEND="${DEPEND}"
58 +
59 +CMAKE_IN_SOURCE_BUILD=yes
60 +CMAKE_BUILD_TYPE="RelWithDebInfo"
61 +BUILD_DIR=${WORKDIR}/${P}
62 +
63 +src_prepare() {
64 + postgres-multi_src_prepare
65 + postgres-multi_foreach cmake_src_prepare
66 +}
67 +
68 +timescale_configure() {
69 + local CMAKE_USE_DIR=$BUILD_DIR
70 + local mycmakeargs=( "-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" )
71 +
72 + # licensing is tied to features, this useflag disables the non-apache2 licensed bits
73 + if ! use proprietary-extensions ; then
74 + mycmakeargs+=("-DAPACHE_ONLY=ON")
75 + fi
76 + cmake_src_configure
77 +}
78 +
79 +src_configure() {
80 + postgres-multi_foreach timescale_configure
81 +}
82 +
83 +timescale_src_compile() {
84 + local CMAKE_USE_DIR=$BUILD_DIR
85 + cmake_src_compile
86 +}
87 +
88 +src_compile() {
89 + postgres-multi_foreach timescale_src_compile
90 +}
91 +
92 +timescale_src_install() {
93 + local CMAKE_USE_DIR=$BUILD_DIR
94 + cmake_src_install
95 +}
96 +
97 +src_install() {
98 + postgres-multi_foreach timescale_src_install
99 +}