commit:     0ae9f2dcb49aced2cb8b4c483616ee2caaebb7b5
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 15 19:13:09 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Jan 15 21:20:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ae9f2dc

app-emacs/citeproc-el: add missing compat dependency

Closes: https://bugs.gentoo.org/922150
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 ...el-0.9.4.ebuild => citeproc-el-0.9.4-r1.ebuild} | 26 +++++++++++++---------
 1 file changed, 16 insertions(+), 10 deletions(-)

diff --git a/app-emacs/citeproc-el/citeproc-el-0.9.4.ebuild 
b/app-emacs/citeproc-el/citeproc-el-0.9.4-r1.ebuild
similarity index 59%
rename from app-emacs/citeproc-el/citeproc-el-0.9.4.ebuild
rename to app-emacs/citeproc-el/citeproc-el-0.9.4-r1.ebuild
index 15506aca0ab1..19feb1b9cbbb 100644
--- a/app-emacs/citeproc-el/citeproc-el-0.9.4.ebuild
+++ b/app-emacs/citeproc-el/citeproc-el-0.9.4-r1.ebuild
@@ -9,17 +9,26 @@ inherit elisp
 
 DESCRIPTION="CSL 1.0.2 Citation Processor for Emacs"
 HOMEPAGE="https://github.com/andras-simonyi/citeproc-el";
-SRC_URI="https://github.com/andras-simonyi/${PN}/archive/${PV}.tar.gz
-       -> ${P}.tar.gz"
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/andras-simonyi/${PN}.git";
+else
+       SRC_URI="https://github.com/andras-simonyi/${PN}/archive/${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="~amd64"
+fi
 
 LICENSE="GPL-3+"
 SLOT="0"
-KEYWORDS="~amd64"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
        >=app-editors/emacs-26:*[libxml2]
+       app-emacs/compat
        app-emacs/dash
        app-emacs/f
        app-emacs/parsebib
@@ -38,10 +47,7 @@ BDEPEND="
 DOCS=( README.md )
 SITEFILE="50${PN}-gentoo.el"
 
-src_test() {
-       ${EMACS} ${EMACSFLAGS} -L . -L test \
-               -l citeproc-test-human.el \
-               -l test/citeproc-test-int-biblatex.el \
-               -l test/citeproc-test-int-formatters.el \
-               -f ert-run-tests-batch-and-exit || die
-}
+elisp-enable-tests ert test                                            \
+       -l citeproc-test-human.el                                       \
+       -l test/citeproc-test-int-biblatex.el           \
+       -l test/citeproc-test-int-formatters.el

Reply via email to