public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-build/bazel-buildtools/
Date: Wed, 02 Jul 2025 00:12:09 +0000 (UTC)	[thread overview]
Message-ID: <1751415123.9f4a352d3a500c53ae7eecf5659d039b1d58bdbb.xgqt@gentoo> (raw)

commit:     9f4a352d3a500c53ae7eecf5659d039b1d58bdbb
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  1 22:38:43 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed Jul  2 00:12:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f4a352d

dev-build/bazel-buildtools: bump to 8.2.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-build/bazel-buildtools/Manifest                |  1 +
 .../bazel-buildtools/bazel-buildtools-8.2.1.ebuild | 69 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-build/bazel-buildtools/Manifest b/dev-build/bazel-buildtools/Manifest
index 105a606ae4cc..ffe83c6c0522 100644
--- a/dev-build/bazel-buildtools/Manifest
+++ b/dev-build/bazel-buildtools/Manifest
@@ -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

diff --git a/dev-build/bazel-buildtools/bazel-buildtools-8.2.1.ebuild b/dev-build/bazel-buildtools/bazel-buildtools-8.2.1.ebuild
new file mode 100644
index 000000000000..f92a0247767f
--- /dev/null
+++ b/dev-build/bazel-buildtools/bazel-buildtools-8.2.1.ebuild
@@ -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"'.
+}


             reply	other threads:[~2025-07-02  0:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-02  0:12 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-18 21:50 [gentoo-commits] repo/gentoo:master commit in: dev-build/bazel-buildtools/ Maciej Barć
2025-08-19 21:03 Sam James
2025-08-19 17:32 Arthur Zamarin
2025-07-01  0:33 Maciej Barć
2025-06-06 21:20 Sam James
2025-06-06 21:20 Sam James
2025-05-03 14:33 Maciej Barć
2025-05-03 14:33 Maciej Barć
2025-03-24 11:46 Sam James
2025-03-24 11:46 Sam James
2025-03-07 19:34 Maciej Barć
2025-03-07 19:34 Maciej Barć
2025-02-23 16:09 Arthur Zamarin
2025-02-23 16:09 Arthur Zamarin
2025-02-09 20:50 Maciej Barć
2025-02-09 20:50 Maciej Barć
2025-02-04 12:52 Maciej Barć
2025-01-21 23:04 Maciej Barć
2025-01-11  6:37 Sam James
2025-01-11  6:37 Sam James
2025-01-11  2:02 Maciej Barć
2024-10-24  8:05 Arthur Zamarin
2024-10-20  0:00 Maciej Barć

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1751415123.9f4a352d3a500c53ae7eecf5659d039b1d58bdbb.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox