summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-03-12 07:50:09 +0100
committerHans de Graaff <graaff@gentoo.org>2022-03-12 08:21:18 +0100
commit16b790b8a866034840f27c9f559daae24f4dd83e (patch)
tree4ba73712b1e19988719ec3108ff506db4c4b6dd8 /dev-ruby/stringio
parentmail-client/thunderbird: drop 91.6.2 (diff)
downloadgentoo-16b790b8a866034840f27c9f559daae24f4dd83e.tar.gz
gentoo-16b790b8a866034840f27c9f559daae24f4dd83e.tar.bz2
gentoo-16b790b8a866034840f27c9f559daae24f4dd83e.zip
dev-ruby/stringio: import of 3.0.1
Dependency for dev-ruby/psych. Extracted from dev-lang/ruby so keywords set accordingly. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/stringio')
-rw-r--r--dev-ruby/stringio/Manifest1
-rw-r--r--dev-ruby/stringio/metadata.xml11
-rw-r--r--dev-ruby/stringio/stringio-3.0.1.ebuild30
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/stringio/Manifest b/dev-ruby/stringio/Manifest
new file mode 100644
index 000000000000..bbee0e4ff780
--- /dev/null
+++ b/dev-ruby/stringio/Manifest
@@ -0,0 +1 @@
+DIST stringio-3.0.1.tar.gz 30570 BLAKE2B 385ebe0571ac63a694c8c07cbda74eb53983a163f91d800c880eea9fbd0ec7d53d5a92d03b8afc5a71c9e48bf1c017c2a055fb3bc09c2f555c1a7743cf19ad5a SHA512 7781ee20f7f3d546ee227d7366ac88731b65ea743c39280c4f3d2107d9001eef4a4d583760110817c31f4433f0a45812acd88a0b1b31b2863a8fdc3f54b19ea7
diff --git a/dev-ruby/stringio/metadata.xml b/dev-ruby/stringio/metadata.xml
new file mode 100644
index 000000000000..d1f032e54888
--- /dev/null
+++ b/dev-ruby/stringio/metadata.xml
@@ -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>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ruby/stringio</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/stringio/stringio-3.0.1.ebuild b/dev-ruby/stringio/stringio-3.0.1.ebuild
new file mode 100644
index 000000000000..cbf925e888e0
--- /dev/null
+++ b/dev-ruby/stringio/stringio-3.0.1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_EXTENSIONS=(ext/stringio/extconf.rb)
+RUBY_FAKEGEM_GEMSPEC="stringio.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Pseudo IO class from/to String."
+HOMEPAGE="https://github.com/ruby/stringio"
+SRC_URI="https://github.com/ruby/stringio/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="0"
+IUSE="test"
+
+all_ruby_prepare() {
+ sed -e "/s.version =/ s/source_version/'${PV}'/" \
+ -e 's/__dir__/"."/' \
+ -i ${RUBY_FAKEGEM_GEMSPEC} || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:.:test -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}