git: d4105267c78f - main - math/p5-PDL-IO-Dicom: Add p5-PDL-IO-Dicom 2.097

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 28 Jan 2025 17:06:13 UTC
The branch main has been updated by sunpoet:

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

commit d4105267c78f03da4a981d8b66dc7069792bda30
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-01-28 16:49:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-01-28 17:03:32 +0000

    math/p5-PDL-IO-Dicom: Add p5-PDL-IO-Dicom 2.097
    
    The PDL::IO::Dicom module enables reading 16-bit gray level Dicom images into
    PDL. As Dicom is an extremely complex format, this module can unfortunately not
    handle all different image types included in the DICOM standard. One common
    format that is currently not supported is the Papyrus format.
---
 math/Makefile                  |  1 +
 math/p5-PDL-IO-Dicom/Makefile  | 22 ++++++++++++++++++++++
 math/p5-PDL-IO-Dicom/distinfo  |  3 +++
 math/p5-PDL-IO-Dicom/pkg-descr |  4 ++++
 math/p5-PDL-IO-Dicom/pkg-plist |  2 ++
 5 files changed, 32 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index e3cc0fc41073..41952ad8d1c0 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -824,6 +824,7 @@
     SUBDIR += p5-PDL-Graphics-Limits
     SUBDIR += p5-PDL-Graphics-PLplot
     SUBDIR += p5-PDL-IO-Browser
+    SUBDIR += p5-PDL-IO-Dicom
     SUBDIR += p5-Parse-Range
     SUBDIR += p5-Roman
     SUBDIR += p5-Set-IntSpan
diff --git a/math/p5-PDL-IO-Dicom/Makefile b/math/p5-PDL-IO-Dicom/Makefile
new file mode 100644
index 000000000000..077d0782996f
--- /dev/null
+++ b/math/p5-PDL-IO-Dicom/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	PDL-IO-Dicom
+PORTVERSION=	2.097
+CATEGORIES=	math perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Module for reading DICOM images
+WWW=		https://metacpan.org/dist/PDL-IO-Dicom
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+BUILD_DEPENDS=	${RUN_DEPENDS}
+RUN_DEPENDS=	p5-PDL>=2.094:math/p5-PDL
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/p5-PDL-IO-Dicom/distinfo b/math/p5-PDL-IO-Dicom/distinfo
new file mode 100644
index 000000000000..77a522346513
--- /dev/null
+++ b/math/p5-PDL-IO-Dicom/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1736671143
+SHA256 (PDL-IO-Dicom-2.097.tar.gz) = 973a9e7db2d640c46f9bbfd8661f6801442a75c7e7b929f379bb618b70f9a163
+SIZE (PDL-IO-Dicom-2.097.tar.gz) = 5567
diff --git a/math/p5-PDL-IO-Dicom/pkg-descr b/math/p5-PDL-IO-Dicom/pkg-descr
new file mode 100644
index 000000000000..5cfaf44cfe02
--- /dev/null
+++ b/math/p5-PDL-IO-Dicom/pkg-descr
@@ -0,0 +1,4 @@
+The PDL::IO::Dicom module enables reading 16-bit gray level Dicom images into
+PDL. As Dicom is an extremely complex format, this module can unfortunately not
+handle all different image types included in the DICOM standard. One common
+format that is currently not supported is the Papyrus format.
diff --git a/math/p5-PDL-IO-Dicom/pkg-plist b/math/p5-PDL-IO-Dicom/pkg-plist
new file mode 100644
index 000000000000..ef786850b7f2
--- /dev/null
+++ b/math/p5-PDL-IO-Dicom/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/PDL/IO/Dicom.pm
+%%PERL5_MAN3%%/PDL::IO::Dicom.3.gz