Skip to content

Commit

Permalink
dev-ruby/rspec-files: new package, add 1.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: matoro <[email protected]>
Signed-off-by: Matt Turner <[email protected]>
  • Loading branch information
matoro authored and mattst88 committed Oct 22, 2022
1 parent f2fc0af commit 057a7d0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/rspec-files/Manifest
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
11 changes: 11 additions & 0 deletions dev-ruby/rspec-files/metadata.xml
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>
26 changes: 26 additions & 0 deletions dev-ruby/rspec-files/rspec-files-1.1.1.ebuild
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
}

0 comments on commit 057a7d0

Please sign in to comment.