1 |
commit: 4aa0274b7c19123a3a194e98c44619c9717717e8 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 9 09:28:32 2021 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 09:28:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aa0274b |
7 |
|
8 |
dev-db/timescaledb: Initial import |
9 |
|
10 |
ebuild by me. |
11 |
|
12 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
13 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
14 |
|
15 |
dev-db/timescaledb/Manifest | 1 + |
16 |
dev-db/timescaledb/metadata.xml | 13 ++++++ |
17 |
dev-db/timescaledb/timescaledb-2.0.1.ebuild | 64 +++++++++++++++++++++++++++++ |
18 |
3 files changed, 78 insertions(+) |
19 |
|
20 |
diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..97a1e06e875 |
23 |
--- /dev/null |
24 |
+++ b/dev-db/timescaledb/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST timescaledb-2.0.1.tar.gz 2226320 BLAKE2B 0bd5011e30d6c0d5ac11b78ddf6650044f35d720317213bd0437a43e0421953708d3d69b6933a821d255b183bb72b1c5e34ff88223790266daf7af3cf21f2de2 SHA512 84e9c7da3f0fc6740eb0555bbd92f5511ceef4868fb1952650f9499f3054a4d2be59b3a042b17bf655155c9f9c1de82b6b4fb302bdad7ffbe893ed901adcefc0 |
27 |
|
28 |
diff --git a/dev-db/timescaledb/metadata.xml b/dev-db/timescaledb/metadata.xml |
29 |
new file mode 100644 |
30 |
index 00000000000..f450f64a07f |
31 |
--- /dev/null |
32 |
+++ b/dev-db/timescaledb/metadata.xml |
33 |
@@ -0,0 +1,13 @@ |
34 |
+<?xml version="1.0" encoding="UTF-8"?> |
35 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
36 |
+<pkgmetadata> |
37 |
+ <maintainer type="project"> |
38 |
+ <email>pgsql-bugs@g.o</email> |
39 |
+ <name>PostgreSQL and Related Package Development</name> |
40 |
+ </maintainer> |
41 |
+ <use> |
42 |
+ <flag name="proprietary-extensions"> |
43 |
+ Enable proprietary features/extensions licensed under the TimeScale License |
44 |
+ </flag> |
45 |
+ </use> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/dev-db/timescaledb/timescaledb-2.0.1.ebuild b/dev-db/timescaledb/timescaledb-2.0.1.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..26e21a09813 |
51 |
--- /dev/null |
52 |
+++ b/dev-db/timescaledb/timescaledb-2.0.1.ebuild |
53 |
@@ -0,0 +1,64 @@ |
54 |
+# Copyright 1999-2021 Gentoo Authors |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=7 |
58 |
+ |
59 |
+POSTGRES_COMPAT=( 11 12 ) |
60 |
+ |
61 |
+inherit postgres-multi cmake |
62 |
+ |
63 |
+DESCRIPTION="Open-source time-series SQL database" |
64 |
+HOMEPAGE="https://www.timescale.com/" |
65 |
+SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+IUSE="proprietary-extensions" |
68 |
+LICENSE="POSTGRESQL Apache-2.0 proprietary-extensions? ( timescale )" |
69 |
+ |
70 |
+KEYWORDS="~amd64" |
71 |
+ |
72 |
+SLOT=0 |
73 |
+ |
74 |
+RESTRICT="test" |
75 |
+ |
76 |
+DEPEND="${POSTGRES_DEP} |
77 |
+ dev-libs/openssl" |
78 |
+RDEPEND="${DEPEND}" |
79 |
+ |
80 |
+CMAKE_IN_SOURCE_BUILD=yes |
81 |
+BUILD_DIR=${WORKDIR}/${P} |
82 |
+ |
83 |
+src_prepare() { |
84 |
+ postgres-multi_src_prepare |
85 |
+ postgres-multi_foreach cmake_src_prepare |
86 |
+} |
87 |
+ |
88 |
+timescale_configure() { |
89 |
+ local CMAKE_USE_DIR=$BUILD_DIR |
90 |
+ local mycmakeargs=( "-DPG_CONFIG=/usr/bin/pg_config${MULTIBUILD_VARIANT}" "-DREGRESS_CHECKS=OFF" ) |
91 |
+ |
92 |
+ # licensing is tied to features, this useflag disables the non-apache2 licensed bits" |
93 |
+ use proprietary-extensions || mycmakeargs += "-DAPACHE_ONLY=ON" |
94 |
+ cmake_src_configure |
95 |
+} |
96 |
+ |
97 |
+src_configure() { |
98 |
+ postgres-multi_foreach timescale_configure |
99 |
+} |
100 |
+ |
101 |
+timescale_src_compile() { |
102 |
+ local CMAKE_USE_DIR=$BUILD_DIR |
103 |
+ cmake_src_compile |
104 |
+} |
105 |
+ |
106 |
+src_compile() { |
107 |
+ postgres-multi_foreach timescale_src_compile |
108 |
+} |
109 |
+ |
110 |
+timescale_src_install() { |
111 |
+ local CMAKE_USE_DIR=$BUILD_DIR |
112 |
+ cmake_src_install |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ postgres-multi_foreach timescale_src_install |
117 |
+} |