diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-10-20 01:49:07 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-10-20 02:00:25 +0200 |
commit | a31310285ae3720664f8cf1c148f1109dc840472 (patch) | |
tree | 328e7d3d6804dd97d515d1296744f4c8a2876ef7 /app-emacs | |
parent | dev-build/bazel-buildtools: new package; add 7.3.1 (diff) | |
download | gentoo-a31310285ae3720664f8cf1c148f1109dc840472.tar.gz gentoo-a31310285ae3720664f8cf1c148f1109dc840472.tar.bz2 gentoo-a31310285ae3720664f8cf1c148f1109dc840472.zip |
app-emacs/emacs-bazel-mode: bump to 0_p20230919
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/emacs-bazel-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230919.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/app-emacs/emacs-bazel-mode/Manifest b/app-emacs/emacs-bazel-mode/Manifest index 7cf95f7ed04c..d9b72da1ac37 100644 --- a/app-emacs/emacs-bazel-mode/Manifest +++ b/app-emacs/emacs-bazel-mode/Manifest @@ -1 +1,2 @@ DIST emacs-bazel-mode-0_p20230511.tar.gz 64614 BLAKE2B 87c53388df15ac73a6587ebdd73d7e1637db0d8ba68d53eadd4e4fabc11166ae2642a0e6607d543e65e61ebdc832ab12a6a2471cf52fe7ae3cefe4ffb9fdb6e7 SHA512 b169264ef62abf4d38da71ca0819575ecfc315291dfba88d887ab129000998fe1ff8b6427e4f275fe5fb108245987f909895829be367285102e4d8786217891f +DIST emacs-bazel-mode-0_p20230919.tar.gz 64675 BLAKE2B 1a47e6f8e1876cc7705ec85d75c30b8c01fe161f58d1905f48c6728d9108139ea2a195c571d292b0ed934febec584ff1e58c6298dd15abfe06a02ac7ca8a992c SHA512 4cc275efd3aa0f03482ee938194507adc316e4a8f121b7d07d5e706b53bafe41cbe2bd28027b82de0b403688f56e4c46027458151d695aba1cce18b6a3d5a544 diff --git a/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230919.ebuild b/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230919.ebuild new file mode 100644 index 000000000000..1ff7f762e09a --- /dev/null +++ b/app-emacs/emacs-bazel-mode/emacs-bazel-mode-0_p20230919.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2024 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}" == *_p20230919 ]] && COMMIT="769b30dc18282564d614d7044195b5a0c1a0a5f3" + + 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. + +BDEPEND=" + sys-apps/texinfo +" + +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 + + elisp-org-export-to texinfo ./manual.org + makeinfo ./bazel.el.texi || die +} + +src_test() { + local -x TEST_SRCDIR="${S}" + local -x TEST_WORKSPACE="${S}" + + elisp_src_test +} + +src_install() { + rm ./test.el || die + + elisp_src_install + doinfo ./bazel.el.info +} |