mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
dev-build/bazel-buildtools: bump to 8.2.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
fe93450043
commit
9f4a352d3a
@ -1,2 +1,3 @@
|
||||
DIST bazel-buildtools-8.2.0-deps.tar.xz 3588700 BLAKE2B 82fe1d797e440645547a4ae318bc0b0072dd5047d0072a80510378c5f874e0219c20c082519eb55c6d3e8cbf28e3ce78505fc84ff2893de9cac481ecd8637522 SHA512 8fb81400bbc8a2333c18942799882491057e385b19c4227e8873628d83f909c86d4a6aeb551c064282d8d57bc1323bf1d3a837a8d00026682b0dc3c353ad9c9e
|
||||
DIST bazel-buildtools-8.2.0.gh.tar.gz 337672 BLAKE2B e7ad07e9d9f4170cb82e274c91a7206016756ba37c51de6e39a08cd51c6696b3f0f51b66af9e87a85ac7c064a6fc16816851cc48cea0105327a07014a20236a4 SHA512 19d58df3b1a794e04eb25afcc4310be92dfc021643b23056adb89e66c2ef93c11475f6ef4c16347abaf66e79ef70655ca3ffaff5f701d6dd1eb9c88cba6cae10
|
||||
DIST bazel-buildtools-8.2.1.gh.tar.gz 342493 BLAKE2B 7d321fc59a075b0835bff9e17f237decd701f9f93efe260b9f954c1583d11c5676ebd28cd782fac39bc6df3dbd7d2a85e33124ee73f692cc69a13bd41ad9bbca SHA512 54b02044ca8e68d07a45f3ed1c1eb0ae3c30e1477b8a0cfba90240fb49f97bf75ae8addfd2ab379ee4c77c1d63c60f2e04392fe1302b43c212fee9957a184479
|
||||
|
||||
69
dev-build/bazel-buildtools/bazel-buildtools-8.2.1.ebuild
Normal file
69
dev-build/bazel-buildtools/bazel-buildtools-8.2.1.ebuild
Normal file
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
REAL_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/${REAL_PN}"
|
||||
else
|
||||
SRC_URI="https://github.com/bazelbuild/${REAL_PN}/archive/refs/tags/v${PV}.tar.gz
|
||||
-> ${P}.gh.tar.gz"
|
||||
S="${WORKDIR}/${REAL_PN}-${PV}"
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
SRC_URI+="
|
||||
https://dev.gentoo.org/~xgqt/distfiles/deps/${PN}-8.2.0-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 go_ldopts="
|
||||
-X main.buildScmRevision=v${PV}
|
||||
-X main.buildVersion=${PV}
|
||||
"
|
||||
local -a go_buildopts=(
|
||||
-ldflags "${go_ldopts}"
|
||||
-o ./bin/
|
||||
)
|
||||
ego build "${go_buildopts[@]}" ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /usr/bin
|
||||
doexe ./bin/{buildifier,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"'.
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user