BSD Ports

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

SystemPortVersion
FreeBSDdevel/p5-Class-Default1.51_1
OpenBSDdevel/p5-Class-Default1.51p2
DragonFlydevel/p5-Class-Default1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.51_11.51_11.51_11.51_11.51_1
FreeBSD:14:quarterly1.51_11.51_1n/a1.51_11.51_1
FreeBSD:15:latest1.51_11.51_1n/a1.51_11.51_1
FreeBSD:15:quarterly1.51_11.51_1n/an/an/a
FreeBSD:16:latest1.51_11.51_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

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
FileSizeSHA256
Class-Default-1.51.tar.gz24677adfb4eb7a05fe637b8934601176c15d33e5c4b4ca628f8a19babf6a1c5e3d3ed
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.