BSD Ports

devel/p5-Sub-Override 0.12 FreeBSD

Perl extension for easily overriding subroutines

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

Description

Sub::Override allows the programmer to simply name the sub to replace and to supply a sub to replace it with.

my $override = Sub::Override->new('Some::sub', sub {'new data'});

# which is equivalent to: my $override = Sub::Override->new; $override->replace('Some::sub', sub { 'new data' });

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Sub-Override0.12
OpenBSDdevel/p5-Sub-Override0.12
NetBSDdevel/p5-Sub-Override0.12nb3
DragonFlydevel/p5-Sub-Override0.12
HardenedBSDdevel/p5-Sub-Override0.12
GhostBSDdevel/p5-Sub-Override0.12

Install

Binary package:

pkg install p5-Sub-Override

From the ports tree:

cd /usr/ports/devel/p5-Sub-Override/ && make install clean

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

RUN_DEPENDS=	p5-Sub-Override>0:devel/p5-Sub-Override

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.120.120.09_10.120.12
FreeBSD:14:quarterly0.120.12n/a0.120.12
FreeBSD:15:latest0.120.12n/a0.120.12
FreeBSD:15:quarterly0.120.12n/an/an/a
FreeBSD:16:latest0.120.12n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Test 1

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
  • %%PERL5_MAN3%%/Sub::Override.3.gz
  • %%SITE_PERL%%/Sub/Override.pm
distinfo 1
FileSizeSHA256
Sub-Override-0.12.tar.gz9003d922dc6ef0e51f6385e111310845c3393be6b7a4d4ebda2a9e47c05bf62f79e3
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.