BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-true1.0.2
DragonFlydevel/p5-true1.0.2
HardenedBSDdevel/p5-true1.0.2
GhostBSDdevel/p5-true1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.0.21.0.21.0.21.0.21.0.2
FreeBSD:14:quarterly1.0.21.0.2n/a1.0.21.0.2
FreeBSD:15:latest1.0.21.0.2n/a1.0.21.0.2
FreeBSD:15:quarterly1.0.21.0.2n/an/an/a
FreeBSD:16:latest1.0.21.0.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 4

Runtime 3

Test 2

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
FileSizeSHA256
true-v1.0.2.tar.gz1290376a1ccd4008d4cc66ded4e2a1694b5b2a21d7655e276e1354160012ba2be2a284
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.