devel/p5-Class-Default 1.51_1 FreeBSD
Static calls apply to a default instantiation
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 10.0 KiB, 16.8 KiB installed
Description
Class::Default provides a mechanism to allow your class to take static method calls and apply it to a default instantiation of an object. It provides a flexibility to an API that allows it to be used more comfortably in different situations.
This technique appears to be especially useful when writing modules that you want to be used in either a single use or a persistent environment. In a CGI like environment, you want the simplicity of a static interface. You can call Class-method> directly, without having to pass an instantiation around constantly.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Class-Default | 1.51_1 |
| OpenBSD | devel/p5-Class-Default | 1.51p2 |
| DragonFly | devel/p5-Class-Default | 1.51_1 |
Install
Binary package:
pkg install p5-Class-Default
From the ports tree:
cd /usr/ports/devel/p5-Class-Default/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Class-Default>0:devel/p5-Class-Default
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.51_1 | 1.51_1 | 1.51_1 | 1.51_1 | 1.51_1 |
| FreeBSD:14:quarterly | 1.51_1 | 1.51_1 | n/a | 1.51_1 | 1.51_1 |
| FreeBSD:15:latest | 1.51_1 | 1.51_1 | n/a | 1.51_1 | 1.51_1 |
| FreeBSD:15:quarterly | 1.51_1 | 1.51_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.51_1 | 1.51_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Class-Inspector>=0: devel/p5-Class-Inspector
Runtime 1
p5-Class-Inspector>=0: devel/p5-Class-Inspector
The full lists below include those, and their dependencies in turn.
Build dependencies 2
Run dependencies 2
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Class::Default.3.gz
- %%SITE_PERL%%/Class/Default.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Class-Default-1.51.tar.gz | 24677 | adfb4eb7a05fe637b8934601176c15d33e5c4b4ca628f8a19babf6a1c5e3d3ed |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.