diff options
author | Patrick Lauer <patrick@gentoo.org> | 2021-02-09 09:28:32 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2021-02-09 09:28:53 +0000 |
commit | 4aa0274b7c19123a3a194e98c44619c9717717e8 (patch) | |
tree | 1b852211d2a72ee93959d81671e35ad6ff899e4e /dev-db/timescaledb | |
parent | licenses: Add TimeScaleDB license (diff) | |
download | gentoo-4aa0274b7c19123a3a194e98c44619c9717717e8.tar.gz gentoo-4aa0274b7c19123a3a194e98c44619c9717717e8.tar.bz2 gentoo-4aa0274b7c19123a3a194e98c44619c9717717e8.zip |
dev-db/timescaledb: Initial import
ebuild by me.
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'dev-db/timescaledb')
-rw-r--r-- | dev-db/timescaledb/Manifest | 1 | ||||
-rw-r--r-- | dev-db/timescaledb/metadata.xml | 13 | ||||
-rw-r--r-- | dev-db/timescaledb/timescaledb-2.0.1.ebuild | 64 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-db/timescaledb/Manifest b/dev-db/timescaledb/Manifest new file mode 100644 index 000000000000..97a1e06e875f --- /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 000000000000..f450f64a07fa --- /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-bugs@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 000000000000..26e21a09813f --- /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 +} |