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

55 lines
1.0 KiB
Bash
Raw Normal View History

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
2023-11-27 18:46:35 +01:00
POSTGRES_COMPAT=( {13..15} )
2022-03-12 22:25:46 +01:00
POSTGRES_USEDEP="ssl"
inherit cmake postgres-multi
2023-07-03 13:54:38 +02:00
DESCRIPTION="Open-source time-series SQL database"
HOMEPAGE="https://www.timescale.com/"
2023-07-03 13:54:38 +02:00
SRC_URI="https://github.com/timescale/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0
tsl? ( timescale )"
SLOT="0"
2022-03-12 22:25:46 +01:00
IUSE="+tsl"
KEYWORDS="~amd64 ~x86"
2022-03-12 22:25:46 +01:00
RESTRICT="test"
2022-03-12 22:25:46 +01:00
DEPEND="${POSTGRES_DEP}"
RDEPEND="${DEPEND}"
CMAKE_BUILD_TYPE=RelWithDebInfo
src_prepare() {
postgres-multi_foreach cmake_src_prepare
}
src_configure() {
pg_src_configure () {
local mycmakeargs=(
-DAPACHE_ONLY=$(usex tsl OFF ON)
2022-03-12 22:25:46 +01:00
-DUSE_OPENSSL=ON
-DWARNINGS_AS_ERRORS=OFF
-DSEND_TELEMETRY_DEFAULT=OFF
-DREGRESS_CHECKS=OFF
-DPG_CONFIG=${PG_CONFIG}
)
cmake_src_configure
}
postgres-multi_foreach pg_src_configure
}
src_compile() {
postgres-multi_foreach cmake_src_compile
}
src_install() {
postgres-multi_foreach cmake_src_install
find "${ED}" -name '*.a' -delete
}