git: 937e0616ab28 - main - devel/p5-ExtUtils-HasCompiler: New port: Check for the presence of a compiler

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 06 Aug 2024 22:16:39 UTC
The branch main has been updated by vvd:

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

commit 937e0616ab28410757b592485a14fd91a4b57153
Author:     Sergei Vyshenski <svysh.fbsd@gmail.com>
AuthorDate: 2024-08-06 22:15:31 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-08-06 22:15:31 +0000

    devel/p5-ExtUtils-HasCompiler: New port: Check for the presence of a compiler
    
    Check for the presence of a compiler.
    This module tries to check if the current system is capable of
    compiling, linking and loading an XS module.
    https://metacpan.org/dist/ExtUtils-HasCompiler
    
    PR:     280625
---
 devel/Makefile                          |  1 +
 devel/p5-ExtUtils-HasCompiler/Makefile  | 19 +++++++++++++++++++
 devel/p5-ExtUtils-HasCompiler/distinfo  |  3 +++
 devel/p5-ExtUtils-HasCompiler/pkg-descr |  3 +++
 devel/p5-ExtUtils-HasCompiler/pkg-plist |  2 ++
 5 files changed, 28 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 3ddaca698263..c96833737c6c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -2526,6 +2526,7 @@
     SUBDIR += p5-ExtUtils-Constant
     SUBDIR += p5-ExtUtils-CppGuess
     SUBDIR += p5-ExtUtils-Depends
+    SUBDIR += p5-ExtUtils-HasCompiler
     SUBDIR += p5-ExtUtils-Helpers
     SUBDIR += p5-ExtUtils-Install
     SUBDIR += p5-ExtUtils-InstallPaths
diff --git a/devel/p5-ExtUtils-HasCompiler/Makefile b/devel/p5-ExtUtils-HasCompiler/Makefile
new file mode 100644
index 000000000000..7ddda5e45db1
--- /dev/null
+++ b/devel/p5-ExtUtils-HasCompiler/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	ExtUtils-HasCompiler
+DISTVERSION=	0.025
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	svysh.fbsd@gmail.com
+COMMENT=	Check for the presence of a compiler
+WWW=		https://metacpan.org/dist/ExtUtils-HasCompiler
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		perl5
+USE_PERL5=	configure
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/p5-ExtUtils-HasCompiler/distinfo b/devel/p5-ExtUtils-HasCompiler/distinfo
new file mode 100644
index 000000000000..eb523d4d3c3e
--- /dev/null
+++ b/devel/p5-ExtUtils-HasCompiler/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1722691758
+SHA256 (ExtUtils-HasCompiler-0.025.tar.gz) = 02e1e7275df00682d3ca8ea1c27a30591d6dd08b3e3865c0958afae911635a66
+SIZE (ExtUtils-HasCompiler-0.025.tar.gz) = 16203
diff --git a/devel/p5-ExtUtils-HasCompiler/pkg-descr b/devel/p5-ExtUtils-HasCompiler/pkg-descr
new file mode 100644
index 000000000000..aebaf2056099
--- /dev/null
+++ b/devel/p5-ExtUtils-HasCompiler/pkg-descr
@@ -0,0 +1,3 @@
+Check for the presence of a compiler.
+This module tries to check if the current system is capable of
+compiling, linking and loading an XS module.
diff --git a/devel/p5-ExtUtils-HasCompiler/pkg-plist b/devel/p5-ExtUtils-HasCompiler/pkg-plist
new file mode 100644
index 000000000000..30462eb64e4d
--- /dev/null
+++ b/devel/p5-ExtUtils-HasCompiler/pkg-plist
@@ -0,0 +1,2 @@
+%%SITE_PERL%%/ExtUtils/HasCompiler.pm
+%%PERL5_MAN3%%/ExtUtils::HasCompiler.3.gz