devel/p5-Safe-Isa 1.000010 FreeBSD
Call isa, can, does and DOES safely on things that may not be objects
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 8.7 KiB, 14.6 KiB installed
Description
Since Perl allows us to provide a subroutine reference or a method name to the -> operator when used as a method call, and a subroutine doesn't require the invocant to actually be an object, we can create safe versions of isa, can and friends by using a subroutine reference that only tries to call the method if it's used on an object.
e.g. my $isa_Foo = $maybe_an_object->$_call_if_object(isa => 'Foo');
Note that we don't handle trying class names, because many things are valid class names that you might not want to treat as one (like say "Matt") - the is_module_name function from Module::Runtime is a good way to check for something you might be able to call methods on if you want to do that.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Safe-Isa | 1.000010 |
| OpenBSD | devel/p5-Safe-Isa | 1.000010p0 |
| NetBSD | devel/p5-Safe-Isa | 1.000010nb9 |
| DragonFly | devel/p5-Safe-Isa | 1.000010 |
| MidnightBSD | devel/p5-Safe-Isa | 1.000010 |
| HardenedBSD | devel/p5-Safe-Isa | 1.000010 |
| GhostBSD | devel/p5-Safe-Isa | 1.000010 |
Install
Binary package:
pkg install p5-Safe-Isa
From the ports tree:
cd /usr/ports/devel/p5-Safe-Isa/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Safe-Isa>0:devel/p5-Safe-Isa
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.000010 | 1.000010 | 1.000010 | 1.000010 | 1.000010 |
| FreeBSD:14:quarterly | 1.000010 | 1.000010 | n/a | 1.000010 | 1.000010 |
| FreeBSD:15:latest | 1.000010 | 1.000010 | n/a | 1.000010 | 1.000010 |
| FreeBSD:15:quarterly | 1.000010 | 1.000010 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.000010 | 1.000010 | 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 1
Run dependencies 1
Required by 227
- astro/p5-Astro-ADS
- databases/p5-DBIx-Class-Helpers
- databases/p5-Dancer2-Plugin-DBIC
- databases/p5-Dancer2-Plugin-Database
- databases/p5-Dancer2-Session-DBIC
- databases/p5-MongoDB
- databases/p5-Mongoose
- devel/p5-Carp-REPL
- devel/p5-Dancer2-Plugin-LogReport
- devel/p5-Data-Frame
- devel/p5-Devel-REPL
- devel/p5-Dist-Zilla
- devel/p5-Eval-Quosure
- devel/p5-MetaCPAN-Client
- devel/p5-Method-Signatures
- devel/p5-Module-Build-Convert
- devel/p5-Module-CheckDeps
- devel/p5-Module-CheckVersion
- devel/p5-Module-Extract-Use
- devel/p5-Module-Inspector
- devel/p5-Module-Used
- devel/p5-MooseX-CompileTime-Traits
- devel/p5-MooseX-Declare
- devel/p5-MooseX-Method-Signatures
- devel/p5-MooseX-MultiMethods
- devel/p5-MooseX-Role-Loggable
- devel/p5-MooseX-Types-ISO8601
- devel/p5-OrePAN2
- devel/p5-POEx-Role-SessionInstantiation
- devel/p5-POEx-Role-Streaming
- devel/p5-Parse-CPAN-Packages
- devel/p5-Parse-Method-Signatures
- devel/p5-Perl-Critic-Deprecated
- devel/p5-Perl-Metrics-Lite
- devel/p5-Perl-Metrics-Simple
- devel/p5-Perl-PrereqScanner
- devel/p5-Test-Declare
- devel/p5-Test-DependentModules
- devel/p5-Test-Module-Used
- devel/p5-Test-Prereq
- devel/p5-Test-WWW-Mechanize-Catalyst
- devel/p5-Test-WWW-Selenium
- devel/p5-Test2-Harness-UI
- devel/p5-Test2-Tools-PDL
- devel/p5-Type-TinyX-Facets
- devel/p5-Types-PDL
- lang/p5-Marpa
- lang/p5-Marpa-PP
- lang/p5-Marpa-XS
- lang/p5-TryCatch
- mail/p5-Dancer2-Plugin-Email
- math/p5-PDL-Perldl2
- multimedia/zoneminder
- net-im/twirssi
- net-mgmt/p5-SNMP-Info
- net-mgmt/smokeping
- net/p5-Net-Amazon-S3
- net/p5-POE-Component-Jabber
- net/p5-POE-Component-PubSub
- net/p5-POEx-Role-TCPServer
- net/p5-Twitter-API
- science/p5-Geo-Calc
- security/p5-Dancer2-Plugin-Auth-Extensible
- security/p5-Dancer2-Plugin-Auth-Extensible-Provider-DBIC
- security/p5-Dancer2-Plugin-Auth-Extensible-Provider-Database
- security/p5-Dancer2-Plugin-Auth-Extensible-Provider-IMAP
- security/p5-openxpki
- sysutils/p5-Brackup
- textproc/p5-HTML-Packer
- textproc/p5-Marpa-HTML
- textproc/p5-PPI
- textproc/p5-PPI-HTML
- textproc/p5-PPI-XS
- textproc/p5-PPIx-EditorTools
- textproc/p5-PPIx-QuoteLike
- textproc/p5-PPIx-Regexp
- textproc/p5-PPIx-Utilities
- textproc/p5-PPIx-Utils
- textproc/p5-Perl-Critic
- textproc/p5-Perl-Critic-Bangs
- textproc/p5-Perl-Critic-Itch
- textproc/p5-Perl-Critic-Moose
- textproc/p5-Perl-Critic-More
- textproc/p5-Perl-Critic-Pulp
- textproc/p5-Perl-Critic-Swift
- textproc/p5-Perl-Critic-Tics
- textproc/p5-Perl-MinimumVersion
- textproc/p5-Test-Perl-Critic
- textproc/p5-UML-Class-Simple
- www/p5-Catalyst-Action-REST
- www/p5-Catalyst-Action-RenderView
- www/p5-Catalyst-Action-Serialize-XML-Hash-LX
- www/p5-Catalyst-ActionRole-ACL
- www/p5-Catalyst-Authentication-Credential-HTTP
- www/p5-Catalyst-Authentication-Credential-OpenID
- www/p5-Catalyst-Authentication-Store-DBIx-Class
- www/p5-Catalyst-Authentication-Store-LDAP
- www/p5-Catalyst-Component-ACCEPT_CONTEXT
- www/p5-Catalyst-Component-InstancePerContext
- www/p5-Catalyst-Controller-ActionRole
The first 100 are listed.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/Safe/Isa.pm
- %%PERL5_MAN3%%/Safe::Isa.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Safe-Isa-1.000010.tar.gz | 6546 | 87f4148aa0ff1d5e652723322eab7dafa3801c967d6f91ac9147a3c467b8a66a |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.