gentoo/dev-db/timescaledb/timescaledb-1.6.0.ebuild

50 lines
1009 B
Bash
Raw Normal View History

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