pkgsrc-WIP-changes archive

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

todotxt: Import todotxt-2.10 as wip/todotxt



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Dec 17 23:58:29 2017 +0100
Changeset:	3febec9673437bf5cbb07e6337881fb9d9a69193

Modified Files:
	Makefile
Added Files:
	todotxt/DESCR
	todotxt/Makefile
	todotxt/PLIST
	todotxt/distinfo

Log Message:
todotxt: Import todotxt-2.10 as wip/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 tty` todotxt-git package with several changes.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3febec9673437bf5cbb07e6337881fb9d9a69193

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

diffstat:
 Makefile         |  1 +
 todotxt/DESCR    |  7 +++++++
 todotxt/Makefile | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 todotxt/PLIST    |  5 +++++
 todotxt/distinfo |  6 ++++++
 5 files changed, 69 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index bfbfb6a459..288f83aa5f 100644
--- a/Makefile
+++ b/Makefile
@@ -4349,6 +4349,7 @@ SUBDIR+=	tmuni-ttf
 SUBDIR+=	tmva
 SUBDIR+=	tmw
 SUBDIR+=	tnt
+SUBDIR+=	todotxt
 SUBDIR+=	todotxt-git
 SUBDIR+=	tome
 SUBDIR+=	tome2
diff --git a/todotxt/DESCR b/todotxt/DESCR
new file mode 100644
index 0000000000..5b2a701c5c
--- /dev/null
+++ b/todotxt/DESCR
@@ -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 --git a/todotxt/Makefile b/todotxt/Makefile
new file mode 100644
index 0000000000..997c0891d4
--- /dev/null
+++ b/todotxt/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.4 2014/05/21 14:06:31 ttys Exp $
+
+DISTNAME=	todotxt-2.10
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=todotxt/}
+GITHUB_PROJECT=	todo.txt-cli
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%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 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_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 --git a/todotxt/PLIST b/todotxt/PLIST
new file mode 100644
index 0000000000..2e91161d31
--- /dev/null
+++ b/todotxt/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.3 2014/05/21 14:06:31 ttys Exp $
+bin/todo.sh
+share/doc/todotxt/README.textile
+share/examples/todotxt/todo.cfg
+share/examples/todotxt/todo_completion
diff --git a/todotxt/distinfo b/todotxt/distinfo
new file mode 100644
index 0000000000..ca424d524d
--- /dev/null
+++ b/todotxt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.4 2014/05/21 14:06:31 ttys 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