From 0f90dd5c17e18e9858e8655480e62cbefb2e66d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Netolick=C3=BD?= Date: Sat, 4 Oct 2025 18:00:52 +0200 Subject: [PATCH] Bump new version timewarrior 1.9.1 --- app-misc/timew/Manifest | 1 + app-misc/timew/timew-1.9.1.ebuild | 47 +++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 app-misc/timew/timew-1.9.1.ebuild diff --git a/app-misc/timew/Manifest b/app-misc/timew/Manifest index 9cd81eb..687a777 100644 --- a/app-misc/timew/Manifest +++ b/app-misc/timew/Manifest @@ -1 +1,2 @@ DIST timew-1.8.0.tar.gz 3138414 BLAKE2B 4634156aecbdc2fa7c6ae2387794cab3420218080852414e2ef50bba48064dbe65eaba414d60be671d5b1f8f02dd44fbc69cf51d6d408617b24aebd185bd5183 SHA512 cfb21fb9b173914dbb58ec1898492d43475bb748a4eeb96852a5ae3a07b58e09d48ae26cd19c0bcf6d1e7925547f864e1965ff1db37822ac3587c4eaddd8b691 +DIST timew-1.9.1.tar.gz 323991 BLAKE2B c0a9464233fd17560e5a7959fb0cf3726d475d42570345af43204d57e0fdbb0fa7b39ce4fe8c8b573b8e476d4515f6c69764fe42045b210587facfad1d6ea090 SHA512 4e69d2fda442b0ef7886cfecff4341fd7432f8f6ee6ea8f029f2f2f2d85be1fc801a32bd6d15dc8af58d482e8a999b1a9b8d0edf6b8b90ff8d3483324d31f428 diff --git a/app-misc/timew/timew-1.9.1.ebuild b/app-misc/timew/timew-1.9.1.ebuild new file mode 100644 index 0000000..c8e55e3 --- /dev/null +++ b/app-misc/timew/timew-1.9.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake shell-completion + +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 + newbashcomp completion/timew-completion.bash timew + dofishcomp completion/timew.fish +} + +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/" +} -- 2.52.0