mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 10:58:21 -07:00
USE=server is only in dev-db/postgresql by way of a patch to make it conditional. If it's ever removed (as it is in 9999), it'll be such that the server is available, so (+). Signed-off-by: Sam James <sam@gentoo.org>
53 lines
1.1 KiB
Bash
53 lines
1.1 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
CMAKE_BUILD_TYPE="Release"
|
|
|
|
POSTGRES_COMPAT=( {14..18} )
|
|
POSTGRES_USEDEP="server(+)"
|
|
|
|
inherit cmake postgres-multi
|
|
|
|
DESCRIPTION="pgRouting extends PostGIS and PostgreSQL with geospatial routing functionality"
|
|
HOMEPAGE="https://pgrouting.org/"
|
|
SRC_URI="https://github.com/pgRouting/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2 MIT Boost-1.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
REQUIRED_USE="${POSTGRES_REQ_USE}"
|
|
|
|
RDEPEND="${POSTGRES_DEP}
|
|
>=dev-db/postgis-2.0
|
|
dev-libs/boost
|
|
sci-mathematics/cgal
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
# Needs a running psql instance, doesn't work out of the box
|
|
RESTRICT="test"
|
|
|
|
src_prepare() {
|
|
cmake_src_prepare
|
|
postgres-multi_src_prepare
|
|
}
|
|
|
|
my_src_configure() {
|
|
local mycmakeargs=( -DPOSTGRESQL_BIN="$($PG_CONFIG --bindir)" )
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_configure() {
|
|
postgres-multi_foreach my_src_configure
|
|
}
|
|
|
|
src_compile() {
|
|
postgres-multi_foreach cmake_build
|
|
}
|
|
|
|
src_install() {
|
|
postgres-multi_foreach cmake_src_install
|
|
}
|