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

EAPI=8

inherit R-packages

DESCRIPTION='A dplyr Back End for Databases'
KEYWORDS="~amd64 ~x64-macos ~arm64-macos"
SRC_URI="http://cran.r-project.org/src/contrib/dbplyr_2.3.4.tar.gz"
LICENSE='MIT'

IUSE="${IUSE-} r_suggests_bit64 r_suggests_covr r_suggests_knitr
	r_suggests_lahman r_suggests_nycflights13 r_suggests_odbc
	r_suggests_rmarkdown r_suggests_rpostgres r_suggests_rpostgresql
	r_suggests_rsqlite r_suggests_testthat"
R_SUGGESTS="
	r_suggests_bit64? ( sci-CRAN/bit64 )
	r_suggests_covr? ( sci-CRAN/covr )
	r_suggests_knitr? ( sci-CRAN/knitr )
	r_suggests_lahman? ( sci-CRAN/Lahman )
	r_suggests_nycflights13? ( sci-CRAN/nycflights13 )
	r_suggests_odbc? ( sci-CRAN/odbc )
	r_suggests_rmarkdown? ( sci-CRAN/rmarkdown )
	r_suggests_rpostgres? ( >=sci-CRAN/RPostgres-1.1.3 )
	r_suggests_rpostgresql? ( sci-CRAN/RPostgreSQL )
	r_suggests_rsqlite? ( >=sci-CRAN/RSQLite-2.2.15 )
	r_suggests_testthat? ( >=sci-CRAN/testthat-3.0.2 )
"
DEPEND=">=sci-CRAN/DBI-1.0.0
	>=sci-CRAN/rlang-1.0.6
	>=sci-CRAN/vctrs-0.5.0
	>=sci-CRAN/tibble-1.4.2
	>=sci-CRAN/dplyr-1.1.0
	>=sci-CRAN/lifecycle-1.0.3
	sci-CRAN/withr
	>=dev-lang/R-3.1
	>=sci-CRAN/glue-1.2.0
	>=sci-CRAN/tidyselect-1.2.0
	sci-CRAN/magrittr
	>=sci-CRAN/purrr-1.0.1
	>=sci-CRAN/tidyr-1.3.0
	>=sci-CRAN/pillar-1.5.0
	>=sci-CRAN/blob-1.2.0
	>=sci-CRAN/R6-2.2.2
	>=sci-CRAN/cli-3.4.1
"
RDEPEND="${DEPEND-} ${R_SUGGESTS-}"

_UNRESOLVED_PACKAGES=( '>=sci-CRAN/RMariaDB-1.0.2' )