BSD Ports

devel/p5-File-ShareDir 1.118 MidnightBSD

Locate per-dist and per-module shared files

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
artistic, gpl+
Categories
devel, perl5

Description

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.

In the other systems

SystemPortVersion
MidnightBSDdevel/p5-File-ShareDir1.118
FreeBSDdevel/p5-File-ShareDir1.118
OpenBSDdevel/p5-File-ShareDir1.118
NetBSDdevel/p5-File-ShareDir1.118nb9
DragonFlydevel/p5-File-ShareDir1.118
HardenedBSDdevel/p5-File-ShareDir1.118
GhostBSDdevel/p5-File-ShareDir1.118
OPNsensedevel/p5-File-ShareDir1.118

Install

Binary package:

mport install p5-File-ShareDir

From mports:

cd /usr/mports/devel/p5-File-ShareDir && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-File-ShareDir>0:devel/p5-File-ShareDir

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 5
  • %%SITE_PERL%%/File/ShareDir.pm
  • %%SITE_PERL%%/auto/share/dist/File-ShareDir/sample.txt
  • %%SITE_PERL%%/auto/share/dist/File-ShareDir/subdir/sample.txt
  • %%SITE_PERL%%/auto/share/module/File-ShareDir/test_file.txt
  • %%PERL5_MAN3%%/File::ShareDir.3.gz
distinfo 1
FileSizeSHA256
File-ShareDir-1.118.tar.gz296313bb2a20ba35df958dc0a4f2306fc05d903d8b8c4de3c8beefce17739d281c958
Master sites 1
  • CPAN