From nobody Tue Aug 29 08:07:03 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZg4l5Spcz4rVdT; Tue, 29 Aug 2023 08:07:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZg4l4zmsz4PRJ; Tue, 29 Aug 2023 08:07:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693296423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GLQZ5t+A/axta6eqvznqgUi05k8ZzWW23AAC6vK8g5w=; b=tTcm7Mqoi+VHlVBw3r0CmgKtO9BBGL2n33PZ/x6Hm218nCN8dNDMQ3tpuaCaN3oR5ZNvsy TsTj6E100l9RqyFry9hwa4IuPCIr4/CPESRlA2sc0UU+0ILwR4p8I/zwktS2gc9mz/7nPe PFqTahMySjZyk9njRz/25X3wM6SsgqCn9kXIjW0JdvTHO7JXioo/fUQYs5/3nYeAbkJJqr lprK9T5yifx644/LYRtt/AJ3GsskGyrD1+pniQF69f+TY8yG1J1D7yxzFSvfpjzvCHUnkM Dup8N/lqvfGtUUPJd391bpQDrJQ9w7Jk4qdQxsBGTO3iEHIVdUzTeGZXm3kM/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693296423; a=rsa-sha256; cv=none; b=ItAXLNAABWE94NbVoaYAhDSaITy2QH4KeLT2i2xAO8usLm3RafmqZtNZdAosNjfDEDKlpX HGciqMeiVq2D8GvS6zIPvB7BFnLtBM2h7PdUw5HPZbVo48433ayN6kzh6TH+wcGTaTferq 1TTBPKeYJLKZ/ZT1/+Be9Q6mn173yPXs5CC+12OxCTa10VzpogqeC6RCdgK/VCYRRBvFu7 HM28IERpPdd7OE9xXKjriTJXy72zTT+QBLQxmex267PxYu/eCv/gjzV5dslI0yKC+5nzPJ WXUZjxupvA/ix5TzKE7UYm5AKKAVYtseU71dXDLC9fLjeco2TgFQHMoxCQZlgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693296423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GLQZ5t+A/axta6eqvznqgUi05k8ZzWW23AAC6vK8g5w=; b=A18X7cfv981Ln/d6LayLviWqtj2k2hw5fKIYSaawWl9/j2chUYU2MXKMqZcDhwWwtwO4NA FW2R2ukXSCfLYvxFEhu8Q9edi5F0EJIhJ7P1546vZZ7340E/B33wxA/29yzVeyx1H9BtIV +K8b+5qbjtvt8+dhD+jzOhYiuN/OxY2/Mhdoo+Yrnv0dlWwHoEwp17FIjRbeS7e5os6tOq k+zLFnarLLa1dy5Q3kMf3ynYqavVVW8AvU3r5S7cL5DcW/4/Os0DZFGs6HaPE2xxa+sd/6 Vb4Cqmzr2I6Z+veJj3iVngjfuqAweNrwVvXi+ammbJRi7YKXRFqShu1XaDv/4g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RZg4l42Tnzk1B; Tue, 29 Aug 2023 08:07:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37T873gl025733; Tue, 29 Aug 2023 08:07:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37T8731d025730; Tue, 29 Aug 2023 08:07:03 GMT (envelope-from git) Date: Tue, 29 Aug 2023 08:07:03 GMT Message-Id: <202308290807.37T8731d025730@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 78abcea23940 - main - deskutils/mytetra: new port had been added (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 78abcea2394065ac13fe28e841993b39a3c912a2 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=78abcea2394065ac13fe28e841993b39a3c912a2 commit 78abcea2394065ac13fe28e841993b39a3c912a2 Author: Alexey Dokuchaev AuthorDate: 2023-08-29 08:05:56 +0000 Commit: Alexey Dokuchaev CommitDate: 2023-08-29 08:05:56 +0000 deskutils/mytetra: new port had been added (+) MyTetra is advanced graphical manager for information collecting and organizing written with C++/Qt5. --- deskutils/Makefile | 1 + deskutils/mytetra/Makefile | 24 +++++++++++++ deskutils/mytetra/distinfo | 3 ++ deskutils/mytetra/files/patch-mytetra.pro | 58 ++++++++++++++++++++++++++++++ deskutils/mytetra/files/patch-src_main.cpp | 21 +++++++++++ deskutils/mytetra/pkg-descr | 8 +++++ 6 files changed, 115 insertions(+) diff --git a/deskutils/Makefile b/deskutils/Makefile index 874b8cf62bb8..be7f7497084d 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -183,6 +183,7 @@ SUBDIR += mindforger SUBDIR += moregroupware SUBDIR += mozo + SUBDIR += mytetra SUBDIR += nautilus-sendto SUBDIR += nextcloudclient SUBDIR += note diff --git a/deskutils/mytetra/Makefile b/deskutils/mytetra/Makefile new file mode 100644 index 000000000000..a1fd2c746a6e --- /dev/null +++ b/deskutils/mytetra/Makefile @@ -0,0 +1,24 @@ +PORTNAME= mytetra +DISTVERSION= 1_43_27 +CATEGORIES= deskutils +MASTER_SITES= https://webhamster.ru/db/data/articles/105/ \ + http://vault.101011010.xyz/distfiles/ +DISTNAME= ${PORTNAME}_${DISTVERSION}_src + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Smart manager for information collecting +WWW= https://webhamster.ru/site/page/index/articles/projectcode/138 + +LICENSE= GPLv3 + +USES= gmake qmake qt:5 zip +USE_QT= buildtools:build core gui network printsupport svg widgets xml + +PLIST_FILES= bin/mytetra share/applications/mytetra.desktop \ + share/icons/hicolor/48x48/apps/mytetra.png \ + share/icons/hicolor/scalable/apps/mytetra.svg + +post-extract: + ${CHMOD} -x ${WRKSRC}/desktop/any/mytetra.desktop + +.include diff --git a/deskutils/mytetra/distinfo b/deskutils/mytetra/distinfo new file mode 100644 index 000000000000..3279449e5c03 --- /dev/null +++ b/deskutils/mytetra/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1530899149 +SHA256 (mytetra_1_43_27_src.zip) = f649d1932c7a40ba2e5e7258fac672c7a90cb46273cfb50b21d8c7f300c1ac6d +SIZE (mytetra_1_43_27_src.zip) = 14309620 diff --git a/deskutils/mytetra/files/patch-mytetra.pro b/deskutils/mytetra/files/patch-mytetra.pro new file mode 100644 index 000000000000..7de75a0ab899 --- /dev/null +++ b/deskutils/mytetra/files/patch-mytetra.pro @@ -0,0 +1,58 @@ +--- mytetra.pro.orig 2018-06-12 15:49:29 UTC ++++ mytetra.pro +@@ -6,7 +6,7 @@ TARGET_OS=ANY_OS + + # Build type + # "debug" or "release" +-BUILD_TYPE="debug" ++BUILD_TYPE=$$find(CONFIG, debug|release) + + # Enable console for Windows + # 0 - disable, 1 - enable +@@ -54,13 +54,7 @@ QT = gui \ + CONFIG += qt \ + warn_on + +-# If debug build +-equals(BUILD_TYPE, "debug") { +- message(Is debug build) +- CONFIG += debug +-} else { +- message(Is release build) +-} ++message(Is $$first(BUILD_TYPE) build) + + # If Windows console enable + equals(WINDOWS_CONSOLE_ENABLE, 1) { +@@ -91,7 +85,7 @@ INCLUDEPATH += $${_PRO_FILE_PWD_}/src + contains(TARGET_OS, ANY_OS) { + message(Building the any OS version...) + SYSTEM_PROGRAM_NAME=mytetra +- BINARY_INSTALL_PATH=/usr/local/bin ++ BINARY_INSTALL_PATH=$$PREFIX/bin + } + + contains(TARGET_OS, MEEGO_OS){ +@@ -115,7 +109,7 @@ message(Set installation directory for binary file to + target.path=$${BINARY_INSTALL_PATH} + INSTALLS+=target + +-desktop_file.path=/usr/share/applications ++desktop_file.path=$$PREFIX/share/applications + contains(TARGET_OS, ANY_OS) { + desktop_file.files=desktop/any/mytetra.desktop + } +@@ -127,11 +121,11 @@ contains(TARGET_OS, ANDROID_OS) { + } + INSTALLS+=desktop_file + +-icon_scalable_file.path=/usr/share/icons/hicolor/scalable/apps ++icon_scalable_file.path=$$PREFIX/share/icons/hicolor/scalable/apps + icon_scalable_file.files=desktop/mytetra.svg + INSTALLS+=icon_scalable_file + +-icon_48_file.path=/usr/share/icons/hicolor/48x48/apps ++icon_48_file.path=$$PREFIX/share/icons/hicolor/48x48/apps + icon_48_file.files=desktop/mytetra.png + INSTALLS+=icon_48_file + diff --git a/deskutils/mytetra/files/patch-src_main.cpp b/deskutils/mytetra/files/patch-src_main.cpp new file mode 100644 index 000000000000..72499d23cd9c --- /dev/null +++ b/deskutils/mytetra/files/patch-src_main.cpp @@ -0,0 +1,21 @@ +--- src/main.cpp.orig 2018-06-17 14:02:54 UTC ++++ src/main.cpp +@@ -1,4 +1,4 @@ +-#include ++#include + + #include + #include +@@ -572,9 +572,9 @@ int getMilliCount(void) + // Something like GetTickCount but portable + // It rolls over every ~ 12.1 days (0x100000/24/60/60) + // Use getMilliSpan to correct for rollover +- timeb tb; +- ftime( &tb ); +- int nCount = tb.millitm + (tb.time & 0xfffff) * 1000; ++ timeval tv; ++ gettimeofday(&tv, NULL); ++ int nCount = tv.tv_usec / 1000 + (tv.tv_sec & 0xfffff) * 1000; + return nCount; + } + diff --git a/deskutils/mytetra/pkg-descr b/deskutils/mytetra/pkg-descr new file mode 100644 index 000000000000..a53bba91a994 --- /dev/null +++ b/deskutils/mytetra/pkg-descr @@ -0,0 +1,8 @@ +MyTetra is a full-featured, open-source, cross-platform note manager +(PIM-manager) used to collect and accumulate various kinds of information. +All entries (notes, articles) are organized in a tree structure, as well +as supplied with keywords tags that allow you to quickly find the right +entries. Links between records, attachments, encryption, detailed search, +synchronization, copying from the browser, one of the best visual WYSIWYG +text editors -- all this is in the PIM-manager MyTetra. It is powerful +program for data memorization and structuring notes.