diff options
-rw-r--r-- | app-forensics/brakeman/Manifest | 1 | ||||
-rw-r--r-- | app-forensics/brakeman/brakeman-4.10.0.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest index db68dc8d..3f345042 100644 --- a/app-forensics/brakeman/Manifest +++ b/app-forensics/brakeman/Manifest @@ -1,2 +1,3 @@ +DIST brakeman-4.10.0.tar.gz 803068 BLAKE2B 6a0b97b78c8f3a8f90fa55edcfd3c51601b49948a6e25e55956c8b9bbc0a2edb090828f33849709ea31982a29a633d2bdf3fa9c0cb330507aabb8a6647087391 SHA512 c67e15914b5be7542f729a84399ba9d69cbe5eda6ba4a9489fbfc05351592c6d88731ad64a49bd0a2b7292bc42499364caf58e923d5d5d3a3c72c7477348d95c DIST brakeman-4.8.2.tar.gz 794638 BLAKE2B ed440d862640796de982537209c0360e21fa25f4a57b85104d4aa13b50964115f412f0d98e8ef50445b383d6fe1f3b7ff148e1a29b544926aee6717f26ae1e8e SHA512 be65503febe08d66b68c371b06f932a014716cebd7a2fa30d83f113a9f38dc4b5b9359102756543ef84f8f6e0120c2e8643b7e582962b70f69267bc3944ff915 DIST brakeman-4.9.1.tar.gz 800518 BLAKE2B c077e7ebbc33d884870d24183798c9ef3c80ccbd360689c04b985539ed503e1f42fe9c213692f1f16b68fb4ce22a921c4731723c3bf2208eee4dc80f2cc5c18c SHA512 5509172f67537b5551a8d4d957df2107840e27ade06191ff20dde2d674c83684117f3fddb33b1114101a6469cbdef162c03ea95f0dc4da0336327c67084cdf06 diff --git a/app-forensics/brakeman/brakeman-4.10.0.ebuild b/app-forensics/brakeman/brakeman-4.10.0.ebuild new file mode 100644 index 00000000..7cbff8b6 --- /dev/null +++ b/app-forensics/brakeman/brakeman-4.10.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/haml-5.1* + 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 +} |