forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: https://bugs.gentoo.org/921395 Signed-off-by: Alfred Persson Forsberg <[email protected]> Signed-off-by: Zac Medico <[email protected]>
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright 2022-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
inherit go-module | ||
|
||
ARCHIVE_URI="https://github.com/golang/tools/archive/refs/tags/gopls/v${PV}.tar.gz -> ${P}.tar.gz" | ||
KEYWORDS="~amd64 ~x86" | ||
DESCRIPTION="\"Go please\" is the official Go language server" | ||
HOMEPAGE="https://github.com/golang/tools/blob/master/gopls/README.md" | ||
SLOT="0" | ||
LICENSE="BSD" | ||
BDEPEND=">=dev-lang/go-1.20" | ||
SRC_URI=" | ||
${ARCHIVE_URI} | ||
https://github.com/alfredfo/gopls-deps/raw/master/${P}-deps.tar.xz | ||
" | ||
# TODO: fix test failure with deps tarball | ||
RESTRICT+=" test" | ||
|
||
S=${WORKDIR}/tools-gopls-v${PV}/${PN} | ||
|
||
src_prepare() { | ||
default | ||
rm internal/regtest/misc/vendor_test.go || die | ||
} | ||
|
||
src_compile() { | ||
ego build | ||
} | ||
|
||
src_test() { | ||
go test -work "./..." || die | ||
} | ||
|
||
src_install() { | ||
dobin gopls | ||
dodoc -r doc README.md | ||
} |