mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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>
This commit is contained in:
parent
9c10c2eb5a
commit
a72aaf401e
1
dev-ruby/with_advisory_lock/Manifest
Normal file
1
dev-ruby/with_advisory_lock/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST with_advisory_lock-5.1.0.tar.gz 15090 BLAKE2B a559c064793ee205785931eb38af59261b83b7264bfe80d9e5e7e5edcd21ef7e06d2e8cb7b0d4f45b820dda4fb9537925b457e5817c540868993a88d1eb623e2 SHA512 9b949a9c863e8c670230f75cdc10bcd8fe64ac8421e3a25c3c4fefc5470773e49515fe9f3093128cccafb3ef06bb435f06ed5986369c26c72cbe958b8d1a0ea2
|
||||
18
dev-ruby/with_advisory_lock/metadata.xml
Normal file
18
dev-ruby/with_advisory_lock/metadata.xml
Normal file
@ -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>
|
||||
41
dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild
Normal file
41
dev-ruby/with_advisory_lock/with_advisory_lock-5.1.0.ebuild
Normal file
@ -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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user