git: eadcbcb177f3 - main - print/pdfcpu: New port: PDF processor written in Go

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Mon, 23 Oct 2023 18:23:03 UTC
The branch main has been updated by diizzy:

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

commit eadcbcb177f3bcd18a34a637af8efd6ed0ef15d7
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-10-23 18:08:48 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-10-23 18:22:57 +0000

    print/pdfcpu: New port: PDF processor written in Go
    
    PDF processing library providing both an API and a CLI with focus on
    strong support for batch processing and scripting via a rich
    command-line. Common functions such as extract assets, merge, split,
    rotate, trim, validate, watermark PDF files are supported and many more.
    
    Website: https://github.com/pdfcpu/pdfcpu
---
 print/Makefile         |  1 +
 print/pdfcpu/Makefile  | 21 +++++++++++++++++++++
 print/pdfcpu/distinfo  |  5 +++++
 print/pdfcpu/pkg-descr |  4 ++++
 4 files changed, 31 insertions(+)

diff --git a/print/Makefile b/print/Makefile
index e70dbf79c4f1..9a580b29435c 100644
--- a/print/Makefile
+++ b/print/Makefile
@@ -139,6 +139,7 @@
     SUBDIR += pdfarranger
     SUBDIR += pdfbox
     SUBDIR += pdfchain
+    SUBDIR += pdfcpu
     SUBDIR += pdflib
     SUBDIR += pdflib-perl
     SUBDIR += pdfmixtool
diff --git a/print/pdfcpu/Makefile b/print/pdfcpu/Makefile
new file mode 100644
index 000000000000..5579727d586d
--- /dev/null
+++ b/print/pdfcpu/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	pdfcpu
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.5.0
+CATEGORIES=	print
+
+MAINTAINER=	diizzy@FreeBSD.org
+COMMENT=	PDF processor written in Go
+WWW=		https://github.com/pdfcpu/pdfcpu
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		go:modules
+
+GO_MODULE=	github.com/${PORTNAME}/${PORTNAME}
+
+PLIST_FILES=	bin/pdfcpu
+
+GO_TARGET=	./cmd/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/print/pdfcpu/distinfo b/print/pdfcpu/distinfo
new file mode 100644
index 000000000000..be8cb734f36a
--- /dev/null
+++ b/print/pdfcpu/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1698012245
+SHA256 (go/print_pdfcpu/pdfcpu-v0.5.0/v0.5.0.mod) = bd1f3e5cedaca62187d34f73aa7f2f9e0cbbcb68aebf0ede87dcd48c559d6857
+SIZE (go/print_pdfcpu/pdfcpu-v0.5.0/v0.5.0.mod) = 319
+SHA256 (go/print_pdfcpu/pdfcpu-v0.5.0/v0.5.0.zip) = dbda196a444c313ae06181c417ebbb73f52a4d29bdcbdc6dbba582e0e0988876
+SIZE (go/print_pdfcpu/pdfcpu-v0.5.0/v0.5.0.zip) = 293287851
diff --git a/print/pdfcpu/pkg-descr b/print/pdfcpu/pkg-descr
new file mode 100644
index 000000000000..70694947e1a3
--- /dev/null
+++ b/print/pdfcpu/pkg-descr
@@ -0,0 +1,4 @@
+PDF processing library providing both an API and a CLI with focus on strong
+support for batch processing and scripting via a rich command-line. Common
+functions such as extract assets, merge, split, rotate, trim, validate,
+watermark PDF files are supported and many more.