baf4000d9e
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 PR: 237109 Submitted by: Geoffroy Desvernay <dgeo@centrale-marseille.fr> Reviewed by: tcberner (mentor) Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D19858
31 lines
839 B
Makefile
31 lines
839 B
Makefile
# Created by: Geoffroy Desvernay <dgeo@centrale-marseille.fr>
|
|
# $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 <bsd.port.mk>
|