From ee10a6c0e8e0cc8cfe1af5a786b32c87df08a2af Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Sun, 6 Oct 2024 20:13:32 +0200 Subject: app-emacs/parsebib: minor tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/parsebib/parsebib-4.3.ebuild | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'app-emacs') diff --git a/app-emacs/parsebib/parsebib-4.3.ebuild b/app-emacs/parsebib/parsebib-4.3.ebuild index 86b48a11e4ab..eccdb4d8583f 100644 --- a/app-emacs/parsebib/parsebib-4.3.ebuild +++ b/app-emacs/parsebib/parsebib-4.3.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,20 +7,22 @@ inherit elisp DESCRIPTION="Emacs Lisp library for reading .bib files" HOMEPAGE="https://github.com/joostkremers/parsebib/" -SRC_URI="https://github.com/joostkremers/${PN}/archive/${PV}.tar.gz - -> ${P}.tar.gz" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/joostkremers/${PN}.git" +else + SRC_URI="https://github.com/joostkremers/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="amd64 ~x86" +fi LICENSE="BSD" -KEYWORDS="amd64 ~x86" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( app-emacs/ert-runner )" DOCS=( 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 -- cgit v1.2.3-65-gdbad