commit:     4aa0274b7c19123a3a194e98c44619c9717717e8
Author:     Patrick Lauer <patrick <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  9 09:28:32 2021 +0000
Commit:     罗百科 <patrick <AT> gentoo <DOT> org>
CommitDate: Tue Feb  9 09:28:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aa0274b

dev-db/timescaledb: Initial import

ebuild by me.

Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org>

 dev-db/timescaledb/Manifest                 |  1 +
 dev-db/timescaledb/metadata.xml             | 13 ++++++
 dev-db/timescaledb/timescaledb-2.0.1.ebuild | 64 +++++++++++++++++++++++++++++
 3 files changed, 78 insertions(+)

diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest
new file mode 100644
index 00000000000..97a1e06e875
--- /dev/null
+++ b/dev-db/timescaledb/Manifest
@@ -0,0 +1 @@
+DIST timescaledb-2.0.1.tar.gz 2226320 BLAKE2B 
0bd5011e30d6c0d5ac11b78ddf6650044f35d720317213bd0437a43e0421953708d3d69b6933a821d255b183bb72b1c5e34ff88223790266daf7af3cf21f2de2
 SHA512 
84e9c7da3f0fc6740eb0555bbd92f5511ceef4868fb1952650f9499f3054a4d2be59b3a042b17bf655155c9f9c1de82b6b4fb302bdad7ffbe893ed901adcefc0

diff --git a/dev-db/timescaledb/metadata.xml b/dev-db/timescaledb/metadata.xml
new file mode 100644
index 00000000000..f450f64a07f
--- /dev/null
+++ b/dev-db/timescaledb/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>pgsql-b...@gentoo.org</email>
+               <name>PostgreSQL and Related Package Development</name>
+       </maintainer>
+       <use>
+               <flag name="proprietary-extensions">
+                       Enable proprietary features/extensions licensed under 
the TimeScale License
+               </flag>
+       </use>
+</pkgmetadata>

diff --git a/dev-db/timescaledb/timescaledb-2.0.1.ebuild 
b/dev-db/timescaledb/timescaledb-2.0.1.ebuild
new file mode 100644
index 00000000000..26e21a09813
--- /dev/null
+++ b/dev-db/timescaledb/timescaledb-2.0.1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+POSTGRES_COMPAT=( 11 12 )
+
+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}
+       dev-libs/openssl"
+RDEPEND="${DEPEND}"
+
+CMAKE_IN_SOURCE_BUILD=yes
+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"
+       use proprietary-extensions || mycmakeargs += "-DAPACHE_ONLY=ON"
+       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
+}

Reply via email to