Index: head/devel/Makefile =================================================================== --- head/devel/Makefile +++ head/devel/Makefile @@ -2602,6 +2602,7 @@ SUBDIR += p5-File-ShareDir-PAR SUBDIR += p5-File-ShareDir-PathClass SUBDIR += p5-File-ShareDir-ProjectDistDir + SUBDIR += p5-File-ShareDir-Tarball SUBDIR += p5-File-Slurp SUBDIR += p5-File-Slurp-Tiny SUBDIR += p5-File-Slurp-Tree Index: head/devel/p5-File-ShareDir-Tarball/Makefile =================================================================== --- head/devel/p5-File-ShareDir-Tarball/Makefile +++ head/devel/p5-File-ShareDir-Tarball/Makefile @@ -0,0 +1,31 @@ +# Created by: Geoffroy Desvernay +# $FreeBSD$ + +PORTNAME= File-ShareDir-Tarball +PORTVERSION= 0.2.2 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= dgeo@centrale-marseille.fr +COMMENT= Deal transparently with shared files distributed as tarballs + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE_ART10= ${WRKSRC}/LICENSE +LICENSE_FILE_GPLv1+ = ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} \ + p5-Module-Build>=0:devel/p5-Module-Build +RUN_DEPENDS= p5-File-ShareDir>=0:devel/p5-File-ShareDir \ + p5-File-chdir>=0:devel/p5-File-chdir +TEST_DEPENDS= p5-Test-File-ShareDir>=0.3.0:devel/p5-Test-File-ShareDir + +USES= perl5 +USE_PERL5= modbuild + +NO_ARCH= yes +PLIST_FILES= ${SITE_PERL_REL}/File/ShareDir/Tarball.pm \ + ${SITE_MAN3_REL}/File::ShareDir::Tarball.3.gz + +.include Index: head/devel/p5-File-ShareDir-Tarball/distinfo =================================================================== --- head/devel/p5-File-ShareDir-Tarball/distinfo +++ head/devel/p5-File-ShareDir-Tarball/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1553526123 +SHA256 (File-ShareDir-Tarball-0.2.2.tar.gz) = 49e785f266e3e2ef001236fb2371eab598ad949fad12ca641172f7825fd02395 +SIZE (File-ShareDir-Tarball-0.2.2.tar.gz) = 14475 Index: head/devel/p5-File-ShareDir-Tarball/pkg-descr =================================================================== --- head/devel/p5-File-ShareDir-Tarball/pkg-descr +++ head/devel/p5-File-ShareDir-Tarball/pkg-descr @@ -0,0 +1,10 @@ +If the shared files of a distribution are contained in a tarball (see +Dist::Zilla::Plugin::ShareDir::Tarball for why you would want to do that) +automatically extract the archive in a temporary directory and return the path +to that directory. + +If called for a regular distribution without a bundle file +(shared-files.tar.gz), it'll return the original shared dir. In other words, +from the consumer point of view, it'll behave just like File::ShareDir. + +WWW: https://metacpan.org/pod/File::ShareDir::Tarball