pkgsrc-Changes archive

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

CVS commit: pkgsrc/time/todotxt



Module Name:    pkgsrc
Committed By:   leot
Date:           Tue Dec 19 11:39:51 UTC 2017

Added Files:
        pkgsrc/time/todotxt: DESCR Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/time/todotxt/DESCR pkgsrc/time/todotxt/Makefile \
    pkgsrc/time/todotxt/PLIST pkgsrc/time/todotxt/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/time/todotxt/DESCR
diff -u /dev/null pkgsrc/time/todotxt/DESCR:1.1
--- /dev/null   Tue Dec 19 11:39:51 2017
+++ pkgsrc/time/todotxt/DESCR   Tue Dec 19 11:39:50 2017
@@ -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.
Index: pkgsrc/time/todotxt/Makefile
diff -u /dev/null pkgsrc/time/todotxt/Makefile:1.1
--- /dev/null   Tue Dec 19 11:39:51 2017
+++ pkgsrc/time/todotxt/Makefile        Tue Dec 19 11:39:50 2017
@@ -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"
Index: pkgsrc/time/todotxt/PLIST
diff -u /dev/null pkgsrc/time/todotxt/PLIST:1.1
--- /dev/null   Tue Dec 19 11:39:51 2017
+++ pkgsrc/time/todotxt/PLIST   Tue Dec 19 11:39:50 2017
@@ -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
Index: pkgsrc/time/todotxt/distinfo
diff -u /dev/null pkgsrc/time/todotxt/distinfo:1.1
--- /dev/null   Tue Dec 19 11:39:51 2017
+++ pkgsrc/time/todotxt/distinfo        Tue Dec 19 11:39:50 2017
@@ -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