devel/p5-FFI-Platypus-Type-PtrObject 0.03 FreeBSD
Platypus custom type for an object wrapped around an opaque pointer
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 11.9 KiB, 42.9 KiB installed
Description
FFI::Platypus::Type::PtrObject is a helper type for FFI::Platypus that handles type checking for the common pattern where a Perl class is a simple wrapper around an opaque pointer. The class should be implemented as a hash reference, and the pointer itself is expected to be stored on the ptr key. If the caller of the interface (Perl) is responsible for cleaning up the memory, then it normally should be done in the DESTROY method (as above).
If you do not pass in the correct type, it will be detected before the C code is called and an exception will be thrown. (otherwise you would probably get a segment violation SEGV).
In the other systems
The newest version among them is 0.03, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| FreeBSD | devel/p5-FFI-Platypus-Type-PtrObject | 0.03 newest | none known | - | [email protected] | - |
| DragonFly | devel/p5-FFI-Platypus-Type-PtrObject | 0.03 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-FFI-Platypus-Type-PtrObject | 0.03 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-FFI-Platypus-Type-PtrObject | 0.03 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-FFI-Platypus-Type-PtrObject
From the ports tree:
cd /usr/ports/devel/p5-FFI-Platypus-Type-PtrObject/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-FFI-Platypus-Type-PtrObject>0:devel/p5-FFI-Platypus-Type-PtrObject
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 | 0.03 | 0.03 | 0.03 | 0.03 | 0.03 |
| FreeBSD:14:quarterly | 0.03 | 0.03 | n/a | 0.03 | 0.03 |
| FreeBSD:15:latest | 0.03 | 0.03 | n/a | 0.03 | 0.03 |
| FreeBSD:15:quarterly | 0.03 | 0.03 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.03 | 0.03 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
p5-FFI-Platypus>=1.11: devel/p5-FFI-Platypusp5-Ref-Util>=0: devel/p5-Ref-Util
Runtime 2
p5-FFI-Platypus>=1.11: devel/p5-FFI-Platypusp5-Ref-Util>=0: devel/p5-Ref-Util
Test 2
p5-Test-Simple>=1.302200: devel/p5-Test-Simplep5-Test2-Tools-FFI>=0: devel/p5-Test2-Tools-FFI
The full lists below include those, and their dependencies in turn.
Build dependencies 9
Run dependencies 9
Required by 1
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%SITE_PERL%%/FFI/Platypus/Type/PtrObject.pm
- %%PERL5_MAN3%%/FFI::Platypus::Type::PtrObject.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| FFI-Platypus-Type-PtrObject-0.03.tar.gz | 17374 | e1e94907ef90b40360a9a6c03d295a13047d4f6c9b56acaf1df2b54d17307f74 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.