BSD Ports

devel/p5-Module-Installed-Tiny 0.011 FreeBSD

Check if a module is installed, with as little code as possible

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
15.8 KiB, 54.1 KiB installed

Description

To check if a module is installed (available), generally the simplest way is to try to require() it. However, this actually loads the module. There are some cases where this is not desirable: 1) we have to check a lot of modules (actually loading the modules will take a lot of CPU time and memory; 2) some of the modules conflict with one another and cannot all be loaded; 3) the module is OS specific and might not load under another OS; 4) we simply do not want to execute the module, for security or other reasons.

Module::Installed::Tiny provides a routine module_installed() which works like Perl's require but does not actually load the module.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Module-Installed-Tiny0.011
DragonFlydevel/p5-Module-Installed-Tiny0.011
HardenedBSDdevel/p5-Module-Installed-Tiny0.011
GhostBSDdevel/p5-Module-Installed-Tiny0.011

Install

Binary package:

pkg install p5-Module-Installed-Tiny

From the ports tree:

cd /usr/ports/devel/p5-Module-Installed-Tiny/ && make install clean

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

RUN_DEPENDS=	p5-Module-Installed-Tiny>0:devel/p5-Module-Installed-Tiny

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0110.0110.0110.0110.011
FreeBSD:14:quarterly0.0110.011n/a0.0110.011
FreeBSD:15:latest0.0110.011n/a0.0110.011
FreeBSD:15:quarterly0.0110.011n/an/an/a
FreeBSD:16:latest0.0110.011n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 2

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Module/Installed/Tiny.pm
  • %%PERL5_MAN3%%/Module::Installed::Tiny.3.gz
distinfo 1
FileSizeSHA256
Module-Installed-Tiny-0.011.tar.gz21027d1121ca939959cb5d221621bb2a10eb1cd08fe32b94bb315b2f378da3cb74f27
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.