todotxt: Import todotxt-2.10 as time/todotxt

A simple and extensible shell script for managing your todo.txt file.

With a simple but powerful shell script called todo.sh, you can interact
with todo.txt at the command line for quick and easy, Unix-y access.

The Todo.txt CLI supports archiving completed tasks to done.txt and
priority/context tab autocompletion.

Based on now-known-as wip/todotxt-git originally packaged in pkgsrc-wip by
tty` with several changes by myself.
This commit is contained in:
leot 2017-12-19 11:39:50 +00:00
parent 032c6db96b
commit cdbece9c64
4 changed files with 69 additions and 0 deletions

7
time/todotxt/DESCR Normal file
View file

@ -0,0 +1,7 @@
A simple and extensible shell script for managing your todo.txt file.
With a simple but powerful shell script called todo.sh, you can interact
with todo.txt at the command line for quick and easy, Unix-y access.
The Todo.txt CLI supports archiving completed tasks to done.txt and
priority/context tab autocompletion.

51
time/todotxt/Makefile Normal file
View file

@ -0,0 +1,51 @@
# $NetBSD: Makefile,v 1.1 2017/12/19 11:39:50 leot Exp $
DISTNAME= todotxt-2.10
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_GITHUB:=todotxt/}
GITHUB_PROJECT= todo.txt-cli
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= leot@NetBSD.org
HOMEPAGE= http://todotxt.org/
COMMENT= Simple and extensible shell script for managing your todo.txt file
LICENSE= gnu-gpl-v3
USE_TOOLS+= bash:run gsed:run
SUBST_CLASSES+= todosh
SUBST_STAGE.todosh= pre-configure
SUBST_MESSAGE.todosh= Adjusting hard-coded paths, version and use GNU sed
SUBST_FILES.todosh+= todo.sh
SUBST_SED.todosh+= -e '/TODOTXT_GLOBAL_CFG_FILE=/ s,/etc/todo/config,${PKG_SYSCONFDIR}/todo.cfg,'
SUBST_SED.todosh+= -E -e 's,([(| ])sed ,\1${TOOLS_PATH.gsed} ,g'
SUBST_SED.todosh+= -e 's,@DEV_VERSION@,${PKGVERSION_NOREV},g'
SUBST_CLASSES+= todocfg
SUBST_STAGE.todocfg= pre-configure
SUBST_MESSAGE.todocfg= Adjusting TOOL_DIR path to user's HOME
SUBST_FILES.todocfg+= todo.cfg
SUBST_SED.todocfg+= -e '/^export TODO_DIR/ s,=.*,=$$HOME/.todo,'
REPLACE_BASH= todo.sh
USE_LANGUAGES= # none
NO_BUILD= yes
EGDIR= ${PREFIX}/share/examples/todotxt
DOCDIR= ${PREFIX}/share/doc/todotxt
PKG_SYSCONFSUBDIR= todotxt
CONF_FILES= ${EGDIR}/todo.cfg \
${PKG_SYSCONFDIR}/todo.cfg
INSTALLATION_DIRS= bin ${DOCDIR} ${EGDIR}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/todo.sh ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/todo.cfg ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/todo_completion ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README.textile ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"

5
time/todotxt/PLIST Normal file
View file

@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.1 2017/12/19 11:39:50 leot Exp $
bin/todo.sh
share/doc/todotxt/README.textile
share/examples/todotxt/todo.cfg
share/examples/todotxt/todo_completion

6
time/todotxt/distinfo Normal file
View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2017/12/19 11:39:50 leot Exp $
SHA1 (todotxt-2.10.tar.gz) = 1cff257c4f45acb302246f51f1acaf00832e5e2e
RMD160 (todotxt-2.10.tar.gz) = 9d3304d8d118f393b6c96c1411049b60ec2de34c
SHA512 (todotxt-2.10.tar.gz) = b14d9d13948836d971f72b941770e8e2c59d171d35f074205900619c5c3efd7ca0a482887046c1865890afb6595fe27c69677c54ea5824163d291e16fa5329d3
Size (todotxt-2.10.tar.gz) = 56509 bytes