git: 4ebedebd9db3 - main - misc/R-cran-gapminder: New port

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Wed, 05 Mar 2025 19:30:55 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4ebedebd9db37b78f40dcaa63f2d16922c2fdd79

commit 4ebedebd9db37b78f40dcaa63f2d16922c2fdd79
Author:     Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2025-03-05 19:29:17 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2025-03-05 19:30:21 +0000

    misc/R-cran-gapminder: New port
    
    An excerpt of the data available at Gapminder.org. For each of 142 countries,
    the package provides values for life expectancy, GDP per capita, and population,
    every five years, from 1952 to 2007.
---
 misc/Makefile                   |  1 +
 misc/R-cran-gapminder/Makefile  | 26 ++++++++++++++++++++++++++
 misc/R-cran-gapminder/distinfo  |  3 +++
 misc/R-cran-gapminder/pkg-descr |  3 +++
 4 files changed, 33 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 8597495cfaba..e7b16776e5aa 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -1,5 +1,6 @@
     COMMENT = Miscellaneous utilities
 
+    SUBDIR += R-cran-gapminder
     SUBDIR += R-cran-mime
     SUBDIR += R-cran-optimx
     SUBDIR += R-cran-xfun
diff --git a/misc/R-cran-gapminder/Makefile b/misc/R-cran-gapminder/Makefile
new file mode 100644
index 000000000000..51c69924a11c
--- /dev/null
+++ b/misc/R-cran-gapminder/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	gapminder
+DISTVERSION=	1.0.0
+CATEGORIES=	misc
+DISTNAME=	${PORTNAME}_${PORTVERSION}
+
+MAINTAINER=	uzsolt@FreeBSD.org
+COMMENT=	Data from Gapminder
+WWW=		https://cran.r-project.org/package=gapminder
+
+LICENSE=	CC0-1.0
+
+RUN_DEPENDS=	R-cran-tibble>0:devel/R-cran-tibble
+TEST_DEPENDS=	R-cran-dplyr>0:math/R-cran-dplyr \
+		R-cran-ggplot2>0:graphics/R-cran-ggplot2 \
+		R-cran-knitr>=1.47:print/R-cran-knitr \
+		R-cran-rmarkdown>0:textproc/R-cran-rmarkdown \
+		R-cran-testthat>0:devel/R-cran-testthat
+
+USES=		cran:auto-plist
+
+do-test:
+	@${FIND} ${WRKSRC} \( -name '*.o' -o -name '*.so' \) -delete
+	@cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} _R_CHECK_FORCE_SUGGESTS_=FALSE \
+	${LOCALBASE}/bin/R CMD check --no-manual ${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/misc/R-cran-gapminder/distinfo b/misc/R-cran-gapminder/distinfo
new file mode 100644
index 000000000000..13bc41ed1d08
--- /dev/null
+++ b/misc/R-cran-gapminder/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1741201028
+SHA256 (gapminder_1.0.0.tar.gz) = 90e82fb90f795be8121b05ec24db749d5767289fd6b00b5d38f27c12656b97c2
+SIZE (gapminder_1.0.0.tar.gz) = 2202445
diff --git a/misc/R-cran-gapminder/pkg-descr b/misc/R-cran-gapminder/pkg-descr
new file mode 100644
index 000000000000..7b55186ce65f
--- /dev/null
+++ b/misc/R-cran-gapminder/pkg-descr
@@ -0,0 +1,3 @@
+An excerpt of the data available at Gapminder.org. For each of 142 countries,
+the package provides values for life expectancy, GDP per capita, and population,
+every five years, from 1952 to 2007.