PORTNAME=	conflicted
DISTVERSION=	1.2.1
CATEGORIES=	devel
DISTNAME=	${PORTNAME}_${DISTVERSION}

MAINTAINER=	einar@isnic.is
COMMENT=	Alternative Conflict Resolution Strategy
WWW=		https://conflicted.r-lib.org/

LICENSE=	MIT

CRAN_DEPENDS=	R-cran-cli>=3.4.0:devel/R-cran-cli \
		R-cran-memoise>0:devel/R-cran-memoise \
		R-cran-rlang>=1.0.0:devel/R-cran-rlang
RUN_DEPENDS=	${CRAN_DEPENDS}
TEST_DEPENDS=	R-cran-callr>0:devel/R-cran-callr \
		R-cran-covr>0:devel/R-cran-covr \
		R-cran-dplyr>0:math/R-cran-dplyr \
		R-cran-pkgload>0:devel/R-cran-pkgload \
		R-cran-testthat>=3.0.0:devel/R-cran-testthat \
		R-cran-withr>0:devel/R-cran-withr

USES=		cran:auto-plist

pre-test:
	# R-cran-Matrix package does not exist yet
	@${LOCALBASE}/bin/Rscript -e 'install.packages("Matrix", \
		repos = "https://cloud.r-project.org")'

.include <bsd.port.mk>
