diff options
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/brakeman/Manifest | 1 | ||||
-rw-r--r-- | app-forensics/brakeman/brakeman-4.9.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest index c7041df4..da290933 100644 --- a/app-forensics/brakeman/Manifest +++ b/app-forensics/brakeman/Manifest @@ -1,2 +1,3 @@ DIST brakeman-4.7.2.tar.gz 790777 BLAKE2B 3c901732a29957918adb5593c577910a3dd157c6456c27f47f86e4e1c06cd87d94b583ca6725e0bc0a8c15c9aa8b901db8c4796a889d2609c705670a7f5548af SHA512 0cef8f1fffa3645f2a943af5843fcdd294d7bb9e0bc61612a78067d1e6fc9b65db60186ad4c37f268edc39260a5745e2cf310375ceaa6027a8a34766e8e2d335 DIST brakeman-4.8.2.tar.gz 794638 BLAKE2B ed440d862640796de982537209c0360e21fa25f4a57b85104d4aa13b50964115f412f0d98e8ef50445b383d6fe1f3b7ff148e1a29b544926aee6717f26ae1e8e SHA512 be65503febe08d66b68c371b06f932a014716cebd7a2fa30d83f113a9f38dc4b5b9359102756543ef84f8f6e0120c2e8643b7e582962b70f69267bc3944ff915 +DIST brakeman-4.9.0.tar.gz 799756 BLAKE2B cc517b5494c7647f97c39a271e302b9dd02c92951b8be0ecc42dfae1add5ae43b1b3f91971a48895a4d88a3bfe11627f2543006250a8111061f8ba8bf71687a4 SHA512 167a6978cdaff20e230b213f1c85478901b637d16e308358325f1abd15960e4d81c7c304e5313c0b8c8baea4fa6252c20a761ba1458792d14038cc9fb5023747 diff --git a/app-forensics/brakeman/brakeman-4.9.0.ebuild b/app-forensics/brakeman/brakeman-4.9.0.ebuild new file mode 100644 index 00000000..3a2d377b --- /dev/null +++ b/app-forensics/brakeman/brakeman-4.9.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26" + +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/ruby2ruby-2.4.0 =dev-ruby/ruby2ruby-2.4* + >=dev-ruby/ruby_parser-3.13.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 +} |