diff options
-rw-r--r-- | dev-ruby/ferret/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/ferret/ferret-0.11.8.7.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-ruby/ferret/Manifest b/dev-ruby/ferret/Manifest index fca818e0ce9f..bdb0ffd6ec32 100644 --- a/dev-ruby/ferret/Manifest +++ b/dev-ruby/ferret/Manifest @@ -1 +1,2 @@ DIST ferret-0.11.8.6.gem 617984 SHA256 c1d1bc3fe18d0496f02d11c925683c87ab994fd6e096b3ebac1652e3514e6d6e SHA512 bc545dc86abf7e818791f4f280025fd0a6ca3aad66fc4f4c6a532e995d718ee4adcdace15538cd35e068887ade059c874d8b6d72f5b02f98829d6db44b019c59 WHIRLPOOL ca148404fe29a3cf8b2e550ef73aa99dcf32654cb060f2e3d0c378e995733f8a4dadcd6f7bad6597c398caba39e06d9db0b6292ac87c23f0740f83a55da9d10c +DIST ferret-0.11.8.7.gem 608768 SHA256 9b22927618fbc76579665ea4cc4133edeeff8d31c2b974507f59078042048363 SHA512 ac7cafa25ade9741e0eb95d7372f6dd7ce4ea82368c69ace536b852fd5cc435d05764041ba1bddcc6098665c6e1aa7a12ac9739e45362007f726f3e7a8124df1 WHIRLPOOL 2a6a0fd154385def37243f039024e4d88c232cb42d8e0a397f16f359c0789e5dbc801ece938f0ee1a274c5b29ce02e0b330056178e4bac24a2a372b056a810b1 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..0093bcfed420 --- /dev/null +++ b/dev-ruby/ferret/ferret-0.11.8.7.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby21 ruby22 ruby23 ruby24" + +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 +} |