diff options
Diffstat (limited to 'dev-ruby/certificate_authority/certificate_authority-1.1.0.ebuild')
-rw-r--r-- | dev-ruby/certificate_authority/certificate_authority-1.1.0.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/certificate_authority/certificate_authority-1.1.0.ebuild b/dev-ruby/certificate_authority/certificate_authority-1.1.0.ebuild new file mode 100644 index 000000000000..f071d6a0c5b4 --- /dev/null +++ b/dev-ruby/certificate_authority/certificate_authority-1.1.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="certificate_authority.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Managing the core functions outlined in RFC-3280 for PKI" +HOMEPAGE="https://github.com/cchandler/certificate_authority" +SRC_URI="https://github.com/cchandler/certificate_authority/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +all_ruby_prepare() { + sed -i -e '/\(bundler\|pry\|overalls\)/ s:^:#:' spec/spec_helper.rb || die + sed -i -e '/spec.files/,/end/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid dependency on dev-libs/engine_pkcs11 that will be hard to + # make work on different arches due to hardwired load paths in + # specs. + rm -f spec/units/pkcs11_key_material_spec.rb || die + + # Fix spec for OpenSSL 3.x + sed -i -e '426 s/keyid://' spec/units/certificate_spec.rb || die +} |