2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-02-12 00:02:41 +03:00
Files
gentoo/dev-ruby/sync/sync-0.5.0-r1.ebuild
Hans de Graaff 11295dfb16 dev-ruby/sync: enable ruby40
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2026-01-04 08:18:56 +01:00

30 lines
800 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
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
}