devel/p5-namespace-clean 0.27_1 MidnightBSD
Keep imports and functions out of your namespace
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- artistic, gpl+
- Categories
- devel, perl5
Description
When you define a function, or import one, into a Perl package, it will naturally also be available as a method. This does not per se cause problems, but it can complicate subclassing and, for example, plugin classes that are included via multiple inheritance by loading them as base classes.
The "namespace::clean" pragma will remove all previously declared or 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.
In the other systems
The newest version among them is 0.27, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/p5-namespace-clean | 0.27_1 newest | no data | - | [email protected] | - |
| FreeBSD | devel/p5-namespace-clean | 0.27 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-namespace-clean | 0.27p0 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | - |
| NetBSD | devel/p5-namespace-clean | 0.27nb10 newest | none known | - | [email protected] | 2026-07-16 |
| DragonFly | devel/p5-namespace-clean | 0.27 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-namespace-clean | 0.27 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-namespace-clean | 0.27 newest | no data | - | [email protected] | - |
| OPNsense | devel/p5-namespace-clean | 0.27 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install p5-namespace-clean
From mports:
cd /usr/mports/devel/p5-namespace-clean && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-namespace-clean>0:devel/p5-namespace-clean
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 2
p5-B-Hooks-EndOfScope>=0.12: devel/p5-B-Hooks-EndOfScopep5-Package-Stash>=0.23: devel/p5-Package-Stash
Runtime 2
p5-B-Hooks-EndOfScope>=0.12: devel/p5-B-Hooks-EndOfScopep5-Package-Stash>=0.23: devel/p5-Package-Stash
Build dependencies 2
Run dependencies 2
Required by 13
- databases/p5-DBIx-Class
- devel/p5-Devel-PartialDump
- devel/p5-MooseX-Declare
- devel/p5-MooseX-Method-Signatures
- devel/p5-MooseX-Role-Parameterized
- devel/p5-MooseX-Types
- devel/p5-MooseX-Types-LoadableClass
- devel/p5-MooseX-Types-Structured
- devel/p5-Parse-Method-Signatures
- devel/p5-Sub-Exporter-Lexical
- devel/p5-namespace-autoclean
- net/p5-GeoIP2
- www/p5-WWW-Mechanize-Cached
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 3
- %%SITE_PERL%%/namespace/clean.pm
- %%SITE_PERL%%/namespace/clean/_Util.pm
- %%PERL5_MAN3%%/namespace::clean.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| namespace-clean-0.27.tar.gz | 17801 | 8a10a83c3e183dc78f9e7b7aa4d09b47c11fb4e7d3a33b9a12912fd22e31af9d |
Master sites 1
- CPAN