commit:     51889f2c378c1eec21dc013db4c0da87f90e4f5b
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 14 06:11:01 2022 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Thu Jul 14 06:11:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51889f2c

dev-ruby/classifier-reborn: add 2.3.0

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/classifier-reborn/Manifest                |  1 +
 .../classifier-reborn-2.3.0.ebuild                 | 39 ++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-ruby/classifier-reborn/Manifest 
b/dev-ruby/classifier-reborn/Manifest
index 68ea54e90070..9fc2a8db5ed2 100644
--- a/dev-ruby/classifier-reborn/Manifest
+++ b/dev-ruby/classifier-reborn/Manifest
@@ -1 +1,2 @@
 DIST classifier-reborn-2.2.0.tar.gz 319010 BLAKE2B 
f4bd3259b9d6e324f3f0feb06dfd1c8736eaa8ae0f687e488b6e11b9cda8e6bf9e56a175c01dfb9352184da1a030d1330e22917c7bfdcb4242fa0102f6291940
 SHA512 
d299ce8f3b96de5c6194e816d880ebb895faaacdc2a19985166bdc3d9760242ec41d85f22167ea66e9afd743f5d91d63881da02882d1a412fc95a0c5db63d04c
+DIST classifier-reborn-2.3.0.tar.gz 325647 BLAKE2B 
eb663b0e12440e508bbd882e4f72c790445916e5e19234d4d50d5f20a692f0a7bbd45348e898a9782798ccc82568ccc825bc1477f02885cf33f9a9aab90ab10b
 SHA512 
428073f63ce93cc6284275f92063fa092e3cbd99817a2d6650bafc46ac91fba240ce5ccb09f428b10818c24b04de56dd88090ab0d1cffd644b381a88d9c92050

diff --git a/dev-ruby/classifier-reborn/classifier-reborn-2.3.0.ebuild 
b/dev-ruby/classifier-reborn/classifier-reborn-2.3.0.ebuild
new file mode 100644
index 000000000000..7991fe3b1ef3
--- /dev/null
+++ b/dev-ruby/classifier-reborn/classifier-reborn-2.3.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="README.markdown"
+RUBY_FAKEGEM_GEMSPEC="classifier-reborn.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Module to allow Bayesian and other types of classifications"
+HOMEPAGE="https://github.com/jekyll/classifier-reborn";
+SRC_URI="https://github.com/jekyll/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="gsl test"
+
+ruby_add_rdepend "
+       >=dev-ruby/fast-stemmer-1.0.0
+       >=dev-ruby/matrix-0.4:0
+       gsl? ( dev-ruby/rb-gsl )"
+ruby_add_bdepend "test? ( dev-ruby/redis )"
+
+all_ruby_prepare() {
+       sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} 
|| die
+
+       sed -i -e "/[Bb]undler/d" Rakefile || die
+       if use !gsl; then
+               sed -e 's/$GSL = true/$GSL = false/'\
+                       -e 's/vector_serialize/vector/'\
+                       -i lib/${PN}/lsi.rb || die
+       fi
+
+       sed -i -e '/reporters/I s:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb 
|| die
+}

Reply via email to