BSD Ports

devel/p5-Sub-Override 0.12 MidnightBSD

Perl extension for easily overriding subroutines

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
af370f31fb
License
artistic, gpl+
Categories
devel, perl5

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

The newest version among them is 0.12, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/p5-Sub-Override0.12 newestno data-[email protected]2026-10-31
FreeBSDdevel/p5-Sub-Override0.12 newestnone known-[email protected]-
OpenBSDdevel/p5-Sub-Override0.12 newestno data-Benoit Lecocq <[email protected]>-
NetBSDdevel/p5-Sub-Override0.12nb3 newestnone known-[email protected]2026-07-16
DragonFlydevel/p5-Sub-Override0.12 newestnone known-[email protected]-
HardenedBSDdevel/p5-Sub-Override0.12 newestno data-[email protected]-
GhostBSDdevel/p5-Sub-Override0.12 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 0.12 af370f31fb

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

mport install p5-Sub-Override

From mports:

cd /usr/mports/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

Dependencies

As this port's Makefile names them.

Test 1

No port depends on this one.

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 1

DateCommitCreditsLog message
af370f31fb Lucas Holt devel/p5-Sub-Override: add subroutine overriding module (#2164)
Import Sub::Override 0.12 from FreeBSD to support Perl test suites, and register the port in devel. Adapt the maintainer and license identifiers for MidnightBSD. Validation: check-license, makesum, patch, build, fake, package and all 49 tests passed on MidnightBSD 4.0 amd64. The generated file list matches the imported packing list. Portlint reported no errors and one maintainer-mode warning. ## Summary by Sourcery New Features: - Add the p5-Sub-Override Perl module as a new devel port and register it in the devel ports index. Signed-off-by: Lucas Holt <[email protected]>