Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/csv/
Date: Sun, 12 Sep 2021 06:22:10
Message-Id: 1631427683.08c1b684cef2a8a0e22641621bd4dcbcd8a087ef.graaff@gentoo
1 commit: 08c1b684cef2a8a0e22641621bd4dcbcd8a087ef
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 12 06:21:23 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 12 06:21:23 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08c1b684
7
8 dev-ruby/csv: initial import of 3.2.0
9
10 New indirect dependency for dev-ruby/ruby-gettext.
11
12 Extracted from dev-lang/ruby so keywords are set accordingly.
13
14 Closes: https://bugs.gentoo.org/687166
15 Package-Manager: Portage-3.0.20, Repoman-3.0.3
16 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
17
18 dev-ruby/csv/Manifest | 1 +
19 dev-ruby/csv/csv-3.2.0.ebuild | 32 ++++++++++++++++++++++++++++++++
20 dev-ruby/csv/metadata.xml | 8 ++++++++
21 3 files changed, 41 insertions(+)
22
23 diff --git a/dev-ruby/csv/Manifest b/dev-ruby/csv/Manifest
24 new file mode 100644
25 index 00000000000..eb348ce10da
26 --- /dev/null
27 +++ b/dev-ruby/csv/Manifest
28 @@ -0,0 +1 @@
29 +DIST csv-3.2.0.tar.gz 85055 BLAKE2B 685408e4cf6480777d0d641a8cb84f2d5a4aee1e2d6755d773830e5d5b97473746317c437b82257ceb47c63dda10c1b6ed8af95e271c5fdbabaef2efa260d07a SHA512 14c90220626c5225a4a79d92cfd3c8c9d30dc7ce81bcd2145ea3dc353e373830169f605f18c8473d65a2ba98c7628b6148277a79adedeb8ee1364c362a4242a7
30
31 diff --git a/dev-ruby/csv/csv-3.2.0.ebuild b/dev-ruby/csv/csv-3.2.0.ebuild
32 new file mode 100644
33 index 00000000000..69cd23a5e05
34 --- /dev/null
35 +++ b/dev-ruby/csv/csv-3.2.0.ebuild
36 @@ -0,0 +1,32 @@
37 +# Copyright 1999-2021 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=8
41 +
42 +USE_RUBY="ruby26 ruby27 ruby30"
43 +
44 +RUBY_FAKEGEM_RECIPE_DOC="none"
45 +RUBY_FAKEGEM_EXTRADOC="NEWS.md README.md"
46 +
47 +RUBY_FAKEGEM_BINWRAP=""
48 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
49 +
50 +inherit ruby-fakegem
51 +
52 +DESCRIPTION="The CSV library provides a complete interface to CSV files and data"
53 +HOMEPAGE="https://github.com/ruby/csv"
54 +SRC_URI="https://github.com/ruby/csv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
55 +
56 +LICENSE="BSD-2"
57 +
58 +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"
59 +SLOT="$(ver_cut 1)"
60 +
61 +all_ruby_prepare() {
62 + sed -i -e 's:require_relative ":require "./:' -e 's/__dir__/"."/' ${RUBY_FAKEGEM_GEMSPEC} || die
63 + sed -i -e '/bundler/I s:^:#:' Rakefile || die
64 +}
65 +
66 +each_ruby_test() {
67 + ${RUBY} run-test.rb || die
68 +}
69
70 diff --git a/dev-ruby/csv/metadata.xml b/dev-ruby/csv/metadata.xml
71 new file mode 100644
72 index 00000000000..7a38fd1850f
73 --- /dev/null
74 +++ b/dev-ruby/csv/metadata.xml
75 @@ -0,0 +1,8 @@
76 +<?xml version="1.0" encoding="UTF-8"?>
77 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
78 +<pkgmetadata>
79 + <maintainer type="project">
80 + <email>ruby@g.o</email>
81 + <name>Gentoo Ruby Project</name>
82 + </maintainer>
83 +</pkgmetadata>