2022-07-09 19:59:59 +02:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2021-08-13 00:14:34 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
2022-07-09 19:59:59 +02:00
|
|
|
|
2021-08-13 00:14:34 +02:00
|
|
|
NEED_EMACS="26.1"
|
|
|
|
|
2022-07-09 19:59:59 +02:00
|
|
|
inherit elisp
|
2021-08-13 00:14:34 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Timestamp and date/time library"
|
|
|
|
HOMEPAGE="https://github.com/alphapapa/ts.el"
|
|
|
|
|
2022-07-09 19:59:59 +02:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/alphapapa/ts.el.git"
|
|
|
|
else
|
|
|
|
MY_PN="${PN}.el"
|
|
|
|
SRC_URI="https://github.com/alphapapa/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
RESTRICT="test"
|
|
|
|
fi
|
2021-08-13 00:14:34 +02:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
2021-10-04 23:04:08 +02:00
|
|
|
SITEFILE="50${PN}-gentoo.el"
|
|
|
|
|
2022-07-09 19:59:59 +02:00
|
|
|
DEPEND="
|
2021-08-13 00:14:34 +02:00
|
|
|
>=app-emacs/dash-2.14.1
|
|
|
|
>=app-emacs/s-1.12.0
|
|
|
|
"
|
2022-07-09 19:59:59 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
2021-08-13 00:14:34 +02:00
|
|
|
|
|
|
|
src_test() {
|
|
|
|
emake test
|
|
|
|
}
|