summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2024-10-15 00:56:57 +0300
committerSam James <sam@gentoo.org>2024-12-01 12:42:48 +0000
commita72aaf401ef20388a4f528cf3804d24ffa20ba8e (patch)
tree63bf844ea6041374420c9de2ab5678c3e63ab0ed /dev-ruby
parentwww-apps/redmine: add 5.0.9 (diff)
downloadgentoo-a72aaf401ef20388a4f528cf3804d24ffa20ba8e.tar.gz
gentoo-a72aaf401ef20388a4f528cf3804d24ffa20ba8e.tar.bz2
gentoo-a72aaf401ef20388a4f528cf3804d24ffa20ba8e.zip
dev-ruby/with_advisory_lock: new package, add 5.1.0
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/with_advisory_lock/Manifest1
-rw-r--r--dev-ruby/with_advisory_lock/metadata.xml18
-rw-r--r--dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild41
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/with_advisory_lock/Manifest b/dev-ruby/with_advisory_lock/Manifest
new file mode 100644
index 000000000000..67c6da770238
--- /dev/null
+++ b/dev-ruby/with_advisory_lock/Manifest
@@ -0,0 +1 @@
+DIST with_advisory_lock-5.1.0.tar.gz 15090 BLAKE2B a559c064793ee205785931eb38af59261b83b7264bfe80d9e5e7e5edcd21ef7e06d2e8cb7b0d4f45b820dda4fb9537925b457e5817c540868993a88d1eb623e2 SHA512 9b949a9c863e8c670230f75cdc10bcd8fe64ac8421e3a25c3c4fefc5470773e49515fe9f3093128cccafb3ef06bb435f06ed5986369c26c72cbe958b8d1a0ea2
diff --git a/dev-ruby/with_advisory_lock/metadata.xml b/dev-ruby/with_advisory_lock/metadata.xml
new file mode 100644
index 000000000000..93e316aab806
--- /dev/null
+++ b/dev-ruby/with_advisory_lock/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat H. Hackimov</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ClosureTree/with_advisory_lock</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild b/dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild
new file mode 100644
index 000000000000..5e73f669115c
--- /dev/null
+++ b/dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32 ruby33"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+RUBY_FAKEGEM_RECIPE_TEST="rake"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Advisory locking for ActiveRecord"
+HOMEPAGE="https://github.com/ClosureTree/with_advisory_lock"
+SRC_URI="https://github.com/ClosureTree/with_advisory_lock/archive/refs/tags/${PN}/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+ruby_add_rdepend "
+ >=dev-ruby/activerecord-6.1:*
+ >=dev-ruby/zeitwerk-2.6
+"
+ruby_add_bdepend "test? (
+ >=dev-ruby/activerecord-6.1:*[sqlite]
+ dev-ruby/maxitest
+ dev-ruby/mocha
+)
+"
+
+all_ruby_unpack() {
+ default
+ mv "${WORKDIR}/all/${PN}-${PN}-v${PV}" "${WORKDIR}/all/${P}" || die
+}
+
+all_ruby_prepare() {
+ sed -i -e "s:require_relative 'lib:require './lib:" ${RUBY_FAKEGEM_GEMSPEC} || die
+ sed -i -e "/git ls-files/d" with_advisory_lock.gemspec || die
+}