From 412ee01cab4a0982aa308eeadcd11df9f45c7cd9 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Tue, 10 Mar 2020 07:53:04 +0100 Subject: [PATCH] dev-ruby/rchardet: initial import of 1.8.0 New dependency for dev-ruby/git. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff --- dev-ruby/rchardet/Manifest | 1 + dev-ruby/rchardet/metadata.xml | 11 ++++++++++ dev-ruby/rchardet/rchardet-1.8.0.ebuild | 28 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 dev-ruby/rchardet/Manifest create mode 100644 dev-ruby/rchardet/metadata.xml create mode 100644 dev-ruby/rchardet/rchardet-1.8.0.ebuild diff --git a/dev-ruby/rchardet/Manifest b/dev-ruby/rchardet/Manifest new file mode 100644 index 000000000000..1dafa1dd6c98 --- /dev/null +++ b/dev-ruby/rchardet/Manifest @@ -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 index 000000000000..939519530547 --- /dev/null +++ b/dev-ruby/rchardet/metadata.xml @@ -0,0 +1,11 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + jmhodges/rchardet + + diff --git a/dev-ruby/rchardet/rchardet-1.8.0.ebuild b/dev-ruby/rchardet/rchardet-1.8.0.ebuild new file mode 100644 index 000000000000..519a59d0d6ae --- /dev/null +++ b/dev-ruby/rchardet/rchardet-1.8.0.ebuild @@ -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 +} -- 2.26.2