]> Netolish git repositories - gentoo-repo.git/commitdiff
Added latest timewarrior version.
authorJiří Netolický <netolish@netolish.cz>
Sun, 20 Jul 2025 17:49:29 +0000 (19:49 +0200)
committerJiří Netolický <netolish@netolish.cz>
Sun, 20 Jul 2025 17:49:29 +0000 (19:49 +0200)
app-misc/timew/Manifest [new file with mode: 0644]
app-misc/timew/metadata.xml [new file with mode: 0644]
app-misc/timew/timew-1.8.0.ebuild [new file with mode: 0644]

diff --git a/app-misc/timew/Manifest b/app-misc/timew/Manifest
new file mode 100644 (file)
index 0000000..9cd81eb
--- /dev/null
@@ -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 (file)
index 0000000..e576c1b
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person" proxied="yes">
+               <email>gentoo@denoncin.fr</email>
+               <name>David Denoncin</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription lang="en">
+               Timewarrior is a time tracking utility that offers simple 
+               stopwatch features as well as sophisticated calendar-based 
+               backfill, along with flexible reporting.
+       </longdescription>
+       <upstream>
+               <remote-id type="github">GothenburgBitFactory/timewarrior</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/app-misc/timew/timew-1.8.0.ebuild b/app-misc/timew/timew-1.8.0.ebuild
new file mode 100644 (file)
index 0000000..c8e55e3
--- /dev/null
@@ -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/"
+}