aboutsummaryrefslogtreecommitdiff
path: root/deskutils/todo/Makefile
blob: 4f39cb2a971a3e2d660c9c301be649db60ffb038 (plain) (blame)
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
PORTNAME=	todo
PORTVERSION=	2.12.0
CATEGORIES=	deskutils
MASTER_SITES=	https://github.com/todotxt/todo.txt-cli/releases/download/v${PORTVERSION}/
DISTNAME=	todo.txt_cli-${PORTVERSION}

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

LICENSE=	GPLv3

RUN_DEPENDS=	bash:shells/bash

USES=		shebangfix

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/todo \
		etc/todo.cfg \
		etc/bash_completion.d/todo

# bin/todo
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
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/
	${INSTALL_DATA} ${WRKSRC}/todo_completion ${STAGEDIR}${PREFIX}/etc/bash_completion.d/todo

.include <bsd.port.mk>