BSD Ports

devel/p5-accessors 1.01_1 FreeBSD

Create accessor methods in caller's package

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
16.9 KiB, 28.1 KiB installed

Description

The accessors pragma lets you create simple accessors at compile-time.

This saves you from writing them by hand, which tends to result in cut-n-paste errors and a mess of duplicated code. It can also help you reduce the amount of unwanted direct-variable access that may creep into your code base when you're feeling lazy. accessors was designed with laziness in mind.

Method-chaining accessors are generated by default. This may be changed in future versions! If you want backwards compatibility use accessors::chained and wait until the dust settles.

See accessors::classic for accessors that always return the current value if you don't like method chaining.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-accessors1.01_1
OpenBSDdevel/p5-accessors1.01p2
NetBSDdevel/p5-accessors1.01nb17
DragonFlydevel/p5-accessors1.01_1
HardenedBSDdevel/p5-accessors1.01_1
GhostBSDdevel/p5-accessors1.01_1

Install

Binary package:

pkg install p5-accessors

From the ports tree:

cd /usr/ports/devel/p5-accessors/ && make install clean

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

RUN_DEPENDS=	p5-accessors>0:devel/p5-accessors

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.01_11.01_11.01_11.01_11.01_1
FreeBSD:14:quarterly1.01_11.01_1n/a1.01_11.01_1
FreeBSD:15:latest1.01_11.01_1n/a1.01_11.01_1
FreeBSD:15:quarterly1.01_11.01_1n/an/an/a
FreeBSD:16:latest1.01_11.01_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Run dependencies 1
Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 10
  • %%SITE_PERL%%/accessors.pm
  • %%SITE_PERL%%/accessors/chained.pm
  • %%SITE_PERL%%/accessors/classic.pm
  • %%SITE_PERL%%/accessors/ro.pm
  • %%SITE_PERL%%/accessors/rw.pm
  • %%PERL5_MAN3%%/accessors.3.gz
  • %%PERL5_MAN3%%/accessors::chained.3.gz
  • %%PERL5_MAN3%%/accessors::classic.3.gz
  • %%PERL5_MAN3%%/accessors::ro.3.gz
  • %%PERL5_MAN3%%/accessors::rw.3.gz
distinfo 1
FileSizeSHA256
accessors-1.01.tar.gz86503a8db00f38148f3afadbe5330dc5490d9933f9cae137e842ec225a4d3adb2d9f
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.