From nobody Wed Feb 28 11:57:51 2024 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 4TlCXb5q8Zz5DBqg; Wed, 28 Feb 2024 11:57:51 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TlCXb4wS9z4Sg6; Wed, 28 Feb 2024 11:57:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709121471; 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=xS87hOiIa84EjeOWyMUswFL2DWZL60NG6cT43Sh8s7Q=; b=o0+DYH42VCkET658HzjFBMYO0oh9wbyuifjkdIRlcA7Scd7ZToEiW7s04YXGxzzUHpWAm/ R3XP9933iG6346cZcbY5eDguyjGqMyf+zpl/h7wl+V8Y5aCnSZ+qLmRibqu5Jic+QeSNuV bn10hU0OP2uvi97ysNJl4tHhwEGCoz8B30UPtqhrNAAPny2VwUPqpkqzC8tCSLaJDyWvy5 iT9NIu3QTmyirfBhidUtw6ViLvMwY52bbIUTjDB0WPSoyRhqzT/DLnAbJ7CIWcxQEZzo+/ 8qYIRk2NgM7umuei7q99yQBAcchMqWss/aIqhzXrTzJ68goYbme2gNnS2kadiA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709121471; a=rsa-sha256; cv=none; b=S2MlaYHtpt6ScNpQx/Y5UdRDdAJ//ki/ETg6CtFyzrQkxEYw4tNw8gM0BcreSgbiiZSpTH zGEV7bkGsiN3GTllFPdE3xhE3WN7nwRhcKjJpgOmdOqXy8dw7U1Lttmsgk+6OGVD/KfWx5 TNjXVFmkVLhAvHjEs+dIh4f2934EDmcf3ANFPEPNjIgn3I3ssCLg/W5IQPPCKvBynMiDcR 6f7ELnh++I7D7LDSp3aB2iYhKiMVQGbaaNX2ykgU5LzUOj5SLE14qhHCxRbS8mYZAZTbJm 1Y7cD3cFgmsNOjW8/Rs26sJ7HgdMnPkZSQisPAnEN8Lwih6wcZZL35WHxjGQ+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709121471; 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=xS87hOiIa84EjeOWyMUswFL2DWZL60NG6cT43Sh8s7Q=; b=CYeuH+4LHgNrbAjZCGLGDK17BcJWGQeV2zRq3Xs0fzV5oFjp1LRgN8AqbZVx+wVDXMe16y 8cGlaFf6U3mpzND8Ga0/qYSmwnoVqakqX6p443hXz88/3v/fvLALFkENRDFEc+6n7dUm00 jzv8QFx8fDMBgNIgNbS8mohxHCbOhqsE0cskp/g3UcNmNncEVtxsRdzrpILyV9GRzO0mD5 yo5Sa2pWrew9BlqpmgNlMnPJyBZZTi3mR6cH2LdQGdiD4MP0CHPUTFd6Awf0IEQ0NS4ZwE bR5oHhUDfFzfdL9d96Lvt7g9LCLUmarzz927q/JHcQsESNjGHXM5KUDVVB5/9A== 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 4TlCXb3tLWzwff; Wed, 28 Feb 2024 11:57:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41SBvp7J028287; Wed, 28 Feb 2024 11:57:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41SBvpBR028284; Wed, 28 Feb 2024 11:57:51 GMT (envelope-from git) Date: Wed, 28 Feb 2024 11:57:51 GMT Message-Id: <202402281157.41SBvpBR028284@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Norikatsu Shigemura Subject: git: f4c9fe9a81c4 - main - devel/p5-Lock-File: 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: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nork X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f4c9fe9a81c45a90253aaf33c05cd6fc66a971dd Auto-Submitted: auto-generated The branch main has been updated by nork: URL: https://cgit.FreeBSD.org/ports/commit/?id=f4c9fe9a81c45a90253aaf33c05cd6fc66a971dd commit f4c9fe9a81c45a90253aaf33c05cd6fc66a971dd Author: Norikatsu Shigemura AuthorDate: 2024-02-28 11:57:11 +0000 Commit: Norikatsu Shigemura CommitDate: 2024-02-28 11:57:11 +0000 devel/p5-Lock-File: Add new port The Lock::File module provides flock wrapper functions that watch the associated object and release it automatically if the object has no reference. Approved by: hrs (mentor) --- devel/Makefile | 1 + devel/p5-Lock-File/Makefile | 36 +++++++++++++++++++++++++++++++++ devel/p5-Lock-File/distinfo | 3 +++ devel/p5-Lock-File/files/patch-t_test.t | 13 ++++++++++++ devel/p5-Lock-File/pkg-descr | 3 +++ 5 files changed, 56 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index af859761666a..d317a981db28 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2784,6 +2784,7 @@ SUBDIR += p5-Locale-XGettext SUBDIR += p5-Locale-gettext SUBDIR += p5-Locale-libintl + SUBDIR += p5-Lock-File SUBDIR += p5-LockFile-Simple SUBDIR += p5-Log-Accounting-SVK SUBDIR += p5-Log-Accounting-SVN diff --git a/devel/p5-Lock-File/Makefile b/devel/p5-Lock-File/Makefile new file mode 100644 index 000000000000..29242f438319 --- /dev/null +++ b/devel/p5-Lock-File/Makefile @@ -0,0 +1,36 @@ +PORTNAME= Lock-File +PORTVERSION= 1.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:MMCLERIC +PKGNAMEPREFIX= p5- + +MAINTAINER= nork@FreeBSD.org +COMMENT= File locker with an automatic out-of-scope unlocking mechanism +WWW= https://metacpan.org/release/Lock-File + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual + +RUN_DEPENDS= p5-Log-Any>0:devel/p5-Log-Any +TEST_DEPENDS= p5-IPC-System-Simple>0:devel/p5-IPC-System-Simple \ + p5-Test-Class>0:devel/p5-Test-Class \ + p5-Test-Fatal>0:devel/p5-Test-Fatal \ + p5-Test-Warn>0:devel/p5-Test-Warn +#RELEASE TEST# p5-Pod-Coverage-TrustPod>0:devel/p5-Pod-Coverage-TrustPod +#RELEASE TEST# p5-Test-Pod>0:devel/p5-Test-Pod +#RELEASE TEST# p5-Test-Pod-Coverage>0:devel/p5-Test-Pod-Coverage + +USES= perl5 +USE_PERL5= configure + +TEST_ENV= # RELEASE_TESTING=1 #: release test not work # + +NO_ARCH= yes + +PLIST_FILES= ${SITE_MAN3_REL}/Lock::File.3.gz \ + ${SITE_MAN3_REL}/Lock::File::Alarm.3.gz \ + ${SITE_PERL_REL}/Lock/File.pm \ + ${SITE_PERL_REL}/Lock/File/Alarm.pm + +.include diff --git a/devel/p5-Lock-File/distinfo b/devel/p5-Lock-File/distinfo new file mode 100644 index 000000000000..7e7273b5d5c9 --- /dev/null +++ b/devel/p5-Lock-File/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708621438 +SHA256 (Lock-File-1.03.tar.gz) = dced6ab87fff3de647f80dc20cb1dc7f6e967f721df40f0465a1c4cdd2525865 +SIZE (Lock-File-1.03.tar.gz) = 15955 diff --git a/devel/p5-Lock-File/files/patch-t_test.t b/devel/p5-Lock-File/files/patch-t_test.t new file mode 100644 index 000000000000..2a7a2b408391 --- /dev/null +++ b/devel/p5-Lock-File/files/patch-t_test.t @@ -0,0 +1,13 @@ +--- t/test.t.orig 2013-06-16 20:59:45 UTC ++++ t/test.t +@@ -177,8 +177,8 @@ sub timeout :Tests { + sleep 5; # timeout don't support float values, so we can't use tsleep here + }); + +- ok(exception { lockf("tfiles/lock", { timeout => 3, blocking => 0 }) }, "timeout is incompatible with blocking => 0"); +- ok(!exception { lockf("tfiles/lock", { timeout => 3, blocking => 1 }) }, "timeout is compatible with blocking => 1"); ++ ok(exception { lockfile("tfiles/lock", { timeout => 3, blocking => 0 }) }, "timeout is incompatible with blocking => 0"); ++ ok(!exception { lockfile("tfiles/lock", { timeout => 3, blocking => 1 }) }, "timeout is compatible with blocking => 1"); + } + + sub mode :Tests { diff --git a/devel/p5-Lock-File/pkg-descr b/devel/p5-Lock-File/pkg-descr new file mode 100644 index 000000000000..328dd54d0feb --- /dev/null +++ b/devel/p5-Lock-File/pkg-descr @@ -0,0 +1,3 @@ +The Lock::File module provides flock wrapper functions that watch the +associated object and release it automatically if the object has no +reference.