dev-go/gopls: add 0.18.1

* EAPI 7 -> 8
* bdepends go -> 1.23.4
* add me as a proxy maintainer

Closes: https://bugs.gentoo.org/950391
Signed-off-by: Leo Douglas <douglarek@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40905
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Leo Douglas 2025-03-05 09:18:55 +08:00 committed by Zac Medico
parent 4eccd2cd8b
commit e0e2b308b4
No known key found for this signature in database
GPG Key ID: D075FB8C104A3D20
3 changed files with 44 additions and 0 deletions

View File

@ -4,5 +4,7 @@ DIST gopls-0.17.0-deps.tar.xz 2143332 BLAKE2B c0433098f78050c72a22c660a97ae92069
DIST gopls-0.17.0.tar.gz 7450999 BLAKE2B d56aa22229619f7e3a98635992f96d87b4d5b5a111f1aa8d2f69e325a356caf5492447a655e54469128b06c6f808952e8bc53555efc8d49c2a199972933ecf46 SHA512 02206c733aebf43ce20cebd686a00d7f9e1b56cff8a8d4e7b5d8432803e0a2948da69ed482953f05f017454558e7211632f12f35d14259f8d255479fce091200
DIST gopls-0.17.1-deps.tar.xz 2143204 BLAKE2B b4c12dc0e1192534c0fa1bf6b3557a78b67a95dfb5eb9b06b7cebfe6c5b32d43174c3818b03fe95c682d9385e8ed8e679f65105ab75079346cdbff15ae827a27 SHA512 b9c91264ce011ff1390abf65997ac6cb39cce3b947ed250cccd97aaa6c971c2bacdfb93f4558760458157f6e28088736dbf29554ef9030fa16e3fef5c1e1c7b6
DIST gopls-0.17.1.tar.gz 7451067 BLAKE2B b0064bd0efb8352b83446e5a53c4f3d46e781965c52da86eb2e8797f9924915d90461abc280c91d657bde9b9b89256146e3fd031ea6667352ad2b4b33cd2627d SHA512 58ab68b1aec77084c7c98a7b25821f622420dddc9f821350d47d1b5db52631789b94dc63a66501af8cd65151ec3b9d8385354d1cd2fb9138373134c71b9ca779
DIST gopls-0.18.1-deps.tar.xz 2209404 BLAKE2B e6e1d7b58af5579efdc3b8ae39eff7c3fb8514495075d69a5d17874628afc99cf026a15f58377cb9b192634d85e1fcc2951d3cc7cfb927b220bca6f6410decb5 SHA512 94674dd78a5c3542df9baa44ab15c63447c29ab721787abcf06dc825712e3ad6be6ac34421d86f6a41d3b7e2464ee3e1cb575402d964d79ea3699553ca3ed95a
DIST gopls-0.18.1.tar.gz 7646170 BLAKE2B 984715eb791213059829fe53ea867c6e262a80806f36962e79edd0649a16684d67f8485fd6f0c1848dc23b92c73b41a89638a55f51466f7f70c132b20cae7389 SHA512 12bf4279cd21c3bc7caba3376710292946e2acf1ae1cc8e598fa7ef07d0ca3061b020a0a5d2397cef190a43daa911072a0c7045d9d4fc54b94450d4b8fe96fd3
DIST gopls-0.9.5-deps.tar.xz 22410984 BLAKE2B 5f15c1b8fa75fac10b0b126071968ff9640200844df82a0f1586f7d119b99ce70dad2e05c11230241c1b02428f7a17034750c6bf04062316371623539c618e12 SHA512 190a63a20c89c7a647495a9e8fc20181bc570e3dc8a6c85c944f5da8a76bcd9d29d72a05bf9186e578928cdc5f14d548229f59b8771c1e7a3c2d72579da7082a
DIST gopls-0.9.5.tar.gz 3163807 BLAKE2B 3792676e4f3f7cd5abdfde35d875914982edd4d0cce370ff2fb74f36eb5dc9bacd0f494a3f3668befd6fd40ebd62b3cec077953505b9f68f7795f3d3eb2ab4f2 SHA512 55bb1128920854f6d4c8b61ce8edf8b97d3ae14dc5ecf8cb9c8eea06223be9920161e6e0c3bfe27ebac144fc85de753ed98dde8284b817e669fecfd688c7e10e

View File

@ -0,0 +1,34 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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.23.4"
SRC_URI="
${ARCHIVE_URI}
https://github.com/douglarek/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz -> ${P}-deps.tar.xz
"
# TODO: fix test failure with deps tarball
RESTRICT+=" test"
S=${WORKDIR}/tools-gopls-v${PV}/${PN}
src_compile() {
ego build
}
src_test() {
go test -work "./..." || die
}
src_install() {
dobin gopls
dodoc -r doc README.md
}

View File

@ -1,9 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>douglarek@gmail.com</email>
<name>Leo Douglas</name>
</maintainer>
<maintainer type="person">
<email>zmedico@gentoo.org</email>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">golang/tools</remote-id>
</upstream>