commit:     ebffc5024ece7bd128579f15966653532331075d
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 29 15:52:01 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Jul 29 16:09:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebffc502

app-emacs/emacs-bazel-mode: bump to 0_p20230511

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

 app-emacs/emacs-bazel-mode/Manifest                |  1 +
 .../emacs-bazel-mode-0_p20230511.ebuild            | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/app-emacs/emacs-bazel-mode/Manifest 
b/app-emacs/emacs-bazel-mode/Manifest
index 65356b4188a0..15b1d6f9485e 100644
--- a/app-emacs/emacs-bazel-mode/Manifest
+++ b/app-emacs/emacs-bazel-mode/Manifest
@@ -1 +1,2 @@
 DIST emacs-bazel-mode-0_p20220707.tar.gz 63821 BLAKE2B 
fadd0a26c02d0fd6ee92d34ca70cbb1ae3ea873317f97195849993ed94c55e404cfa1eae3f0e94eb81b80ec814dbf5e705ef98f1b23bfc7158a8a14ed32e6276
 SHA512 
cf654de1b46e562a090b933bc08e2651a5c88b9a01502413cc38f86d849cd1fd698e52d7ad737f4d0b43ea49180fb33eb200c5102ac57df1ca9b65bd175f431d
+DIST emacs-bazel-mode-0_p20230511.tar.gz 64614 BLAKE2B 
87c53388df15ac73a6587ebdd73d7e1637db0d8ba68d53eadd4e4fabc11166ae2642a0e6607d543e65e61ebdc832ab12a6a2471cf52fe7ae3cefe4ffb9fdb6e7
 SHA512 
b169264ef62abf4d38da71ca0819575ecfc315291dfba88d887ab129000998fe1ff8b6427e4f275fe5fb108245987f909895829be367285102e4d8786217891f

diff --git a/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230511.ebuild 
b/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230511.ebuild
new file mode 100644
index 000000000000..7af3b4d5d970
--- /dev/null
+++ b/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230511.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=27.1
+
+inherit elisp
+
+DESCRIPTION="Emacs major modes for the Bazel build system support"
+HOMEPAGE="https://bazel.build/
+       https://github.com/bazelbuild/emacs-bazel-mode/";
+
+if [[ ${PV} == *9999* ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/bazelbuild/${PN}.git";
+else
+       [[ ${PV} == *_p20230511 ]] && 
COMMIT=55cba9bd31c660d9b313a993979f012f35673ba2
+       SRC_URI="https://github.com/bazelbuild/${PN}/archive/${COMMIT}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}"/${PN}-${COMMIT}
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+RESTRICT="test"                 # Tests fail.
+
+DOCS=( CONTRIBUTING.md README.md )
+SITEFILE="50${PN}-gentoo.el"
+
+elisp-enable-tests ert "${S}" -l test.el
+
+src_compile() {
+       elisp-compile bazel.el
+       elisp-make-autoload-file
+}
+
+src_test() {
+       TEST_SRCDIR="." TEST_WORKSPACE="." elisp_src_test
+}
+
+src_install() {
+       rm test.el || die
+
+       elisp_src_install
+}

Reply via email to