my private gentoo overlay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
POSTGRES_COMPAT=( 9.6 {10..12} )
POSTGRES_USEDEP="server,ssl?"
inherit cmake postgres-multi
DESCRIPTION="A time-series database optimized for fast ingest and complex queries"
HOMEPAGE="https://www.timescale.com/"
SRC_URI="https://github.com/timescale/${PN}/releases/download/${PV}/${P}.tar.lzma"
LICENSE="Apache-2.0
tsl? ( TIMESCALE )"
SLOT="0"
IUSE="ssl +tsl static-libs"
KEYWORDS="~amd64 ~x86"
DEPEND="${POSTGRES_DEP}"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
BUILD_DIR="${S}"
src_prepare() {
default
postgres-multi_foreach cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DPG_CONFIG="$PG_CONFIG"
-DUSE_OPENSSL=$(usex ssl ON OFF)
-DAPACHE_ONLY=$(usex tsl OFF ON)
-DSEND_TELEMETRY_DEFAULT=OFF
-DREGRESS_CHECKS=OFF
)
postgres-multi_foreach cmake_src_configure
}
src_compile() {
postgres-multi_foreach cmake_src_compile
}
src_install() {
postgres-multi_foreach cmake_src_install
use static-libs || find "${ED}" -name '*.a' -delete
}