git: 488e19369c61 - main - devel/rubygem-with_advisory_lock81: add port

From: Xin LI <delphij_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 05:38:55 UTC
The branch main has been updated by delphij:

URL: https://cgit.FreeBSD.org/ports/commit/?id=488e19369c61ef40e0e6df42e87f71019ae0e273

commit 488e19369c61ef40e0e6df42e87f71019ae0e273
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-08-26 08:26:32 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-09-11 05:36:50 +0000

    devel/rubygem-with_advisory_lock81: add port
    
    Advisory locking for ActiveRecord, for Rails 8.1.
---
 devel/Makefile                               |  1 +
 devel/rubygem-with_advisory_lock81/Makefile  | 21 +++++++++++++++++++++
 devel/rubygem-with_advisory_lock81/distinfo  |  3 +++
 devel/rubygem-with_advisory_lock81/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 4f87f12cc7dd..7d4333952d25 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -8598,6 +8598,7 @@
     SUBDIR += rubygem-wisper
     SUBDIR += rubygem-wisper2
     SUBDIR += rubygem-with_advisory_lock61
+    SUBDIR += rubygem-with_advisory_lock81
     SUBDIR += rubygem-with_env
     SUBDIR += rubygem-wmi-lite
     SUBDIR += rubygem-xdg
diff --git a/devel/rubygem-with_advisory_lock81/Makefile b/devel/rubygem-with_advisory_lock81/Makefile
new file mode 100644
index 000000000000..a0e148a2e01e
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock81/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	with_advisory_lock
+PORTVERSION=	5.1.0
+CATEGORIES=	devel rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	81
+
+MAINTAINER=	ruby@FreeBSD.org
+COMMENT=	Advisory locking for ActiveRecord
+WWW=		https://github.com/ClosureTree/with_advisory_lock
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	rubygem-activerecord81>=6.1.5:databases/rubygem-activerecord81 \
+		rubygem-zeitwerk>=2.6<3:devel/rubygem-zeitwerk
+
+USES=		gem
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-with_advisory_lock81/distinfo b/devel/rubygem-with_advisory_lock81/distinfo
new file mode 100644
index 000000000000..718cbdfca3c4
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock81/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1787731219
+SHA256 (rubygem/with_advisory_lock-5.1.0.gem) = 0692cd82013b271c59aa5e1f603b741ab94926dbce098990fbace5dd5412fed7
+SIZE (rubygem/with_advisory_lock-5.1.0.gem) = 18944
diff --git a/devel/rubygem-with_advisory_lock81/pkg-descr b/devel/rubygem-with_advisory_lock81/pkg-descr
new file mode 100644
index 000000000000..11b0d6049a9d
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock81/pkg-descr
@@ -0,0 +1,2 @@
+with_advisory_lock adds advisory locking (mutexes) to ActiveRecord 6.0+,
+with ruby 2.7+, jruby or truffleruby, when used with MySQL or PostgreSQL.