mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-30 02:30:58 +02:00
wpscan: fix deps properly
This commit is contained in:
parent
cb0a60c151
commit
4b325da8ce
5 changed files with 53 additions and 16 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST terminal-table-1.4.5.gem 14336 SHA256 bf81561a406d3389fcd08fc44447fb980f2810d1aaf99b9e06fc1916c83d1999 SHA512 c5ed0c9d8058056d9b4da4cb6ccdc4854821585b1d5bee56e8bf8829e8cd9e6a97bb9da7314c1475c7b89a39dad60e9ad957d4659ba0b4f0f8197296dd612eb9 WHIRLPOOL cd598eac06f781d121e4bda5c172d996ee14f3b356c9482473bd5e4804ee173558170dcf1bf37287f1b7ab3f054bd7a255485ad9b9b2a7c82e68034cb5e382db
|
||||
DIST terminal-table-1.6.0.gem 11776 SHA256 0aec9ef18a0500fd4053731e7cb4e63cc7b2eaf573fcd28be625ca13b2fb7541 SHA512 355245c1c0d27885bbf9c46fa04886ec6c9cc0876f50e4457ca3da1a8a80eb8b58cefecefceb69083269f4f58ddd5784dfbf77dcfb7b258cb090846369ed063a WHIRLPOOL 4b0beb34cbf46fd4a9059599bf5c56a2e8391564cd5c78bdc1fd325d8c4799f3677876175bead81055f75eeed0a2b5f856524d3e98c394785ace19a18bd5edac
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
|
|
|
|||
24
dev-ruby/terminal-table/terminal-table-1.6.0.ebuild
Normal file
24
dev-ruby/terminal-table/terminal-table-1.6.0.ebuild
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simple, feature rich ascii table generation library"
|
||||
HOMEPAGE="http://rubygems.org/gems/terminal-table"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~arm"
|
||||
|
||||
#ruby_add_bdepend "test? (
|
||||
# bundler ~> 1.10
|
||||
# pry >= 0
|
||||
# rake ~> 10.0
|
||||
# rspec >= 3.0
|
||||
# term-ansicolor >= 0
|
||||
# )"
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
EAPI=6
|
||||
|
||||
USE_RUBY="ruby21 ruby22"
|
||||
|
||||
|
|
@ -19,34 +19,46 @@ IUSE="test"
|
|||
|
||||
ruby_add_rdepend "dev-ruby/rubygems
|
||||
dev-ruby/typhoeus:1
|
||||
>=dev-ruby/nokogiri-1.6.7.1
|
||||
>=dev-ruby/nokogiri-1.6.7.2
|
||||
>dev-ruby/yajl-ruby-1.2.0
|
||||
dev-ruby/addressable
|
||||
>=dev-ruby/terminal-table-1.4.5
|
||||
>=dev-ruby/terminal-table-1.6.0
|
||||
>=dev-ruby/ruby-progressbar-1.6.0
|
||||
>=dev-ruby/webmock-1.7.2:0
|
||||
"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/webmock-1.9.3
|
||||
dev-ruby/simplecov
|
||||
dev-ruby/rspec
|
||||
)"
|
||||
#ruby_add_bdepend "
|
||||
# test? (
|
||||
# >=dev-ruby/webmock-1.9.3
|
||||
# dev-ruby/simplecov
|
||||
# dev-ruby/rspec
|
||||
# )"
|
||||
|
||||
S="${WORKDIR}"/all/${P}
|
||||
each_ruby_prepare() {
|
||||
MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
|
||||
MSF_ROOT="." BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
#src_prepare() {
|
||||
all_ruby_prepare() {
|
||||
#https://github.com/wpscanteam/wpscan/issues/706
|
||||
epatch "${FILESDIR}/${PN}"-2.5.1_regular_user.patch
|
||||
rm -r README.md
|
||||
sed -i "/require 'bundler\/setup'/d" lib/environment.rb
|
||||
# sed -i "/require 'bundler\/setup'/d" lib/environment.rb
|
||||
|
||||
if ! use test; then
|
||||
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
|
||||
fi
|
||||
|
||||
unpack ./data.zip
|
||||
rm ./data.zip
|
||||
rm -r ./dev
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#src_install() {
|
||||
all_ruby_install() {
|
||||
dodoc CHANGELOG.md CREDITS
|
||||
rm CHANGELOG.md CREDITS
|
||||
insinto /usr/$(get_libdir)/${PN}
|
||||
|
|
@ -175,7 +175,7 @@ dev-ruby/tzinfo-data
|
|||
~dev-ruby/yard-0.8.7.6
|
||||
|
||||
#wpscan
|
||||
~dev-ruby/terminal-table-1.4.5
|
||||
~dev-ruby/terminal-table-1.6.0
|
||||
~dev-ruby/ethon-0.7.0
|
||||
~dev-ruby/ethon-0.7.4 **
|
||||
~dev-ruby/ethon-0.8.1 **
|
||||
|
|
|
|||
Loading…
Reference in a new issue