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: Sat, 26 Feb 2022 21:03:13
Message-Id: 1645909383.61bfb24291f7d052e4234bc3169e59037a5b1f8a.monsieurp@gentoo
1 commit: 61bfb24291f7d052e4234bc3169e59037a5b1f8a
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 20:51:28 2022 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 21:03:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61bfb242
7
8 app-misc/todo: drop 2.11.0, 2.12.0-r1
9
10 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
11
12 app-misc/todo/Manifest | 1 -
13 app-misc/todo/todo-2.11.0.ebuild | 64 -------------------------------------
14 app-misc/todo/todo-2.12.0-r1.ebuild | 64 -------------------------------------
15 3 files changed, 129 deletions(-)
16
17 diff --git a/app-misc/todo/Manifest b/app-misc/todo/Manifest
18 index aa534da6d988..d4cfd196b9ca 100644
19 --- a/app-misc/todo/Manifest
20 +++ b/app-misc/todo/Manifest
21 @@ -1,2 +1 @@
22 -DIST todo-2.11.0.tar.gz 712455 BLAKE2B f9d0fa53712a49c2f6ee94c02a62c16b8184734f7bb0c9354db9d640e2f619c75e3b3468065cb51204c7872f1f155bda51b9e3387f62f0f478f80f6a99f199b4 SHA512 5500ed1aa10eceaaa3e5116605eed4f4228337fdc0f2ceaa5b889753a60576918c0953adbfbf80c40008d6dfdf854e8a538103bfed4d1015aa1c5a9876c2e47c
23 DIST todo-2.12.0.tar.gz 716524 BLAKE2B 168951c50670228ba2e1438ec04f5907181073668f1e260874e48959f2e37d11ee7ba4f2b0e5e5c55c9375a31921eca258f720afe98d2a4841529ef6acbb1510 SHA512 3b30d5e395f878811831f57e8e1a040c990e1f042f57050b6381d83ffc8b92b1ce20bfd3c5aa8b5e028b4810a5b289599603b2e16efff8badac559d200ed79f5
24
25 diff --git a/app-misc/todo/todo-2.11.0.ebuild b/app-misc/todo/todo-2.11.0.ebuild
26 deleted file mode 100644
27 index c3a527e1a45c..000000000000
28 --- a/app-misc/todo/todo-2.11.0.ebuild
29 +++ /dev/null
30 @@ -1,64 +0,0 @@
31 -# Copyright 1999-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -inherit bash-completion-r1
37 -
38 -DESCRIPTION="A CLI-based TODO list manager"
39 -HOMEPAGE="http://todotxt.org"
40 -SRC_URI="https://github.com/todotxt/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 -
42 -LICENSE="GPL-3"
43 -SLOT="0"
44 -KEYWORDS="~amd64 ~x86"
45 -IUSE="test"
46 -RESTRICT="!test? ( test )"
47 -
48 -RDEPEND="app-shells/bash"
49 -
50 -PATCHES=( "${FILESDIR}/${P}-fix-bash-completion.patch" )
51 -
52 -DOCS=( README.md CONTRIBUTING.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_install() {
68 - dobin "${PN}.sh"
69 - dosym "${PN}.sh" "/usr/bin/${PN}cli"
70 - dosym "${PN}.sh" "/usr/bin/${PN}txt"
71 - newbashcomp "${PN}_completion" "${PN}.sh"
72 - bashcomp_alias "${PN}.sh" "${PN}cli" "${PN}txt"
73 - einstalldocs
74 -}
75 -
76 -pkg_postinst() {
77 - einfo
78 - einfo 'Before starting todo, make sure to create'
79 - einfo 'a .todo directory in your home directory:'
80 - einfo ' $ mkdir -p $HOME/.todo'
81 - einfo
82 - einfo 'and make sure to copy the default todo'
83 - einfo 'configuration file in the same location:'
84 - einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.todo/config"
85 - einfo
86 - einfo 'Alternatively, you can use XDG directories instead:'
87 - einfo ' $ mkdir -p $HOME/.local/share/todo'
88 - einfo ' $ mkdir -p $HOME/.config/todo'
89 - einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.config/todo/config"
90 - einfo
91 - einfo 'You can then edit this file as you see fit.'
92 - einfo 'Enjoy!'
93 - einfo
94 -}
95
96 diff --git a/app-misc/todo/todo-2.12.0-r1.ebuild b/app-misc/todo/todo-2.12.0-r1.ebuild
97 deleted file mode 100644
98 index 547d0e721b41..000000000000
99 --- a/app-misc/todo/todo-2.12.0-r1.ebuild
100 +++ /dev/null
101 @@ -1,64 +0,0 @@
102 -# Copyright 1999-2021 Gentoo Authors
103 -# Distributed under the terms of the GNU General Public License v2
104 -
105 -EAPI=7
106 -
107 -inherit bash-completion-r1
108 -
109 -DESCRIPTION="A CLI-based TODO list manager"
110 -HOMEPAGE="http://todotxt.org"
111 -SRC_URI="https://github.com/todotxt/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
112 -
113 -LICENSE="GPL-3"
114 -SLOT="0"
115 -KEYWORDS="~amd64 ~x86"
116 -IUSE="test"
117 -RESTRICT="!test? ( test )"
118 -
119 -RDEPEND="app-shells/bash"
120 -
121 -DOCS=( README.md LICENSE todo.cfg )
122 -
123 -S="${WORKDIR}/${PN}.txt-cli-${PV}"
124 -
125 -src_prepare() {
126 - default
127 -
128 - # fix version string
129 - sed -i -e "s/@DEV_VERSION@/${PV}/" todo.sh || die
130 -
131 - # TODO_DIR variable is bogus
132 - sed -i -e '/export TODO_DIR/d' todo.cfg || die
133 - sed -i -e '4i export TODO_DIR="$HOME/.todo"' todo.cfg || die
134 -}
135 -
136 -src_install() {
137 - dobin "${PN}.sh"
138 - newbashcomp "${PN}_completion" "${PN}.sh"
139 - einstalldocs
140 -}
141 -
142 -pkg_postinst() {
143 - einfo
144 - einfo 'Before starting todo, make sure to create'
145 - einfo 'a .todo directory in your home directory:'
146 - einfo ' $ mkdir -p $HOME/.todo'
147 - einfo
148 - einfo 'and make sure to copy the default todo'
149 - einfo 'configuration file in the same location:'
150 - einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.todo/config"
151 - einfo
152 - einfo 'Alternatively, you can use XDG directories instead:'
153 - einfo ' $ mkdir -p $HOME/.local/share/todo'
154 - einfo ' $ mkdir -p $HOME/.config/todo'
155 - einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.config/todo/config"
156 - einfo
157 - einfo 'You can then edit this file as you see fit.'
158 - einfo 'Enjoy!'
159 - einfo
160 - ewarn 'The Gentoo-specific todocli and todotxt aliases have been removed.'
161 - ewarn 'If you still need them, add the following lines to your ~/.bashrc:'
162 - ewarn
163 - ewarn 'alias todocli=todo.sh'
164 - ewarn 'complete -F _todo todocli'
165 -}