diff options
author | Hans de Graaff <hans@degraaff.org> | 2024-08-28 06:08:08 +0200 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2024-08-28 06:08:08 +0200 |
commit | 2600cfcfc88fbf081b80399d745ebbd4d168c901 (patch) | |
tree | 79f89d74d5cec6af87ce6597a784050e794eb2b6 /app-forensics | |
parent | dev-ruby/appsignal: add 3.7.6 (diff) | |
download | graaff-2600cfcfc88fbf081b80399d745ebbd4d168c901.tar.gz graaff-2600cfcfc88fbf081b80399d745ebbd4d168c901.tar.bz2 graaff-2600cfcfc88fbf081b80399d745ebbd4d168c901.zip |
app-forensics/brakeman: add 6.2.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.2.1.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest index d0e2aff2..56afa452 100644 --- a/app-forensics/brakeman/Manifest +++ b/app-forensics/brakeman/Manifest @@ -1 +1,2 @@ DIST brakeman-6.1.2.tar.gz 850347 BLAKE2B a0842b982f34b1cfcb2382815b256d7dcd566b0f05f98434453adc8e0e7dc639f8d4f20e2f5363dcc46f444d55f414698cea8e4adb12f07eaf12dc3e9c8d0b95 SHA512 97bb201d0c0abb262ed09e09a3f4b7132bcdcb784cf5eab2e9085e8ae87f2ec2af6f7a0f15644d1e38a6bd0b3b48646ac77e39a0d9f04c8bd448f5703635c0e0 +DIST brakeman-6.2.1.tar.gz 866619 BLAKE2B e47099ef6d2721455f39c66175cb9f13af0b4658789337e9ae32a16777bd34724df4404ce26f415a65ceae5284d9ccda9bf2bc385896788a0c95ae90ac801376 SHA512 859924d86a5adb85da518643694a2e8bd53f10628369bb2a7705cf869bf4b7026cc195bac5bdd7dce273d3532c4322e8084ae6bc5acadc5cd2b4514795199425 diff --git a/app-forensics/brakeman/brakeman-6.2.1.ebuild b/app-forensics/brakeman/brakeman-6.2.1.ebuild new file mode 100644 index 00000000..bc925da3 --- /dev/null +++ b/app-forensics/brakeman/brakeman-6.2.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="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" + +ruby_add_rdepend " + >=dev-ruby/erubis-2.6 + >=dev-ruby/haml-5.1:5 + dev-ruby/highline:3 + >=dev-ruby/parallel-1.20:1 + dev-ruby/racc + dev-ruby/rexml:3 + >=dev-ruby/ruby2ruby-2.5.1:2 + >=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/slim-5.3:* + >=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 '/ruby_parser/ s/3.20.2/3.20/' \ + -e '/ruby2ruby/ s/2.5.1/2.5/' \ + -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 +} |