Skip to content

Commit

Permalink
deskutils/todour: new port had been added (+)
Browse files Browse the repository at this point in the history
Todour is a cross-platform application for handling todo.txt files.

PR:		260243
Submitted by:	mizhka
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Dec 6, 2021
1 parent 8ac3694 commit a1eb3ae
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions deskutils/Makefile
Expand Up @@ -245,6 +245,7 @@
SUBDIR += thinkingrock
SUBDIR += timewarrior
SUBDIR += todo
SUBDIR += todour
SUBDIR += toolboxkit
SUBDIR += tpb
SUBDIR += treeline
Expand Down
36 changes: 36 additions & 0 deletions deskutils/todour/Makefile
@@ -0,0 +1,36 @@
PORTNAME= ${GH_PROJECT:tl}
PORTVERSION= 2.20
DISTVERSIONPREFIX= v
CATEGORIES= deskutils

MAINTAINER= mizhka@FreeBSD.org
COMMENT= Qt-based UI for editing of todo.txt files

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>
7 changes: 7 additions & 0 deletions deskutils/todour/distinfo
@@ -0,0 +1,7 @@
TIMESTAMP = 1615671221
SHA256 (SverrirValgeirsson-Todour-v2.20_GH0.tar.gz) = f6a145ef9558697e3f9cf0c4ac4344419854f6bae1cd688a9d4bf865a78f6bc6
SIZE (SverrirValgeirsson-Todour-v2.20_GH0.tar.gz) = 176971
SHA256 (gamecreature-QtAwesome-86f3bb8_GH0.tar.gz) = c6d3ab27e1598ed5864cbf0c04c1cb542dec15a41eda1e79c16b28f8ce4c218b
SIZE (gamecreature-QtAwesome-86f3bb8_GH0.tar.gz) = 125556
SHA256 (falceeffect-UGlobalHotkey-2edc485_GH0.tar.gz) = 87e40b98e5d775f257aa4eb0d9683526426d20adb45491ab4b430915218c8b4b
SIZE (falceeffect-UGlobalHotkey-2edc485_GH0.tar.gz) = 5857
10 changes: 10 additions & 0 deletions deskutils/todour/files/patch-main.cpp
@@ -0,0 +1,10 @@
--- main.cpp.orig 2021-03-13 21:33:41 UTC
+++ main.cpp
@@ -5,6 +5,7 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
+ a.setWindowIcon(QIcon(":/icons/newicon.png"));
w.show();

return a.exec();
7 changes: 7 additions & 0 deletions deskutils/todour/pkg-descr
@@ -0,0 +1,7 @@
Todour is an application for handling todo.txt files (as made famous by
Gina Trapani of Lifehacker) on Windows, macOS, and Unix-like operating
systems. The format is especially practical for an approach similar to
the one suggested in the book ``Getting Things Done'' by David Allen,
often referred to as GTD.

WWW: https://nerdur.com/todour-pl/

0 comments on commit a1eb3ae

Please sign in to comment.