mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
dev-ruby/classifier-reborn: add 2.1.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST classifier-reborn-2.0.4.tar.gz 40653 SHA256 cd6d283a9f3e7aaffe7fe55d30d8f45ea6ba91027931b6c0c63bad007c9de53c SHA512 f89a075b61c1f36894cc57cba3943174c4414512e6f89dd2fa854126e38132239312f2b3464ffbd9b531d8f2987658fafa9cd8fe29d5f7ad8146984436deddd5 WHIRLPOOL 4f1a6c95fa08f4b3eb38078f441801657fdfa91d22e312fc36a46741f30365388b585fc85fca1693752be567ae3e213d82a522718af649d3af6efe8eecbf6c6f
|
||||
DIST classifier-reborn-2.1.0.tar.gz 42088 SHA256 6c6a790ee20e3f08bc09a000c27a0274df16b8c623c314fee975b161d330d8b1 SHA512 0c28128d1eaef8eeb168b372228a52c1bf9683aec3a670eb568fe709eba0b2b5f34ff48f89dd51283b3b560fba3f1908a62407ca8746ad5d74cfa57a03bc38f3 WHIRLPOOL 3a2979a08956194f8cd168512209bcc9415b0741595153aa576cfd6a0113929b435734729fc4e120371ef27fc1a0caa9f56d381faa302b1489425e53d0d434e0
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
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 )"
|
||||
|
||||
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:^:#:' test/test_helper.rb || die
|
||||
}
|
||||
Reference in New Issue
Block a user