diff options
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/deferred/deferred-0.5.1.ebuild | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/app-emacs/deferred/deferred-0.5.1.ebuild b/app-emacs/deferred/deferred-0.5.1.ebuild index a100c8ead3a6..4e20dcf7871a 100644 --- a/app-emacs/deferred/deferred-0.5.1.ebuild +++ b/app-emacs/deferred/deferred-0.5.1.ebuild @@ -7,18 +7,24 @@ inherit elisp DESCRIPTION="Deferred and Concurrent - simple asynchronous functions for Emacs Lisp" HOMEPAGE="https://github.com/kiwanami/emacs-deferred/" -SRC_URI="https://github.com/kiwanami/emacs-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}"/emacs-${P} + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/kiwanami/emacs-${PN}.git" +else + SRC_URI="https://github.com/kiwanami/emacs-${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/emacs-${P}" + + KEYWORDS="amd64 ~arm64 ~x86" +fi LICENSE="GPL-3+" -KEYWORDS="amd64 ~arm64 ~x86" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" BDEPEND=" test? ( - app-emacs/ert-runner app-emacs/undercover ) " @@ -27,9 +33,10 @@ DOCS=( README-concurrent.ja.markdown README-concurrent.markdown README.ja.markdown README.markdown sample ) # "Concurrent" tests pass, "Deferred" tests are malformed -ELISP_REMOVE="test/${PN}-test.el" +ELISP_REMOVE=" + test/${PN}-test.el +" + SITEFILE="50${PN}-gentoo.el" -src_test() { - ert-runner --reporter ert+duration || die -} +elisp-enable-tests ert-runner test |