diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-05-22 10:25:22 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-05-23 07:04:46 +0200 |
commit | 100a65547de09a2e8864ae89f0f260b0de485736 (patch) | |
tree | 95a0495a10f1bd3b022a23d8c5f8108ec01e75a5 /dev-ruby | |
parent | dev-ruby/singleton: initial import of 0.1.1 (diff) | |
download | gentoo-100a65547de09a2e8864ae89f0f260b0de485736.tar.gz gentoo-100a65547de09a2e8864ae89f0f260b0de485736.tar.bz2 gentoo-100a65547de09a2e8864ae89f0f260b0de485736.zip |
dev-ruby/forwardable: initial import of 1.3.2
Dependency for forthcoming dev-ruby/prime.
Extracted from dev-lang/ruby, keywords set accordingly.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/forwardable/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/forwardable/forwardable-1.3.2.ebuild | 31 | ||||
-rw-r--r-- | dev-ruby/forwardable/metadata.xml | 11 |
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/forwardable/Manifest b/dev-ruby/forwardable/Manifest new file mode 100644 index 000000000000..d160bb53cbb4 --- /dev/null +++ b/dev-ruby/forwardable/Manifest @@ -0,0 +1 @@ +DIST forwardable-1.3.2.tar.gz 16904 BLAKE2B 858068489c9c76e3a711d3b7338f948ac44ef9af9f1792f3fe37fcf3cd7c03201146c7a9f0e2aa7022bca1d705fc285fb9377175e688a500ceb38ee1697b964b SHA512 332eae2ee23fa6c5db334511e79a4d09ee168244420fce718cfd90944fbd03694cf9d2c94b9ad9935deb900a285c8ebf679184c8bdc10de563466d026c9794f7 diff --git a/dev-ruby/forwardable/forwardable-1.3.2.ebuild b/dev-ruby/forwardable/forwardable-1.3.2.ebuild new file mode 100644 index 000000000000..0ac470471f4c --- /dev/null +++ b/dev-ruby/forwardable/forwardable-1.3.2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="forwardable.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Provides delegation of specified methods to a designated object" +HOMEPAGE="https://github.com/ruby/forwardable" +SRC_URI="https://github.com/ruby/forwardable/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +all_ruby_prepare() { + sed -e 's/__dir__/"."/' \ + -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \ + -e 's/git ls-files -z/find * -print0/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -Ilib:.:test:test/lib -rhelper -e 'Dir["test/**/test_*.rb"].each{|f| require f}' || die +} diff --git a/dev-ruby/forwardable/metadata.xml b/dev-ruby/forwardable/metadata.xml new file mode 100644 index 000000000000..2e65848d57fc --- /dev/null +++ b/dev-ruby/forwardable/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="github">ruby/forwardable</remote-id> + </upstream> +</pkgmetadata> |