commit: be5dba64163a6dc3a1c466f3dce5afe64d8ea061 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sun Mar 17 06:32:31 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sun Mar 17 06:46:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be5dba64
dev-ruby/sync: update EAPI 7 -> 8, fix tests Closes: https://bugs.gentoo.org/912061 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/sync/Manifest | 1 + dev-ruby/sync/sync-0.5.0-r1.ebuild | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/dev-ruby/sync/Manifest b/dev-ruby/sync/Manifest index 05f6e166adc9..bb95b96b4a38 100644 --- a/dev-ruby/sync/Manifest +++ b/dev-ruby/sync/Manifest @@ -1 +1,2 @@ +DIST sync-0.5.0-mjit.patch 705 BLAKE2B 3235e6fb9689a046a04802d0e46087970ce80283aea989b598f756953175026ad63a686339ce5767b316bc67a2f1e9d4bb280cbee32408243ba0b6dd7c424c6b SHA512 9b639bafaf262d5ccd4f851ad5969e83b5e8d296a98daa4d12373e714aa0f80b7e242d508149be3da1cbad7d51ac6daf4f326a5f5043c7fcf828c8fc352e5bfc DIST sync-0.5.0.tar.gz 4957 BLAKE2B 9b4b1710d2468068387d782109199dd45c783b6d7bb0357851f800df2ac4961a72143cfc2b42f522524cf7148694545ae8eab47ee6629062d8ea1505d9095ba0 SHA512 5f887d9169e0be834c7fa17ae42b71078f25ce3d83e695490cd136adc1799d6b92e4aed41ce3f3d57b3ad193a1ac4de940b37212c2864bbf6331ba3582128166 diff --git a/dev-ruby/sync/sync-0.5.0-r1.ebuild b/dev-ruby/sync/sync-0.5.0-r1.ebuild new file mode 100644 index 000000000000..471eb2d7da3f --- /dev/null +++ b/dev-ruby/sync/sync-0.5.0-r1.ebuild @@ -0,0 +1,28 @@ +# 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_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="A module that provides a two-phase lock with a counter" +HOMEPAGE="https://github.com/ruby/sync" +SRC_URI="https://github.com/ruby/sync/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/ruby/sync/commit/8f2821d0819ee7c08506f204c7676f12c5ab1397.patch -> ${P}-mjit.patch" + +LICENSE="BSD-2" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +all_ruby_prepare() { + eapply "${DISTDIR}/${P}-mjit.patch" + + sed -i -e 's:require_relative ":require "./:' ${RUBY_FAKEGEM_GEMSPEC} || die +}
