BSD Ports

devel/p5-File-ShareDir 1.118 DragonFly

Locate per-dist and per-module shared files

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
17.8 KiB, 59.8 KiB installed

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
DragonFlydevel/p5-File-ShareDir1.118
FreeBSDdevel/p5-File-ShareDir1.118
OpenBSDdevel/p5-File-ShareDir1.118
NetBSDdevel/p5-File-ShareDir1.118nb9
MidnightBSDdevel/p5-File-ShareDir1.118
HardenedBSDdevel/p5-File-ShareDir1.118
GhostBSDdevel/p5-File-ShareDir1.118
OPNsensedevel/p5-File-ShareDir1.118

Install

Binary package:

pkg install p5-File-ShareDir

From DPorts:

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

Dependencies

Run dependencies 2