summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-glib2/ruby-glib2-4.3.4.ebuild
blob: 804e390acd95a5669d36611f2270fb1298ef3886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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_GEMSPEC="glib2.gemspec"

inherit ruby-ng-gnome2

DESCRIPTION="Ruby Glib2 bindings"
KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~x86"
RDEPEND=">=dev-libs/glib-2"
DEPEND=">=dev-libs/glib-2"

all_ruby_prepare() {
	sed -e '/\(native_package_installer\|pkg-config\)/ s:^:#:' \
		-e 's:_relative ": "./:' \
		-i ${RUBY_FAKEGEM_GEMSPEC} || die

	ruby-ng-gnome2_all_ruby_prepare

	# Skip spawn tests since our sandbox also provides items in the
	# environment and this makes the test fragile.
	rm -v test/test-spawn.rb || die
}