From 0ae9f2dcb49aced2cb8b4c483616ee2caaebb7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Mon, 15 Jan 2024 20:13:09 +0100 Subject: [PATCH] app-emacs/citeproc-el: add missing compat dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/922150 Signed-off-by: Maciej Barć --- ...9.4.ebuild => citeproc-el-0.9.4-r1.ebuild} | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) rename app-emacs/citeproc-el/{citeproc-el-0.9.4.ebuild => citeproc-el-0.9.4-r1.ebuild} (59%) 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 15506aca0ab17..19feb1b9cbbb1 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