dev-ruby/metasploit_data_models: cleanup ruby23-only version

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
Hans de Graaff
2019-01-16 19:51:40 +01:00
parent 532cf70eb4
commit 6da5eaed2e
2 changed files with 0 additions and 63 deletions

View File

@@ -1,2 +1 @@
DIST metasploit_data_models-2.0.14.gem 182272 BLAKE2B 76162d66be5ddbad8186aef84bdc31ca06635737203f6e25dfc5d74d11775aa7ef5f0e5e5e07f5cce524e7712e484e548d56398bbae95dcc7cb93a22bca223f4 SHA512 204505fd9073eaa7c9467ef8241f0cf3167f33e68eb4e5aac6101fc0b1fa68d2ec85e11ac9ce4fb80ae3db8ba6fcc0f7f2a93dacf9735c2d4d1d92fa0a41e70b
DIST metasploit_data_models-2.0.16.gem 182272 BLAKE2B 918c57e62552e2b3288ca24e8ff7abeb30b0b6221906890c7b2e15c674356de6861a10500735d5a912b0deefb6b378b64111bd18770c65b10dcdbc911e6439d6 SHA512 bf2c2c162d23750eceeb315b9a5ba9e8b80bf4ace9e32f8c1e97c35939338d026d640675b3e5eaf61c6897007db07e186d4d5be944dc3bca16c138f1f6ae6ada

View File

@@ -1,62 +0,0 @@
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
USE_RUBY="ruby23"
inherit ruby-fakegem
RUBY_FAKEGEM_EXTRAINSTALL="app config db script spec"
DESCRIPTION="The database layer for Metasploit"
HOMEPAGE="https://github.com/rapid7/metasploit_data_models"
SRC_URI="mirror://rubygems/${P}.gem"
LICENSE="BSD"
SLOT="${PV}"
KEYWORDS="~amd64 ~arm"
RESTRICT=test
#IUSE="development test"
IUSE=""
RDEPEND="${RDEPEND} !dev-ruby/metasploit_data_models:0"
ruby_add_rdepend "
>=dev-ruby/activerecord-4.2.6:4.2[postgres]
>=dev-ruby/activesupport-4.2.6:4.2
dev-ruby/pg:*
dev-ruby/postgres_ext
>=dev-ruby/railties-4.2.6:4.2
>=dev-ruby/recog-2.0.0:*
dev-ruby/arel-helpers
>=dev-ruby/metasploit-concern-2.0.0
>=dev-ruby/metasploit-model-2.0.0
<dev-ruby/thor-2.0"
ruby_add_bdepend "dev-ruby/bundler"
all_ruby_prepare() {
[ -f Gemfile.lock ] && rm Gemfile.lock
#if ! use development; then
sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die
#fi
#if ! use test; then
sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
#fi
#if ! use test && ! use development; then
sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die
#fi
}
each_ruby_prepare() {
if [ -f Gemfile ]
then
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
fi
}
all_ruby_install() {
ruby_fakegem_binwrapper mdm_console mdm_console-${SLOT}
}