git: b9fcc139d052 - main - graphics/R-cran-pdftools: new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Nov 2024 10:50:39 UTC
The branch main has been updated by uzsolt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b9fcc139d0524d17205ac2a1af7c0f53b01db21d
commit b9fcc139d0524d17205ac2a1af7c0f53b01db21d
Author: Zsolt Udvari <uzsolt@FreeBSD.org>
AuthorDate: 2024-11-29 10:49:29 +0000
Commit: Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-11-29 10:49:29 +0000
graphics/R-cran-pdftools: new port
Utilities based on 'libpoppler' for extracting text, fonts, attachments
and metadata from a PDF file. Also supports high quality rendering of
PDF documents into PNG, JPEG, TIFF format, or into raw bitmap vectors
for further processing in R.
---
graphics/Makefile | 1 +
graphics/R-cran-pdftools/Makefile | 23 +++++++++++++++++++++++
graphics/R-cran-pdftools/distinfo | 3 +++
graphics/R-cran-pdftools/pkg-descr | 4 ++++
4 files changed, 31 insertions(+)
diff --git a/graphics/Makefile b/graphics/Makefile
index 4ed74e7d4530..396df96c5b17 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -26,6 +26,7 @@
SUBDIR += R-cran-magick
SUBDIR += R-cran-munsell
SUBDIR += R-cran-pROC
+ SUBDIR += R-cran-pdftools
SUBDIR += R-cran-pixmap
SUBDIR += R-cran-png
SUBDIR += R-cran-qcc
diff --git a/graphics/R-cran-pdftools/Makefile b/graphics/R-cran-pdftools/Makefile
new file mode 100644
index 000000000000..d1812eec1700
--- /dev/null
+++ b/graphics/R-cran-pdftools/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= pdftools
+DISTVERSION= 3.4.1
+CATEGORIES= graphics
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= uzsolt@FreeBSD.org
+COMMENT= Utilities based on libpoppler
+WWW= https://cran.r-project.org/package=pdftools
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+CRAN_DEPENDS= R-cran-qpdf>0:graphics/R-cran-qpdf \
+ R-cran-Rcpp>=0.12.12:devel/R-cran-Rcpp
+BUILD_DEPENDS= ${CRAN_DEPENDS}
+LIB_DEPENDS= libpoppler-cpp.so:graphics/poppler
+RUN_DEPENDS= ${CRAN_DEPENDS}
+TEST_DEPENDS= R-cran-png>0:graphics/R-cran-png \
+ R-cran-testthat>0:devel/R-cran-testthat
+
+USES= compiler:c++17-lang cran:auto-plist,compiles pkgconfig
+
+.include <bsd.port.mk>
diff --git a/graphics/R-cran-pdftools/distinfo b/graphics/R-cran-pdftools/distinfo
new file mode 100644
index 000000000000..02748c0d87b8
--- /dev/null
+++ b/graphics/R-cran-pdftools/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1732875522
+SHA256 (pdftools_3.4.1.tar.gz) = 31c1df5658749ea20e191321bbbfd6571dd5927bdb24e6cfd91ff9680a291cbd
+SIZE (pdftools_3.4.1.tar.gz) = 935211
diff --git a/graphics/R-cran-pdftools/pkg-descr b/graphics/R-cran-pdftools/pkg-descr
new file mode 100644
index 000000000000..7b2ca57f5392
--- /dev/null
+++ b/graphics/R-cran-pdftools/pkg-descr
@@ -0,0 +1,4 @@
+Utilities based on 'libpoppler' for extracting text, fonts, attachments and
+metadata from a PDF file. Also supports high quality rendering of PDF documents
+into PNG, JPEG, TIFF format, or into raw bitmap vectors for further processing
+in R.