diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-03-24 06:55:31 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-03-24 06:56:31 +0100 |
commit | 0c8d1cbfcab36adf907515165bcdaeec879ee555 (patch) | |
tree | 6cd546a1fef78a18051b19f10b6a6ec68a35197b /dev-ruby/classifier-reborn | |
parent | dev-ruby/mustache: add 1.0.4 (diff) | |
download | gentoo-0c8d1cbfcab36adf907515165bcdaeec879ee555.tar.gz gentoo-0c8d1cbfcab36adf907515165bcdaeec879ee555.tar.bz2 gentoo-0c8d1cbfcab36adf907515165bcdaeec879ee555.zip |
dev-ruby/classifier-reborn: add 2.1.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
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.1.0.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-ruby/classifier-reborn/Manifest b/dev-ruby/classifier-reborn/Manifest index 6a51b77eb6b8..fa0a8f087085 100644 --- a/dev-ruby/classifier-reborn/Manifest +++ b/dev-ruby/classifier-reborn/Manifest @@ -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 diff --git a/dev-ruby/classifier-reborn/classifier-reborn-2.1.0.ebuild b/dev-ruby/classifier-reborn/classifier-reborn-2.1.0.ebuild new file mode 100644 index 000000000000..472a90566c36 --- /dev/null +++ b/dev-ruby/classifier-reborn/classifier-reborn-2.1.0.ebuild @@ -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 +} |