summaryrefslogtreecommitdiff
path: root/app-misc/devtodo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/devtodo
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/devtodo')
-rw-r--r--app-misc/devtodo/Manifest7
-rw-r--r--app-misc/devtodo/devtodo-0.1.20-r3.ebuild70
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch32
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch10
-rw-r--r--app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff85
-rw-r--r--app-misc/devtodo/files/devtodo.bash-completion43
-rw-r--r--app-misc/devtodo/metadata.xml8
7 files changed, 255 insertions, 0 deletions
diff --git a/app-misc/devtodo/Manifest b/app-misc/devtodo/Manifest
new file mode 100644
index 000000000000..049741e572bf
--- /dev/null
+++ b/app-misc/devtodo/Manifest
@@ -0,0 +1,7 @@
+AUX devtodo-0.1.20-bashcom_spaces.patch 1077 BLAKE2B f4c2a9fbcda727ceee4f28376331744856845dbc4eda1fdfd9cfaad254ad0119b7b687053eafdb6791f046f65b8d3dcc839a9c95207991eca2731550eb0de326 SHA512 8e2934b40fba0397fc21ca9084ddb0c6f65fd9715656dd520fd90ece7c04be2d5733e52a568d1786e9a7fea3dc58f4eb4ce988ace6dc8fa23a8b9a192b6fa54b
+AUX devtodo-0.1.20-gcc43.patch 217 BLAKE2B 9d8af6ddf3036120498fda96bc493b3ce5e480e678e2ca4eb07917857383728390e45f1947c765003bad76f77e951a595edfa5b500137f6189489cc678c994a3 SHA512 2a34a52467f61704031dc1ab568c5909fa165d6f4fcf007726611e80437b805fe70a16d3ed6080d5ad83dd934a05fdf3de46a0a84e5679efbdd0ca2e41b8a99c
+AUX devtodo-0.1.20-gentoo.diff 3744 BLAKE2B f80130ba310593442d92013a51186af2ec082c0c4cde25981432ccab76a77dad38197e8d84b9939d3ad78e6442196315b446d431daa675bb082e488723b86a48 SHA512 f2a6de30807c2ec718725491d92f4906c50b944eff389e15d17cb2982127112d443e08096b6923ca76ca720832afc1fd561bd55a327ffa435e1e21abda07abbb
+AUX devtodo.bash-completion 1424 BLAKE2B 10166a35074d1f501d76a0f60e383c6f6198242b4c22ae2b17468f887e2d6caa2466bbfae290d76cf8199156703591633aaa755298c7ebcd1274faa09656a369 SHA512 6139218a2bc4d06f2af23fc04247e8fa3d70eaf3affe326dbb8b1bbbb880f2534f1c1bf4c54079231bed7c1c64465705deb5a5cb1a0f4ca5415ccddae726b20b
+DIST devtodo-0.1.20.tar.gz 390935 BLAKE2B 1605fb6ae6f416ea9b7c072463aacedf7fe997a362b3188addce9c6fbdd9bf99f2f7d4524870fb09f0a0c29e9886011a8fae737388a3151ecc489f3fe4fec980 SHA512 58cff0455c735af4530fc9321d1eade8272dd5759eeb8a688a641c9be11830b87be116801e3cd1d90a27e070775fa00d7b4d6b3399eba7aad5c752bfda9c28fb
+EBUILD devtodo-0.1.20-r3.ebuild 1678 BLAKE2B 318be2820e5ef69b7a38a112f440089b6cf7b0fcddb07a991c586bfe23151b32871d34c77383c128425bdd7dbd8f67c236fbafa273ebf2a6ef746ecf2647c8fd SHA512 4f5de8e5e1c034cba934df1e488e86933b118d5288ea6a17863d5ef297050dabc5928424746d28096087e8666b617ed99cab4cbcd701924830775cf09b1dd714
+MISC metadata.xml 271 BLAKE2B 46146f4bf13e9f4d33435225ec1012dd9bb89b20812963dc50368cab2a60a3c542052cb72f8963cc72074b2c13a5b054c77152de1d108027752601a349bc4ef8 SHA512 3e98f5382cf789992bdfc0f32e6e36eba31944be654c03f2ed9bd00baf56c8b768c256c4f8778d5775d6df38da4afcf8e32b6e6495a1ecfc8e7982c7c8943b1b
diff --git a/app-misc/devtodo/devtodo-0.1.20-r3.ebuild b/app-misc/devtodo/devtodo-0.1.20-r3.ebuild
new file mode 100644
index 000000000000..41dc7c7ac58b
--- /dev/null
+++ b/app-misc/devtodo/devtodo-0.1.20-r3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils bash-completion-r1 eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="A nice command line todo list for developers"
+HOMEPAGE="http://swapoff.org/DevTodo"
+SRC_URI="http://swapoff.org/files/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+RDEPEND="
+ >=sys-libs/ncurses-5.2:0=
+ >=sys-libs/readline-4.1:0="
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS ChangeLog QuickStart README doc/scripts.sh doc/scripts.tcsh doc/todorc.example )
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.diff
+ "${FILESDIR}"/${P}-gcc43.patch
+ "${FILESDIR}"/${P}-bashcom_spaces.patch
+)
+
+src_prepare() {
+ # fix regex.h issue on case-insensitive file-systems #332235
+ sed \
+ -e 's/Regex.h/DTRegex.h/' \
+ -i util/Lexer.h util/Makefile.{am,in} util/Regex.cc || die
+ mv util/{,DT}Regex.h || die
+
+ sed \
+ -e "/^LIBS/s:$: $($(tc-getPKG_CONFIG) --libs ncursesw):g" \
+ -i src/Makefile.am || die
+
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ replace-flags -O[23] -O1
+
+ local myeconfargs=(
+ --sysconfdir="${EPREFIX}/etc/devtodo"
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ newbashcomp contrib/${PN}.bash-completion ${PN}
+ rm contrib/${PN}.bash-completion || die 'rm failed'
+
+ bashcomp_alias devtodo tda tdd tde tdr todo
+
+ dodoc -r contrib
+}
+
+pkg_postinst() {
+ elog "Because of a conflict with app-misc/tdl, the tdl symbolic link"
+ elog "and manual page have been removed."
+}
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch b/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch
new file mode 100644
index 000000000000..8567ab4b0562
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-bashcom_spaces.patch
@@ -0,0 +1,32 @@
+ contrib/devtodo.bash-completion | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/contrib/devtodo.bash-completion b/contrib/devtodo.bash-completion
+index 07139b0..c058dad 100644
+--- a/contrib/devtodo.bash-completion
++++ b/contrib/devtodo.bash-completion
+@@ -15,20 +15,20 @@ _devtodo() {
+ --purge"
+
+ if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
+- COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
++ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+
+ case "${prev}" in
+ -p|--priority)
+ COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \
+- -- ${cur}) )
++ -- "${cur}") )
+ ;;
+ --database-loaders)
+- COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) )
++ COMPREPLY=( $(compgen -W "xml binary" -- "${cur}") )
+ ;;
+ -l|--link|--*database)
+- COMPREPLY=( $(compgen -f -- ${cur}) )
++ _filedir
+ ;;
+ *)
+ COMPREPLY=()
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch b/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch
new file mode 100644
index 000000000000..f9f920545805
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-gcc43.patch
@@ -0,0 +1,10 @@
+--- devtodo-0.1.20.orig/src/todoterm.cc
++++ devtodo-0.1.20/src/todoterm.cc
+@@ -2,6 +2,7 @@
+ #include "todoterm.h"
+
+ #ifdef USETERMCAP
++#include <cstdlib>
+ #include <iostream>
+ #include <string>
+ #include <stdexcept>
diff --git a/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff b/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff
new file mode 100644
index 000000000000..05c36a31880c
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo-0.1.20-gentoo.diff
@@ -0,0 +1,85 @@
+--- devtodo-0.1.20.orig/doc/devtodo.1.in 2004-12-17 10:21:09.135350872 -0500
++++ devtodo-0.1.20/doc/devtodo.1.in 2004-12-17 10:21:34.050210242 -0500
+@@ -20,9 +20,6 @@
+ .TP
+ \fBtdd \fI<indices>\fP\fP
+ Mark the specified items as being done.
+-.TP
+-\fBtdl [\-g \fI<index>\fP] \fI<database>\fP\fP
+-Link the specified devtodo database into the current one, optionally grafting it as a child of the specified index.
+ .SH "DESCRIPTION"
+ .LP
+ \fBtodo\fP is a program aimed specifically at programmers (but usable by anybody at the terminal) to aid in day\-to\-day development.
+@@ -372,6 +369,10 @@
+ .TP
+ \fB~/.todorc\fR
+ User-specific options are specified in this file. Please refer to the section \fBTODORC\fR for more information.
++.SH "BUGS"
++.LP
++Because of a conflict with app-misc/tdl, the tdl symbolic link and the tdl manual page have been removed.
++See \fIhttp://bugs.gentoo.org/show_bug.cgi?id=55371\fR for more information.
+ .SH "AUTHORS"
+ .LP
+ Alec Thomas \fI<alec@swapoff.org>\fR
+--- devtodo-0.1.20.orig/doc/Makefile.am 2004-12-17 10:21:09.135350872 -0500
++++ devtodo-0.1.20/doc/Makefile.am 2004-12-17 10:21:34.050210242 -0500
+@@ -1,5 +1,5 @@
+ man_MANS=devtodo.1
+-manlinks=tda tdr tdd tde tdl todo
++manlinks=tda tdr tdd tde todo
+
+ install-data-local:
+ mkdir -p $(DESTDIR)$(mandir)/man1
+--- devtodo-0.1.20.orig/src/TodoDB.cc 2004-12-17 10:21:09.136350706 -0500
++++ devtodo-0.1.20/src/TodoDB.cc 2004-12-17 10:21:34.054209577 -0500
+@@ -949,7 +948,11 @@
+ if (out.bad())
+ throw exception("couldn't open TODO for generation");
+
+- if (titleText != "") wraptext(out, titleText, 0, options.columns);
++ if (titleText != "") {
++ wraptext(out, titleText, 0, options.columns);
++ out << endl << endl;
++ }
++
+ if (options.verbose > 1)
+ cout << "todo: generating using format '" << options.format["verbose-generated"] << "'" << endl;
+ filterView();
+--- devtodo-0.1.20/contrib/devtodo.bash-completion {cset 9b4d9f02-fdb7-4641-b07f-7359b794d6b0}
++++ devtodo-0.1.20/contrib/devtodo.bash-completion {local clone}
+@@ -35,6 +35,6 @@ _devtodo() {
+ ;;
+ esac
+ }
+-complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd tdl
++complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd
+
+ # vim: set ft=sh tw=80 sw=4 et :
+--- devtodo-0.1.20/src/support.cc {cset 5f5bd9cb-18fb-4046-bff5-4f3dbd781e47}
++++ devtodo-0.1.20/src/support.cc {local clone}
+@@ -289,11 +289,10 @@ enum { Help = -100, Remove, Version, Tit
+ << "Where <arguments> can be any of the following:" << endl;
+ args.displayHelp(cout, options.columns);
+ cout << endl
+- << "In addition, there are five convenience symlinks. These are 'tda', 'tdr'," << endl
+- << "'tdd', 'tde', and 'tdl'. For 'tde', 'tdd' and 'tdr' supply an index to edit," << endl
++ << "In addition, there are four convenience symlinks. These are 'tda', 'tdr'," << endl
++ << "'tdd', and 'tde'. For 'tde', 'tdd' and 'tdr' supply an index to edit," << endl
+ << "mark done and remove respectively. For 'tda' supply the text of the todo item" << endl
+- << "item and optionally the priority. For 'tdl' supply the path to another todo" << endl
+- << "file to link in to the current todo file." << endl
++ << "item and optionally the priority." << endl
+ << "eg. tde 1" << endl;
+ exit(0);
+ break;
+--- devtodo-0.1.20/src/Makefile.am 2007-09-17 12:12:55.000000000 +0200
++++ devtodo-0.1.20/src/Makefile.am 2007-09-17 12:13:43.000000000 +0200
+@@ -1,7 +1,7 @@
+ bin_PROGRAMS=devtodo
+ devtodo_SOURCES=Todo.cc Todo.h TodoDB.cc TodoDB.h support.cc support.h \
+ main.cc todoterm.cc todoterm.h Loaders.cc Loaders.h todorl.h
+-binlinks=tda tdr tdd tdl tde todo
++binlinks=tda tdr tdd tde todo
+
+ devtodo_LDADD=../util/libutil.la
+ INCLUDES=-I../util
diff --git a/app-misc/devtodo/files/devtodo.bash-completion b/app-misc/devtodo/files/devtodo.bash-completion
new file mode 100644
index 000000000000..9e2869a9e5d6
--- /dev/null
+++ b/app-misc/devtodo/files/devtodo.bash-completion
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# bash command-line completion for devtodo
+# Author: Aaron Walker <ka0ttic@gentoo.org>
+
+_devtodo() {
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="-v --verbose -a --add -g --graft -l --link -R --reparent
+ -p --priority -e --edit --remove -d --done -D --not-done
+ --global-database -G --global --database -T --TODO -A --all
+ -f --filter --colour --force-colour --mono --help --version
+ --title --date-format --format --use-format --sort --paranoid
+ --database-loaders --backup -s --summary -c --comment --timeout
+ --purge"
+
+ if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ fi
+
+ case "${prev}" in
+ -p|--priority)
+ COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \
+ -- ${cur}) )
+ ;;
+ --database-loaders)
+ COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) )
+ ;;
+ -l|--link|--*database)
+ COMPREPLY=( $(compgen -f -- ${cur}) )
+ ;;
+ *)
+ COMPREPLY=()
+ ;;
+ esac
+}
+complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd
+
+# vim: set ft=sh tw=80 sw=4 et :
diff --git a/app-misc/devtodo/metadata.xml b/app-misc/devtodo/metadata.xml
new file mode 100644
index 000000000000..3e927f8d7480
--- /dev/null
+++ b/app-misc/devtodo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+</pkgmetadata>