Install this version:
emerge -a =app-misc/todo-2.14.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/todo-2.14.0
Or alternatively:
emerge --autounmask-write -a =app-misc/todo-2.14.0
# Copyright 1999-2026 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 )
src_prepare() {
default
# 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() {
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" CONFIG_DIR="${EPREFIX}/etc" install
einstalldocs
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]]; then
einfo 'While todo.sh should work out of the box,'
einfo 'please check the CONFIGURATION section of the README at:'
einfo
einfo " /usr/share/doc/${PF}/README.md.bz2"
fi
}
Manage flags for this package:
euse -i <flag> -p app-misc/todo |
euse -E <flag> -p app-misc/todo |
euse -D <flag> -p app-misc/todo
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | todo-2.14.0.tar.gz | 721342 bytes | https://github.com/todotxt/todo.txt-cli/archive/v2.14.0.tar.gz |