Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/timew/
Date: Thu, 17 Jun 2021 06:49:27
Message-Id: 1623912556.f1a75e5104eabe3925c0b86d15d65e20d5bb4fd0.juippis@gentoo
1 commit: f1a75e5104eabe3925c0b86d15d65e20d5bb4fd0
2 Author: David Denoncin <ddenoncin <AT> gmail <DOT> com>
3 AuthorDate: Mon May 31 22:21:55 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 17 06:49:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a75e51
7
8 app-misc/timew: vbump 1.4.3 and add tests
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.2
11 Signed-off-by: David Denoncin <ddenoncin <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/21068
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-misc/timew/Manifest | 1 +
16 app-misc/timew/timew-1.4.3.ebuild | 42 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 43 insertions(+)
18
19 diff --git a/app-misc/timew/Manifest b/app-misc/timew/Manifest
20 index c8b08a9bf02..0bd242c5a8d 100644
21 --- a/app-misc/timew/Manifest
22 +++ b/app-misc/timew/Manifest
23 @@ -1 +1,2 @@
24 DIST timew-1.4.2.tar.gz 1316841 BLAKE2B c451f37aeb32e999fe2cdca2eb5f234c7424b76f489324d5723a3649da37f53f5094989bdf8d5c2d27f5daa0d75c72ec4a01e3c19b8b064f28e4db82587498b9 SHA512 fe4c3def6b2cd78793dd97a38a61497b3910cd87a3315f826c64893b96a998bf30363f0df1892b74b718d03a279d51c1a636739225e101c5c126794e434076f0
25 +DIST timew-1.4.3.tar.gz 3188726 BLAKE2B ded92b2ba801023e7f6bc59c0fc17ce069c8279ee92f39280c50dabec0a2425b8612f73edf7842abdbb0b21772244eda325512070c091f32d17ff69cfcd844fa SHA512 89c98ad19d3a5ab5d4e02819d79e553cca4e93da99ec02bbf845b96b421cd084f6786de160e90c97854b50da49448472e9a4c7d23e75c8a93ecd67dda768b24a
26
27 diff --git a/app-misc/timew/timew-1.4.3.ebuild b/app-misc/timew/timew-1.4.3.ebuild
28 new file mode 100644
29 index 00000000000..e037edcce53
30 --- /dev/null
31 +++ b/app-misc/timew/timew-1.4.3.ebuild
32 @@ -0,0 +1,42 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake
39 +
40 +DESCRIPTION="Tracks your time from the command line, and generates reports"
41 +HOMEPAGE="https://timewarrior.net"
42 +SRC_URI="https://github.com/GothenburgBitFactory/timewarrior/releases/download/v${PV}/${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +src_configure() {
49 + mycmakeargs=(
50 + -DTIMEW_DOCDIR=share/doc/${PF}
51 + )
52 +
53 + cmake_src_configure
54 +}
55 +
56 +src_test() {
57 + cd "${WORKDIR}"/"${P}"_build || die
58 +
59 + eninja test
60 +}
61 +
62 +src_install() {
63 + cmake_src_install
64 +
65 + dodoc -r ext
66 + docompress -x /usr/share/doc/${PF}/ext/{on-modify.timewarrior,README}
67 +}
68 +
69 +pkg_postinst() {
70 + elog "To integrate timewarrior with taskwarrior, issue the following commands:"
71 + elog "cp /usr/share/doc/${PF}/ext/on-modify.timewarrior ~/.task/hooks/"
72 + elog "chmod +x ~/.task/hooks/on-modify.timewarrior"
73 + elog "see https://timewarrior.net/docs/taskwarrior.html"
74 +}