diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-03-25 12:37:02 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-03-26 08:29:44 +0200 |
commit | cbcd35b5f0c49947299578158260755fd26a7878 (patch) | |
tree | d19dd335a66bd1297214bf694d1c2b9908ce75c0 | |
parent | dev-ruby/rspec-memory: enable ruby32 (diff) | |
download | gentoo-cbcd35b5f0c49947299578158260755fd26a7878.tar.gz gentoo-cbcd35b5f0c49947299578158260755fd26a7878.tar.bz2 gentoo-cbcd35b5f0c49947299578158260755fd26a7878.zip |
dev-ruby/puppet-resource_api: don't install dev tools in bin
Closes: https://bugs.gentoo.org/902519
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16-r1.ebuild b/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16-r1.ebuild new file mode 100644 index 000000000000..9c04a8628ae6 --- /dev/null +++ b/dev-ruby/puppet-resource_api/puppet-resource_api-1.8.16-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md CONTRIBUTING.md HISTORY.md README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +# rspec tests have dependencies not packaged in Gentoo at this time: +# puppetlabs_spec_helper +# CFPropertyList +# simplecov-console +# spec-puppet +# rubocop +# rubocop-rspec +# license_finder +RUBY_FAKEGEM_RECIPE_TEST="none" + +inherit ruby-fakegem + +DESCRIPTION="This library provides a simple way to write new native resources for puppet." +HOMEPAGE="https://rubygems.org/gems/puppet-resource_api https://github.com/puppetlabs/puppet-resource_api" +LICENSE="MIT" +# 2023/03/19: .gem does not contain specfiles, and lags behind GitHub releases. +SRC_URI="https://github.com/puppetlabs/puppet-resource_api/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +all_ruby_prepare() { + # the gemspec tries to system(git ls-files) but has a meaningful fallback, so just make it not run git. + sed -i -e '/git --help/s,git,false git,g' \ + "${RUBY_FAKEGEM_GEMSPEC}" \ + || die +} + +ruby_add_rdepend ">=dev-ruby/hocon-1.0" |