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

56 lines
1.1 KiB
Bash
Raw Normal View History

2024-02-13 10:37:32 +01:00
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2024-06-12 16:41:42 +02:00
EAPI=8
2024-02-13 10:37:32 +01:00
POSTGRES_COMPAT=( {13..16} )
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() {
2024-06-14 02:21:55 +02:00
postgres-multi_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
}