diff options
author | Hans de Graaff <hans@degraaff.org> | 2023-08-17 06:52:07 +0200 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2023-08-17 06:52:07 +0200 |
commit | aa660625c90c2c3d92a7e5d9c2ad8b204c4bfdad (patch) | |
tree | 9f13f26a38b07580429c2b1041db4e72e7e688aa /app-forensics | |
parent | dev-ruby/solargraph-rails: enable ruby32 (diff) | |
download | graaff-aa660625c90c2c3d92a7e5d9c2ad8b204c4bfdad.tar.gz graaff-aa660625c90c2c3d92a7e5d9c2ad8b204c4bfdad.tar.bz2 graaff-aa660625c90c2c3d92a7e5d9c2ad8b204c4bfdad.zip |
app-forensics/brakeman: add 6.0.1
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/brakeman/Manifest | 1 | ||||
-rw-r--r-- | app-forensics/brakeman/brakeman-6.0.1.ebuild | 66 |
2 files changed, 67 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest index 814d77a9..a825c976 100644 --- a/app-forensics/brakeman/Manifest +++ b/app-forensics/brakeman/Manifest @@ -1 +1,2 @@ DIST brakeman-5.4.1.tar.gz 847044 BLAKE2B feb8df8fdc91f0416110467328ab30a8891326b5a290e138c4eaf5bbddef50a7dd32e91be604b88a72b262db3283a691354ce2f8b7081b89c0ba9cc70b53ff72 SHA512 e3b559d76e7c8471b2ea3d47db54aaa9680f03b7ef87f942e182fc4cee91dc2128d3f2c6402e11ba78d4eef7cd8bd51df3d075c8f9b80ff8d34beb4e6f00298d +DIST brakeman-6.0.1.tar.gz 847848 BLAKE2B 48097e2be8bebe637a675b29bec4e2467b7d715704d50ecde2cd32319cd47d564b76a2b1b4ac829aa97dab0fae76ed9b328935c30a8165b4dd5fcf3f6f1733fa SHA512 285e892158e8892fa17956d3f7e016fcae688f3d7bd5ce173818b03f60f6cb060d67ed6b94bc8dc04dab56cacb21a7880bd7be142d577ddc33852fba7b22e771 diff --git a/app-forensics/brakeman/brakeman-6.0.1.ebuild b/app-forensics/brakeman/brakeman-6.0.1.ebuild new file mode 100644 index 00000000..933599d4 --- /dev/null +++ b/app-forensics/brakeman/brakeman-6.0.1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +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:3 + >=dev-ruby/ruby2ruby-2.4.0 =dev-ruby/ruby2ruby-2.4* + >=dev-ruby/ruby_parser-3.20.2 =dev-ruby/ruby_parser-3* + >=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_number_of_warnings/askip "gentoo"' test/test.rb || die + + sed -e '/ruby_parser-legacy/ s:^:#:' \ + -e '/minitest-ci/ s:^:#:' \ + -e '/simplecov/ s:^:#:' \ + -e '/slim/ s/4.1/5.2/' \ + -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 + + # Avoid obsolete test about rails 6.0. + sed -i -e '/test_CVE_2020_8166_rails6/askip "rails 6.0 is deprecated now"' test/tests/cves.rb || die +} + +each_ruby_test() { + case ${RUBY} in + *ruby30) + each_fakegem_test + ;; + *ruby31|*ruby32) + ewarn "Skipping tests due to missing safe_yaml dependency." + ;; + esac +} |