commit:     afa092ba14a1c95f7daf9199fd65216c7e271a50
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 18:20:42 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 19:51:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afa092ba

app-emacs/ht: minor tweaks

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

 app-emacs/ht/ht-2.3.ebuild | 24 ++++++++++++++----------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git a/app-emacs/ht/ht-2.3.ebuild b/app-emacs/ht/ht-2.3.ebuild
index 57af14755328..c5b952f5298a 100644
--- a/app-emacs/ht/ht-2.3.ebuild
+++ b/app-emacs/ht/ht-2.3.ebuild
@@ -7,14 +7,21 @@ inherit elisp
 
 DESCRIPTION="The missing hash table library for Emacs"
 HOMEPAGE="https://github.com/Wilfred/ht.el";
-SRC_URI="https://github.com/Wilfred/ht.el/archive/${PV}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/ht.el-${PV}"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/Wilfred/ht.el.git";
+else
+       SRC_URI="https://github.com/Wilfred/ht.el/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+       S="${WORKDIR}/ht.el-${PV}"
+
+       KEYWORDS="amd64 ~arm64"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="amd64 ~arm64"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=app-emacs/dash-2.12.0
@@ -23,13 +30,10 @@ BDEPEND="
        ${RDEPEND}
        test? (
                app-emacs/f
-               app-emacs/ert-runner
        )
 "
 
-DOCS="CHANGELOG.md README.md"
+DOCS=( CHANGELOG.md README.md )
 SITEFILE="50${PN}-gentoo.el"
 
-src_test() {
-       ert-runner --reporter ert+duration --script || die
-}
+elisp-enable-tests ert-runner .

Reply via email to