git: 671c6c6e9692 - main - devel/p5-ExtUtils-H2PM: new port had been added (+)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 31 Jan 2025 13:15:58 UTC
The branch main has been updated by danfe:

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

commit 671c6c6e9692e22174909b7c418d2555696f5e7c
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2025-01-31 13:14:34 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2025-01-31 13:14:34 +0000

    devel/p5-ExtUtils-H2PM: new port had been added (+)
    
    Automatically generate Perl modules to wrap C header files.
    
    Requested by:   glebius
---
 devel/Makefile                   |  1 +
 devel/p5-ExtUtils-H2PM/Makefile  | 22 ++++++++++++++++++++++
 devel/p5-ExtUtils-H2PM/distinfo  |  3 +++
 devel/p5-ExtUtils-H2PM/pkg-descr |  4 ++++
 devel/p5-ExtUtils-H2PM/pkg-plist |  2 ++
 5 files changed, 32 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 77cb0c8fb101..763ebb732711 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2574,6 +2574,7 @@
     SUBDIR += p5-ExtUtils-Constant
     SUBDIR += p5-ExtUtils-CppGuess
     SUBDIR += p5-ExtUtils-Depends
+    SUBDIR += p5-ExtUtils-H2PM
     SUBDIR += p5-ExtUtils-HasCompiler
     SUBDIR += p5-ExtUtils-Helpers
     SUBDIR += p5-ExtUtils-Install
diff --git a/devel/p5-ExtUtils-H2PM/Makefile b/devel/p5-ExtUtils-H2PM/Makefile
new file mode 100644
index 000000000000..2941a50d3692
--- /dev/null
+++ b/devel/p5-ExtUtils-H2PM/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	ExtUtils-H2PM
+PORTVERSION=	0.11
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	perl@FreeBSD.org
+COMMENT=	Automatically generate Perl modules to wrap C header files
+WWW=		https://metacpan.org/dist/ExtUtils-H2PM
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	p5-Module-Build>=0.4004:devel/p5-Module-Build
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-ExtUtils-H2PM/distinfo b/devel/p5-ExtUtils-H2PM/distinfo
new file mode 100644
index 000000000000..07bcefcb1b36
--- /dev/null
+++ b/devel/p5-ExtUtils-H2PM/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1679323201
+SHA256 (ExtUtils-H2PM-0.11.tar.gz) = 46b4aec9a7d2c5749256d09dcf7ba4c2d00cddd41101482499ed88c766e9e8da
+SIZE (ExtUtils-H2PM-0.11.tar.gz) = 25379
diff --git a/devel/p5-ExtUtils-H2PM/pkg-descr b/devel/p5-ExtUtils-H2PM/pkg-descr
new file mode 100644
index 000000000000..0270d8e91914
--- /dev/null
+++ b/devel/p5-ExtUtils-H2PM/pkg-descr
@@ -0,0 +1,4 @@
+This module assists in generating wrappers around system functionality,
+such as socket() types or ioctl() calls, where the only interesting
+features required are the values of some constants or structure layouts
+normally only known to the C header files.
diff --git a/devel/p5-ExtUtils-H2PM/pkg-plist b/devel/p5-ExtUtils-H2PM/pkg-plist
new file mode 100644
index 000000000000..f3b08402f98e
--- /dev/null
+++ b/devel/p5-ExtUtils-H2PM/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/ExtUtils/H2PM.pm
+%%PERL5_MAN3%%/ExtUtils::H2PM.3.gz