public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/todo/
Date: Sat, 01 Feb 2025 14:50:35 +0000 (UTC)	[thread overview]
Message-ID: <1738421303.b24dc492f33cf5f9e4d2f0f2f72e37b7a57ec89e.flow@gentoo> (raw)

commit:     b24dc492f33cf5f9e4d2f0f2f72e37b7a57ec89e
Author:     Ferenc Erki <erkiferenc <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 23:31:27 2025 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 14:48:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b24dc492

app-misc/todo: add 2.13.0

Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40324
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 app-misc/todo/Manifest           |  1 +
 app-misc/todo/todo-2.13.0.ebuild | 64 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/app-misc/todo/Manifest b/app-misc/todo/Manifest
index d4cfd196b9ca..9683ecce73cb 100644
--- a/app-misc/todo/Manifest
+++ b/app-misc/todo/Manifest
@@ -1 +1,2 @@
 DIST todo-2.12.0.tar.gz 716524 BLAKE2B 168951c50670228ba2e1438ec04f5907181073668f1e260874e48959f2e37d11ee7ba4f2b0e5e5c55c9375a31921eca258f720afe98d2a4841529ef6acbb1510 SHA512 3b30d5e395f878811831f57e8e1a040c990e1f042f57050b6381d83ffc8b92b1ce20bfd3c5aa8b5e028b4810a5b289599603b2e16efff8badac559d200ed79f5
+DIST todo-2.13.0.tar.gz 718852 BLAKE2B 33f5c8d3e6007da3a0d9b55ec3093079daad1c4771b3eeb1406484a610bccc91bb1d0bbd9951bae7e1ba78e0cf6e0c25a75a39d4ac05585620ee3139a7b5c209 SHA512 26a3135e29886b4536922e0b4fe35783f829c83d09a4a17dd855f602a3f38a3e028e287508da54d4c4d641525130f8a3caea962fe996bcd2294909b7ea2e59c6

diff --git a/app-misc/todo/todo-2.13.0.ebuild b/app-misc/todo/todo-2.13.0.ebuild
new file mode 100644
index 000000000000..8a627add5be4
--- /dev/null
+++ b/app-misc/todo/todo-2.13.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+DESCRIPTION="A CLI-based TODO list manager"
+HOMEPAGE="http://todotxt.org"
+SRC_URI="https://github.com/todotxt/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/${PN}.txt-cli-${PV}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="app-shells/bash"
+
+DOCS=( README.md LICENSE todo.cfg )
+
+src_prepare() {
+	default
+
+	# fix version string
+	sed -i -e "s/@DEV_VERSION@/${PV}/" todo.sh || die
+
+	# TODO_DIR variable is bogus
+	sed -i -e '/export TODO_DIR/d' todo.cfg || die
+	sed -i -e '4i export TODO_DIR="$HOME/.todo"' todo.cfg || die
+}
+
+src_install() {
+	dobin "${PN}.sh"
+	newbashcomp "${PN}_completion" "${PN}.sh"
+	einstalldocs
+}
+
+pkg_postinst() {
+	einfo
+	einfo 'Before starting todo, make sure to create'
+	einfo 'a .todo directory in your home directory:'
+	einfo '  $ mkdir -p $HOME/.todo'
+	einfo
+	einfo 'and make sure to copy the default todo'
+	einfo 'configuration file in the same location:'
+	einfo "  $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.todo/config"
+	einfo
+	einfo 'Alternatively, you can use XDG directories instead:'
+	einfo '  $ mkdir -p $HOME/.local/share/todo'
+	einfo '  $ mkdir -p $HOME/.config/todo'
+	einfo "  $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.config/todo/config"
+	einfo
+	einfo 'You can then edit this file as you see fit.'
+	einfo 'Enjoy!'
+	einfo
+	ewarn 'The Gentoo-specific todocli and todotxt aliases have been removed.'
+	ewarn 'If you still need them, add the following lines to your ~/.bashrc:'
+	ewarn
+	ewarn 'alias todocli=todo.sh'
+	ewarn 'complete -F _todo todocli'
+}


             reply	other threads:[~2025-02-01 14:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-01 14:50 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-26 21:03 [gentoo-commits] repo/gentoo:master commit in: app-misc/todo/ Patrice Clement
2022-02-26 21:03 Patrice Clement
2021-11-06  4:41 Sam James
2020-10-09 19:57 Patrice Clement
2020-09-29  6:37 Joonas Niilola
2020-09-16 20:50 Patrice Clement
2020-09-16 20:50 Patrice Clement
2020-03-09 20:45 Patrice Clement
2017-12-23 23:00 Patrice Clement
2017-10-19  8:22 Patrice Clement
2017-10-19  8:22 Patrice Clement
2017-02-25  9:15 Patrice Clement
2017-01-29 21:33 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1738421303.b24dc492f33cf5f9e4d2f0f2f72e37b7a57ec89e.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox