Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Aug 2021 22:10:38 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0d3e9f1a62cd - main - deskutils/todo: Fix config path (TODOTXT_GLOBAL_CFG_FILE)
Message-ID:  <202108082210.178MAcOF029159@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0d3e9f1a62cdf03e1d1ec4b5284d887cc70053a5

commit 0d3e9f1a62cdf03e1d1ec4b5284d887cc70053a5
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-08-08 21:42:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-08-08 21:46:40 +0000

    deskutils/todo: Fix config path (TODOTXT_GLOBAL_CFG_FILE)
    
    - Bump PORTREVISION for package change
    
    PR:             257647
    Reported by:    Duane <parakleta@darkreality.org>
---
 deskutils/todo/Makefile            |  3 +++
 deskutils/todo/files/patch-todo.sh | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/deskutils/todo/Makefile b/deskutils/todo/Makefile
index 50bdce4a635e..9a8af2e89264 100644
--- a/deskutils/todo/Makefile
+++ b/deskutils/todo/Makefile
@@ -27,6 +27,9 @@ CONFLICTS_INSTALL=	deforaos-todo devtodo
 
 SHEBANG_FILES=	todo.sh todo_completion
 
+post-patch:
+	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/todo.sh
+
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/todo.sh ${STAGEDIR}${PREFIX}/bin/todo
 	${INSTALL_DATA} ${WRKSRC}/todo.cfg ${STAGEDIR}${PREFIX}/etc/todo.cfg
diff --git a/deskutils/todo/files/patch-todo.sh b/deskutils/todo/files/patch-todo.sh
new file mode 100644
index 000000000000..794b6c7923bd
--- /dev/null
+++ b/deskutils/todo/files/patch-todo.sh
@@ -0,0 +1,11 @@
+--- todo.sh.orig	2020-08-12 04:44:46 UTC
++++ todo.sh
+@@ -622,7 +622,7 @@ TODOTXT_DEFAULT_ACTION=${TODOTXT_DEFAULT_ACTION:-}
+ TODOTXT_SORT_COMMAND=${TODOTXT_SORT_COMMAND:-env LC_COLLATE=C sort -f -k2}
+ TODOTXT_DISABLE_FILTER=${TODOTXT_DISABLE_FILTER:-}
+ TODOTXT_FINAL_FILTER=${TODOTXT_FINAL_FILTER:-cat}
+-TODOTXT_GLOBAL_CFG_FILE=${TODOTXT_GLOBAL_CFG_FILE:-/etc/todo/config}
++TODOTXT_GLOBAL_CFG_FILE=${TODOTXT_GLOBAL_CFG_FILE:-%%PREFIX%%/etc/todo.cfg}
+ TODOTXT_SIGIL_BEFORE_PATTERN=${TODOTXT_SIGIL_BEFORE_PATTERN:-}	# Allow any other non-whitespace entity before +project and @context; should be an optional match; example: \(w:\)\{0,1\} to allow w:@context.
+ TODOTXT_SIGIL_VALID_PATTERN=${TODOTXT_SIGIL_VALID_PATTERN:-.*}	# Limit the valid characters (from the default any non-whitespace sequence) for +project and @context; example: [a-zA-Z]\{3,\} to only allow alphabetic ones that are at least three characters long.
+ TODOTXT_SIGIL_AFTER_PATTERN=${TODOTXT_SIGIL_AFTER_PATTERN:-}	# Allow any other non-whitespace entity after +project and @context; should be an optional match; example: )\{0,1\} to allow (with the corresponding TODOTXT_SIGIL_BEFORE_PATTERN) enclosing in parentheses.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108082210.178MAcOF029159>