dev-build/bazel-buildtools: drop old 8.0.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-03-07 20:08:35 +01:00
parent 148da8dd33
commit 0fa0450616
2 changed files with 0 additions and 70 deletions

View File

@@ -1,4 +1,3 @@
DIST bazel-buildtools-8.0.0-deps.tar.xz 3587652 BLAKE2B d33d6136591c1e1835cb2de4b707e324a53034284fa54ff4beaddad90f2cc23b2f6d6a1cca9c856d0de38b32efd03a34affafaf7c1e4f97c6c6e23b44febab28 SHA512 d2ab670cd16667e4034ae3342aec00b1916739debaa9280f8efb4d7c8c482366014c7055201e96b4cb1a327b9d8141613ecb13bf44d5ed73f9002433b784febe
DIST bazel-buildtools-8.0.0.tar.gz 332898 BLAKE2B 45a94e3bba1f0a4cc810f2e7f9b65cd11307e37f29b633936fc0f8661cf3439e8c25b79c011547e7f0394b141b21f7e565de1cd1d4b465fb901894238e701325 SHA512 3ff66b64001979e2b5fbb85dbb64b6452b1a0138ececcce0d3e3a29b9bf932346180fdff2f5f809073386d545721fc3a5b53e6bd106a05da2c1ab844e2daa436
DIST bazel-buildtools-8.0.1.tar.gz 335114 BLAKE2B 264caaa59066e1a55bbcc053c64d65f68e6ecf72f483b1318bf7b9b56cda598cc09b58c6bdbac2f7aaf4e778e553b7c3b6b5d21127a3abe1267e4d00b070ccd8 SHA512 0d3f76d26d8c9b9b9d13cc777fc33c407f6802f1f3a88b306127edc40005e86acc8adb33160810ce187a2eb22d1890db1c3e51986059f3649386d412d75dcb79
DIST bazel-buildtools-8.0.3.gh.tar.gz 337647 BLAKE2B 67826fc7ed1b21ff2148acdb96c64b000291af0ce69b5c2750920299b47ccd1b978628828895e875663d2ed6f7392a71f11c71b39f1b274c8022f534e642bef6 SHA512 1d28c409090b2be4de3f02735cf00673fb59e64cfb492e30af79a52a048ae43f3ace56df041bf4402e967e2bef8e71fde897ac8e1dbeeaed30f63a359924647c

View File

@@ -1,69 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
APP_PN="buildtools"
inherit go-module
DESCRIPTION="Tools for working with Google's Bazel BUILD files."
HOMEPAGE="https://github.com/bazelbuild/buildtools/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/bazelbuild/${APP_PN}.git"
else
SRC_URI="https://github.com/bazelbuild/${APP_PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${APP_PN}-${PV}"
KEYWORDS="amd64 arm64 ~x86"
fi
SRC_URI+="
https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
"
LICENSE="Apache-2.0"
SLOT="0"
DOCS=( README.md WARNINGS.md )
src_prepare() {
default
rm ./warn/docs/docs.go || die
}
src_compile() {
local -r go_ldopts="
-X main.buildScmRevision=v${PV}
-X main.buildVersion=${PV}
"
local -a -r go_buildopts=(
-ldflags "${go_ldopts}"
-o ./bin/
)
ego build "${go_buildopts[@]}" ./...
}
src_install() {
exeinto /usr/bin
doexe ./bin/{buildifier{,2},buildozer}
newexe ./bin/generatetables bazel-generatetables
newexe ./bin/unused_deps bazel-unused_deps
local app=""
for app in buildifier buildozer unused_deps ; do
newdoc "${S}/${app}/README.md" "${app}.md"
done
einstalldocs
}
pkg_postinst() {
einfo 'The "generatetables" binary is installed as "bazel-generatetables"'
einfo 'and the "unused_deps" binary is installed as "bazel-unused_deps"'.
}