diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2011-11-05 23:03:43 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2011-11-05 23:03:43 +0800 |
commit | 9168f5239b64ae072919b2758476c93edb7d6025 (patch) | |
tree | a517a40d44872296a4573c55e6c0efc720b6efbb /devel | |
parent | eb40a4afa4442803a61c0723171aec1c588209d2 (diff) | |
download | freebsd-ports-graphics-9168f5239b64ae072919b2758476c93edb7d6025.tar.gz freebsd-ports-graphics-9168f5239b64ae072919b2758476c93edb7d6025.tar.zst freebsd-ports-graphics-9168f5239b64ae072919b2758476c93edb7d6025.zip |
- Add p5-XS-Object-Magic 0.04
This way of associating structs with Perl space objects is designed to supercede
Perl's builtin T_PTROBJ with something that is designed to be:
Extensible
- The association of the pointer using sv_magicext can be done on any data type,
so you can associate C structs with any representation type.
- This means that you can add pointers to any object (hand coded, Moose or
otherwise), while still having instance data in regular hashes.
Opaque
- The C pointer is neither visible nor modifiable from Perl space.
- This prevents accidental corruption which could lead to segfaults using
T_PTROBJ (e.g. $$ptr_obj = 0).
WWW: http://search.cpan.org/dist/XS-Object-Magic/
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-XS-Object-Magic/Makefile | 34 | ||||
-rw-r--r-- | devel/p5-XS-Object-Magic/distinfo | 2 | ||||
-rw-r--r-- | devel/p5-XS-Object-Magic/pkg-descr | 17 | ||||
-rw-r--r-- | devel/p5-XS-Object-Magic/pkg-plist | 14 |
5 files changed, 68 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 8d2fd0581c4..5a9bfc960a3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2589,6 +2589,7 @@ SUBDIR += p5-Workflow SUBDIR += p5-XML-Compile-Tester SUBDIR += p5-XML-Pastor + SUBDIR += p5-XS-Object-Magic SUBDIR += p5-XSLoader SUBDIR += p5-YAML-AppConfig SUBDIR += p5-Yada-Yada-Yada diff --git a/devel/p5-XS-Object-Magic/Makefile b/devel/p5-XS-Object-Magic/Makefile new file mode 100644 index 00000000000..7cca44694a1 --- /dev/null +++ b/devel/p5-XS-Object-Magic/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: p5-XS-Object-Magic +# Date created: 2011-11-05 +# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= XS-Object-Magic +PORTVERSION= 0.04 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:FLORA +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Opaque, extensible XS pointer backed objects using sv_magic + +BUILD_DEPENDS= p5-ExtUtils-Depends>=0.302:${PORTSDIR}/devel/p5-ExtUtils-Depends + +TEST_DEPENDS= p5-Test-Fatal>=0:${PORTSDIR}/devel/p5-Test-Fatal \ + p5-Test-use-ok>=0:${PORTSDIR}/devel/p5-Test-use-ok + +PERL_CONFIGURE= yes + +MAN3= XS::Object::Magic.3 + +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 501001 +BUILD_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent +RUN_DEPENDS+= p5-parent>=0:${PORTSDIR}/devel/p5-parent +.endif + +.include <bsd.port.post.mk> diff --git a/devel/p5-XS-Object-Magic/distinfo b/devel/p5-XS-Object-Magic/distinfo new file mode 100644 index 00000000000..982f8068552 --- /dev/null +++ b/devel/p5-XS-Object-Magic/distinfo @@ -0,0 +1,2 @@ +SHA256 (XS-Object-Magic-0.04.tar.gz) = 3dea54e196d4ca13a5186dbe7b12d067ff4aaafb15f6e62a8bd1010c8f84cf0d +SIZE (XS-Object-Magic-0.04.tar.gz) = 66287 diff --git a/devel/p5-XS-Object-Magic/pkg-descr b/devel/p5-XS-Object-Magic/pkg-descr new file mode 100644 index 00000000000..f4cdd119997 --- /dev/null +++ b/devel/p5-XS-Object-Magic/pkg-descr @@ -0,0 +1,17 @@ +This way of associating structs with Perl space objects is designed to supercede +Perl's builtin T_PTROBJ with something that is designed to be: + +Extensible + +- The association of the pointer using sv_magicext can be done on any data type, + so you can associate C structs with any representation type. +- This means that you can add pointers to any object (hand coded, Moose or + otherwise), while still having instance data in regular hashes. + +Opaque + +- The C pointer is neither visible nor modifiable from Perl space. +- This prevents accidental corruption which could lead to segfaults using + T_PTROBJ (e.g. $$ptr_obj = 0). + +WWW: http://search.cpan.org/dist/XS-Object-Magic/ diff --git a/devel/p5-XS-Object-Magic/pkg-plist b/devel/p5-XS-Object-Magic/pkg-plist new file mode 100644 index 00000000000..12ab920c018 --- /dev/null +++ b/devel/p5-XS-Object-Magic/pkg-plist @@ -0,0 +1,14 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic.pm +%%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic/Install/Files.pm +%%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic/Install/typemap +%%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic/Install/xs_object_magic.h +%%SITE_PERL%%/%%PERL_ARCH%%/auto/XS/Object/Magic/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/XS/Object/Magic/Magic.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/XS/Object/Magic/Magic.so +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/XS/Object/Magic +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XS/Object +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/XS +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic/Install +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/XS/Object/Magic +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/XS/Object +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/XS |