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.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-Sub-Override | 0.12 newest | no data | - | [email protected] | 2026-10-31 |
| FreeBSD | devel/p5-Sub-Override | 0.12 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Sub-Override | 0.12 newest | no data | - | Benoit Lecocq <[email protected]> | - |
| NetBSD | devel/p5-Sub-Override | 0.12nb3 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-Sub-Override | 0.12 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-Sub-Override | 0.12 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Sub-Override | 0.12 newest | no data | - | [email protected] | - |
Version history 1
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
p5-Test-Fatal>=0.010: devel/p5-Test-Fatal
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
| File | Size | SHA256 |
|---|---|---|
| Sub-Override-0.12.tar.gz | 9003 | d922dc6ef0e51f6385e111310845c3393be6b7a4d4ebda2a9e47c05bf62f79e3 |
Master sites 1
- CPAN
Commit history 1
| Date | Commit | Credits | Log 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]> |