From: Jiří Netolický Date: Sun, 20 Jul 2025 17:49:29 +0000 (+0200) Subject: Added latest timewarrior version. X-Git-Url: https://cgit.netolish.cz/?a=commitdiff_plain;h=a042cf3bda6c2fb965ee0bef58c1f96fc89e5641;p=gentoo-repo.git Added latest timewarrior version. --- diff --git a/app-misc/timew/Manifest b/app-misc/timew/Manifest new file mode 100644 index 0000000..9cd81eb --- /dev/null +++ b/app-misc/timew/Manifest @@ -0,0 +1 @@ +DIST timew-1.8.0.tar.gz 3138414 BLAKE2B 4634156aecbdc2fa7c6ae2387794cab3420218080852414e2ef50bba48064dbe65eaba414d60be671d5b1f8f02dd44fbc69cf51d6d408617b24aebd185bd5183 SHA512 cfb21fb9b173914dbb58ec1898492d43475bb748a4eeb96852a5ae3a07b58e09d48ae26cd19c0bcf6d1e7925547f864e1965ff1db37822ac3587c4eaddd8b691 diff --git a/app-misc/timew/metadata.xml b/app-misc/timew/metadata.xml new file mode 100644 index 0000000..e576c1b --- /dev/null +++ b/app-misc/timew/metadata.xml @@ -0,0 +1,20 @@ + + + + + gentoo@denoncin.fr + David Denoncin + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Timewarrior is a time tracking utility that offers simple + stopwatch features as well as sophisticated calendar-based + backfill, along with flexible reporting. + + + GothenburgBitFactory/timewarrior + + diff --git a/app-misc/timew/timew-1.8.0.ebuild b/app-misc/timew/timew-1.8.0.ebuild new file mode 100644 index 0000000..c8e55e3 --- /dev/null +++ b/app-misc/timew/timew-1.8.0.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/" +}