summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-forensics/brakeman/Manifest1
-rw-r--r--app-forensics/brakeman/brakeman-5.2.2.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest
index 57710de6..c8d77a87 100644
--- a/app-forensics/brakeman/Manifest
+++ b/app-forensics/brakeman/Manifest
@@ -1,2 +1,3 @@
DIST brakeman-5.1.2.tar.gz 819506 BLAKE2B 54a01568c842fdfc83088f86e11d097f4cd99049f2f24c4796fe7977f75ce37db41066d80b0519bb71e0b7e34b225eeef6c35efa1928c87e11b7c11a94197306 SHA512 05b1e64092cf6416aec0818c321924bb50b51f37d901a5e01f5bbe6b3926f773b1cbedf156b24b65274098c846596bfa3875cb43f730ed920263d72a074a8d91
DIST brakeman-5.2.1.tar.gz 833876 BLAKE2B c388ce6c046e633df28ac9f28b959fd6be2d0530932758a1743fd45ad5c20a9668cee60b402394697f3af9b53b8112c1d7ed359535c9201233ba524a59c6722d SHA512 9c769f75cb8cdd437eef9046d778db78fc33e51ca6ae3b286ec1d85d1d502bce3e564cd551f152839b77696f21084ac73925ecb1b7d53c323b87b29ceae82751
+DIST brakeman-5.2.2.tar.gz 834919 BLAKE2B fc9c98d638e96aa0729bd35c8f9a6f30baeaf52d9563bce1db274582d0154147bcb359ce6213347cd6a68176935160c66f297e6094228988a00816bfa8600d4a SHA512 df65af701de8ea6586efdc08f874ceb4ab121ec540f93be7f0d04b9ca19e304a5dbb313faa155bce43acf6e1f7d60c7408fddcb36dd694a9b82d96011d944b2b
diff --git a/app-forensics/brakeman/brakeman-5.2.2.ebuild b/app-forensics/brakeman/brakeman-5.2.2.ebuild
new file mode 100644
index 00000000..d422def3
--- /dev/null
+++ b/app-forensics/brakeman/brakeman-5.2.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 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.19.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
+}