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