diff options
Diffstat (limited to 'dev-ruby/classifier-reborn')
-rw-r--r-- | dev-ruby/classifier-reborn/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild | 36 |
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/classifier-reborn/Manifest b/dev-ruby/classifier-reborn/Manifest index f36af7d7567a..49d51f36b02a 100644 --- a/dev-ruby/classifier-reborn/Manifest +++ b/dev-ruby/classifier-reborn/Manifest @@ -1,5 +1,7 @@ DIST classifier-reborn-2.0.4.tar.gz 40653 BLAKE2B afbf45ac146e67873f5b90a8cc4383afd4ff4fd3f3956f9d3d0ad3096b66e80380b9670aae34f919331c5111e1195259fba98ba2c80b8c27332149c92612db8a SHA512 f89a075b61c1f36894cc57cba3943174c4414512e6f89dd2fa854126e38132239312f2b3464ffbd9b531d8f2987658fafa9cd8fe29d5f7ad8146984436deddd5 DIST classifier-reborn-2.1.0.tar.gz 42088 BLAKE2B 8a7ecf4d91f4dbe0ceff82c9b7d2839cfa9ea695cbdeca0c0752a1017a870bef178ccd65c43351ff85c4ff4e59e918627e9e18a840463ab7b3f5ef6fdb27fc23 SHA512 0c28128d1eaef8eeb168b372228a52c1bf9683aec3a670eb568fe709eba0b2b5f34ff48f89dd51283b3b560fba3f1908a62407ca8746ad5d74cfa57a03bc38f3 +DIST classifier-reborn-2.2.0.tar.gz 319010 BLAKE2B f4bd3259b9d6e324f3f0feb06dfd1c8736eaa8ae0f687e488b6e11b9cda8e6bf9e56a175c01dfb9352184da1a030d1330e22917c7bfdcb4242fa0102f6291940 SHA512 d299ce8f3b96de5c6194e816d880ebb895faaacdc2a19985166bdc3d9760242ec41d85f22167ea66e9afd743f5d91d63881da02882d1a412fc95a0c5db63d04c EBUILD classifier-reborn-2.0.4.ebuild 901 BLAKE2B 2b2e938c0aab964e2320519072a53a87d05a4b0827eed35fa6145052366badef65356bbc86001315b696c370b5ee47ad8aa2ca3c1ac0dc48722dbd09b868cace SHA512 443cc6bbb7790ee03dd88ca2ef3e0ab8ffc7c9a6fa04ca6e4fe9ab10c0e2739f3831de528a233108c50710ea070b47cfa6ed4265623de77bb4f8aede7616f1e5 EBUILD classifier-reborn-2.1.0.ebuild 974 BLAKE2B 97638b85c250c73983f0a360a796ca2b349a2029c857f5f32f7e45ce4acfef75b3cc731dc2139694baad30d758fa51e9321ae958d33389f2a48e6abee0c32639 SHA512 6311fda87ae920d4a51ee61e25c95251c3af53fc6b81e18925b7245b121210e540348f945a09e87f5486709c9333740f85962529e557bb3b5ce7db16c54fcc5c +EBUILD classifier-reborn-2.2.0.ebuild 975 BLAKE2B 289fb979e54eb7071dc8eb5ec809bd2319389f25460b67c75c2569d9bb8c94494b6406b3a884e9cc9e43b6343ccecfafae4aaaa8eb2459c57ead2a1784a7c97a SHA512 6af29d1b25fea57705f2fd8e9e1ac646c707b7fd7824566da32fbdcbefb14070ab2a8f9682c1612f845cf075aaf9581d977d6ee5e0496c58693ea57236b72cd4 MISC metadata.xml 350 BLAKE2B 91cfcda17c5879371a12e7faea70e149ffb7478408043f887f028ee862b7170269320f193746be9466cb7b4538898669e98a182b92731ece55ba97ac21d82465 SHA512 defb2af66dc0a90b83cc127144db7932659ce36beda28f59ea1fe693843fa3c41dd584f53b9ec6136ae2470aeab4ef191621e84862f97c33a736eae54d6c5a71 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..81569b8aacd0 --- /dev/null +++ b/dev-ruby/classifier-reborn/classifier-reborn-2.2.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="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:^:#:' -e '/pry/ s:^:#:' test/test_helper.rb || die +} |