pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/time/todotxt todotxt: Import todotxt-2.10 as time/todotxt



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f2c590e5965e
branches:  trunk
changeset: 372883:f2c590e5965e
user:      leot <leot%pkgsrc.org@localhost>
date:      Tue Dec 19 11:39:50 2017 +0000

description:
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.

diffstat:

 time/todotxt/DESCR    |   7 +++++++
 time/todotxt/Makefile |  51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 time/todotxt/PLIST    |   5 +++++
 time/todotxt/distinfo |   6 ++++++
 4 files changed, 69 insertions(+), 0 deletions(-)

diffs (85 lines):

diff -r 18ac70240fc3 -r f2c590e5965e time/todotxt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/todotxt/DESCR        Tue Dec 19 11:39:50 2017 +0000
@@ -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.
diff -r 18ac70240fc3 -r f2c590e5965e time/todotxt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/todotxt/Makefile     Tue Dec 19 11:39:50 2017 +0000
@@ -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@localhost
+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"
diff -r 18ac70240fc3 -r f2c590e5965e time/todotxt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/todotxt/PLIST        Tue Dec 19 11:39:50 2017 +0000
@@ -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
diff -r 18ac70240fc3 -r f2c590e5965e time/todotxt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/time/todotxt/distinfo     Tue Dec 19 11:39:50 2017 +0000
@@ -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



Home | Main Index | Thread Index | Old Index