mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-ruby/rspec-memory: new package, add 1.0.3
Signed-off-by: matoro <matoro@users.noreply.github.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
parent
057a7d0e4f
commit
e23fa1ae4c
1
dev-ruby/rspec-memory/Manifest
Normal file
1
dev-ruby/rspec-memory/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST rspec-memory-1.0.3.tar.gz 5248 BLAKE2B cf2cb55a6c3d155a739f1cbe3f307016d9446f9edde8554b6336602b86d95a369b152a413426082061c68d2e4015c68d31a34d7d80706ba09986fb8c8952d670 SHA512 1077bd6cb73ada029fc42f820e42792b58f8e06feeda711725d6f2a7a2af9151f72330d3e5a9d0fa7493eeb42f65ddf02a93fac00f5e24f2596f7df0da9439a3
|
||||
11
dev-ruby/rspec-memory/metadata.xml
Normal file
11
dev-ruby/rspec-memory/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?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>
|
||||
<name>Gentoo Ruby Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">socketry/rspec-memory</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
26
dev-ruby/rspec-memory/rspec-memory-1.0.3.ebuild
Normal file
26
dev-ruby/rspec-memory/rspec-memory-1.0.3.ebuild
Normal file
@ -0,0 +1,26 @@
|
||||
# Copyright 2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby26 ruby27 ruby30 ruby31"
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="RSpec helpers for checking memory allocations"
|
||||
HOMEPAGE="https://github.com/socketry/rspec-memory"
|
||||
SRC_URI="https://github.com/socketry/rspec-memory/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(ver_cut 1)"
|
||||
KEYWORDS="~amd64 ~sparc"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "dev-ruby/rspec:3"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
|
||||
sed -i -E 's/require '"'"'covered\/rspec'"'"'//g' "spec/spec_helper.rb" || die
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user