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: Tue, 04 Feb 2025 12:52:32 +0000 (UTC)	[thread overview]
Message-ID: <1738673548.e74ccfcecf963c9863d81d30ff201b612cdc2ab5.xgqt@gentoo> (raw)

commit:     e74ccfcecf963c9863d81d30ff201b612cdc2ab5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  4 12:30:44 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Feb  4 12:52:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e74ccfce

dev-build/bazel-buildtools: bump to 8.0.2

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

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

diff --git a/dev-build/bazel-buildtools/Manifest b/dev-build/bazel-buildtools/Manifest
index e4cbc7475a31..eb93560d3a35 100644
--- a/dev-build/bazel-buildtools/Manifest
+++ b/dev-build/bazel-buildtools/Manifest
@@ -3,3 +3,4 @@ DIST bazel-buildtools-7.3.1.tar.gz 330909 BLAKE2B 15d3ce94411bbc33f166b15f94699a
 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.2.gh.tar.gz 337524 BLAKE2B de8cc70c6f40acce93eb8c1aa4be213522cb1e14114ab52c747f2c5b10a115d4eb9f825ed32c3e182482a390c617ff6b97586707debc15bdff6bd148e2bdb153 SHA512 c86cd1a0f5137fe294cdff1604a0d4c14e2f46c02899a0046fe29b57a1fbd58568e03d84cc01d7336b2d61ca87a9e43ee1100bb0ed083114a0ab146098ced47b

diff --git a/dev-build/bazel-buildtools/bazel-buildtools-8.0.2.ebuild b/dev-build/bazel-buildtools/bazel-buildtools-8.0.2.ebuild
new file mode 100644
index 000000000000..a29c2a535ded
--- /dev/null
+++ b/dev-build/bazel-buildtools/bazel-buildtools-8.0.2.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}.git"
+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.0.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{,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"'.
+}


             reply	other threads:[~2025-02-04 12:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-04 12:52 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-02  0:12 Maciej Barć
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-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=1738673548.e74ccfcecf963c9863d81d30ff201b612cdc2ab5.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