devel/p5-Import-Into 1.002005nb11 NetBSD
Perl5 module to import packages into other packages
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- devel, perl5
- Package size
- 8.9 KiB, 17.8 KiB installed
Description
Writing exporters is a pain. Some use Exporter, some use Sub::Exporter, some use Moose::Exporter, some use Exporter::Declare ... and some things are pragmas.
If you want to re-export other things, you have to know which is which. Exporter subclasses provide export_to_level, but if they overrode their import method all bets are off. Sub::Exporter provides an into parameter but figuring out something used it isn't trivial. Pragmas need to have their import method called directly since they affect the current unit of compilation.
It's ... annoying.
However, there is an approach that actually works for all of these types.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Import-Into | 1.002005nb11 |
| FreeBSD | devel/p5-Import-Into | 1.002005,1 |
| OpenBSD | devel/p5-Import-Into | 1.002005p1 |
| DragonFly | devel/p5-Import-Into | 1.002005,1 |
| MidnightBSD | devel/p5-Import-Into | 1.002005,1 |
| HardenedBSD | devel/p5-Import-Into | 1.002005,1 |
| GhostBSD | devel/p5-Import-Into | 1.002005,1 |
Install
Binary package:
pkgin install p5-Import-Into
From pkgsrc:
cd /usr/pkgsrc/devel/p5-Import-Into && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.002005nb11 |
| NetBSD 10.1 aarch64 | 1.002005nb10 |
| SmartOS / illumos x86_64 | 1.002005nb11 |
| macOS 15 arm64 | 1.002005nb11 |