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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Module-Installed-Tiny | 0.011 |
| DragonFly | devel/p5-Module-Installed-Tiny | 0.011 |
| HardenedBSD | devel/p5-Module-Installed-Tiny | 0.011 |
| GhostBSD | devel/p5-Module-Installed-Tiny | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.011 | 0.011 | 0.011 | 0.011 | 0.011 |
| FreeBSD:14:quarterly | 0.011 | 0.011 | n/a | 0.011 | 0.011 |
| FreeBSD:15:latest | 0.011 | 0.011 | n/a | 0.011 | 0.011 |
| FreeBSD:15:quarterly | 0.011 | 0.011 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.011 | 0.011 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Test 2
p5-Test-Exception>=0: devel/p5-Test-Exceptionp5-Test-Needs>=0: devel/p5-Test-Needs
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
| File | Size | SHA256 |
|---|---|---|
| Module-Installed-Tiny-0.011.tar.gz | 21027 | d1121ca939959cb5d221621bb2a10eb1cd08fe32b94bb315b2f378da3cb74f27 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.