diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-ruby/classifier-reborn | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | srcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz srcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz srcux-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-ruby/classifier-reborn')
| -rw-r--r-- | dev-ruby/classifier-reborn/Manifest | 1 | ||||
| -rw-r--r-- | dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild | 37 | ||||
| -rw-r--r-- | dev-ruby/classifier-reborn/metadata.xml | 12 |
3 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/classifier-reborn/Manifest b/dev-ruby/classifier-reborn/Manifest new file mode 100644 index 000000000000..68ea54e90070 --- /dev/null +++ b/dev-ruby/classifier-reborn/Manifest @@ -0,0 +1 @@ +DIST classifier-reborn-2.2.0.tar.gz 319010 BLAKE2B f4bd3259b9d6e324f3f0feb06dfd1c8736eaa8ae0f687e488b6e11b9cda8e6bf9e56a175c01dfb9352184da1a030d1330e22917c7bfdcb4242fa0102f6291940 SHA512 d299ce8f3b96de5c6194e816d880ebb895faaacdc2a19985166bdc3d9760242ec41d85f22167ea66e9afd743f5d91d63881da02882d1a412fc95a0c5db63d04c diff --git a/dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild b/dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild new file mode 100644 index 000000000000..37cd17f902c1 --- /dev/null +++ b/dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby24 ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.markdown" + +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" +IUSE="gsl test" + +ruby_add_rdepend ">=dev-ruby/fast-stemmer-1.0.0 + !!dev-ruby/classifier + gsl? ( dev-ruby/rb-gsl )" +ruby_add_bdepend "test? ( dev-ruby/redis )" + +all_ruby_prepare() { + 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 + # Comment out broken test + #sed -i -e "/assert 'Normal',/s/^/#/" test/bayes/bayesian_test.rb || die + + sed -i -e '/reporters/I s:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb || die +} diff --git a/dev-ruby/classifier-reborn/metadata.xml b/dev-ruby/classifier-reborn/metadata.xml new file mode 100644 index 000000000000..ae923b0f651f --- /dev/null +++ b/dev-ruby/classifier-reborn/metadata.xml @@ -0,0 +1,12 @@ +<?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">jekyll/classifier-reborn</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
