summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-forensics/brakeman/Manifest1
-rw-r--r--app-forensics/brakeman/brakeman-5.2.0.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest
index b38f052e..61206497 100644
--- a/app-forensics/brakeman/Manifest
+++ b/app-forensics/brakeman/Manifest
@@ -1,2 +1,3 @@
DIST brakeman-5.1.1.tar.gz 817950 BLAKE2B ae5d1e6158fed422c9da0fab7e7e1fed6f03bfa0f1fd9c106ecff25d22dbedf98023a36a85e3b582f4b0c92703875770b4dc72b56e337bc70b33240e43ae6b93 SHA512 bb50451d96efeff61b29009b386faaa76254627fbd0995314fd924ca4c04ba1662df13dfd5e04e9ded0c28d0082c4970cf92618a278fe3d08e22a8f1b449b2cf
DIST brakeman-5.1.2.tar.gz 819506 BLAKE2B 54a01568c842fdfc83088f86e11d097f4cd99049f2f24c4796fe7977f75ce37db41066d80b0519bb71e0b7e34b225eeef6c35efa1928c87e11b7c11a94197306 SHA512 05b1e64092cf6416aec0818c321924bb50b51f37d901a5e01f5bbe6b3926f773b1cbedf156b24b65274098c846596bfa3875cb43f730ed920263d72a074a8d91
+DIST brakeman-5.2.0.tar.gz 833902 BLAKE2B 03a91e286208c92a8e42847a6daf3231623cd71f4d99140daf1cac9438d5f62fed083d046130ebe1a2417cabc86bd822939a0bc4c236483f2fe439b2ef9074f7 SHA512 747ef3e1d90b6a1b3826074a854dbad12a07a6fc413c6e96f7ec29e14da987e25ba5a2943bcfdfe7b2b4d8fff632cae245474b58e13db09a3c34907e86e06957
diff --git a/app-forensics/brakeman/brakeman-5.2.0.ebuild b/app-forensics/brakeman/brakeman-5.2.0.ebuild
new file mode 100644
index 00000000..030e0f8b
--- /dev/null
+++ b/app-forensics/brakeman/brakeman-5.2.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby26 ruby27"
+
+RUBY_FAKEGEM_DOCDIR="docs"
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md FEATURES OPTIONS.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="brakeman.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Static analysis tool which checks RoR applications for security vulnerabilities"
+HOMEPAGE="https://brakemanscanner.org/"
+SRC_URI="https://github.com/presidentbeef/brakeman/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BPUL"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/erubis-2.6
+ >=dev-ruby/haml-5.1:5
+ dev-ruby/highline:2
+ >=dev-ruby/parallel-1.20:1
+ dev-ruby/rexml
+ >=dev-ruby/ruby2ruby-2.4.0 =dev-ruby/ruby2ruby-2.4*
+ >=dev-ruby/ruby_parser-3.18.0 =dev-ruby/ruby_parser-3*
+ >=dev-ruby/safe_yaml-1.0
+ >=dev-ruby/sexp_processor-4.7:4
+ >=dev-ruby/slim-1.3.6:*
+ >=dev-ruby/terminal-table-1.4.5 =dev-ruby/terminal-table-1*"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
+
+all_ruby_prepare() {
+ # Avoid seemingly harmless test failure
+ sed -i -e '/test_highline/askip "gentoo"' test/tests/pager.rb || die
+
+ sed -e '/ruby_parser-legacy/ s:^:#:' \
+ -e '/minitest-ci/ s:^:#:' \
+ -e '/simplecov/ s:^:#:' \
+ -i gem_common.rb || die
+
+ sed -i -e '/rake/ s/,.*$// ; /codeclimate/ s:^:#: ; /json/ s:^:#:' Gemfile || die
+
+ # Avoid support for obsolete ruby versions
+ sed -i -e '/ruby_parser\/legacy/ s:^:#:' lib/brakeman/scanner.rb || die
+ rm -f test/tests/{markdown_output,rails2}.rb || die
+}