summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-10-11 15:41:40 +0200
committerHans de Graaff <graaff@gentoo.org>2023-10-11 15:41:40 +0200
commit890dec4e784c7102fd14a32259c325f0cfea2f11 (patch)
treef6729f672863bbff85ea4a181db536584443a841 /dev-ruby/timeout
parentdev-ruby/test-unit-ruby-core: keyword 1.0.3 (diff)
downloadgentoo-890dec4e784c7102fd14a32259c325f0cfea2f11.tar.gz
gentoo-890dec4e784c7102fd14a32259c325f0cfea2f11.tar.bz2
gentoo-890dec4e784c7102fd14a32259c325f0cfea2f11.zip
dev-ruby/timeout: add 0.4.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/timeout')
-rw-r--r--dev-ruby/timeout/Manifest1
-rw-r--r--dev-ruby/timeout/timeout-0.4.0.ebuild29
2 files changed, 30 insertions, 0 deletions
diff --git a/dev-ruby/timeout/Manifest b/dev-ruby/timeout/Manifest
index 24bf015629eb..ba8b02e61750 100644
--- a/dev-ruby/timeout/Manifest
+++ b/dev-ruby/timeout/Manifest
@@ -1 +1,2 @@
DIST timeout-0.3.2.tar.gz 16920 BLAKE2B ec3bb38a8c60b9156a8fb8b5bb99b74a606ee8d18aa81b4b5ed5067c38cea1856ccfc00a841cc58c33cf5159fc1065f68728c48acec6df2eed28f364a36fc7a5 SHA512 70220781ecaec61a4243dfd95c6be13050513e78dd3239b58b0c8f6904b29c2bfbf895f769a1e122a30fbdad761577c2ddae94b328c4ee390867d1ab6391b8ec
+DIST timeout-0.4.0.tar.gz 6897 BLAKE2B 1fa606e15001ba929d7a1e6e254c97f7948de9042c90174263a2d3fc671b26c22197f9c1376c2cec60d8fe64361a63f29cdc02cf4e9bd0b912754bc65f594c0e SHA512 9337cac1f2ba76efb769c6602ae60fa1f3be4a6fc04ebd845c32332d1a25e0c669485f0f64611e09e1648908abe768aa78779c6568345a9729502efefa753485
diff --git a/dev-ruby/timeout/timeout-0.4.0.ebuild b/dev-ruby/timeout/timeout-0.4.0.ebuild
new file mode 100644
index 000000000000..e58a7ade545e
--- /dev/null
+++ b/dev-ruby/timeout/timeout-0.4.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_EXTRADOC="README.md"
+RUBY_FAKEGEM_GEMSPEC="timeout.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides a framework for message digest libraries"
+HOMEPAGE="https://github.com/ruby/timeout"
+SRC_URI="https://github.com/ruby/timeout/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/test-unit-ruby-core )"
+
+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
+}