git: 18a7aaea92e1 - main - math/R-cran-terra: Add new port

From: TAKATSU Tomonari <tota_at_FreeBSD.org>
Date: Sun, 17 Oct 2021 08:55:42 UTC
The branch main has been updated by tota:

URL: https://cgit.FreeBSD.org/ports/commit/?id=18a7aaea92e1d317726c9d5e92364f17b5561532

commit 18a7aaea92e1d317726c9d5e92364f17b5561532
Author:     TAKATSU Tomonari <tota@FreeBSD.org>
AuthorDate: 2021-10-17 03:10:24 +0000
Commit:     TAKATSU Tomonari <tota@FreeBSD.org>
CommitDate: 2021-10-17 08:49:05 +0000

    math/R-cran-terra: Add new port
    
    Methods for spatial data analysis with raster and vector data.
    Raster methods allow for low-level data manipulation as well as
    high-level global, local, zonal, and focal computation. The predict
    and interpolate methods facilitate the use of regression type
    (interpolation, machine learning) models for spatial prediction,
    including with satellite remote sensing data. Processing of very
    large files is supported. See the manual and tutorials on
    <https://rspatial.org/terra/> to get started. 'terra' is very similar
    to the 'raster' package; but 'terra' can do more, is easier to use,
    and it is faster.
    
    WWW: https://cran.r-project.org/web/packages/terra/
---
 math/Makefile               |  1 +
 math/R-cran-terra/Makefile  | 20 ++++++++++++++++++++
 math/R-cran-terra/distinfo  |  3 +++
 math/R-cran-terra/pkg-descr | 12 ++++++++++++
 4 files changed, 36 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 974b74fde1eb..d5e545695f82 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -119,6 +119,7 @@
     SUBDIR += R-cran-statmod
     SUBDIR += R-cran-survey
     SUBDIR += R-cran-tensor
+    SUBDIR += R-cran-terra
     SUBDIR += R-cran-truncnorm
     SUBDIR += R-cran-units
     SUBDIR += R-cran-uroot
diff --git a/math/R-cran-terra/Makefile b/math/R-cran-terra/Makefile
new file mode 100644
index 000000000000..cf25d76bdeca
--- /dev/null
+++ b/math/R-cran-terra/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	terra
+DISTVERSION=	1.4-11
+CATEGORIES=	math
+DISTNAME=	${PORTNAME}_${DISTVERSION}
+
+MAINTAINER=	tota@FreeBSD.org
+COMMENT=	Spatiall Data Analysis
+
+LICENSE=	GPLv3+
+
+LIB_DEPENDS=	libgdal.so:graphics/gdal \
+		libgeos.so:graphics/geos \
+		libproj.so:graphics/proj
+CRAN_DEPENDS=	R-cran-Rcpp>0:devel/R-cran-Rcpp
+BUILD_DEPENDS=	${CRAN_DEPENDS}
+RUN_DEPENDS=	${CRAN_DEPENDS}
+
+USES=		compiler:c++11-lang cran:auto-plist,compiles sqlite:3
+
+.include <bsd.port.mk>
diff --git a/math/R-cran-terra/distinfo b/math/R-cran-terra/distinfo
new file mode 100644
index 000000000000..b4c6080afd99
--- /dev/null
+++ b/math/R-cran-terra/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634410480
+SHA256 (terra_1.4-11.tar.gz) = 0a8fc0deffd4f2d0065ac6b70ae5cda079a38fe86e40861df94d01d01412fd21
+SIZE (terra_1.4-11.tar.gz) = 541948
diff --git a/math/R-cran-terra/pkg-descr b/math/R-cran-terra/pkg-descr
new file mode 100644
index 000000000000..ad6ace010f0f
--- /dev/null
+++ b/math/R-cran-terra/pkg-descr
@@ -0,0 +1,12 @@
+Methods for spatial data analysis with raster and vector data.
+Raster methods allow for low-level data manipulation as well as
+high-level global, local, zonal, and focal computation. The predict
+and interpolate methods facilitate the use of regression type
+(interpolation, machine learning) models for spatial prediction,
+including with satellite remote sensing data. Processing of very
+large files is supported. See the manual and tutorials on
+<https://rspatial.org/terra/> to get started. 'terra' is very similar
+to the 'raster' package; but 'terra' can do more, is easier to use,
+and it is faster.
+
+WWW: https://cran.r-project.org/web/packages/terra/