From 600c342535fcd191f262b52d22ecc5ab1b21e21f Mon Sep 17 00:00:00 2001 From: clsung Date: Sat, 15 Jul 2006 05:37:29 +0000 Subject: Add p5-IPC-Mmap 0.11, provides a minimal mmap() interface for both POSIX and Win32. PR: ports/100256 Submitted by: Gea-Suan Lin --- devel/p5-IPC-Mmap/Makefile | 28 ++++++++++++++++++++++++++++ devel/p5-IPC-Mmap/distinfo | 3 +++ devel/p5-IPC-Mmap/pkg-descr | 19 +++++++++++++++++++ devel/p5-IPC-Mmap/pkg-plist | 12 ++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 devel/p5-IPC-Mmap/Makefile create mode 100644 devel/p5-IPC-Mmap/distinfo create mode 100644 devel/p5-IPC-Mmap/pkg-descr create mode 100644 devel/p5-IPC-Mmap/pkg-plist (limited to 'devel/p5-IPC-Mmap') diff --git a/devel/p5-IPC-Mmap/Makefile b/devel/p5-IPC-Mmap/Makefile new file mode 100644 index 000000000000..1a70f8ad2228 --- /dev/null +++ b/devel/p5-IPC-Mmap/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: p5-IPC-Mmap +# Date created: 2006-07-14 +# Whom: Gea-Suan Lin +# +# $FreeBSD$ +# + +PORTNAME= IPC-Mmap +PORTVERSION= 0.11 +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= IPC +PKGNAMEPREFIX= p5- + +MAINTAINER= gslin@gslin.org +COMMENT= Provides a minimal mmap() interface for both POSIX and Win32 + +PERL_CONFIGURE= yes + +MAN3= IPC::Mmap.3 + +.include + +.if ${PERL_LEVEL} < 500800 +IGNORE= requires perl 5.8.0 or later. Install lang/perl5.8 then try again +.endif + +.include diff --git a/devel/p5-IPC-Mmap/distinfo b/devel/p5-IPC-Mmap/distinfo new file mode 100644 index 000000000000..9157c89b30f8 --- /dev/null +++ b/devel/p5-IPC-Mmap/distinfo @@ -0,0 +1,3 @@ +MD5 (IPC-Mmap-0.11.tar.gz) = 8d63fa396234d6989e9506b13ccb269b +SHA256 (IPC-Mmap-0.11.tar.gz) = ede1b97e75571da13c6ec7f414a92d8f8797aa47744212cd677219a11b63da8f +SIZE (IPC-Mmap-0.11.tar.gz) = 18298 diff --git a/devel/p5-IPC-Mmap/pkg-descr b/devel/p5-IPC-Mmap/pkg-descr new file mode 100644 index 000000000000..f3baea7d290c --- /dev/null +++ b/devel/p5-IPC-Mmap/pkg-descr @@ -0,0 +1,19 @@ +Provides an object-oriented interface to either the POSIX mmap() or +Win32 equivalent APIs to memory map a file into a process's address +space for general memory access. IPC::Mmap provides only a minimal +interface without the additional overhead of tie'd variables or +locking enforced in other modules (e.g., Sys::Mmap, Win32::MMF); hence, +the application is responsible for performing read()'s and write()'s +on the IPC::Mmap object, and calling any needed lock() and unlock() +methods, as required by concurrent processes. + +Memory mapped files provide an alternate shared memory mechanism for +multiple processes. The technique maps the OS's file system buffers +for a given file into each mmap()'ing process's virtual memory space, +thereby permitting each process to essentially share the same physical +memory. Refer to the excellent "Advanced Programming in the UNIX +Environment", Stevens et al., Addison-Wesley Publisher for a detailed +reference on the POSIX implementation. IPC::Mmap provides OS-agnostic +wrappers for both the POSIX and Win32 memory mapped file capabilities. + +WWW: http://search.cpan.org/dist/IPC-Mmap/ diff --git a/devel/p5-IPC-Mmap/pkg-plist b/devel/p5-IPC-Mmap/pkg-plist new file mode 100644 index 000000000000..47cb62591e64 --- /dev/null +++ b/devel/p5-IPC-Mmap/pkg-plist @@ -0,0 +1,12 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/IPC/Mmap/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/IPC/Mmap/Mmap.bs +%%SITE_PERL%%/%%PERL_ARCH%%/auto/IPC/Mmap/Mmap.so +%%SITE_PERL%%/%%PERL_ARCH%%/IPC/Mmap.pm +%%SITE_PERL%%/%%PERL_ARCH%%/IPC/Mmap.pod +%%SITE_PERL%%/%%PERL_ARCH%%/IPC/Mmap/POSIX.pm +%%SITE_PERL%%/%%PERL_ARCH%%/IPC/Mmap/Win32.pm +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IPC/Mmap +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IPC +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/IPC/Mmap +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/IPC -- cgit