aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZsolt Udvari <uzsolt@FreeBSD.org>2025-10-13 08:26:56 +0000
committerZsolt Udvari <uzsolt@FreeBSD.org>2025-10-13 08:27:35 +0000
commit72badea7273da1b3fa58f8b1602982251ac7e527 (patch)
treec853a3a2bf0e4954ddfc1e906aceddb1beb02afd
parent1d8c4ec87286e5d47a700c8761471f1ddf3ef40d (diff)
math/R-cran-polyclip: New port
R port of Angus Johnson's open source library 'Clipper'. Performs polygon clipping operations (intersection, union, set minus, set difference) for polygonal regions of arbitrary complexity, including holes. Computes offset polygons (spatial buffer zones, morphological dilations, Minkowski dilations) for polygonal regions and polygonal lines. Computes Minkowski Sum of general polygons. There is a function for removing self-intersections from polygon data.
-rw-r--r--math/Makefile1
-rw-r--r--math/R-cran-polyclip/Makefile14
-rw-r--r--math/R-cran-polyclip/distinfo3
-rw-r--r--math/R-cran-polyclip/pkg-descr6
4 files changed, 24 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile
index 53430a8c7182..076bb693bafd 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -118,6 +118,7 @@
SUBDIR += R-cran-pbkrtest
SUBDIR += R-cran-plot3D
SUBDIR += R-cran-pls
+ SUBDIR += R-cran-polyclip
SUBDIR += R-cran-polycor
SUBDIR += R-cran-polynom
SUBDIR += R-cran-pracma
diff --git a/math/R-cran-polyclip/Makefile b/math/R-cran-polyclip/Makefile
new file mode 100644
index 000000000000..bc0153feff28
--- /dev/null
+++ b/math/R-cran-polyclip/Makefile
@@ -0,0 +1,14 @@
+PORTNAME= polyclip
+DISTVERSION= 1.10-7
+CATEGORIES= math
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= uzsolt@FreeBSD.org
+COMMENT= Polygon Clipping
+WWW= https://cran.r-project.org/package=${PORTNAME}
+
+LICENSE= BSL
+
+USES= cran:auto-plist,compiles
+
+.include <bsd.port.mk>
diff --git a/math/R-cran-polyclip/distinfo b/math/R-cran-polyclip/distinfo
new file mode 100644
index 000000000000..5c5b78686ced
--- /dev/null
+++ b/math/R-cran-polyclip/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1760329898
+SHA256 (polyclip_1.10-7.tar.gz) = f58eaac3a5b2f6711c0c5f12fff91cf80a245ae45878f7217880ab062b5550d3
+SIZE (polyclip_1.10-7.tar.gz) = 80102
diff --git a/math/R-cran-polyclip/pkg-descr b/math/R-cran-polyclip/pkg-descr
new file mode 100644
index 000000000000..eccd5e35ce53
--- /dev/null
+++ b/math/R-cran-polyclip/pkg-descr
@@ -0,0 +1,6 @@
+R port of Angus Johnson's open source library 'Clipper'. Performs polygon
+clipping operations (intersection, union, set minus, set difference) for
+polygonal regions of arbitrary complexity, including holes. Computes offset
+polygons (spatial buffer zones, morphological dilations, Minkowski dilations)
+for polygonal regions and polygonal lines. Computes Minkowski Sum of general
+polygons. There is a function for removing self-intersections from polygon data.