Subject: [bug#69212] [PATCH RFC 2/4] gnu: Add perl-cam-pdf.

From: Liliana Marie Prikler <[email-masked]>
Date: Sat, 17 Feb 2024 23:46:20 +0100

* gnu/packages/perl.scm (perl-cam-pdf): New variable.
---
 gnu/packages/perl.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 4539dc83b2..e62fee137d 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -1139,6 +1139,28 @@ (define-public perl-cache-fastmmap
 algorithm to keep the most used entries in the cache.")
     (license (package-license perl))))
 
+(define-public perl-cam-pdf
+  (package
+    (name "perl-cam-pdf")
+    (version "1.60")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/C/CD/CDOLAN/CAM-PDF-"
+                           version ".tar.gz"))
+       (sha256
+        (base32 "12dv5ssf3y7yjz9mrrqnfzx8nf4ydk1qijf5fx59495671zzqsp7"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build))
+    (propagated-inputs (list perl-crypt-rc4 perl-test-memory-cycle perl-test-pod
+                             perl-test-pod-coverage perl-text-pdf))
+    (home-page "https://metacpan.org/release/CAM-PDF")
+    (synopsis "PDF manipulation library")
+    (description "This package provides readers and writers for PDF documents.
+It supports PDF up to version 1.5, but writes PDFs in a 1.4-compatible manner,
+thus possibly creating larger files.")
+    (license license:perl-license)))
+
 (define-public perl-capture-tiny
   (package
     (name "perl-capture-tiny")
-- 
2.41.0