Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tikzit-2.1.6
@ 2023-10-14 22:17 Piraty
  2023-10-14 22:17 ` [PR PATCH] [Updated] " Piraty
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Piraty @ 2023-10-14 22:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

There is a new pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages new-tikzit
https://github.com/void-linux/void-packages/pull/46682

New package: tikzit-2.1.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Closes: #45813
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46682.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-tikzit-46682.patch --]
[-- Type: text/x-diff, Size: 6152 bytes --]

From fdc4ef67a0c672155f14e9969e71aa2c18b415ec Mon Sep 17 00:00:00 2001
From: Piraty <mail@piraty.dev>
Date: Sat, 14 Oct 2023 23:59:14 +0200
Subject: [PATCH] New package: tikzit-2.1.6

---
 .../patches/missing-source-files.cmake.patch  |  20 +++
 srcpkgs/tikzit/patches/no-update-check.patch  | 127 ++++++++++++++++++
 srcpkgs/tikzit/template                       |  20 +++
 3 files changed, 167 insertions(+)
 create mode 100644 srcpkgs/tikzit/patches/missing-source-files.cmake.patch
 create mode 100644 srcpkgs/tikzit/patches/no-update-check.patch
 create mode 100644 srcpkgs/tikzit/template

diff --git a/srcpkgs/tikzit/patches/missing-source-files.cmake.patch b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
new file mode 100644
index 0000000000000..abf79db019b20
--- /dev/null
+++ b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..d928dae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,6 +36,7 @@ set(SOURCES
+     src/data/graphelementdata.cpp
+     src/data/graphelementproperty.cpp
+     src/data/node.cpp
++    src/data/path.cpp
+     src/data/pdfdocument.cpp
+     src/data/style.cpp
+     src/data/stylelist.cpp
+@@ -50,6 +51,7 @@ set(SOURCES
+     src/gui/mainmenu.cpp
+     src/gui/mainwindow.cpp
+     src/gui/nodeitem.cpp
++    src/gui/pathitem.cpp
+     src/gui/preferencedialog.cpp
+     src/gui/previewwindow.cpp
+     src/gui/propertypalette.cpp
diff --git a/srcpkgs/tikzit/patches/no-update-check.patch b/srcpkgs/tikzit/patches/no-update-check.patch
new file mode 100644
index 0000000000000..eae5f90c91510
--- /dev/null
+++ b/srcpkgs/tikzit/patches/no-update-check.patch
@@ -0,0 +1,127 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..3552f08 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ set(CMAKE_AUTOMOC ON)
+ #set(CMAKE_AUTOUIC ON)
+ 
+-find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)
++find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
+ find_package(BISON)
+ find_package(FLEX)
+ 
+@@ -123,7 +123,7 @@ add_executable(tikzit
+     ${QT_RESOURCES})
+ 
+ target_link_libraries(${PROJECT_NAME}
+-    Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
++    Qt5::Core Qt5::Gui Qt5::Widgets
+     ${Poppler_LIBRARIES})
+ 
+ install (TARGETS tikzit DESTINATION bin)
+diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
+index 11778db..567bb69 100644
+--- a/src/gui/mainmenu.ui
++++ b/src/gui/mainmenu.ui
+@@ -357,6 +357,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_for_updates_automatically">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="checkable">
+     <bool>true</bool>
+    </property>
+@@ -365,6 +368,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_now">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="text">
+     <string>Check now</string>
+    </property>
+diff --git a/src/tikzit.cpp b/src/tikzit.cpp
+index a286630..27e4557 100644
+--- a/src/tikzit.cpp
++++ b/src/tikzit.cpp
+@@ -30,7 +30,6 @@
+ #include <QMessageBox>
+ #include <QRegularExpression>
+ #include <QVersionNumber>
+-#include <QNetworkAccessManager>
+ #include <QColorDialog>
+ 
+ // application-level instance of Tikzit
+@@ -70,6 +69,7 @@ void Tikzit::init()
+     QString styleFile = settings.value("previous-tikzstyles-file").toString();
+     if (!styleFile.isEmpty()) loadStyles(styleFile);
+ 
++	/*
+     QVariant check = settings.value("check-for-updates");
+     if (check.isNull()) {
+         int resp = QMessageBox::question(nullptr,
+@@ -87,6 +87,8 @@ void Tikzit::init()
+     if (check.toBool()) {
+         checkForUpdates(false);
+     }
++	*/
++    setCheckForUpdates(false); //disable gui toolbar menu checkbox
+ 
+     _preview = new PreviewWindow();
+     _latex = nullptr;
+@@ -352,6 +354,8 @@ void Tikzit::setCheckForUpdates(bool check)
+ 
+ void Tikzit::checkForUpdates(bool manual)
+ {
++	return;
++	/*
+     QNetworkAccessManager *manager = new QNetworkAccessManager(this);
+ 
+     if (manual) {
+@@ -363,8 +367,10 @@ void Tikzit::checkForUpdates(bool manual)
+     }
+ 
+     manager->get(QNetworkRequest(QUrl("https://tikzit.github.io/latest-version.txt")));
++	*/
+ }
+ 
++/*
+ void Tikzit::updateAuto(QNetworkReply *reply)
+ {
+     updateReply(reply, false);
+@@ -422,6 +428,7 @@ void Tikzit::updateReply(QNetworkReply *reply, bool manual)
+         }
+     }
+ }
++*/
+ 
+ void Tikzit::makePreview()
+ {
+diff --git a/src/tikzit.h b/src/tikzit.h
+index 5debdf3..bff96d7 100644
+--- a/src/tikzit.h
++++ b/src/tikzit.h
+@@ -71,7 +71,6 @@
+ #include <QMainWindow>
+ #include <QFont>
+ #include <QColor>
+-#include <QNetworkReply>
+ 
+ // Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
+ // divisible by 8 to avoid rounding errors with e.g. grid-snapping.
+@@ -142,9 +141,11 @@ public slots:
+     void clearRecentFiles();
+     void setCheckForUpdates(bool check);
+     void checkForUpdates(bool manual);
++	/*
+     void updateAuto(QNetworkReply *reply);
+     void updateManual(QNetworkReply *reply);
+     void updateReply(QNetworkReply *reply, bool manual);
++	*/
+     void makePreview();
+     void cleanupLatex();
+ 
diff --git a/srcpkgs/tikzit/template b/srcpkgs/tikzit/template
new file mode 100644
index 0000000000000..7492350ab2543
--- /dev/null
+++ b/srcpkgs/tikzit/template
@@ -0,0 +1,20 @@
+# Template file for 'tikzit'
+pkgname=tikzit
+version=2.1.6
+revision=1
+#archs="i686 x86_64"
+#build_wrksrc
+build_style=cmake
+#configure_args=""
+#make_build_args=""
+#make_install_args=""
+#conf_files=""
+#make_dirs="/var/log/dir 0755 root root"
+hostmakedepends="extra-cmake-modules flex bison"
+makedepends="qt5-devel poppler-qt5-devel poppler-cpp-devel"
+short_desc="Pgf/TikZ diagram editor"
+maintainer="Piraty <mail@piraty.dev>"
+license="GPL-3.0-or-later"
+homepage="https://tikzit.github.io/"
+distfiles="https://github.com/tikzit/tikzit/archive/refs/tags/v${version}.tar.gz"
+checksum=40e160f654a25a3a36d6a5361eef71a51f9d3b5eec3b42dd9246ec26402149d1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] New package: tikzit-2.1.6
  2023-10-14 22:17 [PR PATCH] New package: tikzit-2.1.6 Piraty
@ 2023-10-14 22:17 ` Piraty
  2023-10-14 22:50 ` Piraty
  2023-10-16 12:49 ` [PR PATCH] [Merged]: " Piraty
  2 siblings, 0 replies; 4+ messages in thread
