1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby20 ruby21 ruby22 ruby23"
8 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
9 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
10 RUBY_FAKEGEM_EXTRADOC="README.md"
12 inherit multilib ruby-fakegem
14 DESCRIPTION="Patron is a Ruby HTTP client library based on libcurl"
15 HOMEPAGE="https://toland.github.com/patron/"
19 KEYWORDS="~amd64 ~arm ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
22 DEPEND+=" net-misc/curl"
23 RDEPEND+=" net-misc/curl"
27 sed -i -e 's:rake/rdoctask:rdoc/task:' \
28 -e 's/README.txt/README.md/' \
29 -e '/bundler/I s:^:#:' \
30 -e '/extensiontask/ s:^:#:' \
31 -e '/ExtensionTask/,/^end/ s:^:#:' \
34 # Avoid specs with failures. We were not running any specs before.
35 rm spec/session_ssl_spec.rb spec/session_spec.rb spec/response_spec.rb || die
38 each_ruby_configure() {
39 ${RUBY} -Cext/patron extconf.rb || die
43 emake -Cext/patron V=1
44 cp ext/patron/session_ext$(get_modname) lib/patron/ || die "Unable to cp shared object file"