# Copyright 1999-2020 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit R-packages

DESCRIPTION='R Interface to a PostGIS Database'
KEYWORDS="~amd64"
SRC_URI="http://cran.r-project.org/src/contrib/rpostgis_1.4.3.tar.gz"
LICENSE='GPL-3+'

IUSE="${IUSE-} r_suggests_rpostgres r_suggests_wkb"
R_SUGGESTS="
	r_suggests_rpostgres? ( sci-CRAN/RPostgres )
	r_suggests_wkb? ( sci-CRAN/wkb )
"
DEPEND=">=dev-lang/R-3.3.0
	sci-CRAN/sp
	sci-CRAN/rgeos
	sci-CRAN/raster
	>=sci-CRAN/DBI-0.5
	sci-CRAN/RPostgreSQL
"
RDEPEND="${DEPEND-}
	dev-db/postgresql-base
	${R_SUGGESTS-}
"

_UNRESOLVED_PACKAGES=( 'sci-CRAN/rgdal' )