summaryrefslogtreecommitdiff
path: root/app-emacs/cask-mode
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/cask-mode')
-rw-r--r--app-emacs/cask-mode/Manifest2
-rw-r--r--app-emacs/cask-mode/cask-mode-0.1.ebuild29
2 files changed, 18 insertions, 13 deletions
diff --git a/app-emacs/cask-mode/Manifest b/app-emacs/cask-mode/Manifest
index c9be42fdce5a..57a087b74316 100644
--- a/app-emacs/cask-mode/Manifest
+++ b/app-emacs/cask-mode/Manifest
@@ -1,4 +1,4 @@
AUX 50cask-mode-gentoo.el 170 BLAKE2B 04561e2a93cf163bd9ca76286df64d1876c808f470c59b3072dc4427b0047fe5cc8307a915e83bb429f8b54708c42d17ff581431a494d5892106836c07bfe052 SHA512 753fe32c4a3586fceba21c914c479fedb09c2d97ab1d5863c65a4003b06addc7d6afa9794492426035930c191691e423a56612679d2816e14c8d86289be483c1
DIST cask-mode-0.1.tar.gz 42693 BLAKE2B 07c3cd998aee36d275c0d3d5dfdb190a1ad59aaa72695272e7dc33e410413de6723003ae28f30e91f96f0ea95142e97cf7fda28a1986fbd509bd281de91693c1 SHA512 4b9861e9fb5a69db476a32b3cc2cfec8e9418d618cb2e348f1476d6aefa22615c539dd3666914be5c42aed1370d5835c7b78775d3bb4578df845b16dbda91727
-EBUILD cask-mode-0.1.ebuild 759 BLAKE2B 8d8d91df59bccb9749016fc21f59ad1b4b149ffe50e48cb4fcbcb645b5a14175601830ff77638e8fa8f67d43f52c40fe55a33a63b74f766b93b44d3ca0c2f55e SHA512 5e67679405037306a0d5cb5f9b0caeadd6c46dc7a890c6b7079228c7ac89c376d47bfb1f780aba0e9f93bdcb822ee7120116f7fcce50ede74a6f9bb40bce208f
+EBUILD cask-mode-0.1.ebuild 775 BLAKE2B 8870d40eefb9b3415bc6be96635abac33baae6af2020153d24bca5e54dff567dd242eecfb45e66c606c5bb99790f82cad8766e4fa4e549318487e9c4adb05b60 SHA512 15ef261da959639a8eeeab9255e219f7a8f4977465bcac2f158753cdfc15db0eed2ce0984c793ddc2ee9065c5985c984d3b2dff90b413db657a8be58850e748a
MISC metadata.xml 615 BLAKE2B ca8d85e1b0214f815d5c92fbcf54f473ef82b230f818b037f14814154daa032135581344da77e609e1d88280c150cab34d4fa79128f884a1638f0a37625ab547 SHA512 2726ce9169b3e4e4bab0e5b912ab3cd7b7f305adbf3c726dd4d8c7053ecb9f62038c037e14314911ad47325502c4fe5d0923ef26efea0f40b9b9aa70b50fc67f
diff --git a/app-emacs/cask-mode/cask-mode-0.1.ebuild b/app-emacs/cask-mode/cask-mode-0.1.ebuild
index f86dea2e9c3a..03398c956339 100644
--- a/app-emacs/cask-mode/cask-mode-0.1.ebuild
+++ b/app-emacs/cask-mode/cask-mode-0.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,32 +7,37 @@ inherit elisp
DESCRIPTION="Major mode for editing Cask files for Emacs"
HOMEPAGE="https://github.com/Wilfred/cask-mode/"
-SRC_URI="https://github.com/Wilfred/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/Wilfred/${PN}.git"
+else
+ SRC_URI="https://github.com/Wilfred/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
LICENSE="GPL-2+"
-KEYWORDS="~amd64 ~x86"
SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
BDEPEND="
test? (
app-emacs/assess
- app-emacs/ert-runner
)
"
DOCS=( README.md )
SITEFILE="50${PN}-gentoo.el"
+elisp-enable-tests ert-runner test
+
src_prepare() {
elisp_src_prepare
# Silence a broken test
- sed "s|ert-deftest cask-mode-highlight-comment|lambda|" \
- -i test/${PN}-test.el || die
-}
-
-src_test() {
- ert-runner -L . -L test --reporter ert+duration --script test || die
+ sed -i "test/${PN}-test.el" \
+ -e "s|ert-deftest cask-mode-highlight-comment|lambda|" \
+ || die
}