BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
FreeBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestnone known-[email protected]-
DragonFlydevel/p5-FFI-Platypus-Type-PtrObject0.03 newestnone known-[email protected]-
HardenedBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestno data-[email protected]-
GhostBSDdevel/p5-FFI-Platypus-Type-PtrObject0.03 newestno 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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.030.030.030.030.03
FreeBSD:14:quarterly0.030.03n/a0.030.03
FreeBSD:15:latest0.030.03n/a0.030.03
FreeBSD:15:quarterly0.030.03n/an/an/a
FreeBSD:16:latest0.030.03n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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

Runtime 2

Test 2

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

Build dependencies 9
Run dependencies 9

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
FileSizeSHA256
FFI-Platypus-Type-PtrObject-0.03.tar.gz17374e1e94907ef90b40360a9a6c03d295a13047d4f6c9b56acaf1df2b54d17307f74
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.