summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-02-03 13:24:07 +0100
committerHans de Graaff <graaff@gentoo.org>2023-02-04 08:07:52 +0100
commitcb5f042b87250429f5d49f12796f31eb87d6cca0 (patch)
tree5d5041ca4ad0a2e495d045879483599eabd635ec /dev-ruby/faker
parentdev-ruby/faker: drop 2.22.0 (diff)
downloadgentoo-cb5f042b87250429f5d49f12796f31eb87d6cca0.tar.gz
gentoo-cb5f042b87250429f5d49f12796f31eb87d6cca0.tar.bz2
gentoo-cb5f042b87250429f5d49f12796f31eb87d6cca0.zip
dev-ruby/faker: fix file collision between slots
Closes: https://bugs.gentoo.org/892611 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/faker')
-rw-r--r--dev-ruby/faker/faker-2.23.0-r1.ebuild31
-rw-r--r--dev-ruby/faker/faker-3.1.0.ebuild4
2 files changed, 33 insertions, 2 deletions
diff --git a/dev-ruby/faker/faker-2.23.0-r1.ebuild b/dev-ruby/faker/faker-2.23.0-r1.ebuild
new file mode 100644
index 000000000000..d8d60e7f757c
--- /dev/null
+++ b/dev-ruby/faker/faker-2.23.0-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30 ruby31"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_GEMSPEC="faker.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A library for generating fake data such as names, addresses, and phone numbers"
+HOMEPAGE="https://github.com/stympy/faker"
+SRC_URI="https://github.com/stympy/faker/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="test"
+
+ruby_add_rdepend ">=dev-ruby/i18n-1.8.11:1"
+
+ruby_add_bdepend "test? ( dev-ruby/timecop )"
+
+all_ruby_prepare() {
+ sed -i -e '/\(bundler\|rubocop\|yard\)/I s:^:#:' Rakefile || die
+ sed -i -e '/simplecov/,/^end/ s:^:#:' test/test_helper.rb || die
+}
diff --git a/dev-ruby/faker/faker-3.1.0.ebuild b/dev-ruby/faker/faker-3.1.0.ebuild
index 5332cb86e976..87391f4b74e7 100644
--- a/dev-ruby/faker/faker-3.1.0.ebuild
+++ b/dev-ruby/faker/faker-3.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,7 +20,7 @@ SLOT="$(ver_cut 1)"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="test"
-ruby_add_rdepend ">=dev-ruby/i18n-1.8.11:1"
+ruby_add_rdepend ">=dev-ruby/i18n-1.8.11:1 !<dev-ruby/faker-2.23.0-r1"
ruby_add_bdepend "test? ( dev-ruby/timecop )"