From: Piraty @ 2023-10-14 22:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages new-tikzit
https://github.com/void-linux/void-packages/pull/46682

New package: tikzit-2.1.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Closes: #45813
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46682.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-tikzit-46682.patch --]
[-- Type: text/x-diff, Size: 5992 bytes --]

From 49f8a51f8e90ba068174e535f71b7924164c79ee Mon Sep 17 00:00:00 2001
From: Piraty <mail@piraty.dev>
Date: Sat, 14 Oct 2023 23:59:14 +0200
Subject: [PATCH] New package: tikzit-2.1.6

---
 .../patches/missing-source-files.cmake.patch  |  20 +++
 srcpkgs/tikzit/patches/no-update-check.patch  | 127 ++++++++++++++++++
 srcpkgs/tikzit/template                       |  13 ++
 3 files changed, 160 insertions(+)
 create mode 100644 srcpkgs/tikzit/patches/missing-source-files.cmake.patch
 create mode 100644 srcpkgs/tikzit/patches/no-update-check.patch
 create mode 100644 srcpkgs/tikzit/template

diff --git a/srcpkgs/tikzit/patches/missing-source-files.cmake.patch b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
new file mode 100644
index 0000000000000..abf79db019b20
--- /dev/null
+++ b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..d928dae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,6 +36,7 @@ set(SOURCES
+     src/data/graphelementdata.cpp
+     src/data/graphelementproperty.cpp
+     src/data/node.cpp
++    src/data/path.cpp
+     src/data/pdfdocument.cpp
+     src/data/style.cpp
+     src/data/stylelist.cpp
+@@ -50,6 +51,7 @@ set(SOURCES
+     src/gui/mainmenu.cpp
+     src/gui/mainwindow.cpp
+     src/gui/nodeitem.cpp
++    src/gui/pathitem.cpp
+     src/gui/preferencedialog.cpp
+     src/gui/previewwindow.cpp
+     src/gui/propertypalette.cpp
diff --git a/srcpkgs/tikzit/patches/no-update-check.patch b/srcpkgs/tikzit/patches/no-update-check.patch
new file mode 100644
index 0000000000000..eae5f90c91510
--- /dev/null
+++ b/srcpkgs/tikzit/patches/no-update-check.patch
@@ -0,0 +1,127 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..3552f08 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ set(CMAKE_AUTOMOC ON)
+ #set(CMAKE_AUTOUIC ON)
+ 
+-find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)
++find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
+ find_package(BISON)
+ find_package(FLEX)
+ 
+@@ -123,7 +123,7 @@ add_executable(tikzit
+     ${QT_RESOURCES})
+ 
+ target_link_libraries(${PROJECT_NAME}
+-    Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
++    Qt5::Core Qt5::Gui Qt5::Widgets
+     ${Poppler_LIBRARIES})
+ 
+ install (TARGETS tikzit DESTINATION bin)
+diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
+index 11778db..567bb69 100644
+--- a/src/gui/mainmenu.ui
++++ b/src/gui/mainmenu.ui
+@@ -357,6 +357,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_for_updates_automatically">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="checkable">
+     <bool>true</bool>
+    </property>
+@@ -365,6 +368,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_now">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="text">
+     <string>Check now</string>
+    </property>
+diff --git a/src/tikzit.cpp b/src/tikzit.cpp
+index a286630..27e4557 100644
+--- a/src/tikzit.cpp
++++ b/src/tikzit.cpp
+@@ -30,7 +30,6 @@
+ #include <QMessageBox>
+ #include <QRegularExpression>
+ #include <QVersionNumber>
+-#include <QNetworkAccessManager>
+ #include <QColorDialog>
+ 
+ // application-level instance of Tikzit
+@@ -70,6 +69,7 @@ void Tikzit::init()
+     QString styleFile = settings.value("previous-tikzstyles-file").toString();
+     if (!styleFile.isEmpty()) loadStyles(styleFile);
+ 
++	/*
+     QVariant check = settings.value("check-for-updates");
+     if (check.isNull()) {
+         int resp = QMessageBox::question(nullptr,
+@@ -87,6 +87,8 @@ void Tikzit::init()
+     if (check.toBool()) {
+         checkForUpdates(false);
+     }
++	*/
++    setCheckForUpdates(false); //disable gui toolbar menu checkbox
+ 
+     _preview = new PreviewWindow();
+     _latex = nullptr;
+@@ -352,6 +354,8 @@ void Tikzit::setCheckForUpdates(bool check)
+ 
+ void Tikzit::checkForUpdates(bool manual)
+ {
++	return;
++	/*
+     QNetworkAccessManager *manager = new QNetworkAccessManager(this);
+ 
+     if (manual) {
+@@ -363,8 +367,10 @@ void Tikzit::checkForUpdates(bool manual)
+     }
+ 
+     manager->get(QNetworkRequest(QUrl("https://tikzit.github.io/latest-version.txt")));
++	*/
+ }
+ 
++/*
+ void Tikzit::updateAuto(QNetworkReply *reply)
+ {
+     updateReply(reply, false);
+@@ -422,6 +428,7 @@ void Tikzit::updateReply(QNetworkReply *reply, bool manual)
+         }
+     }
+ }
++*/
+ 
+ void Tikzit::makePreview()
+ {
+diff --git a/src/tikzit.h b/src/tikzit.h
+index 5debdf3..bff96d7 100644
+--- a/src/tikzit.h
++++ b/src/tikzit.h
+@@ -71,7 +71,6 @@
+ #include <QMainWindow>
+ #include <QFont>
+ #include <QColor>
+-#include <QNetworkReply>
+ 
+ // Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
+ // divisible by 8 to avoid rounding errors with e.g. grid-snapping.
+@@ -142,9 +141,11 @@ public slots:
+     void clearRecentFiles();
+     void setCheckForUpdates(bool check);
+     void checkForUpdates(bool manual);
++	/*
+     void updateAuto(QNetworkReply *reply);
+     void updateManual(QNetworkReply *reply);
+     void updateReply(QNetworkReply *reply, bool manual);
++	*/
+     void makePreview();
+     void cleanupLatex();
+ 
diff --git a/srcpkgs/tikzit/template b/srcpkgs/tikzit/template
new file mode 100644
index 0000000000000..daf441a82c35f
--- /dev/null
+++ b/srcpkgs/tikzit/template
@@ -0,0 +1,13 @@
+# Template file for 'tikzit'
+pkgname=tikzit
+version=2.1.6
+revision=1
+build_style=cmake
+hostmakedepends="extra-cmake-modules flex bison"
+makedepends="qt5-devel poppler-qt5-devel poppler-cpp-devel"
+short_desc="Pgf/TikZ diagram editor"
+maintainer="Piraty <mail@piraty.dev>"
+license="GPL-3.0-or-later"
+homepage="https://tikzit.github.io/"
+distfiles="https://github.com/tikzit/tikzit/archive/refs/tags/v${version}.tar.gz"
+checksum=40e160f654a25a3a36d6a5361eef71a51f9d3b5eec3b42dd9246ec26402149d1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Updated] New package: tikzit-2.1.6
  2023-10-14 22:17 [PR PATCH] New package: tikzit-2.1.6 Piraty
  2023-10-14 22:17 ` [PR PATCH] [Updated] " Piraty
@ 2023-10-14 22:50 ` Piraty
  2023-10-16 12:49 ` [PR PATCH] [Merged]: " Piraty
  2 siblings, 0 replies; 4+ messages in thread
From: Piraty @ 2023-10-14 22:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1263 bytes --]

There is an updated pull request by Piraty against master on the void-packages repository

https://github.com/Piraty/void-packages new-tikzit
https://github.com/void-linux/void-packages/pull/46682

New package: tikzit-2.1.6
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Closes: #45813
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46682.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-tikzit-46682.patch --]
[-- Type: text/x-diff, Size: 6017 bytes --]

From d852f642aefa55d5362b9edb9b543686b654d5d6 Mon Sep 17 00:00:00 2001
From: Piraty <mail@piraty.dev>
Date: Sat, 14 Oct 2023 23:59:14 +0200
Subject: [PATCH] New package: tikzit-2.1.6

---
 .../patches/missing-source-files.cmake.patch  |  20 +++
 srcpkgs/tikzit/patches/no-update-check.patch  | 127 ++++++++++++++++++
 srcpkgs/tikzit/template                       |  13 ++
 3 files changed, 160 insertions(+)
 create mode 100644 srcpkgs/tikzit/patches/missing-source-files.cmake.patch
 create mode 100644 srcpkgs/tikzit/patches/no-update-check.patch
 create mode 100644 srcpkgs/tikzit/template

diff --git a/srcpkgs/tikzit/patches/missing-source-files.cmake.patch b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
new file mode 100644
index 0000000000000..abf79db019b20
--- /dev/null
+++ b/srcpkgs/tikzit/patches/missing-source-files.cmake.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..d928dae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -36,6 +36,7 @@ set(SOURCES
+     src/data/graphelementdata.cpp
+     src/data/graphelementproperty.cpp
+     src/data/node.cpp
++    src/data/path.cpp
+     src/data/pdfdocument.cpp
+     src/data/style.cpp
+     src/data/stylelist.cpp
+@@ -50,6 +51,7 @@ set(SOURCES
+     src/gui/mainmenu.cpp
+     src/gui/mainwindow.cpp
+     src/gui/nodeitem.cpp
++    src/gui/pathitem.cpp
+     src/gui/preferencedialog.cpp
+     src/gui/previewwindow.cpp
+     src/gui/propertypalette.cpp
diff --git a/srcpkgs/tikzit/patches/no-update-check.patch b/srcpkgs/tikzit/patches/no-update-check.patch
new file mode 100644
index 0000000000000..eae5f90c91510
--- /dev/null
+++ b/srcpkgs/tikzit/patches/no-update-check.patch
@@ -0,0 +1,127 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 67b61fa..3552f08 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
+ set(CMAKE_AUTOMOC ON)
+ #set(CMAKE_AUTOUIC ON)
+ 
+-find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets Network)
++find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
+ find_package(BISON)
+ find_package(FLEX)
+ 
+@@ -123,7 +123,7 @@ add_executable(tikzit
+     ${QT_RESOURCES})
+ 
+ target_link_libraries(${PROJECT_NAME}
+-    Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network
++    Qt5::Core Qt5::Gui Qt5::Widgets
+     ${Poppler_LIBRARIES})
+ 
+ install (TARGETS tikzit DESTINATION bin)
+diff --git a/src/gui/mainmenu.ui b/src/gui/mainmenu.ui
+index 11778db..567bb69 100644
+--- a/src/gui/mainmenu.ui
++++ b/src/gui/mainmenu.ui
+@@ -357,6 +357,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_for_updates_automatically">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="checkable">
+     <bool>true</bool>
+    </property>
+@@ -365,6 +368,9 @@
+    </property>
+   </action>
+   <action name="actionCheck_now">
++  <property name="enabled">
++    <bool>false</bool>
++  </property>
+    <property name="text">
+     <string>Check now</string>
+    </property>
+diff --git a/src/tikzit.cpp b/src/tikzit.cpp
+index a286630..27e4557 100644
+--- a/src/tikzit.cpp
++++ b/src/tikzit.cpp
+@@ -30,7 +30,6 @@
+ #include <QMessageBox>
+ #include <QRegularExpression>
+ #include <QVersionNumber>
+-#include <QNetworkAccessManager>
+ #include <QColorDialog>
+ 
+ // application-level instance of Tikzit
+@@ -70,6 +69,7 @@ void Tikzit::init()
+     QString styleFile = settings.value("previous-tikzstyles-file").toString();
+     if (!styleFile.isEmpty()) loadStyles(styleFile);
+ 
++	/*
+     QVariant check = settings.value("check-for-updates");
+     if (check.isNull()) {
+         int resp = QMessageBox::question(nullptr,
+@@ -87,6 +87,8 @@ void Tikzit::init()
+     if (check.toBool()) {
+         checkForUpdates(false);
+     }
++	*/
++    setCheckForUpdates(false); //disable gui toolbar menu checkbox
+ 
+     _preview = new PreviewWindow();
+     _latex = nullptr;
+@@ -352,6 +354,8 @@ void Tikzit::setCheckForUpdates(bool check)
+ 
+ void Tikzit::checkForUpdates(bool manual)
+ {
++	return;
++	/*
+     QNetworkAccessManager *manager = new QNetworkAccessManager(this);
+ 
+     if (manual) {
+@@ -363,8 +367,10 @@ void Tikzit::checkForUpdates(bool manual)
+     }
+ 
+     manager->get(QNetworkRequest(QUrl("https://tikzit.github.io/latest-version.txt")));
++	*/
+ }
+ 
++/*
+ void Tikzit::updateAuto(QNetworkReply *reply)
+ {
+     updateReply(reply, false);
+@@ -422,6 +428,7 @@ void Tikzit::updateReply(QNetworkReply *reply, bool manual)
+         }
+     }
+ }
++*/
+ 
+ void Tikzit::makePreview()
+ {
+diff --git a/src/tikzit.h b/src/tikzit.h
+index 5debdf3..bff96d7 100644
+--- a/src/tikzit.h
++++ b/src/tikzit.h
+@@ -71,7 +71,6 @@
+ #include <QMainWindow>
+ #include <QFont>
+ #include <QColor>
+-#include <QNetworkReply>
+ 
+ // Number of pixels between (0,0) and (1,0) at 100% zoom level. This should be
+ // divisible by 8 to avoid rounding errors with e.g. grid-snapping.
+@@ -142,9 +141,11 @@ public slots:
+     void clearRecentFiles();
+     void setCheckForUpdates(bool check);
+     void checkForUpdates(bool manual);
++	/*
+     void updateAuto(QNetworkReply *reply);
+     void updateManual(QNetworkReply *reply);
+     void updateReply(QNetworkReply *reply, bool manual);
++	*/
+     void makePreview();
+     void cleanupLatex();
+ 
diff --git a/srcpkgs/tikzit/template b/srcpkgs/tikzit/template
new file mode 100644
index 0000000000000..eeca4781b00c2
--- /dev/null
+++ b/srcpkgs/tikzit/template
@@ -0,0 +1,13 @@
+# Template file for 'tikzit'
+pkgname=tikzit
+version=2.1.6
+revision=1
+build_style=cmake
+hostmakedepends="qt5-host-tools qt5-qmake extra-cmake-modules flex bison"
+makedepends="qt5-devel poppler-qt5-devel poppler-cpp-devel"
+short_desc="Pgf/TikZ diagram editor"
+maintainer="Piraty <mail@piraty.dev>"
+license="GPL-3.0-or-later"
+homepage="https://tikzit.github.io/"
+distfiles="https://github.com/tikzit/tikzit/archive/refs/tags/v${version}.tar.gz"
+checksum=40e160f654a25a3a36d6a5361eef71a51f9d3b5eec3b42dd9246ec26402149d1

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Merged]: New package: tikzit-2.1.6
  2023-10-14 22:17 [PR PATCH] New package: tikzit-2.1.6 Piraty
  2023-10-14 22:17 ` [PR PATCH] [Updated] " Piraty
  2023-10-14 22:50 ` Piraty
@ 2023-10-16 12:49 ` Piraty
  2 siblings, 0 replies; 4+ messages in thread
From: Piraty @ 2023-10-16 12:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

There's a merged pull request on the void-packages repository

New package: tikzit-2.1.6
https://github.com/void-linux/void-packages/pull/46682

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

Closes: #45813
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-16 12:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-14 22:17 [PR PATCH] New package: tikzit-2.1.6 Piraty
2023-10-14 22:17 ` [PR PATCH] [Updated] " Piraty
2023-10-14 22:50 ` Piraty
2023-10-16 12:49 ` [PR PATCH] [Merged]: " Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).