From 7a2cdbbee5b236e8ebda9ccec8d9a805d02d6a60 Mon Sep 17 00:00:00 2001 From: Patrick Lauer Date: Tue, 9 Feb 2021 15:24:37 +0000 Subject: dev-db/timescaledb: Fix syntax Fixes #769749 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Patrick Lauer --- dev-db/timescaledb/timescaledb-2.0.1-r1.ebuild | 66 ++++++++++++++++++++++++++ dev-db/timescaledb/timescaledb-2.0.1.ebuild | 64 ------------------------- 2 files changed, 66 insertions(+), 64 deletions(-) create mode 100644 dev-db/timescaledb/timescaledb-2.0.1-r1.ebuild delete mode 100644 dev-db/timescaledb/timescaledb-2.0.1.ebuild (limited to 'dev-db/timescaledb') diff --git a/dev-db/timescaledb/timescaledb-2.0.1-r1.ebuild b/dev-db/timescaledb/timescaledb-2.0.1-r1.ebuild new file mode 100644 index 000000000000..9e97e6124c15 --- /dev/null +++ b/dev-db/timescaledb/timescaledb-2.0.1-r1.ebuild @@ -0,0 +1,66 @@ +# 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 + if ! use proprietary-extensions ; then + mycmakeargs+=("-DAPACHE_ONLY=ON") + fi + 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 +} diff --git a/dev-db/timescaledb/timescaledb-2.0.1.ebuild b/dev-db/timescaledb/timescaledb-2.0.1.ebuild deleted file mode 100644 index 26e21a09813f..000000000000 --- a/dev-db/timescaledb/timescaledb-2.0.1.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# 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 -} -- cgit v1.2.3-65-gdbad