diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /app-emacs/go-mode/go-mode-1.6.0.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'app-emacs/go-mode/go-mode-1.6.0.ebuild')
-rw-r--r-- | app-emacs/go-mode/go-mode-1.6.0.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app-emacs/go-mode/go-mode-1.6.0.ebuild b/app-emacs/go-mode/go-mode-1.6.0.ebuild new file mode 100644 index 000000000000..76def2ac8579 --- /dev/null +++ b/app-emacs/go-mode/go-mode-1.6.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26 + +inherit elisp + +# Upstream didn't create a git tag for version 1.6.0, this source +# tarball is from the repository at commit 3273fcece5d, the commit that +# bumped the version to 1.6.0. + +DESCRIPTION="An improved Go mode for emacs" +HOMEPAGE="https://github.com/dominikh/go-mode.el" +SRC_URI="https://dev.gentoo.org/~matthew/distfiles/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +SITEFILE="50${PN}-1.6.0-gentoo.el" +DOCS=( README.md ) + +src_prepare() { + default + + # fix path to testdata directory when running tests + sed -i 's|testdata|test/&|g' \ + test/go-indentation-test.el || die +} + +src_compile() { + elisp_src_compile + elisp-make-autoload-file +} + +src_test() { + for suite in test/*-test.el; do + ${EMACS} ${EMACSFLAGS} \ + -L . \ + -l ert \ + -l go-mode \ + -l "${suite}" \ + -f ert-run-tests-batch-and-exit || die "test ${suite} failed" + done +} |