devel/p5-namespace-autoclean 0.31_1 MidnightBSD
Keep imports out of your namespace
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- artistic, gpl+
- Categories
- devel, perl5
Description
When you import a function into a Perl package, it will naturally also be available as a method.
The namespace::autoclean pragma will remove all imported symbols at the end of the current package's compile cycle. Functions called in the package itself will still be bound by their name, but they won't show up as methods on your class or instances.
This module is very similar to namespace::clean, except it will clean all imported functions, no matter if you imported them before or after you used the pragma. It will also not touch anything that looks like a method, according to Class::MOP::Class::get_method_list.
In the other systems
The newest version among them is 0.31, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-namespace-autoclean | 0.31_1 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-namespace-autoclean | 0.31 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-namespace-autoclean | 0.31 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-namespace-autoclean | 0.31nb3 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-namespace-autoclean | 0.31 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-namespace-autoclean | 0.31 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-namespace-autoclean | 0.31 newest | no data | - | [email protected] | - |
| OPNsense | devel/p5-namespace-autoclean | 0.31 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install p5-namespace-autoclean
From mports:
cd /usr/mports/devel/p5-namespace-autoclean && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-namespace-autoclean>0:devel/p5-namespace-autoclean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 3
p5-B-Hooks-EndOfScope>=0.12: devel/p5-B-Hooks-EndOfScopep5-Sub-Identify>=0: devel/p5-Sub-Identifyp5-namespace-clean>=0.20: devel/p5-namespace-clean
Runtime 3
p5-B-Hooks-EndOfScope>=0.12: devel/p5-B-Hooks-EndOfScopep5-Sub-Identify>=0: devel/p5-Sub-Identifyp5-namespace-clean>=0.20: devel/p5-namespace-clean
Build dependencies 3
Run dependencies 3
Required by 22
- devel/p5-DateTime
- devel/p5-DateTime-Format-ISO8601
- devel/p5-DateTime-Locale
- devel/p5-DateTime-TimeZone
- devel/p5-Log-Dispatch
- devel/p5-MooseX-ConfigFromFile
- devel/p5-MooseX-Declare
- devel/p5-MooseX-Getopt
- devel/p5-MooseX-LazyRequire
- devel/p5-MooseX-Meta-TypeConstraint-ForceCoercion
- devel/p5-MooseX-Method-Signatures
- devel/p5-MooseX-Role-Parameterized
- devel/p5-MooseX-StrictConstructor
- devel/p5-MooseX-Traits
- devel/p5-MooseX-Types
- devel/p5-Sub-Exporter-Lexical
- net/p5-MaxMind-DB-Common
- net/p5-MaxMind-DB-Reader
- net/p5-MaxMind-DB-Reader-XS
- net/p5-Net-Works
- security/p5-Crypt-PBKDF2
- textproc/p5-Pod-Readme
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/namespace/autoclean.pm
- %%PERL5_MAN3%%/namespace::autoclean.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| namespace-autoclean-0.31.tar.gz | 39548 | d3b32c82e1d2caa9d58b8c8075965240e6cab66ab9350bd6f6bea4ca07e938d6 |
Master sites 1
- CPAN