From a1eb3aeeecad529d09729406cf300f41609b3f85 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Mon, 6 Dec 2021 11:28:56 +0000 Subject: [PATCH] deskutils/todour: new port had been added (+) Todour is a cross-platform application for handling todo.txt files. PR: 260243 Submitted by: mizhka --- deskutils/Makefile | 1 + deskutils/todour/Makefile | 36 +++++++++++++++++++++++++++ deskutils/todour/distinfo | 7 ++++++ deskutils/todour/files/patch-main.cpp | 10 ++++++++ deskutils/todour/pkg-descr | 7 ++++++ 5 files changed, 61 insertions(+) create mode 100644 deskutils/todour/Makefile create mode 100644 deskutils/todour/distinfo create mode 100644 deskutils/todour/files/patch-main.cpp create mode 100644 deskutils/todour/pkg-descr diff --git a/deskutils/Makefile b/deskutils/Makefile index f2ec2fea3a387..b20c2d78f6e61 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -245,6 +245,7 @@ SUBDIR += thinkingrock SUBDIR += timewarrior SUBDIR += todo + SUBDIR += todour SUBDIR += toolboxkit SUBDIR += tpb SUBDIR += treeline diff --git a/deskutils/todour/Makefile b/deskutils/todour/Makefile new file mode 100644 index 0000000000000..b978b154eec1d --- /dev/null +++ b/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 diff --git a/deskutils/todour/distinfo b/deskutils/todour/distinfo new file mode 100644 index 0000000000000..3f83cf24a6eb4 --- /dev/null +++ b/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 diff --git a/deskutils/todour/files/patch-main.cpp b/deskutils/todour/files/patch-main.cpp new file mode 100644 index 0000000000000..26c21ee9cd73a --- /dev/null +++ b/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(); diff --git a/deskutils/todour/pkg-descr b/deskutils/todour/pkg-descr new file mode 100644 index 0000000000000..22d74c27bb708 --- /dev/null +++ b/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/