Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/todo/
Date: Wed, 16 Sep 2020 20:50:20
Message-Id: 1600289369.b00b41ce1d62df911bec838b336b1d3cff142ea6.monsieurp@gentoo
1 commit: b00b41ce1d62df911bec838b336b1d3cff142ea6
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 16 20:49:29 2020 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 16 20:49:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b00b41ce
7
8 app-misc/todo: version bump.
9
10 Closes: https://bugs.gentoo.org/738094
11 Package-Manager: Portage-2.3.103, Repoman-2.3.23
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 app-misc/todo/Manifest | 1 +
15 app-misc/todo/todo-2.12.0.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++
16 2 files changed, 67 insertions(+)
17
18 diff --git a/app-misc/todo/Manifest b/app-misc/todo/Manifest
19 index 4be1e46c267..bf572065748 100644
20 --- a/app-misc/todo/Manifest
21 +++ b/app-misc/todo/Manifest
22 @@ -1,2 +1,3 @@
23 DIST todo-2.10.tar.gz 56509 BLAKE2B ec89d12506b5025bab8d05bab1122d48ef2e9edb811c4091c1ff96b4b18c2ced54026d3d908a565278804c15c6fbde8aef3ae5a0cb23d4b12bb36133fce5bb2c SHA512 b14d9d13948836d971f72b941770e8e2c59d171d35f074205900619c5c3efd7ca0a482887046c1865890afb6595fe27c69677c54ea5824163d291e16fa5329d3
24 DIST todo-2.11.0.tar.gz 712455 BLAKE2B f9d0fa53712a49c2f6ee94c02a62c16b8184734f7bb0c9354db9d640e2f619c75e3b3468065cb51204c7872f1f155bda51b9e3387f62f0f478f80f6a99f199b4 SHA512 5500ed1aa10eceaaa3e5116605eed4f4228337fdc0f2ceaa5b889753a60576918c0953adbfbf80c40008d6dfdf854e8a538103bfed4d1015aa1c5a9876c2e47c
25 +DIST todo-2.12.0.tar.gz 716524 BLAKE2B 168951c50670228ba2e1438ec04f5907181073668f1e260874e48959f2e37d11ee7ba4f2b0e5e5c55c9375a31921eca258f720afe98d2a4841529ef6acbb1510 SHA512 3b30d5e395f878811831f57e8e1a040c990e1f042f57050b6381d83ffc8b92b1ce20bfd3c5aa8b5e028b4810a5b289599603b2e16efff8badac559d200ed79f5
26
27 diff --git a/app-misc/todo/todo-2.12.0.ebuild b/app-misc/todo/todo-2.12.0.ebuild
28 new file mode 100644
29 index 00000000000..d1dcad07e58
30 --- /dev/null
31 +++ b/app-misc/todo/todo-2.12.0.ebuild
32 @@ -0,0 +1,66 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit bash-completion-r1
39 +
40 +DESCRIPTION="A CLI-based TODO list manager"
41 +HOMEPAGE="http://todotxt.org"
42 +SRC_URI="https://github.com/todotxt/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="test"
48 +RESTRICT="!test? ( test )"
49 +
50 +RDEPEND="app-shells/bash"
51 +
52 +DOCS=( README.md LICENSE todo.cfg )
53 +
54 +S="${WORKDIR}/${PN}.txt-cli-${PV}"
55 +
56 +src_prepare() {
57 + default
58 +
59 + # fix version string
60 + sed -i -e "s/@DEV_VERSION@/${PV}/" todo.sh || die
61 +
62 + # TODO_DIR variable is bogus
63 + sed -i -e '/export TODO_DIR/d' todo.cfg || die
64 + sed -i -e '4i export TODO_DIR="$HOME/.todo"' todo.cfg || die
65 +}
66 +
67 +src_test() {
68 + make test || die "tests failed"
69 +}
70 +
71 +src_install() {
72 + dobin "${PN}.sh"
73 + dosym "${PN}.sh" "/usr/bin/${PN}cli"
74 + dosym "${PN}.sh" "/usr/bin/${PN}txt"
75 + newbashcomp "${PN}_completion" "${PN}.sh"
76 + bashcomp_alias "${PN}.sh" "${PN}cli" "${PN}txt"
77 + einstalldocs
78 +}
79 +
80 +pkg_postinst() {
81 + einfo
82 + einfo 'Before starting todo, make sure to create'
83 + einfo 'a .todo directory in your home directory:'
84 + einfo ' $ mkdir -p $HOME/.todo'
85 + einfo
86 + einfo 'and make sure to copy the default todo'
87 + einfo 'configuration file in the same location:'
88 + einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.todo/config"
89 + einfo
90 + einfo 'Alternatively, you can use XDG directories instead:'
91 + einfo ' $ mkdir -p $HOME/.local/share/todo'
92 + einfo ' $ mkdir -p $HOME/.config/todo'
93 + einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.config/todo/config"
94 + einfo
95 + einfo 'You can then edit this file as you see fit.'
96 + einfo 'Enjoy!'
97 + einfo
98 +}