summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-09-12 08:21:23 +0200
committerHans de Graaff <graaff@gentoo.org>2021-09-12 08:21:23 +0200
commit08c1b684cef2a8a0e22641621bd4dcbcd8a087ef (patch)
treeceee900abbbe0788351e6f2d6bd23c86d3544190 /dev-ruby
parentwww-apps/hugo: Remove old ebuild (diff)
downloadgentoo-08c1b684cef2a8a0e22641621bd4dcbcd8a087ef.tar.gz
gentoo-08c1b684cef2a8a0e22641621bd4dcbcd8a087ef.tar.bz2
gentoo-08c1b684cef2a8a0e22641621bd4dcbcd8a087ef.zip
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 <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/csv/Manifest1
-rw-r--r--dev-ruby/csv/csv-3.2.0.ebuild32
-rw-r--r--dev-ruby/csv/metadata.xml8
3 files changed, 41 insertions, 0 deletions
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 @@
+<?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>
+</pkgmetadata>