diff options
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/Manifest.gz | bin | 4207 -> 4207 bytes | |||
-rw-r--r-- | dev-go/go-tools/Manifest | 3 | ||||
-rw-r--r-- | dev-go/go-tools/go-tools-0.28.0.ebuild | 48 | ||||
-rw-r--r-- | dev-go/gopls/Manifest | 3 | ||||
-rw-r--r-- | dev-go/gopls/gopls-0.17.0.ebuild | 43 |
5 files changed, 97 insertions, 0 deletions
diff --git a/dev-go/Manifest.gz b/dev-go/Manifest.gz Binary files differindex e98f40034a7c..d741cb752c22 100644 --- a/dev-go/Manifest.gz +++ b/dev-go/Manifest.gz diff --git a/dev-go/go-tools/Manifest b/dev-go/go-tools/Manifest index 9193e331a075..96a3dbf8b0fc 100644 --- a/dev-go/go-tools/Manifest +++ b/dev-go/go-tools/Manifest @@ -4,7 +4,10 @@ DIST go-tools-0.20.0-deps.tar.xz 383336 BLAKE2B 0bddd81087bae28c2d874a2ea647a529 DIST go-tools-0.20.0.tar.gz 3779878 BLAKE2B 42175d921dfb5acb25c9eee224138675619860aefaca09db8e354481c146faa52b2fcc64d99953d8508a79ce8375ebcc42a1e7d20f4721e55b8c843989565fbc SHA512 c67706593d0a48f941955e40cadc1e39961b07ba51c9342b302ba99f93a1e55b9feec21d6171ee370f96293253be27b480274d48a16eff1055373f81b73f2dd9 DIST go-tools-0.24.0-deps.tar.xz 423048 BLAKE2B 0df1a18476c207e26c5397aa81d475e96ac00cbf9460899c3e66804963b5661befcd648f0bc51bf67775b533c370dcf634939bd6c5efad5ee289f73233c09b66 SHA512 f4eb6bfc918b947b6903e260edc99f71ebea4b8c39a118526608b9c86712e97029ab4473fd617dc8377a7021a8b606d267abf686c4a36a37556f828afd53fb4c DIST go-tools-0.24.0.tar.gz 6977100 BLAKE2B ca0a9c5d3e41ca9accbacfc4074827bb3750c7bab8b20a80c76998dc4078d889eeaaf0f7fc6cd3864b5613c8474175d626165a5e20ada12876afa0279d325887 SHA512 bb41b620d4e3fe2c028a618656b47e28e9ecf2ecc49bb70dcd919948d0c6a4eeeded04ef2fa7604307029686605d5d809ff671dc1b0d3143af7100e4e480a444 +DIST go-tools-0.28.0-deps.tar.xz 424928 BLAKE2B 1c970a5e4c1b278852307a4c980d7f64d3caf288005f1bd25d422745c333d8cb5bf671a11d8c3d28e5a578cca4c4c1bc28179b06df91c3efbb7d33d7701c384e SHA512 a1df8204d19e8e0a6cd0aaa292c6b4258e456abb37f28a11e1580c8709437fa400b886e21a37cb28eca22a8dd8fc1cce467aad8c4998247cd729df052fd08c9b +DIST go-tools-0.28.0.tar.gz 7452244 BLAKE2B a8721c39cb03b93e68c84138df1e580d7033bc8440e7300894d80cbd2e997537e946235d47e183c78e71e3c40c603a35556124755332581c2557a6b433c8d0bf SHA512 325595736259e74b2249ba183d73690d557e64d80183d109a2f443ccd1e64146595a367452639e2d032b194b31615eb2ecdd4b971ae9a8bbb06fa68b5578a713 EBUILD go-tools-0.1.10.ebuild 3154 BLAKE2B d7c9fdf00403575337c88fe2785ead8f29ffb710f1f15636ecae98c879d8d132016bd391a1ee2ceb22e4316584f79c363ada411ee7afc9110c84822870498b71 SHA512 77b81f53692a7a8d1d0f29cc27236f6e4ffa7d9775edfc565b3fb17a1314b4e59111ee483f121310e8a4471b6af5de8b6ccaed6483053cc8f7381f7e4c7deeee EBUILD go-tools-0.20.0.ebuild 1583 BLAKE2B 2e22f679ad7d10cdafef4578964b734fa585fe30b22c99f85e0e4e298dfa7766aba992960746f416c039c8a98ca605eb81d193644a17df6cfbae9e1b2c45a26b SHA512 5249e36e63c9b326d5fa52e41f9818b5cf5e4dd54d5a424b60a1ca53a18362b4ff482d733cba8f5d3cbe8747756e24da68d8f77c2ff73e7a9bc7d71233c55a2d EBUILD go-tools-0.24.0.ebuild 1491 BLAKE2B 2383d0e4e6e70c31115524ffa596d76b32c0a0799a3aadb96fd6124c24442997d12a6cfee90341aa03eb4db62505e4ca7f28f8e1c766972cad6ef05803f605e0 SHA512 c7c37f31f38b1e6008df05bb3260b0111b1c27c4718a905aa7d2639429301ce41436fbbcb2b42e17a435e6d6413478db570b23f6502aece934a9ecceb0e65d59 +EBUILD go-tools-0.28.0.ebuild 1491 BLAKE2B 2383d0e4e6e70c31115524ffa596d76b32c0a0799a3aadb96fd6124c24442997d12a6cfee90341aa03eb4db62505e4ca7f28f8e1c766972cad6ef05803f605e0 SHA512 c7c37f31f38b1e6008df05bb3260b0111b1c27c4718a905aa7d2639429301ce41436fbbcb2b42e17a435e6d6413478db570b23f6502aece934a9ecceb0e65d59 MISC metadata.xml 304 BLAKE2B eb25bd6c86489f23152684d6eddeabebeb5bf9b2988b386d43d163286b9f38c8f0fe58a9103c45843280cd089d735e73a30e80e0368c3fe53e7bc2b4717603e4 SHA512 81050d8cfe2a1d8f1212613f4a043f0207c192026390bf7abfb68ea6262c12e0f0cd9f4f8c2ed23e62c47666bdb8498cf8fa58e57be5e10a7cd567dfc59e47ed diff --git a/dev-go/go-tools/go-tools-0.28.0.ebuild b/dev-go/go-tools/go-tools-0.28.0.ebuild new file mode 100644 index 000000000000..442e64290744 --- /dev/null +++ b/dev-go/go-tools/go-tools-0.28.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Tools that support the Go programming language (godoc, etc.)" +HOMEPAGE="https://pkg.go.dev/golang.org/x/tools" +SRC_URI="https://github.com/golang/tools/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" +S=${WORKDIR}/${P#go-} + +LICENSE="BSD MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +# Many test failures. +RESTRICT="test" + +GO_TOOLS_BINS=( + authtest benchcmp bisect bundle callgraph compilebench cookieauth + deadcode defers digraph eg fieldalignment file2fuzz findcall fiximports + fuzz-driver fuzz-runner gitauth go-contrib-init godex godoc goimports + gomvpkg gonew gopackages gorename gostacks gotype goyacc html2article + httpmux ifaceassert lostcancel netrcauth nilness nodecount play present + present2md shadow splitdwarf ssadump stress stringer stringintconv + toolstash unmarshal unusedresult +) + +src_compile() { + local bin packages + readarray -t packages < <(ego list ./... | grep -E "/($(echo "${GO_TOOLS_BINS[@]}" | tr ' ' '|'))$") + GOBIN="${S}/bin" ego install -work "${packages[@]}" +} + +src_test() { + ego test -work ./... +} + +src_install() { + # bug 558818: install binaries in $GOROOT/bin to avoid file collisions + local goroot=$(go env GOROOT) + goroot=${goroot#${EPREFIX}} + exeinto "${goroot}/bin" + doexe bin/* + dodir /usr/bin + ln "${ED}/${goroot}/bin/godoc" "${ED}/usr/bin/godoc" || die +} diff --git a/dev-go/gopls/Manifest b/dev-go/gopls/Manifest index 29ebf0516de9..8ecad83096b7 100644 --- a/dev-go/gopls/Manifest +++ b/dev-go/gopls/Manifest @@ -1,7 +1,10 @@ DIST gopls-0.14.2-deps.tar.xz 23278388 BLAKE2B 586e3eebd7b285d9284e573c37eddaae902ffff09567669d6166122f7ea72649079943a1a4572704b0539d11d4fa212bc306452acc99cc0a645985bf216b7dab SHA512 7f439273bacda175494157d3e55da7721b0190ea36b5c261ae814a688d061a5613bd208d7b667bd0934626872bbf0eaab721843882a6e020017e0bae86a47eb5 DIST gopls-0.14.2.tar.gz 3629861 BLAKE2B 1de712ec319319ef2f99722baf8d0397c2cadd72f94d5014b99b54ce2bea625ed517ebc453c8283ef357e38647d8d061fd55a3a65de53540f5c8c7c880bfc715 SHA512 a7b5010d268421c2d9288ea44bf2bf3554d55f7960e0e1c1e9351cf56c105a2c9df7df40cc7eb6b7b6d401c261ac1799074c68108b9876669c1460051050fcad +DIST gopls-0.17.0-deps.tar.xz 2143332 BLAKE2B c0433098f78050c72a22c660a97ae9206983407544a63c35a62376d2ba59f8dffc095b4bac5aa345fd4092411da1b702aeb3c5c181226d933c5fa1f80755ab5d SHA512 9341d6a4f0e5ab3590e0cc3958069caf3a73d7e528c07c2a7d1dd5dbf3d913f45cef4b01fc29cdb34803dad6dfb01d91f983a66d0d2ba4241370aa19d95cc99f +DIST gopls-0.17.0.tar.gz 7450999 BLAKE2B d56aa22229619f7e3a98635992f96d87b4d5b5a111f1aa8d2f69e325a356caf5492447a655e54469128b06c6f808952e8bc53555efc8d49c2a199972933ecf46 SHA512 02206c733aebf43ce20cebd686a00d7f9e1b56cff8a8d4e7b5d8432803e0a2948da69ed482953f05f017454558e7211632f12f35d14259f8d255479fce091200 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 EBUILD gopls-0.14.2.ebuild 828 BLAKE2B a18c12a5969d14a0feaad14c9e48870c2d8d3366d249aca8101a00705dafb818d50647401b32bec880e41d168bbb5d49b0eaf282f5597527f5ab271a231a6010 SHA512 4391bf33bbeb34fba20a4a20f48795053f32d683ddd812c1913a2695b3da77d5c4c16d24f948f1a62fd2b04615865c480184e80fcd2c2730c340e73334dd79c0 +EBUILD gopls-0.17.0.ebuild 842 BLAKE2B ddc25143afc54d1ac1788a8b80896df3d2e1b2a8786a3641d930bc3c391dac627dc0752d2cfd0880f505bf3097460792c6f1a681a43a66034342c638cd3e8a25 SHA512 523e249fbf1658fdb0ca69a72073030f2f20821990f995cbe3633a41d67676695e7f8ae55dd899cc41f17ca2c8193834932f80f2b3c12711eda508a537d5f06e EBUILD gopls-0.9.5.ebuild 918 BLAKE2B 170ab5e13e3262d75e7287e97af8d69059dc4e06d266c2f5f767bcae54d99a0c90f33f1cc37f256a7ec39d29e325d03dbef04ff68665e10a3c3c4984f3884b5e SHA512 8c1750e44bcf6ab8af4a8fe87671733f7f2d862d6ec3bba36284a9bd1fbd63afae3e86a1390de02a3e92a0c35e198a636fb4d13fed13b06c285075e4dec19403 MISC metadata.xml 296 BLAKE2B 648d52b08067cb13811211594b39a985916c22bd5f5fb36d695b790061131622dfc0748429340f3a48e5db927bf7f8ad935cf8884c9453fde5780a396a4ef8df SHA512 3f564045b89d59788d47d3d37d4b0d68dd949c225f27cf6be981b3508b34c796e01df6399f444124c679e1a0c9e6aea36a3eb505680dc0ddf1d39f079d2e0a6d diff --git a/dev-go/gopls/gopls-0.17.0.ebuild b/dev-go/gopls/gopls-0.17.0.ebuild new file mode 100644 index 000000000000..ade42ce20ef6 --- /dev/null +++ b/dev-go/gopls/gopls-0.17.0.ebuild @@ -0,0 +1,43 @@ +# 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.23.1" +SRC_URI=" + ${ARCHIVE_URI} + https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz +" +# TODO: fix test failure with deps tarball +RESTRICT+=" test" + +S=${WORKDIR}/tools-gopls-v${PV}/${PN} + +src_unpack() { + default +} + +src_prepare() { + ln -sv ../../vendor ./ || die + default +} + +src_compile() { + ego build +} + +src_test() { + go test -work "./..." || die +} + +src_install() { + dobin gopls + dodoc -r doc README.md +} |