commit:     51183cd7a1eb8a49aeebf76f91bbdfbaac8e3077
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 18:44:32 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 19:51:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51183cd7

app-emacs/parseclj: minor tweaks

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

 app-emacs/parseclj/parseclj-1.1.1.ebuild | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/app-emacs/parseclj/parseclj-1.1.1.ebuild 
b/app-emacs/parseclj/parseclj-1.1.1.ebuild
index 093bb113f3b6..e17fcc8ef904 100644
--- a/app-emacs/parseclj/parseclj-1.1.1.ebuild
+++ b/app-emacs/parseclj/parseclj-1.1.1.ebuild
@@ -7,20 +7,22 @@ inherit elisp
 
 DESCRIPTION="Clojure Parser for Emacs Lisp"
 HOMEPAGE="https://github.com/clojure-emacs/parseclj/";
-SRC_URI="https://github.com/clojure-emacs/${PN}/archive/v${PV}.tar.gz
-       -> ${P}.tar.gz"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/clojure-emacs/${PN}.git";
+else
+       SRC_URI="https://github.com/clojure-emacs/${PN}/archive/v${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="amd64 ~x86"
+fi
 
 LICENSE="GPL-3+"
-KEYWORDS="amd64 ~x86"
 SLOT="0"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="test? ( app-emacs/ert-runner )"
 
 DOCS=( CHANGELOG.md DESIGN.md README.md )
 SITEFILE="50${PN}-gentoo.el"
 
-src_test() {
-       ert-runner -L . -L test --reporter ert+duration --script test || die
-}
+elisp-enable-tests ert-runner test

Reply via email to