[arch-commits] Commit in texstudio/repos (4 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Apr 17 10:24:20 UTC 2022


    Date: Sunday, April 17, 2022 @ 10:24:19
  Author: arojas
Revision: 1186858

archrelease: copy trunk to community-staging-x86_64

Added:
  texstudio/repos/community-staging-x86_64/
  texstudio/repos/community-staging-x86_64/PKGBUILD
    (from rev 1186857, texstudio/trunk/PKGBUILD)
  texstudio/repos/community-staging-x86_64/fs54269.patch
    (from rev 1186857, texstudio/trunk/fs54269.patch)
  texstudio/repos/community-staging-x86_64/fs72345.patch
    (from rev 1186857, texstudio/trunk/fs72345.patch)

---------------+
 PKGBUILD      |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 fs54269.patch |   11 +++++++++++
 fs72345.patch |   25 +++++++++++++++++++++++++
 3 files changed, 82 insertions(+)

Copied: texstudio/repos/community-staging-x86_64/PKGBUILD (from rev 1186857, texstudio/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-17 10:24:19 UTC (rev 1186858)
@@ -0,0 +1,46 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Clément DEMOULINS <clement at archivel.fr>
+pkgname=texstudio
+pkgver=4.2.2
+pkgrel=2
+pkgdesc="Integrated writing environment for creating LaTeX documents"
+arch=('x86_64')
+url="http://texstudio.sourceforge.net/"
+license=('GPL')
+depends=('poppler-qt6' 'qt6-svg' 'libxkbcommon-x11' 'hicolor-icon-theme' 'hunspell' 'quazip-qt6' 'desktop-file-utils'
+         'qt6-declarative' 'qt6-5compat')
+makedepends=('qt6-tools' 'mercurial' 'imagemagick' 'librsvg')
+optdepends=('evince: pdf reader'
+            'okular: alternate pdf reader')
+replaces=('texmakerx')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/texstudio-org/texstudio/archive/${pkgver}.tar.gz"
+        fs54269.patch
+        fs72345.patch)
+sha512sums=('b07dbe03b9b825fd2c6c057d996dad1247151d0034503d6e62426f0c4ff1e982da8eddf801e497bf9743349d41401ac9946f828c276f164aec0955c8324f5dea'
+            '247e85f668b06c8a2def4e7456f0ddc8d35c7990484c1c037f7cf43fdee91419b5df66e968ef1e0c637fe685722bbad9171bdd79fad7a10912ae329aff088b68'
+            '6975eebd43b32fb7aa04f973562e66f6a83df0fb6a0b4d8221e124c9cc6959df11ec517e4c862921619c8b1c55800257017e26001c03186b84c567fc19c98726')
+
+prepare() {
+    cd texstudio-${pkgver}/src
+    patch -Np1 -i "${srcdir}"/fs54269.patch
+    patch -Np1 -i "${srcdir}"/fs72345.patch
+}
+
+build() {
+    cd texstudio-${pkgver}
+    qmake6 CONFIG-="debug" USE_SYSTEM_QUAZIP=1 USE_SYSTEM_HUNSPELL=1 QUAZIP_LIB=-lquazip1-qt6 \
+        QUAZIP_INCLUDE="/usr/include/QuaZip-Qt6-1.3/quazip" texstudio.pro
+    make
+}
+
+package() {
+    cd texstudio-${pkgver}
+    make INSTALL_ROOT="${pkgdir}" install
+
+    for res in $(/bin/ls /usr/share/icons/hicolor | grep '[0-9]\+x[0-9]\+'); do
+        mkdir -p "${pkgdir}"/usr/share/icons/hicolor/${res}/apps
+        convert +set date:create +set date:modify -background none -density 1200 -resize ${res} \
+            "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/texstudio.svg \
+            "${pkgdir}"/usr/share/icons/hicolor/${res}/apps/texstudio.png
+    done
+}

Copied: texstudio/repos/community-staging-x86_64/fs54269.patch (from rev 1186857, texstudio/trunk/fs54269.patch)
===================================================================
--- community-staging-x86_64/fs54269.patch	                        (rev 0)
+++ community-staging-x86_64/fs54269.patch	2022-04-17 10:24:19 UTC (rev 1186858)
@@ -0,0 +1,11 @@
+diff -r c61879e1dfa9 minisplitter.cpp
+--- a/minisplitter.cpp	Sun Aug 06 17:32:28 2017 +0200
++++ b/minisplitter.cpp	Tue Aug 08 15:33:21 2017 +0200
+@@ -72,7 +72,6 @@
+     else
+         setContentsMargins(0, 2, 0, 2);
+     setMask(QRegion(contentsRect()));
+-    QSplitterHandle::resizeEvent(event);
+ }
+ 
+ void MiniSplitterHandle::paintEvent(QPaintEvent *event)

Copied: texstudio/repos/community-staging-x86_64/fs72345.patch (from rev 1186857, texstudio/trunk/fs72345.patch)
===================================================================
--- community-staging-x86_64/fs72345.patch	                        (rev 0)
+++ community-staging-x86_64/fs72345.patch	2022-04-17 10:24:19 UTC (rev 1186858)
@@ -0,0 +1,25 @@
+--- a/configmanager.cpp
++++ b/configmanager.cpp
+@@ -631,7 +631,7 @@ ConfigManager::ConfigManager(QObject *pa
+ #else
+ 	registerOption("Grammar/Language Tool URL", &grammarCheckerConfig->languageToolURL, "http://localhost:8081/", &pseudoDialog->lineEditGrammarLTUrl);
+ #endif
+-	registerOption("Grammar/Language Tool Path", &grammarCheckerConfig->languageToolPath, "", &pseudoDialog->lineEditGrammarLTPath);
++	registerOption("Grammar/Language Tool Path", &grammarCheckerConfig->languageToolPath, "/usr/share/languagetool:/usr/share/java/languagetool/*", &pseudoDialog->lineEditGrammarLTPath);
+ 	registerOption("Grammar/Language Tool Arguments", &grammarCheckerConfig->languageToolArguments, "org.languagetool.server.HTTPServer -p 8081", &pseudoDialog->lineEditGrammarLTArguments);
+ 	registerOption("Grammar/Language Tool Java Path", &grammarCheckerConfig->languageToolJavaPath, "java", &pseudoDialog->lineEditGrammarLTJava);
+ 	registerOption("Grammar/Language Tool Autorun", &grammarCheckerConfig->languageToolAutorun, true, &pseudoDialog->checkBoxGrammarLTAutorun);
+--- a/grammarcheck.cpp
++++ b/grammarcheck.cpp
+@@ -639,11 +639,6 @@ void GrammarCheckLanguageToolJSON::tryTo
+     startTime = 0;
+     if (ltPath == "")
+         return;
+-    if(!QFileInfo::exists(ltPath)){
+-        errorText=QString("LT path \" %1 \" not found !").arg(ltPath);
+-        emit errorMessage(errorText);
+-        return;
+-    }
+     javaProcess = new QProcess();
+     connect(javaProcess, SIGNAL(finished(int,QProcess::ExitStatus)), javaProcess, SLOT(deleteLater()));
+     connect(this, SIGNAL(destroyed()), javaProcess, SLOT(deleteLater()));



More information about the arch-commits mailing list