blob: 697045ab418520e8724f6a1b784122f0ff045665 (
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
40
41
42
43
44
45
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Tracks your time from the command line, and generates reports"
HOMEPAGE="https://timewarrior.net"
SRC_URI="https://github.com/GothenburgBitFactory/timewarrior/releases/download/v${PV}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
src_configure() {
local mycmakeargs=(
-DTIMEW_DOCDIR=share/doc/${PF}
)
cmake_src_configure
}
src_test() {
cd "${WORKDIR}"/"${P}"_build || die
eninja test
}
src_install() {
cmake_src_install
dodoc -r ext
docompress -x /usr/share/doc/${PF}/ext/{on-modify.timewarrior,README}
doman doc/man1/*.1
doman doc/man7/*.7
}
pkg_postinst() {
elog "To integrate timewarrior with taskwarrior, issue the following commands:"
elog "cp /usr/share/doc/${PF}/ext/on-modify.timewarrior ~/.task/hooks/"
elog "chmod +x ~/.task/hooks/on-modify.timewarrior"
elog "see https://timewarrior.net/docs/taskwarrior.html"
}
|