aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2024-03-14 06:59:43 +0000
committerXin LI <delphij@FreeBSD.org>2024-03-14 07:00:46 +0000
commit4fed5c0681aea1cd4c15c0a01b64e37749c50b6b (patch)
tree9fdb5422f521f3f593107b457a4e5b2b73854820
parentca797fafb41861cb0a56644f3ba514492d78fc36 (diff)
downloadports-4fed5c0681aea1cd4c15c0a01b64e37749c50b6b.tar.gz
ports-4fed5c0681aea1cd4c15c0a01b64e37749c50b6b.zip
devel/rubygem-with_advisory_lock: Add new port.
with_advisory_lock adds advisory locking (mutexes) to ActiveRecord 6.0+, with ruby 2.7+, jruby or truffleruby, when used with MySQL or PostgreSQL.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/rubygem-with_advisory_lock/Makefile20
-rw-r--r--devel/rubygem-with_advisory_lock/distinfo3
-rw-r--r--devel/rubygem-with_advisory_lock/pkg-descr2
4 files changed, 26 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 877d787e61f3..92708e150d09 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7650,6 +7650,7 @@
SUBDIR += rubygem-will_paginate
SUBDIR += rubygem-windows_error
SUBDIR += rubygem-wisper
+ SUBDIR += rubygem-with_advisory_lock
SUBDIR += rubygem-with_env
SUBDIR += rubygem-wmi-lite
SUBDIR += rubygem-xdg
diff --git a/devel/rubygem-with_advisory_lock/Makefile b/devel/rubygem-with_advisory_lock/Makefile
new file mode 100644
index 000000000000..517a38d1c55f
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock/Makefile
@@ -0,0 +1,20 @@
+PORTNAME= with_advisory_lock
+PORTVERSION= 5.1.0
+CATEGORIES= devel rubygems
+MASTER_SITES= RG
+
+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-activerecord61>=6.1.5:databases/rubygem-activerecord61 \
+ rubygem-zeitwerk>=2.6<3:devel/rubygem-zeitwerk
+
+USES= gem
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/rubygem-with_advisory_lock/distinfo b/devel/rubygem-with_advisory_lock/distinfo
new file mode 100644
index 000000000000..ba6a87a85946
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1710398477
+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_lock/pkg-descr b/devel/rubygem-with_advisory_lock/pkg-descr
new file mode 100644
index 000000000000..11b0d6049a9d
--- /dev/null
+++ b/devel/rubygem-with_advisory_lock/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.