summaryrefslogtreecommitdiff
path: root/app-emacs/cond-let/cond-let-1.1.4.ebuild
blob: de276b0daa0c3b105fb1e18d1b3e9ab8d1bac59e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

NEED_EMACS="28.1"

inherit elisp

DESCRIPTION="Additional and improved binding conditionals for GNU Emacs"
HOMEPAGE="https://github.com/tarsius/cond-let/
	https://github.com/tarsius/cond-let/wiki/"

if [[ "${PV}" == *9999* ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/tarsius/${PN}"
else
	SRC_URI="https://github.com/tarsius/${PN}/archive/v${PV}.tar.gz
		-> ${P}.gh.tar.gz"

	KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv x86"
fi

LICENSE="GPL-3+"
SLOT="0"

DOCS=( README.org )
SITEFILE="50${PN}-gentoo.el"

elisp-enable-tests ert . -l "${PN}-tests.el"

src_install() {
	rm -f "${PN}-tests.el"* || die
	elisp_src_install
}