summaryrefslogtreecommitdiffstats
path: root/deskutils/todo/Makefile
blob: a37146e99a51591533f501b9ee06863707ae6f44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: ijliao
# $FreeBSD$

PORTNAME=	todo
PORTVERSION=	2.9
CATEGORIES=	deskutils
MASTER_SITES=	http://cloud.github.com/downloads/ginatrapani/todo.txt-cli/
DISTNAME=	todo.txt_cli-${PORTVERSION}

MAINTAINER=	clsung@FreeBSD.org
COMMENT=	Todo.txt Manager

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash

CONFLICTS=	devtodo-[0-9]*

OPTIONS_DEFINE=	BASH
BASH_DESC=	Install programmable completions for Bash

NO_STAGE=	yes
.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>
OpenPOWER on IntegriCloud