dev-ruby/rchardet: initial import of 1.8.0
authorHans de Graaff <graaff@gentoo.org>
Tue, 10 Mar 2020 06:53:04 +0000 (07:53 +0100)
committerHans de Graaff <graaff@gentoo.org>
Tue, 10 Mar 2020 06:53:04 +0000 (07:53 +0100)
New dependency for dev-ruby/git.

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/rchardet/Manifest [new file with mode: 0644]
dev-ruby/rchardet/metadata.xml [new file with mode: 0644]
dev-ruby/rchardet/rchardet-1.8.0.ebuild [new file with mode: 0644]

diff --git a/dev-ruby/rchardet/Manifest b/dev-ruby/rchardet/Manifest
new file mode 100644 (file)
index 0000000..1dafa1d
--- /dev/null
@@ -0,0 +1 @@
+DIST rchardet-1.8.0.tar.gz 1903004 BLAKE2B d5860bc17f3a9dae9d6194156f1707e833ec0c440992c7b933b2e4eaca6bbc01f9964bcd7eb1dd054ff633124b863a0b797103297d6d2ff75e6d13040aa0813c SHA512 419eac7d4d4fb4a9cbe102199b5767d826f968943da9dfbfd029d03603bede596fb59d9747e590447b6848ae42c733dd0efdea57140e03d92bdcbac317dd0c6f
diff --git a/dev-ruby/rchardet/metadata.xml b/dev-ruby/rchardet/metadata.xml
new file mode 100644 (file)
index 0000000..9395195
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://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">jmhodges/rchardet</remote-id>
+  </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/rchardet/rchardet-1.8.0.ebuild b/dev-ruby/rchardet/rchardet-1.8.0.ebuild
new file mode 100644 (file)
index 0000000..519a59d
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_EXTRADOC="Readme.md"
+
+RUBY_FAKEGEM_GEMSPEC="rchardet.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Character encoding auto-detection in Ruby"
+HOMEPAGE="https://github.com/jmhodges/rchardet"
+SRC_URI="https://github.com/jmhodges/rchardet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+all_ruby_prepare() {
+       sed -i -e '/bundler/ s:^:#:' -e '/minitest\/rg/ s:^:#:' test/test_helper.rb || die
+}
+
+each_ruby_test() {
+       ${RUBY} -Ilib:. -e 'Dir["test/*_test.rb"].each{|f| require f}' || die
+}