From nobody Tue Jul 22 17:36:52 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bmkwP12x9z5pwbV; Tue, 22 Jul 2025 17:36:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bmkwN4RRPz4LMG; Tue, 22 Jul 2025 17:36:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753205812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Au7YUTEsewV/NDEdyMfDHElk2LhXHdRVGoNByAgGT/k=; b=IEuml8N6cQQ0ACKzlB9zis63kgrBd+zjG4QoDuoyXE715Vj6gwYi4Gt0vR3h89dUFnyAAp TLHhSpTbqBJDG4nCPx54qi+9RSrj/DOBGZfkYxRd3jLfAGMgk2OL87lMHhCVNDiN6C1TuS j6KlIHLYvW+6xrIsAyPwwAuvgCIbzAtykNYDuzZKomxLghZIcLEzNLig4BteFs8unB9+kX QJmXdUvP9Vx4gxtr4WNfEGLQnkZgus11sftOaLd0m0DBWBV8ZJ2L++5XXi1VEZ4lnhsZxd yFBgWhgmNu+xofm3/2m09dne2Mv3rkE4LfoAfy6CBp6LM0Zf9pWYBJOp7LhyVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753205812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Au7YUTEsewV/NDEdyMfDHElk2LhXHdRVGoNByAgGT/k=; b=pPUPNdXAauTnubgw0OWeNITe2uETDq2VjBwvamCa+GYbEbpnK2hCsVWnFf8x7l4QLJhuHf We4SMszPNfDHrcP1/U2MLjnFdbXSbc9Y661GKXW2l7MtiP0RWE2YJk7+OnP15QVIDmq0dN 7x+72yHzRhz7hQxxBps7MNMxbNwkgj5VcCN+/Tkcp9WeUoh3mc6nKGCIhh3c06mqlDSsIB zd2FErkB+y01i1JL7S7uzWG+NWvYe1EMSk/Wf0Oc7B+EKmoFWARdbX3WsPEmcSfsmuYlSC x/iSOCM3YpFc8jChK8YyxqnwBpIZW86z20jMYZAoOLav6P9sikuMlRHw03iktg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753205812; a=rsa-sha256; cv=none; b=aE1QPivL/3LFn8yGfp+mpZ5vC8usCE+Sjb3Etr+3tTc62rAhgnCyE5xZ5au1lrc9dNxMO5 /f6J0t2zg4iNZckEZMpNH/LmWR1nOpbnSNDPg76cHvQZq6xkyARB6xYco6AGhezQ3tVBeh jbrLh+UpeZuQAtg6SFmS+7v0bRhuwxL8OOJ6h9+Ybqdhf30QoPs8WOoyNqHuPO1eQ99xdG Yw66maSqbLq/8f+tBATbu0WYcYbO+sPcod3Q3UsYa4nJTzIfpMt1aOBy3RmMawlbBUkayO vT+g6rcUxEK2i8SDwXMUVce2p6aAUpfUP6cRBbrkFi7dfMWHO8SEn0uR5KZ4pg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bmkwN4315zcrW; Tue, 22 Jul 2025 17:36:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 56MHaqxg067642; Tue, 22 Jul 2025 17:36:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56MHaqrD067639; Tue, 22 Jul 2025 17:36:52 GMT (envelope-from git) Date: Tue, 22 Jul 2025 17:36:52 GMT Message-Id: <202507221736.56MHaqrD067639@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dan Langille Subject: git: 7ab2bd1ae802 - main - devel/p5-Mutex: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dvl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7ab2bd1ae8020d6b1c1524d65e15d4f473ba207a Auto-Submitted: auto-generated The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=7ab2bd1ae8020d6b1c1524d65e15d4f473ba207a commit 7ab2bd1ae8020d6b1c1524d65e15d4f473ba207a Author: Dan Langille AuthorDate: 2025-07-22 14:57:09 +0000 Commit: Dan Langille CommitDate: 2025-07-22 17:36:40 +0000 devel/p5-Mutex: Add new port 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. --- devel/Makefile | 1 + devel/p5-Mutex/Makefile | 21 +++++++++++++++++++++ devel/p5-Mutex/distinfo | 3 +++ devel/p5-Mutex/pkg-descr | 14 ++++++++++++++ devel/p5-Mutex/pkg-plist | 8 ++++++++ 5 files changed, 47 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 1927e32c34f5..3701757f7233 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -3178,6 +3178,7 @@ SUBDIR += p5-MouseX-Types SUBDIR += p5-MouseX-Types-Path-Class SUBDIR += p5-Multiplex-CMD + SUBDIR += p5-Mutex SUBDIR += p5-NEXT SUBDIR += p5-Net-DBus SUBDIR += p5-No-Worries 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 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