summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-29 00:49:22 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-01-29 01:03:32 +0800
commitd4105267c78f03da4a981d8b66dc7069792bda30 (patch)
treeb72c8a9ff595c36c7145219353668425ac93d5a2
parentmath/p5-PDL-IO-Browser: Add p5-PDL-IO-Browser 0.001 (diff)
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.
-rw-r--r--math/Makefile1
-rw-r--r--math/p5-PDL-IO-Dicom/Makefile22
-rw-r--r--math/p5-PDL-IO-Dicom/distinfo3
-rw-r--r--math/p5-PDL-IO-Dicom/pkg-descr4
-rw-r--r--math/p5-PDL-IO-Dicom/pkg-plist2
5 files changed, 32 insertions, 0 deletions
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