devel/p5-true 1.0.2 FreeBSD
Automatically return a true value when a file is required
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Categories
- devel, perl5
- Package size
- 10.3 KiB, 17.6 KiB installed
Description
Perl's require builtin (and its use wrapper) requires the files it loads to return a true value. This is usually accomplished by placing a single
1;
statement at the end of included scripts or modules. It's not onerous to add but it's a speed bump on the Perl novice's road to enlightenment. In addition, it appears to be a non-sequitur to the uninitiated, leading some to attempt to mitigate its appearance with a comment:
1; \# keep require happy
or: 1; # Do not remove this line or even: 1; # Must end with this, because Perl is bogus.
This module packages this "return true" behaviour so that it need not be written explicitly. It can be used directly, but it is intended to be invoked from the import method of a Modern::Perl-style module that enables modern Perl features and conveniences and cleans up legacy Perl warts.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-true | 1.0.2 |
| DragonFly | devel/p5-true | 1.0.2 |
| HardenedBSD | devel/p5-true | 1.0.2 |
| GhostBSD | devel/p5-true | 1.0.2 |
Install
Binary package:
pkg install p5-true
From the ports tree:
cd /usr/ports/devel/p5-true/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-true>0:devel/p5-true
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 | 1.0.2 | 1.0.2 | 1.0.2 | 1.0.2 | 1.0.2 |
| FreeBSD:14:quarterly | 1.0.2 | 1.0.2 | n/a | 1.0.2 | 1.0.2 |
| FreeBSD:15:latest | 1.0.2 | 1.0.2 | n/a | 1.0.2 | 1.0.2 |
| FreeBSD:15:quarterly | 1.0.2 | 1.0.2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.0.2 | 1.0.2 | 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.
Build 4
p5-ExtUtils-Depends>=0.405: devel/p5-ExtUtils-Dependsp5-B-Hooks-OP-Annotation>=0.44: devel/p5-B-Hooks-OP-Annotationp5-B-Hooks-OP-Check>=0.22: devel/p5-B-Hooks-OP-Checkp5-Devel-StackTrace>=1.27: devel/p5-Devel-StackTrace
Runtime 3
p5-B-Hooks-OP-Annotation>=0.44: devel/p5-B-Hooks-OP-Annotationp5-B-Hooks-OP-Check>=0.22: devel/p5-B-Hooks-OP-Checkp5-Devel-StackTrace>=1.27: devel/p5-Devel-StackTrace
Test 2
p5-Function-Parameters>=2.001003: devel/p5-Function-Parametersp5-Moo>=2.003004: devel/p5-Moo
The full lists below include those, and their dependencies in turn.
Build dependencies 5
Run dependencies 5
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 5
- %%SITE_ARCH%%/auto/true/true.so
- %%SITE_ARCH%%/true.pm
- %%SITE_ARCH%%/true/VERSION.pm
- %%PERL5_MAN3%%/true.3.gz
- %%PERL5_MAN3%%/true::VERSION.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| true-v1.0.2.tar.gz | 129037 | 6a1ccd4008d4cc66ded4e2a1694b5b2a21d7655e276e1354160012ba2be2a284 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.