blob: 4f61deb30b25bb04b0555aa9f92dcd40ab7dc49c (
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
36
37
38
39
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit elisp
DESCRIPTION="Emacs timestamp and date-time library"
HOMEPAGE="https://github.com/alphapapa/ts.el"
if [[ ${PV} == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/alphapapa/ts.el.git"
else
[[ ${PV} == 0.3 ]] && COMMIT=552936017cfdec89f7fc20c254ae6b37c3f22c5b
SRC_URI="https://github.com/alphapapa/ts.el/archive/${COMMIT}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}"/ts.el-${COMMIT}
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-3+"
SLOT="0"
RDEPEND="
app-emacs/dash
app-emacs/s
"
BDEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/ts-0.3-test.patch )
DOCS=( README.org notes.org )
SITEFILE="50${PN}-gentoo.el"
src_test() {
LANG=C TZ=/usr/share/zoneinfo/America/Chicago \
elisp-test-ert test -l test/test.el
}
|