git: ebf53e142c64 - main - devel/p5-FFI-C-Stat: Add p5-FFI-C-Stat 0.02
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 03 Oct 2022 02:24:23 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=ebf53e142c6413a8fcb428f036456ff36031ae8c commit ebf53e142c6413a8fcb428f036456ff36031ae8c Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-10-03 02:10:13 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-10-03 02:10:13 +0000 devel/p5-FFI-C-Stat: Add p5-FFI-C-Stat 0.02 Perl comes with perfectly good stat, lstat functions, however if you are writing FFI bindings for a library that use the C stat structure, you are out of luck there. FFI::C::Stat Perl comes with perfectly good stat, lstat functions, however if you are writing FFI bindings for a library that use the C stat structure, you are out of luck there. --- devel/Makefile | 1 + devel/p5-FFI-C-Stat/Makefile | 29 +++++++++++++++++++++++++++++ devel/p5-FFI-C-Stat/distinfo | 3 +++ devel/p5-FFI-C-Stat/pkg-descr | 5 +++++ devel/p5-FFI-C-Stat/pkg-plist | 4 ++++ 5 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 84e9be16c7cf..a8fcdf301182 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2374,6 +2374,7 @@ SUBDIR += p5-ExtUtils-PkgConfig SUBDIR += p5-ExtUtils-XSBuilder SUBDIR += p5-ExtUtils-XSpp + SUBDIR += p5-FFI-C-Stat SUBDIR += p5-FFI-CheckLib SUBDIR += p5-FFI-Platypus SUBDIR += p5-FFI-Platypus-Declare diff --git a/devel/p5-FFI-C-Stat/Makefile b/devel/p5-FFI-C-Stat/Makefile new file mode 100644 index 000000000000..ee84dd624e16 --- /dev/null +++ b/devel/p5-FFI-C-Stat/Makefile @@ -0,0 +1,29 @@ +PORTNAME= FFI-C-Stat +PORTVERSION= 0.02 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Object-oriented FFI interface to native stat and lstat +WWW= https://metacpan.org/dist/FFI-C-Stat + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-FFI-Platypus>=1.00:devel/p5-FFI-Platypus \ + p5-Ref-Util>=0:devel/p5-Ref-Util +TEST_DEPENDS= p5-File-chdir>=0:devel/p5-File-chdir \ + p5-Path-Tiny>=0:devel/p5-Path-Tiny \ + p5-Test-Script>=1.09:devel/p5-Test-Script \ + p5-Test2-Suite>=0.000060:devel/p5-Test2-Suite + +USES= perl5 +USE_PERL5= configure + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/share/dist/FFI-C-Stat/lib/libFFI-C-Stat.so + +.include <bsd.port.mk> diff --git a/devel/p5-FFI-C-Stat/distinfo b/devel/p5-FFI-C-Stat/distinfo new file mode 100644 index 000000000000..d00ad6512d08 --- /dev/null +++ b/devel/p5-FFI-C-Stat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1663672722 +SHA256 (FFI-C-Stat-0.02.tar.gz) = 4e15d8f6f9f98407c652d9d313b51150771392018e071d7c192843ac82c1be59 +SIZE (FFI-C-Stat-0.02.tar.gz) = 18773 diff --git a/devel/p5-FFI-C-Stat/pkg-descr b/devel/p5-FFI-C-Stat/pkg-descr new file mode 100644 index 000000000000..c3fef61b47b6 --- /dev/null +++ b/devel/p5-FFI-C-Stat/pkg-descr @@ -0,0 +1,5 @@ +Perl comes with perfectly good stat, lstat functions, however if you are writing +FFI bindings for a library that use the C stat structure, you are out of luck +there. FFI::C::Stat Perl comes with perfectly good stat, lstat functions, +however if you are writing FFI bindings for a library that use the C stat +structure, you are out of luck there. diff --git a/devel/p5-FFI-C-Stat/pkg-plist b/devel/p5-FFI-C-Stat/pkg-plist new file mode 100644 index 000000000000..fdc354c93123 --- /dev/null +++ b/devel/p5-FFI-C-Stat/pkg-plist @@ -0,0 +1,4 @@ +%%SITE_ARCH%%/FFI/C/Stat.pm +%%SITE_ARCH%%/auto/FFI/C/Stat/Stat.txt +%%SITE_ARCH%%/auto/share/dist/FFI-C-Stat/lib/libFFI-C-Stat.so +%%PERL5_MAN3%%/FFI::C::Stat.3.gz