sci-geosciences/gdal-grass - 1.0.3 (hamari)

Search

Package Information

Description:
GDAL plugin to access GRASS data
Homepage:
https://www.gdal.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.0.3 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="GDAL plugin to access GRASS data"
HOMEPAGE="https://www.gdal.org/"
SRC_URI="https://github.com/OSGeo/gdal-grass/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

inherit cmake

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="postgres"
RDEPEND="
	>=sci-libs/gdal-3.0.0:=
	sci-geosciences/grass:=
"
DEPEND="
	${RDEPEND}
	postgres? ( dev-db/postgresql )
"

# these drivers are copied at install from the already installed GRASS
QA_PREBUILT="/usr/share/gdal/grass/driver/db/*"

src_configure() {
	local grassp=$(best_version sci-geosciences/grass)
	local grasspv=$(echo ${grassp/%-r[0-9]*/} | rev | cut -d - -f 1 | rev)
	local grasspm=$(ver_cut 1-2 ${grasspv})

	local mycmakeargs=(
		-DAUTOLOAD_DIR="/usr/$(get_libdir)/gdalplugins" \
		-DGRASS_BIN_PREFER_PATH="/usr/$(get_libdir)/grass$(ver_rs 1 '' ${grasspm})"
	)

	cmake_src_configure
}

USE Flags

Dependencies

DEPEND

	
	>=sci-libs/gdal-3.0.0:=
	sci-geosciences/grass:=

	postgres? ( dev-db/postgresql )

RDEPEND

	>=sci-libs/gdal-3.0.0:=
	sci-geosciences/grass:=

Manifest for 1.0.3

Type File Size Source URLs
DIST gdal-grass-1.0.3.tar.gz 346675 bytes https://github.com/OSGeo/gdal-grass/archive/refs/tags/1.0.3.tar.gz