typhoeus: cleanup

This commit is contained in:
blshkv 2016-12-14 09:34:22 +08:00
parent c3a61510e3
commit bf8d87e78a
No known key found for this signature in database
GPG key ID: 9CCF6FCB8D8A14BF
6 changed files with 1 additions and 136 deletions

View file

@ -1,2 +0,0 @@
DIST typhoeus-0.3.3.gem 46592 SHA256 4b5fff48fe922849cf0c69b8fa0bfeb4ac65c08c93fdc2d8b5d82e4d28f6df19 SHA512 fe541cf8c7a57afe5177199a4a94d1146b2d2b785326b01db7c2fc1a721458db432a217af05a09e5b6f676995e46e4efbae488896ddebfb04071618d38261b68 WHIRLPOOL 632450b4481b9188d0af2c34f17f64a5bd2cf565f34f7fd33be3bcfe4843e2fdc561663bb3a9c78182e988a5c2897eb37c3b8e63cec794e22bf1089343d88fe8
DIST typhoeus-0.6.9.gem 49152 SHA256 5979555fd430ebec72ab1f5630e8f7679979fb21984d8d9dfe3008d4f91794c8 SHA512 5063d3217f35db29d216327b6eed10d6613d018c496935e78aa8e2b10ec21f3372df11fe48155b45387767d5572efa93e74afb0bb9b10782d28e87dead0294a4 WHIRLPOOL a20d25696804d2d444fa6df145360056dd6170ace42a8cab0a84aa425ae7306173331db8ace402f4a1c596925ee8d52702bc91c967f943361a2a852170b03917

View file

@ -1,28 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby19 ruby20 ruby21"
inherit multilib ruby-fakegem
DESCRIPTION="Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling logic"
HOMEPAGE="https://rubygems.org/gems/typhoeus"
LICENSE="BSD"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="~amd64 ~x86"
IUSE="hardened"
ruby_add_rdepend "dev-ruby/mime-types:0"
each_ruby_configure() {
${RUBY} -C ext/typhoeus extconf.rb || die "extconf failed"
}
each_ruby_compile() {
emake -C ext/typhoeus
cp ext/typhoeus/native$(get_modname) lib/typhoeus || die "cp failed"
}

View file

@ -1,30 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby20 ruby21 ruby22"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md UPGRADE.md"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
inherit ruby-fakegem
DESCRIPTION="Runs HTTP requests in parallel while cleanly encapsulating handling logic"
HOMEPAGE="http://rubygems.org/gems/typhoeus/"
LICENSE="Ruby"
SLOT="$(get_version_component_range 1-2)"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
ruby_add_rdepend ">=dev-ruby/ethon-0.7.1"
ruby_add_bdepend "test? ( dev-ruby/json >=dev-ruby/faraday-0.9 >=dev-ruby/sinatra-1.3 )"
all_ruby_prepare() {
sed -e '/bundler/I s:^:#:' -i Rakefile spec/spec_helper.rb || die
}

View file

@ -295,7 +295,7 @@ dev-ruby/mail:2.6
~dev-ruby/pkg-config-1.1.7
~dev-ruby/mini_portile2-2.1.0
~dev-ruby/nokogiri-1.6.8
~dev-ruby/typhoeus-1.0.2
=dev-ruby/typhoeus-1.1*
~dev-ruby/concurrent-ruby-1.0.1
~dev-ruby/concurrent-ruby-ext-1.0.1
~dev-ruby/sinatra-contrib-1.4.6

View file

@ -1,2 +1 @@
DIST arachni-1.3.2.tar.gz 2046398 SHA256 f0bdebb68e230c3e4165bff1965556c4ad3f149684910f49b3f49837095e397e SHA512 85c8db4867a044abccfd3849c4e6f12b7bb0e51e5942eef2d4e0a576200373e40951eface2831dc5066f4196871f9a3037c67d26041866038ac6d57cbccbdfe4 WHIRLPOOL 737030f9f8b353f16bee669d9ed9f79c2ffe81484fba3ebdccaae5f59361763abe17dd2a5a452142a000edaa0bd93b3fa042fb0e86a180890f5d404fd6e59474
DIST arachni-1.4.tar.gz 2066668 SHA256 a07ca52f0e4484fbe016182e9f11c2437e980086e417f48da6d2ba11d15d1851 SHA512 af16d77e24d82575c03a080d6e2291c6db0f0015cc73ac067fd83c229fe4b3a1f12d07f43cda9e95eba9a3f5e4402bd202fb5c9c3715c58b3ba6b2003119f818 WHIRLPOOL 47b25a51b304b6050ad4eba2bd6e4fe38c90de5b857369c7109309047b5e96064b138207e4c49099686f95f0f468762c6c8bd2df1b8b5e3f89edf3952e260cc2

View file

@ -1,74 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby21"
inherit eutils ruby-ng
DESCRIPTION="Arachni is a feature-full web application scanner"
HOMEPAGE="http://arachni-scanner.com/"
SRC_URI="https://github.com/Arachni/arachni/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="dev-libs/libxslt
dev-libs/openssl
dev-libs/libxml2
dev-libs/mpfr
dev-libs/libyaml
"
ruby_add_rdepend "
=dev-ruby/addressable-2.3* >=dev-ruby/addressable-2.3.6
>=dev-ruby/arachni-rpc-0.2.1.2
=dev-ruby/awesome_print-1.6*
dev-ruby/bundler
>=dev-ruby/childprocess-0.5.3
>=dev-ruby/coderay-1.1.0
>=dev-ruby/kramdown-1.4.1
=dev-ruby/loofah-2.0*
>=dev-ruby/msgpack-0.5.8
=dev-ruby/nokogiri-1.6* >=dev-ruby/nokogiri-1.6.5
=dev-ruby/oj-2.12*
dev-ruby/oj_mimic_json
>=dev-ruby/pony-1.8
dev-ruby/rack:*
>=dev-ruby/rb-readline-0.5.1
dev-ruby/rubyzip:1
>=dev-ruby/terminal-table-1.4.5
dev-ruby/typhoeus:0.6
>=dev-ruby/watir-webdriver-0.6.9
"
pkg_setup() {
ruby-ng_pkg_setup
}
each_ruby_prepare() {
epatch "${FILESDIR}/${PV}-config.patch"
epatch "${FILESDIR}/${PV}-easierdep.patch"
for file in $(ls -1 bin/*); do
sed "s#/usr/bin/env ruby#${RUBY}#" -i "${file}" || die "Conversion of shebang in '${file}' failed"
done
}
each_ruby_install() {
dodir /usr/$(get_libdir)/${PN}
cp -R "${S}"/* "${ED}"/usr/$(get_libdir)/${PN}/ || die "Copy files failed"
#we write a loader to make sure ${RUBY} is pax marked
cat <<-EOF > "${ED}"/usr/$(get_libdir)/${PN}/bin/arachni-loader
#!/bin/sh
exec ${RUBY} /usr/$(get_libdir)/${PN}/bin/\$(basename \$0)
EOF
fperms +x /usr/$(get_libdir)/${PN}/bin/arachni-loader
dosym /usr/$(get_libdir)/arachni/bin/arachni-loader /usr/bin/arachni
dosym /usr/$(get_libdir)/arachni/bin/arachni-loader /usr/bin/arachni_console
}