From 520babd7e016e9ecd033d093575f9f912009f568 Mon Sep 17 00:00:00 2001 From: blshkv Date: Tue, 17 Nov 2015 14:59:03 +0800 Subject: [PATCH] wpscan: migrate to ruby eclass --- net-analyzer/wpscan/wpscan-2.9.ebuild | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/net-analyzer/wpscan/wpscan-2.9.ebuild b/net-analyzer/wpscan/wpscan-2.9.ebuild index 898f9f895..6c1f3c076 100644 --- a/net-analyzer/wpscan/wpscan-2.9.ebuild +++ b/net-analyzer/wpscan/wpscan-2.9.ebuild @@ -1,10 +1,12 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: $ +# $Id$ EAPI="5" -inherit eutils +USE_RUBY="ruby19 ruby21 ruby22" + +inherit eutils ruby-ng DESCRIPTION="Wordpress security scanner" HOMEPAGE="http://wpscan.org/" @@ -15,21 +17,22 @@ SLOT="0" KEYWORDS="~amd64 ~arm ~x86" IUSE="test" -DEPEND="" -RDEPEND="dev-lang/ruby - dev-ruby/rubygems +ruby_add_rdepend "dev-ruby/rubygems >=dev-ruby/typhoeus-0.6.8 dev-ruby/nokogiri >dev-ruby/yajl-ruby-1.2.0 >=dev-ruby/terminal-table-1.4.5 >=dev-ruby/ruby-progressbar-1.6.0 - dev-ruby/addressable + dev-ruby/addressable" + +ruby_add_bdepend " test? ( >=dev-ruby/webmock-1.9.3 dev-ruby/simplecov dev-ruby/rspec )" +S="${WORKDIR}"/all/${P} src_prepare() { #https://github.com/wpscanteam/wpscan/issues/706