BSD Ports

devel/p5-Module-Pluggable 6.3 MidnightBSD

Automatically give your module the ability to have plugins

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

Description

Module::Pluggable provides a simple but, hopefully, extensible way of having 'plugins' for your module. Obviously this isn't going to be the be all and end all of solutions but it works for me.

Essentially all it does is export a method into your namespace that looks through a search path for .pm files and turn those into class names.

Optionally it instantiates those classes for you.

In the other systems

SystemPortVersion
MidnightBSDdevel/p5-Module-Pluggable6.3
FreeBSDdevel/p5-Module-Pluggable6.4
OpenBSDdevel/p5-Module-Pluggable6.4
NetBSDdevel/p5-Module-Pluggable6.4
DragonFlydevel/p5-Module-Pluggable5.2
HardenedBSDdevel/p5-Module-Pluggable6.4
GhostBSDdevel/p5-Module-Pluggable6.4

Install

Binary package:

mport install p5-Module-Pluggable

From mports:

cd /usr/mports/devel/p5-Module-Pluggable && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Module-Pluggable>0:devel/p5-Module-Pluggable

Dependencies

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 6
  • %%SITE_PERL%%/Devel/InnerPackage.pm
  • %%SITE_PERL%%/Module/Pluggable.pm
  • %%SITE_PERL%%/Module/Pluggable/Object.pm
  • %%PERL5_MAN3%%/Devel::InnerPackage.3.gz
  • %%PERL5_MAN3%%/Module::Pluggable.3.gz
  • %%PERL5_MAN3%%/Module::Pluggable::Object.3.gz
distinfo 1
FileSizeSHA256
Module-Pluggable-6.3.tar.gz2905358512bb9c654746d0937770b98b559b30872d85ac24073485e5830890dd1b2a0
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
787dcc0cd6 Lucas Holt all p5 ports: fix CPAN author fetch paths
Add CPAN author subdirectories for 42 distributions whose generic module paths no longer resolve. AI-Assisted-by: Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>