1 |
commit: 3a09ce336f19caeca26a32ea10913766687f454a |
2 |
Author: Ferenc Erki <erkiferenc <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jan 12 19:46:33 2020 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 9 20:45:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a09ce33 |
7 |
|
8 |
app-misc/todo: bump version to 2.11.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/705306 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Ferenc Erki <erkiferenc <AT> gmail.com> |
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
app-misc/todo/Manifest | 1 + |
16 |
.../files/todo-2.11.0-fix-bash-completion.patch | 15 +++++ |
17 |
app-misc/todo/todo-2.11.0.ebuild | 68 ++++++++++++++++++++++ |
18 |
3 files changed, 84 insertions(+) |
19 |
|
20 |
diff --git a/app-misc/todo/Manifest b/app-misc/todo/Manifest |
21 |
index 620b2cb65da..4be1e46c267 100644 |
22 |
--- a/app-misc/todo/Manifest |
23 |
+++ b/app-misc/todo/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST todo-2.10.tar.gz 56509 BLAKE2B ec89d12506b5025bab8d05bab1122d48ef2e9edb811c4091c1ff96b4b18c2ced54026d3d908a565278804c15c6fbde8aef3ae5a0cb23d4b12bb36133fce5bb2c SHA512 b14d9d13948836d971f72b941770e8e2c59d171d35f074205900619c5c3efd7ca0a482887046c1865890afb6595fe27c69677c54ea5824163d291e16fa5329d3 |
26 |
+DIST todo-2.11.0.tar.gz 712455 BLAKE2B f9d0fa53712a49c2f6ee94c02a62c16b8184734f7bb0c9354db9d640e2f619c75e3b3468065cb51204c7872f1f155bda51b9e3387f62f0f478f80f6a99f199b4 SHA512 5500ed1aa10eceaaa3e5116605eed4f4228337fdc0f2ceaa5b889753a60576918c0953adbfbf80c40008d6dfdf854e8a538103bfed4d1015aa1c5a9876c2e47c |
27 |
|
28 |
diff --git a/app-misc/todo/files/todo-2.11.0-fix-bash-completion.patch b/app-misc/todo/files/todo-2.11.0-fix-bash-completion.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..254c454ab8a |
31 |
--- /dev/null |
32 |
+++ b/app-misc/todo/files/todo-2.11.0-fix-bash-completion.patch |
33 |
@@ -0,0 +1,15 @@ |
34 |
+diff --git a/todo_completion b/todo_completion |
35 |
+index 644be6e..964383e 100755 |
36 |
+--- a/todo_completion |
37 |
++++ b/todo_completion |
38 |
+@@ -85,6 +85,10 @@ _todo() |
39 |
+ } |
40 |
+ complete -F _todo todo.sh |
41 |
+ |
42 |
++# Gentoo bug 614400 |
43 |
++complete -F _todo todocli |
44 |
++complete -F _todo todotxt |
45 |
++ |
46 |
+ # If you define an alias (e.g. "t") to todo.sh, you need to explicitly enable |
47 |
+ # completion for it, too: |
48 |
+ #complete -F _todo t |
49 |
|
50 |
diff --git a/app-misc/todo/todo-2.11.0.ebuild b/app-misc/todo/todo-2.11.0.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..4db4b749f06 |
53 |
--- /dev/null |
54 |
+++ b/app-misc/todo/todo-2.11.0.ebuild |
55 |
@@ -0,0 +1,68 @@ |
56 |
+# Copyright 1999-2020 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+inherit bash-completion-r1 |
62 |
+ |
63 |
+DESCRIPTION="A CLI-based TODO list manager" |
64 |
+HOMEPAGE="http://todotxt.org" |
65 |
+SRC_URI="https://github.com/todotxt/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
66 |
+ |
67 |
+LICENSE="GPL-3" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="test" |
71 |
+RESTRICT="!test? ( test )" |
72 |
+ |
73 |
+RDEPEND="app-shells/bash" |
74 |
+ |
75 |
+PATCHES=( "${FILESDIR}/${P}-fix-bash-completion.patch" ) |
76 |
+ |
77 |
+DOCS=( README.md CONTRIBUTING.md LICENSE todo.cfg ) |
78 |
+ |
79 |
+S="${WORKDIR}/${PN}.txt-cli-${PV}" |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ # fix version string |
85 |
+ sed -i -e "s/@DEV_VERSION@/${PV}/" todo.sh || die |
86 |
+ |
87 |
+ # TODO_DIR variable is bogus |
88 |
+ sed -i -e '/export TODO_DIR/d' todo.cfg || die |
89 |
+ sed -i -e '4i export TODO_DIR="$HOME/.todo"' todo.cfg || die |
90 |
+} |
91 |
+ |
92 |
+src_test() { |
93 |
+ make test || die "tests failed" |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ dobin "${PN}.sh" |
98 |
+ dosym "${PN}.sh" "/usr/bin/${PN}cli" |
99 |
+ dosym "${PN}.sh" "/usr/bin/${PN}txt" |
100 |
+ newbashcomp "${PN}_completion" "${PN}.sh" |
101 |
+ bashcomp_alias "${PN}.sh" "${PN}cli" "${PN}txt" |
102 |
+ einstalldocs |
103 |
+} |
104 |
+ |
105 |
+pkg_postinst() { |
106 |
+ einfo |
107 |
+ einfo 'Before starting todo, make sure to create' |
108 |
+ einfo 'a .todo directory in your home directory:' |
109 |
+ einfo ' $ mkdir -p $HOME/.todo' |
110 |
+ einfo |
111 |
+ einfo 'and make sure to copy the default todo' |
112 |
+ einfo 'configuration file in the same location:' |
113 |
+ einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.todo/config" |
114 |
+ einfo |
115 |
+ einfo 'Alternatively, you can use XDG directories instead:' |
116 |
+ einfo ' $ mkdir -p $HOME/.local/share/todo' |
117 |
+ einfo ' $ mkdir -p $HOME/.config/todo' |
118 |
+ einfo " $ bzcat /usr/share/doc/${PF}/todo.cfg.bz2 > \$HOME/.config/todo/config" |
119 |
+ einfo |
120 |
+ einfo 'You can then edit this file as you see fit.' |
121 |
+ einfo 'Enjoy!' |
122 |
+ einfo |
123 |
+} |