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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-accessors | 1.01_1 |
| OpenBSD | devel/p5-accessors | 1.01p2 |
| NetBSD | devel/p5-accessors | 1.01nb17 |
| DragonFly | devel/p5-accessors | 1.01_1 |
| HardenedBSD | devel/p5-accessors | 1.01_1 |
| GhostBSD | devel/p5-accessors | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.01_1 | 1.01_1 | 1.01_1 | 1.01_1 | 1.01_1 |
| FreeBSD:14:quarterly | 1.01_1 | 1.01_1 | n/a | 1.01_1 | 1.01_1 |
| FreeBSD:15:latest | 1.01_1 | 1.01_1 | n/a | 1.01_1 | 1.01_1 |
| FreeBSD:15:quarterly | 1.01_1 | 1.01_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.01_1 | 1.01_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| accessors-1.01.tar.gz | 8650 | 3a8db00f38148f3afadbe5330dc5490d9933f9cae137e842ec225a4d3adb2d9f |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.