diff options
Diffstat (limited to 'devel/p5-Mutex')
-rw-r--r-- | devel/p5-Mutex/Makefile | 21 | ||||
-rw-r--r-- | devel/p5-Mutex/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-Mutex/pkg-descr | 14 | ||||
-rw-r--r-- | devel/p5-Mutex/pkg-plist | 8 |
4 files changed, 46 insertions, 0 deletions
diff --git a/devel/p5-Mutex/Makefile b/devel/p5-Mutex/Makefile new file mode 100644 index 000000000000..c765b42ff814 --- /dev/null +++ b/devel/p5-Mutex/Makefile @@ -0,0 +1,21 @@ +PORTNAME= Mutex +PORTVERSION= 1.011 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:MARIOROY +PKGNAMEPREFIX= p5- + +MAINTAINER= dvl@FreeBSD.org +COMMENT= Various locking implementations supporting processes and threads +WWW= https://metacpan.org/pod/Mutex + +LICENSE= ART10 + +USES= perl5 +USE_PERL5= configure + +RUN_DEPENDS= p5-ExtUtils-MakeMaker>0:devel/p5-ExtUtils-MakeMaker + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-Mutex/distinfo b/devel/p5-Mutex/distinfo new file mode 100644 index 000000000000..5b313369147c --- /dev/null +++ b/devel/p5-Mutex/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1752859539 +SHA256 (Mutex-1.011.tar.gz) = c9aad8b6ebafbdd1de8404d87c5ac1e455d84dca6eb55fa506e3ce3365cb3369 +SIZE (Mutex-1.011.tar.gz) = 17447 diff --git a/devel/p5-Mutex/pkg-descr b/devel/p5-Mutex/pkg-descr new file mode 100644 index 000000000000..8d05c2da268f --- /dev/null +++ b/devel/p5-Mutex/pkg-descr @@ -0,0 +1,14 @@ +This module, a standalone version of MCE::Mutex, implements locking methods +that can be used to coordinate access to shared data from multiple workers +spawned as processes or threads. + +The inspiration for this module came from reading Mutex for Ruby. + +$m1 = Mutex->new( ); +$m1->impl(); # Channel +$m2 = Mutex->new( path => /tmp/my.lock ); +$m2->impl(); # Flock +$m3 = Mutex->new( impl => "Channel" ); +$m3->impl(); # Channel +$m4 = Mutex->new( impl => "Flock" ); +$m4->impl(); # Flock diff --git a/devel/p5-Mutex/pkg-plist b/devel/p5-Mutex/pkg-plist new file mode 100644 index 000000000000..53106252f5d9 --- /dev/null +++ b/devel/p5-Mutex/pkg-plist @@ -0,0 +1,8 @@ +%%SITE_PERL%%/Mutex.pm +%%SITE_PERL%%/Mutex/Channel.pm +%%SITE_PERL%%/Mutex/Flock.pm +%%SITE_PERL%%/Mutex/Util.pm +%%PERL5_MAN3%%/Mutex.3.gz +%%PERL5_MAN3%%/Mutex::Channel.3.gz +%%PERL5_MAN3%%/Mutex::Flock.3.gz +%%PERL5_MAN3%%/Mutex::Util.3.gz |