summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-10-05 06:39:38 +0200
committerHans de Graaff <graaff@gentoo.org>2017-10-05 06:45:16 +0200
commit8fb7c068612519e00e6e6737679c912972ed75d1 (patch)
tree3a9002562d1df828cc2dbb68d2a488b933ce3074 /dev-ruby/patron
parentdev-python/cbor: arm stable, bug #624990 (diff)
downloadgentoo-8fb7c068612519e00e6e6737679c912972ed75d1.tar.gz
gentoo-8fb7c068612519e00e6e6737679c912972ed75d1.tar.bz2
gentoo-8fb7c068612519e00e6e6737679c912972ed75d1.zip
dev-ruby/patron: add 0.10.0
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-ruby/patron')
-rw-r--r--dev-ruby/patron/Manifest1
-rw-r--r--dev-ruby/patron/patron-0.10.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/patron/Manifest b/dev-ruby/patron/Manifest
index 57553db1fd81..30236a1a6c99 100644
--- a/dev-ruby/patron/Manifest
+++ b/dev-ruby/patron/Manifest
@@ -1,3 +1,4 @@
+DIST patron-0.10.0.gem 59904 SHA256 caf53e63a1c0729d8a66d62cabb794e93d35bd8f3054a93856b5786fe26a2da2 SHA512 bfe5fabbcbfa3d1c73ef6f79d100547de7e4121bcbd1f427423a127f0bc698bb8b6ade06c0e2eb1f529d1524e95fc36245b8be9d6e2c12b7e8d18b5f03ae6606 WHIRLPOOL fcec13aefaf9cc8fbaa9de9367aea822444f8f973e6195a3248040dd99219e50af286d18b644d476c8dfede263d1e00a63cc20d1df114ab1f97bd406d069657b
DIST patron-0.4.18.gem 35840 SHA256 700ffba09ea854bc26fdde08998d8310ed59b0721098d4a7dc9a85845c71bd81 SHA512 0069f42378b0dfe03e6f86003b7927b099fd15be4d4b5eeba51958774380bf7a9ddbd8a83b30942d02e95b923f9ae0a1c1abf5bcda8ca8490671208e0ae8ecb4 WHIRLPOOL c709bcd65033288fc55d8d5c044c001afa8ac34d098466e017c5adc3a08314897e86f021a09f61abcc5153893152518dc1843ba7dfa79fc271067b708283b75c
DIST patron-0.8.0.gem 57856 SHA256 954db224e16421c78c55d190b2310c3201c68e72767908faead76a9c5a5159df SHA512 43d6ae99aa3db3c5dabd2c3ec7fe5371a204d6e6ccec2c50b0cc126878b0db583e8a266b2b8e0f3ce7cdfde046bd36622e26d653e7ccae7b493ec924021b5f16 WHIRLPOOL b176ced2464b52c3a1bd4412e8c5d0ca7c3c8ee6da2c7c59cf4442c04eeefd07cd6c1c76d93cb2c6ba63c51326d8e1c317e760bf7bbf7506f43ca923a105c04a
DIST patron-0.9.1.gem 59904 SHA256 6d5d2e89ab551d081dce572d2fbfed4e98ee7e7dccc144a69bcc17c7ad955ef3 SHA512 649ee01517369d44009ccf5af4ac5f758893df84259b604be2f5015f9a9015a20a60eb2d6de9873ffa800c49a080e458d2a451222af4783261991c6c134785f7 WHIRLPOOL c10234d797e3a52e49fb25a9be6c468066e3792bedd00fe14165b514e91712a9b19accc4a1d5c1741da2ba5cc6541f25e4f62ccab77248fcfd9bac5ec55daf19
diff --git a/dev-ruby/patron/patron-0.10.0.ebuild b/dev-ruby/patron/patron-0.10.0.ebuild
new file mode 100644
index 000000000000..f98916d6fc58
--- /dev/null
+++ b/dev-ruby/patron/patron-0.10.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Patron is a Ruby HTTP client library based on libcurl"
+HOMEPAGE="https://toland.github.com/patron/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+DEPEND+=" net-misc/curl"
+RDEPEND+=" net-misc/curl"
+
+all_ruby_prepare() {
+ # Fix Rakefile
+ sed -i -e 's:rake/rdoctask:rdoc/task:' \
+ -e 's/README.txt/README.md/' \
+ -e '/bundler/I s:^:#:' \
+ -e '/extensiontask/ s:^:#:' \
+ -e '/ExtensionTask/,/^end/ s:^:#:' \
+ Rakefile || die
+
+ # Avoid specs with failures. We were not running any specs before.
+ rm spec/session_ssl_spec.rb spec/session_spec.rb spec/response_spec.rb || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -Cext/patron extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake -Cext/patron V=1
+ cp ext/patron/session_ext$(get_modname) lib/patron/ || die "Unable to cp shared object file"
+}