aboutsummaryrefslogtreecommitdiff
path: root/deskutils/todo
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2012-06-01 21:24:42 +0000
committerJason Helfman <jgh@FreeBSD.org>2012-06-01 21:24:42 +0000
commit953efe34cc82a65b411454426142d35426a61bd7 (patch)
tree966f345385a22411c9e415947a6e3ac3bf879d24 /deskutils/todo
parentefe29fdb6d29cf04e7b6f74d8acbea255e202e9f (diff)
downloadports-953efe34cc82a65b411454426142d35426a61bd7.tar.gz
ports-953efe34cc82a65b411454426142d35426a61bd7.zip
- update to 2.9
- add new option to install bash completions PR: ports/168092 Submitted by: jgh Approved by: maintainer timeout ( 15 days )
Notes
Notes: svn path=/head/; revision=297977
Diffstat (limited to 'deskutils/todo')
-rw-r--r--deskutils/todo/Makefile21
-rw-r--r--deskutils/todo/distinfo4
2 files changed, 22 insertions, 3 deletions
diff --git a/deskutils/todo/Makefile b/deskutils/todo/Makefile
index 7d77ad39081e..f7462caebfd7 100644
--- a/deskutils/todo/Makefile
+++ b/deskutils/todo/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= todo
-PORTVERSION= 2.7
+PORTVERSION= 2.9
CATEGORIES= deskutils
MASTER_SITES= http://cloud.github.com/downloads/ginatrapani/todo.txt-cli/
DISTNAME= todo.txt_cli-${PORTVERSION}
@@ -17,15 +17,34 @@ COMMENT= Todo.txt Manager
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+OPTIONS_DEFINE= BASH
+BASH_DESC= Install programmable completions for Bash
+
+.include <bsd.port.options.mk>
+
NO_BUILD= yes
PLIST_FILES= bin/todo etc/todo.cfg
+.if ${PORT_OPTIONS:MBASH}
+PLIST_FILES+= etc/bash_completion.d/todo
+PLIST_DIRSTRY+= etc/bash_completion.d
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s,/bin/bash,${LOCALBASE}/bin/bash," ${WRKSRC}/todo.sh
+.if ${PORT_OPTIONS:MBASH}
+ @${REINPLACE_CMD} -e "s,/bin/bash,${LOCALBASE}/bin/bash," ${WRKSRC}/todo_completion
+.endif
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/todo.sh ${PREFIX}/bin/todo
@${INSTALL_DATA} ${WRKSRC}/todo.cfg ${PREFIX}/etc/todo.cfg
+post-install:
+.if ${PORT_OPTIONS:MBASH}
+ ${MKDIR} ${PREFIX}/etc/bash_completion.d
+ ${INSTALL_DATA} ${WRKSRC}/todo_completion ${PREFIX}/etc/bash_completion.d/todo
+.endif
+
.include <bsd.port.mk>
diff --git a/deskutils/todo/distinfo b/deskutils/todo/distinfo
index 852656d82aa5..23d2c6cd566c 100644
--- a/deskutils/todo/distinfo
+++ b/deskutils/todo/distinfo
@@ -1,2 +1,2 @@
-SHA256 (todo.txt_cli-2.7.tar.gz) = a40475d072d68b79cbf04bfe0ba0a289b3bdc2da1210c5913f1364088e9d3cd1
-SIZE (todo.txt_cli-2.7.tar.gz) = 9590
+SHA256 (todo.txt_cli-2.9.tar.gz) = 861262f97206056ea3c680e9a9c444ed05b765bb79834d5ad31f51e4520e6731
+SIZE (todo.txt_cli-2.9.tar.gz) = 13359