From fdc4ef67a0c672155f14e9969e71aa2c18b415ec Mon Sep 17 00:00:00 2001 From: Piraty 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 @@ + + + ++ ++ false ++ + + true + +@@ -365,6 +368,9 @@ + + + ++ ++ false ++ + + Check now + +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 + #include + #include +-#include + #include + + // 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 + #include + #include +-#include + + // 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 " +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