Tue Dec 19 11:39:51 2017 UTC ()
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.


(leot)
diff -r0 -r1.1 pkgsrc/time/todotxt/DESCR
diff -r0 -r1.1 pkgsrc/time/todotxt/Makefile
diff -r0 -r1.1 pkgsrc/time/todotxt/PLIST
diff -r0 -r1.1 pkgsrc/time/todotxt/distinfo

File Added: pkgsrc/time/todotxt/DESCR
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.

File Added: pkgsrc/time/todotxt/Makefile
# $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"

File Added: pkgsrc/time/todotxt/PLIST
@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

File Added: pkgsrc/time/todotxt/distinfo
$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