Skip to content

Commit

Permalink
dev-ruby/patron: add 0.8.0
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
  • Loading branch information
graaff committed Sep 7, 2016
1 parent dd3a374 commit 5ac28ca
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ruby/patron/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ DIST patron-0.5.0.gem 44032 SHA256 6abf431b05f560afc8c479685bb3869797522290777a1
DIST patron-0.5.1.gem 45056 SHA256 45776b937ee788343ce4d24817460138989b1a65ad9d8d87130cf8804133444e SHA512 d47549ae1712f25e0d15bc2e1e32de6ad3084da4f0149013c4cf50dd92ccb7c01024831ef6df7c4acb78ed3923cde95e3f36a5ef8430d3f103ebb7f5906dd0fd WHIRLPOOL b766263104b67ad1ba9009e101ac027e509ed017f0b93461d8f4c9f51b8b5586dc4da080b1685b72bad837bf690ea02f709fab7a76dddd11f7450ea0e8994fca
DIST patron-0.6.5.gem 54272 SHA256 eb7ec133b4fedb240543fa96061ee52fa9ede2bcf6351d13b5cc057d6fec6935 SHA512 ffb2681b7ca062f78931d288314e563f265c9e584b3cb82af16529e8c9b578cca4d57c6e2afc506562cc946def736814b1da13a2630273551e7bf179786516cc WHIRLPOOL cda9b38b74efc0593de4c89dc4efc91ac1431b12293cd83fee32cd7aff1c85c1fcdc7b8c16f54fb0aa4dacc3901cbb37b3dfa2a9d4dd8b4f1011d1c55965efcd
DIST patron-0.7.1.gem 54784 SHA256 aa75525e6f0064d82aacf86241f8ff381c5d8116d4199113d042b1ac8ff4b91d SHA512 bb95c98d28cc09157c05d3f39694df2b165cb72a46d54d41ca03eca992b94f579a62c081692bf81685852d46668c363e975726142622932d74fd73521414556a WHIRLPOOL f4575d4315c76425963194105b6be2b65ad498f457167312517f70f7497a0a87274466e717cc6bf1dbac9f35796ff7c484f5a147f6201347e202d5ad5db34290
DIST patron-0.8.0.gem 57856 SHA256 954db224e16421c78c55d190b2310c3201c68e72767908faead76a9c5a5159df SHA512 43d6ae99aa3db3c5dabd2c3ec7fe5371a204d6e6ccec2c50b0cc126878b0db583e8a266b2b8e0f3ce7cdfde046bd36622e26d653e7ccae7b493ec924021b5f16 WHIRLPOOL b176ced2464b52c3a1bd4412e8c5d0ca7c3c8ee6da2c7c59cf4442c04eeefd07cd6c1c76d93cb2c6ba63c51326d8e1c317e760bf7bbf7506f43ca923a105c04a
45 changes: 45 additions & 0 deletions dev-ruby/patron/patron-0.8.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
USE_RUBY="ruby20 ruby21 ruby22 ruby23"

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 ~ppc64 ~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"
}

0 comments on commit 5ac28ca

Please sign in to comment.