diff options
Diffstat (limited to 'dev-ruby/ferret')
-rw-r--r-- | dev-ruby/ferret/Manifest | 3 | ||||
-rw-r--r-- | dev-ruby/ferret/ferret-0.11.8.7.ebuild | 52 | ||||
-rw-r--r-- | dev-ruby/ferret/metadata.xml | 11 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-ruby/ferret/Manifest b/dev-ruby/ferret/Manifest new file mode 100644 index 000000000000..ce76677a9455 --- /dev/null +++ b/dev-ruby/ferret/Manifest @@ -0,0 +1,3 @@ +DIST ferret-0.11.8.7.gem 608768 BLAKE2B cc5e6769dcad4c465ae00aed972712e03ccbea304608eef5008941d5bf1eca17461f611aea7f0033d4047b7bc2474c0a93ffece40b4a6aca753a496ee34f36fa SHA512 ac7cafa25ade9741e0eb95d7372f6dd7ce4ea82368c69ace536b852fd5cc435d05764041ba1bddcc6098665c6e1aa7a12ac9739e45362007f726f3e7a8124df1 +EBUILD ferret-0.11.8.7.ebuild 1239 BLAKE2B 4724426552572c4795e4ffb137142db85970e37d5e380ab31ebdee2633f4a8161f8b8416d5c7c6b98a8e8b6663ac363b1bb2e90f54c8b0620ac8733d98793718 SHA512 dc2b2cfcd15290edceab1fe8042a0cdcf10a34bfcd3e3361053608ab1f2651112bf6e9d608372d945b70dcca6e640596a9830ed326147301758fe210f88b6db8 +MISC metadata.xml 341 BLAKE2B 777c08ae812adf375e78b531692036faa01a37660a883b123d8461d5c3ddff9c70878a3a695a23666f75fe57ee5450d54adf7f61bb05a6be9f879bb5ba14e398 SHA512 bbe210c0d097134af3f5489b4a5cca742cff83ac41b8fe3ae9086a1d9cd38210af100bc778a9eb42273c74936d5c3a8f42866ba7686b6fae1afdd04a5e46e450 diff --git a/dev-ruby/ferret/ferret-0.11.8.7.ebuild b/dev-ruby/ferret/ferret-0.11.8.7.ebuild new file mode 100644 index 000000000000..aa53e8d7b67b --- /dev/null +++ b/dev-ruby/ferret/ferret-0.11.8.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_NAME="ferret" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_TASK_DOC="doc" +RUBY_FAKEGEM_DOCDIR="doc/api" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG RELEASE_CHANGES RELEASE_NOTES README.md TODO TUTORIAL.md" + +inherit multilib ruby-fakegem + +MY_P="${P/ruby-/}" +DESCRIPTION="A ruby indexing/searching library" +HOMEPAGE="https://github.com/jkraemer/ferret" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND+=" app-arch/bzip2" +DEPEND+=" app-arch/bzip2" + +all_ruby_prepare() { + # Remove bundled bzlib code and use system version instead. + rm ext/BZLIB* ext/bzlib* || die + sed -i -e '14i $LDFLAGS += " -lbz2 "' ext/extconf.rb || die + + # Avoid test known to fail upstream: + # https://github.com/jkraemer/ferret/issues/2 + sed -i -e '/test_adding_long_url/,/^ end/ s:^:#:' \ + test/unit/index/tc_index_writer.rb || die +} + +each_ruby_configure() { + ${RUBY} -Cext extconf.rb || die +} + +each_ruby_compile() { + emake -Cext CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" V=1 + cp ext/ferret_ext$(get_modname) lib/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib test/test_all.rb || die +} diff --git a/dev-ruby/ferret/metadata.xml b/dev-ruby/ferret/metadata.xml new file mode 100644 index 000000000000..1c20b9283cce --- /dev/null +++ b/dev-ruby/ferret/metadata.xml @@ -0,0 +1,11 @@ +<?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">jkraemer/ferret</remote-id> + </upstream> +</pkgmetadata> |