From 08c1b684cef2a8a0e22641621bd4dcbcd8a087ef Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sun, 12 Sep 2021 08:21:23 +0200 Subject: dev-ruby/csv: initial import of 3.2.0 New indirect dependency for dev-ruby/ruby-gettext. Extracted from dev-lang/ruby so keywords are set accordingly. Closes: https://bugs.gentoo.org/687166 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Hans de Graaff --- dev-ruby/csv/Manifest | 1 + dev-ruby/csv/csv-3.2.0.ebuild | 32 ++++++++++++++++++++++++++++++++ dev-ruby/csv/metadata.xml | 8 ++++++++ 3 files changed, 41 insertions(+) create mode 100644 dev-ruby/csv/Manifest create mode 100644 dev-ruby/csv/csv-3.2.0.ebuild create mode 100644 dev-ruby/csv/metadata.xml diff --git a/dev-ruby/csv/Manifest b/dev-ruby/csv/Manifest new file mode 100644 index 000000000000..eb348ce10da2 --- /dev/null +++ b/dev-ruby/csv/Manifest @@ -0,0 +1 @@ +DIST csv-3.2.0.tar.gz 85055 BLAKE2B 685408e4cf6480777d0d641a8cb84f2d5a4aee1e2d6755d773830e5d5b97473746317c437b82257ceb47c63dda10c1b6ed8af95e271c5fdbabaef2efa260d07a SHA512 14c90220626c5225a4a79d92cfd3c8c9d30dc7ce81bcd2145ea3dc353e373830169f605f18c8473d65a2ba98c7628b6148277a79adedeb8ee1364c362a4242a7 diff --git a/dev-ruby/csv/csv-3.2.0.ebuild b/dev-ruby/csv/csv-3.2.0.ebuild new file mode 100644 index 000000000000..69cd23a5e051 --- /dev/null +++ b/dev-ruby/csv/csv-3.2.0.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby26 ruby27 ruby30" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="The CSV library provides a complete interface to CSV files and data" +HOMEPAGE="https://github.com/ruby/csv" +SRC_URI="https://github.com/ruby/csv/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" + +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="$(ver_cut 1)" + +all_ruby_prepare() { + sed -i -e 's:require_relative ":require "./:' -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/I s:^:#:' Rakefile || die +} + +each_ruby_test() { + ${RUBY} run-test.rb || die +} diff --git a/dev-ruby/csv/metadata.xml b/dev-ruby/csv/metadata.xml new file mode 100644 index 000000000000..7a38fd1850ff --- /dev/null +++ b/dev-ruby/csv/metadata.xml @@ -0,0 +1,8 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + -- cgit v1.2.3-65-gdbad