mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
closes: https://bugs.gentoo.org/950693 fixes to the build fail with missing dependencies, and an unnecessary call to git during build Signed-off-by: Bryce Copeland (truffle) <truffle074@gmail.com>
47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Copyright 2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
|
RUBY_FAKEGEM_BINDIR="exe" # this directory doesn't actually exist, but reflects the spec
|
|
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
|
|
|
|
inherit ruby-fakegem
|
|
|
|
DESCRIPTION="Language Server SDK Gem for Ruby"
|
|
HOMEPAGE="https://github.com/mtsmfm/language_server-protocol-ruby"
|
|
SRC_URI="https://github.com/mtsmfm/${PN}-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
# TODO: if necessary create ebuilds for testing dependencies
|
|
# most test dependencies can be satisfied aside from m (short for metal)
|
|
# which has proven to be an entire rabbithole of extra packages
|
|
RUBY_FAKEGEM_RECIPE_TEST="none"
|
|
|
|
all_ruby_unpack() {
|
|
default
|
|
|
|
# git repo is titled "language_server-protocol-ruby" by default
|
|
# change to match package name to make eclass happy
|
|
mv "${PN}-ruby-${PV}" "${P}"
|
|
}
|
|
|
|
each_fakegem_configure() {
|
|
# by default these lines contain code that runs unnecessary shell commands or
|
|
# searches that don't make sense with the ebuild directory structure.
|
|
# values are set independently by the eclass anyways, so can be removed
|
|
sed -i '/^\s*spec.files*/d' "${PN}.gemspec" || die
|
|
sed -i '/^\s*spec.executables*/d' "${PN}.gemspec" || die
|
|
|
|
default
|
|
}
|
|
|
|
each_fakegem_test() {
|
|
ewarn "Tests disabled due to dependency issues"
|
|
default
|
|
}
|