devel/p5-Class-Method-Modifiers 2.15 FreeBSD
Provides Moose-like method modifiers
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 18.7 KiB, 58.3 KiB installed
Description
Method modifiers are a powerful feature from the CLOS (Common Lisp Object System) world.
In its most basic form, a method modifier is just a method that calls $self->SUPER::foo(@_). I for one have trouble remembering that exact invocation, so my classes seldom re-dispatch to their base classes. Very bad!
Class::Method::Modifiers provides three modifiers: before, around, and after. before and after are run just before and after the method they modify, but can not really affect that original method. around is run in place of the original method, with a hook to easily call that original method.
One clear benefit of using Class::Method::Modifiers is that you can define multiple modifiers in a single namespace. These separate modifiers don't need to know about each other. This makes top-down design easy. Have a base class that provides the skeleton methods of each operation, and have plugins modify those methods to flesh out the specifics.
In short, Class::Method::Modifiers solves the problem of making sure you call $self->SUPER::foo(@_), and provides a cleaner interface for it.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Class-Method-Modifiers | 2.15 |
| OpenBSD | devel/p5-Class-Method-Modifiers | 2.15 |
| NetBSD | devel/p5-Class-Method-Modifiers | 2.15nb4 |
| DragonFly | devel/p5-Class-Method-Modifiers | 2.15 |
| MidnightBSD | devel/p5-Class-Method-Modifiers | 2.15 |
Install
Binary package:
pkg install p5-Class-Method-Modifiers
From the ports tree:
cd /usr/ports/devel/p5-Class-Method-Modifiers/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Class-Method-Modifiers>0:devel/p5-Class-Method-Modifiers
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 | 2.15 | 2.15 | 2.13 | 2.15 | 2.15 |
| FreeBSD:14:quarterly | 2.15 | 2.15 | n/a | 2.15 | 2.15 |
| FreeBSD:15:latest | 2.15 | 2.15 | n/a | 2.15 | 2.15 |
| FreeBSD:15:quarterly | 2.15 | 2.15 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.15 | 2.15 | 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.
Test 1
p5-Moose>=0: devel/p5-Moose
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
Required by 663
- archivers/p5-Archive-Peek
- archivers/p5-Compress-LZW
- archivers/p5-POE-Filter-LZW
- astro/p5-Astro-ADS
- astro/p5-Astro-Catalog
- astro/p5-Astro-Coords
- astro/p5-Astro-Flux
- astro/p5-Astro-Sunrise
- astro/p5-GPS-Babel
- astro/p5-Net-GPSD3
- audio/mythplugin-mythmusic
- audio/p5-Net-FreeDB
- audio/pacpl
- biology/p5-Bio-MAGETAB
- biology/p5-Bio-Phylo
- converters/p5-Data-AMF
- databases/p5-App-Sqitch
- databases/p5-BSON
- databases/p5-BSON-XS
- databases/p5-CHI-Driver-Memcached
- databases/p5-CHI-Driver-Redis
- databases/p5-CHI-Driver-TokyoTyrant
- databases/p5-Class-DBI-AbstractSearch
- databases/p5-Class-DBI-Plugin-AbstractCount
- databases/p5-Class-DBI-Plugin-DeepAbstractSearch
- databases/p5-Class-DBI-Plugin-Pager
- databases/p5-Class-DBI-SAK
- databases/p5-Class-DBI-Sweet
- databases/p5-DBICx-Deploy
- databases/p5-DBICx-MapMaker
- databases/p5-DBICx-Sugar
- databases/p5-DBICx-TestDatabase
- databases/p5-DBICx-TxnInsert
- databases/p5-DBIWrapper
- databases/p5-DBIx-Admin-CreateTable
- databases/p5-DBIx-Admin-DSNManager
- databases/p5-DBIx-Admin-TableInfo
- databases/p5-DBIx-Class
- databases/p5-DBIx-Class-AsFdat
- databases/p5-DBIx-Class-AuditLog
- databases/p5-DBIx-Class-BitField
- databases/p5-DBIx-Class-Candy
- databases/p5-DBIx-Class-Cursor-Cached
- databases/p5-DBIx-Class-CustomPrefetch
- databases/p5-DBIx-Class-DateTime-Epoch
- databases/p5-DBIx-Class-DeploymentHandler
- databases/p5-DBIx-Class-DigestColumns
- databases/p5-DBIx-Class-DynamicDefault
- databases/p5-DBIx-Class-DynamicSubclass
- databases/p5-DBIx-Class-EncodeColumns
- databases/p5-DBIx-Class-EncodedColumn
- databases/p5-DBIx-Class-Fixtures
- databases/p5-DBIx-Class-FrozenColumns
- databases/p5-DBIx-Class-Helpers
- databases/p5-DBIx-Class-InflateColumn-Authen-Passphrase
- databases/p5-DBIx-Class-InflateColumn-FS
- databases/p5-DBIx-Class-InflateColumn-IP
- databases/p5-DBIx-Class-InflateColumn-Serializer
- databases/p5-DBIx-Class-IntrospectableM2M
- databases/p5-DBIx-Class-Loader
- databases/p5-DBIx-Class-Migration
- databases/p5-DBIx-Class-PassphraseColumn
- databases/p5-DBIx-Class-QueryLog
- databases/p5-DBIx-Class-QueryProfiler
- databases/p5-DBIx-Class-ResultSet-HashRef
- databases/p5-DBIx-Class-ResultSet-RecursiveUpdate
- databases/p5-DBIx-Class-Schema-Config
- databases/p5-DBIx-Class-Schema-Loader
- databases/p5-DBIx-Class-Schema-PopulateMore
- databases/p5-DBIx-Class-Storage-TxnEndHook
- databases/p5-DBIx-Class-TimeStamp
- databases/p5-DBIx-Class-Tree
- databases/p5-DBIx-Class-Tree-NestedSet
- databases/p5-DBIx-Class-UUIDColumns
- databases/p5-DBIx-Class-VirtualColumns
- databases/p5-DBIx-Class-WebForm
- databases/p5-DBIx-Introspector
- databases/p5-DBIx-Lite
- databases/p5-DBIx-NoSQL
- databases/p5-DBIx-Skinny-InflateColumn-DateTime
- databases/p5-Dancer-Plugin-DBIC
- databases/p5-Dancer2-Plugin-DBIC
- databases/p5-Dancer2-Plugin-Database
- databases/p5-Dancer2-Session-DBIC
- databases/p5-GitDDL
- databases/p5-GitDDL-Migrator
- databases/p5-HTML-FormHandler-Model-DBIC
- databases/p5-Interchange6-Schema
- databases/p5-Jifty-DBI
- databases/p5-Mojo-Pg
- databases/p5-MongoDB
- databases/p5-Mongoose
- databases/p5-Oryx
- databases/p5-Prophet
- databases/p5-Redis-RateLimit
- databases/p5-Rose-DB
- databases/p5-Rose-DB-Object
- databases/p5-Rose-DBx-Object-MoreHelpers
- databases/p5-Rose-DBx-Object-Renderer
- databases/p5-SQL-Abstract
The first 100 are listed.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Class/Method/Modifiers.pm
- %%PERL5_MAN3%%/Class::Method::Modifiers.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Class-Method-Modifiers-2.15.tar.gz | 41167 | 65cd85bfe475d066e9186f7a8cc636070985b30b0ebb1cde8681cf062c2e15fc |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.