Add devel/p5-File-ShareDir 0.02, a Perl module to locate

per-distribution and per-module shared files location.
This commit is contained in:
Anton Berezin 2005-12-27 10:02:05 +00:00
parent eeb882832b
commit 8cfdd44de0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=152168
5 changed files with 61 additions and 0 deletions

View file

@ -929,6 +929,7 @@
SUBDIR += p5-File-Random
SUBDIR += p5-File-ReadBackwards
SUBDIR += p5-File-Remove
SUBDIR += p5-File-ShareDir
SUBDIR += p5-File-Slurp
SUBDIR += p5-File-Sync
SUBDIR += p5-File-Tail

View file

@ -0,0 +1,34 @@
# New ports collection makefile for: devel/p5-File-ShareDir
# Date created: 27 Dec 2005
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= File-ShareDir
PORTVERSION= 0.02
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= File
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= File::ShareDir - Locate per-dist and per-module shared files
BUILD_DEPENDS= \
p5-Params-Util>=0.07:${PORTSDIR}/devel/p5-Params-Util \
p5-Class-Inspector>=1.12:${PORTSDIR}/devel/p5-Class-Inspector \
p5-PathTools>=0:${PORTSDIR}/devel/p5-PathTools
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= File::ShareDir.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View file

@ -0,0 +1,3 @@
MD5 (File-ShareDir-0.02.tar.gz) = b9b38e715733d5be97f9f4c40b7b83dd
SHA256 (File-ShareDir-0.02.tar.gz) = 22f7d75ecd381be382ed3da8a195c423bb6effad2d2a5b4ef8d94629f6869605
SIZE (File-ShareDir-0.02.tar.gz) = 27142

View file

@ -0,0 +1,18 @@
The intent of File::ShareDir is to provide a companion to
Class::Inspector and File::HomeDir, modules that take a process that is
well-known by advanced Perl developers but gets a little tricky, and
make it more available to the larger Perl community.
Quite often you want or need your Perl module (CPAN or otherwise) to
have access to a large amount of read-only data that is stored on the
file-system at run-time.
On a linux-like system, this would be in a place such as /usr/share,
however Perl runs on a wide variety of different systems, and so the use
of any one location is unreliable.
Perl provides a little-known method for doing this, but almost nobody is
aware that it exists. As a result, module authors often go through some
very strange ways to make the data available to their code.
WWW: http://search.cpan.org/dist/File-ShareDir/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/ShareDir/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/ShareDir/sample.txt
%%SITE_PERL%%/%%PERL_ARCH%%/File/ShareDir.pm
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/ShareDir 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true