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: Sat, 11 Jan 2025 02:02:25 +0000 (UTC) [thread overview]
Message-ID: <1736560943.eebdff0d6c9ccb778579e64ead227d5441459862.xgqt@gentoo> (raw)
commit: eebdff0d6c9ccb778579e64ead227d5441459862
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 11 01:47:10 2025 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Jan 11 02:02:23 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eebdff0d
dev-build/bazel-buildtools: bump to 8.0.0
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
dev-build/bazel-buildtools/Manifest | 2 +
.../bazel-buildtools/bazel-buildtools-8.0.0.ebuild | 69 ++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/dev-build/bazel-buildtools/Manifest b/dev-build/bazel-buildtools/Manifest
index baea0fd76a00..5be018f4df64 100644
--- a/dev-build/bazel-buildtools/Manifest
+++ b/dev-build/bazel-buildtools/Manifest
@@ -1,2 +1,4 @@
DIST bazel-buildtools-7.3.1-deps.tar.xz 3588840 BLAKE2B 9b0766803201b9bee5329865714b9ed798b06b32b77f3b80efbd31fe9cbe8f6397f9a29c9e0947b1609ae20a697bddb8c2db934c28609aa58bfd9cf343dab923 SHA512 136c1493f688b4b90d31a7f90c3c8e3e62cc26824dcf679d321a649c99638780fcd27771c31e21d6afc0272b249cbfdaf78a07fa2335c904c1f966da1ca0b561
DIST bazel-buildtools-7.3.1.tar.gz 330909 BLAKE2B 15d3ce94411bbc33f166b15f94699ac4fee373ff29f7f8226800776845611f29b1e0557bb62441fa62540792b63f634062de376ba1587e7c91d0504d6a66424f SHA512 3c06bdf7b6bb7cbe9a9f455e31be16bf36b97769515c761bda2e11a39d4eb12d8e65e7ea051e58ad26b782a93fadb5dd8221c30f75cc96d5ddd3abadce7fdbe2
+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
diff --git a/dev-build/bazel-buildtools/bazel-buildtools-8.0.0.ebuild b/dev-build/bazel-buildtools/bazel-buildtools-8.0.0.ebuild
new file mode 100644
index 000000000000..1f295e34f2cb
--- /dev/null
+++ b/dev-build/bazel-buildtools/bazel-buildtools-8.0.0.ebuild
@@ -0,0 +1,69 @@
+# 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"'.
+}
next reply other threads:[~2025-01-11 2:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 2:02 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-07 19:34 [gentoo-commits] repo/gentoo:master commit in: dev-build/bazel-buildtools/ 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
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=1736560943.eebdff0d6c9ccb778579e64ead227d5441459862.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