forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-ruby/rspec-files: new package, add 1.1.1
Signed-off-by: matoro <[email protected]> Signed-off-by: Matt Turner <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST rspec-files-1.1.1.tar.gz 4460 BLAKE2B ac2a17383173f3b562e93c42061b90ae9a5dab908bcc8bdd5d32f4ad20d3735beb602aab97e9d97acd78071a55ebe4c83adc611ffa9ebf5b0ea92878641e92f3 SHA512 e0c71361911d00f0df316f05bd69a187a219e963721a1f90b8ef8fb5a479c06c9f9ac41fa3c35417a0cb024f165b842506ff088a5d371ee6a4b022c97b9fc028 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>[email protected]</email> | ||
<name>Gentoo Ruby Project</name> | ||
</maintainer> | ||
<upstream> | ||
<remote-id type="github">socketry/rspec-files</remote-id> | ||
</upstream> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 buffering and detecting file descriptor leaks" | ||
HOMEPAGE="https://github.com/socketry/rspec-files" | ||
SRC_URI="https://github.com/socketry/rspec-files/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 | ||
} |