diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-04-29 09:22:14 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-04-29 09:23:13 +0200 |
commit | 23350637d8c844e7db5509ffe10d9d3958f44928 (patch) | |
tree | 0503f542aefd0f143f6969a0cf54c7982091d2db /dev-ruby/version_gem | |
parent | dev-ruby/rspec-block_is_expected: new package, add 1.0.5 (diff) | |
download | gentoo-23350637d8c844e7db5509ffe10d9d3958f44928.tar.gz gentoo-23350637d8c844e7db5509ffe10d9d3958f44928.tar.bz2 gentoo-23350637d8c844e7db5509ffe10d9d3958f44928.zip |
dev-ruby/version_gem: new package, add 1.1.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/version_gem')
-rw-r--r-- | dev-ruby/version_gem/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/version_gem/metadata.xml | 11 | ||||
-rw-r--r-- | dev-ruby/version_gem/version_gem-1.1.2.ebuild | 30 |
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-ruby/version_gem/Manifest b/dev-ruby/version_gem/Manifest new file mode 100644 index 000000000000..16cfb6e3f7e8 --- /dev/null +++ b/dev-ruby/version_gem/Manifest @@ -0,0 +1 @@ +DIST version_gem-1.1.2.tar.bz2 22084 BLAKE2B 865b4b193c62ccf40d3f4bb086d9b5c297426d6d260617d9619a0f83a1e6d00a47231439a8851c22648572a768eb83ab9822c44a3d8a0c7a023be1491bb05a48 SHA512 e0fb5c31ef4c36889ac7f90e173e4c45f30ecad3439d2ec99aeec1d63e27ee1697a02271b62cc0565cbd3491c3384d925aa7d1d9d7a879549cb2ef9f326f8127 diff --git a/dev-ruby/version_gem/metadata.xml b/dev-ruby/version_gem/metadata.xml new file mode 100644 index 000000000000..bcdd12220565 --- /dev/null +++ b/dev-ruby/version_gem/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> + </maintainer> + <upstream> + <remote-id type="gitlab">oauth-xx/version_gem</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/version_gem/version_gem-1.1.2.ebuild b/dev-ruby/version_gem/version_gem-1.1.2.ebuild new file mode 100644 index 000000000000..c92817188a50 --- /dev/null +++ b/dev-ruby/version_gem/version_gem-1.1.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" +RUBY_FAKEGEM_GEMSPEC="version_gem.gemspec" + +#RUBY_FAKEGEM_GEMSPEC="oauth.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Enhance that VERSION! Sugar for boring Version modules" +HOMEPAGE="https://gitlab.com/oauth-xx/version_gem" +SRC_URI="https://gitlab.com/oauth-xx/version_gem/-/archive/v${PV}/version_gem-v${PV}.tar.bz2 -> ${P}.tar.bz2" +RUBY_S="version_gem-v${PV}" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +all_ruby_prepare() { + sed -i -e 's/if RUN_COVERAGE/if false/' spec/spec_helper.rb || die + + # Avoid broken implementation already fixed upstream + sed -i -e "s/'when actual' do/'when actual', pending: 'broken spec' do/" spec/version_gem/ruby_spec.rb || die +} |