summaryrefslogtreecommitdiff
path: root/deskutils/todour/Makefile
blob: 3584a2680dc1d57f6f0a0c1e16b5be811958a37c (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
PORTNAME=	${GH_PROJECT:tl}
PORTVERSION=	2.21
DISTVERSIONPREFIX=	v
CATEGORIES=	deskutils

MAINTAINER=	mizhka@FreeBSD.org
COMMENT=	Qt-based UI for editing of todo.txt files
WWW=		https://nerdur.com/todour-pl/

LICENSE=	GPLv2

USES=		qmake qt:5
USE_QT=		buildtools_build core gui network widgets
USE_GITHUB=	yes
GH_ACCOUNT=	SverrirValgeirsson
GH_PROJECT=	Todour
GH_TUPLE=	gamecreature:QtAwesome:86f3bb8:gamecreature/QtAwesome \
		falceeffect:UGlobalHotkey:2edc485:falceeffect/UGlobalHotkey

DESKTOP_ENTRIES="${GH_PROJECT}" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" \
		"Utility;TextTools;" false

PLIST_FILES=	bin/${PORTNAME} \
		share/icons/hicolor/512x512/apps/${PORTNAME}.png

post-patch:
	@${REINPLACE_CMD} -e 's,$$$$system(perl ver.*,${PORTVERSION},' \
		${WRKSRC}/Todour.pro

do-install:
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/Todour \
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps
	${INSTALL_DATA} ${INSTALL_WRKSRC}/newicon.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/512x512/apps/${PORTNAME}.png

.include <bsd.port.mk>