git: 53f35f2eaa78 - main - devel/R-cran-hardhat: Update to 1.4.1

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sun, 02 Feb 2025 16:58:25 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=53f35f2eaa781ee79bdd7e3307672f4ee8cde4a9

commit 53f35f2eaa781ee79bdd7e3307672f4ee8cde4a9
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-02-02 15:33:15 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-02-02 16:58:11 +0000

    devel/R-cran-hardhat: Update to 1.4.1
    
    ChangeLog: https://cran.r-project.org/web/packages/hardhat/news/news.html
---
 devel/R-cran-hardhat/Makefile | 14 ++++++++++++--
 devel/R-cran-hardhat/distinfo |  6 +++---
 2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/devel/R-cran-hardhat/Makefile b/devel/R-cran-hardhat/Makefile
index 93dde93275fe..4f76a42393bb 100644
--- a/devel/R-cran-hardhat/Makefile
+++ b/devel/R-cran-hardhat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	hardhat
-DISTVERSION=	1.4.0
+DISTVERSION=	1.4.1
 CATEGORIES=	devel
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
@@ -13,13 +13,23 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 CRAN_DEPENDS=	R-cran-cli>=3.6.0:devel/R-cran-cli \
 		R-cran-glue>=1.6.2:devel/R-cran-glue \
 		R-cran-rlang>=1.1.0:devel/R-cran-rlang \
+		R-cran-sparsevctrs>=0.2.0:devel/R-cran-sparsevctrs \
 		R-cran-tibble>=3.2.1:devel/R-cran-tibble \
 		R-cran-vctrs>=0.6.0:devel/R-cran-vctrs
 BUILD_DEPENDS=	${CRAN_DEPENDS}
 RUN_DEPENDS=	${CRAN_DEPENDS}
-TEST_DEPENDS=	R-cran-recipes>0:math/R-cran-recipes \
+TEST_DEPENDS=	R-cran-knitr>0:print/R-cran-knitr \
+		R-cran-recipes>0:math/R-cran-recipes \
 		R-cran-testthat>0:devel/R-cran-testthat
 
 USES=		cran:auto-plist
 
+pre-test:
+# Use absolute path instead of relative
+	@${REINPLACE_CMD} -e 's|../man/figures/|${WRKSRC}/man/figures/|g' ${WRKSRC}/vignettes/package.Rmd
+
+# R-cran-modeldata package does not exist yet
+	@${LOCALBASE}/bin/Rscript -e 'install.packages("modeldata", \
+		repos = "https://cloud.r-project.org")'
+
 .include <bsd.port.mk>
diff --git a/devel/R-cran-hardhat/distinfo b/devel/R-cran-hardhat/distinfo
index cc801f2c0862..bbae127b14c1 100644
--- a/devel/R-cran-hardhat/distinfo
+++ b/devel/R-cran-hardhat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1717397792
-SHA256 (hardhat_1.4.0.tar.gz) = 46d023ddfc8f940cd889478fa91c42e894a0df58a10f3b6c0eb688a500b2b3ad
-SIZE (hardhat_1.4.0.tar.gz) = 611157
+TIMESTAMP = 1738453073
+SHA256 (hardhat_1.4.1.tar.gz) = 993dfbdb9eefd10440e5b8b7c5a8f95a98b4fceac6ec1985b675ee35cbadde43
+SIZE (hardhat_1.4.1.tar.gz) = 619016