New package: texstudio-2.11.2

This commit is contained in:
Piraty 2016-12-01 09:47:34 +01:00 committed by Toyam Cox
parent 1484154087
commit b742328659
6 changed files with 169 additions and 0 deletions

View file

@ -0,0 +1,21 @@
--- debughelper.cpp 2016-10-11 22:02:43.000000000 +0200
+++ debughelper.cpp 2016-11-25 12:47:39.937086819 +0100
@@ -511,16 +511,16 @@
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[31] //not always used
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.gp_regs[34]
#elif defined(CPU_IS_ARM)
-/*
#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_pc
#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_sp
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_fp
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.arm_lr
-*/
+/*
#define PC_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R15]
#define STACK_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R13]
#define FRAME_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R11]
#define RETURNTO_FROM_UCONTEXT(context) (context)->uc_mcontext.__gregs[_REG_R14]
+*/
#elif defined(CPU_IS_IA64)
#define PC_FROM_UCONTEXT(context) (context)->_u._mc.sc_ip
#define STACK_FROM_UCONTEXT(context) (context)->_u._mc.sc_gr[12] //is that register 12?

View file

@ -0,0 +1,23 @@
# musl libc doesn't provide <execinfo.h> and therefore no backtrace functionality
--- debughelper.cpp 2016-11-25 13:37:11.403938371 +0100
+++ debughelper.cpp 2016-11-25 18:42:49.939675125 +0100
@@ -3,6 +3,9 @@
#include "smallUsefulFunctions.h"
#include <stdio.h>
#include <stdlib.h>
+#ifndef __GLIBC__
+#define NO_CRASH_HANDLER
+#endif
#ifndef NO_CRASH_HANDLER
#if (defined(x86_64) || defined(__x86_64__))
#define CPU_IS_X86_64
@@ -409,7 +412,9 @@
}
#else
+// # ifdef __GLIBC__
#include "execinfo.h"
+// # endif
QString temporaryFileNameFormat()
{
return "/tmp/texstudio_backtrace%1.txt";

View file

@ -0,0 +1,12 @@
--- debughelper.cpp 2016-11-25 18:45:18.441818593 +0100
+++ debughelper.cpp. 2016-11-25 18:45:31.166659511 +0100
@@ -6,6 +6,9 @@
#ifndef __GLIBC__
#define NO_CRASH_HANDLER
#endif
+#ifdef __aarch64__
+#define NO_CRASH_HANDLER
+#endif
#ifndef NO_CRASH_HANDLER
#if (defined(x86_64) || defined(__x86_64__))
#define CPU_IS_X86_64

View file

@ -0,0 +1,26 @@
#initially based on debian's patch: https://sources.debian.net/patches/texstudio/2.11.2+debian-1/
#modification: in Settings menu: disable whole groupBox instead of all single elements inside it
--- configdialog.ui 2016-10-11 22:02:43.000000000 +0200
+++ configdialog.ui 2016-11-02 13:40:22.780668671 +0100
@@ -507,6 +507,9 @@
</item>
<item>
<widget class="QGroupBox" name="groupBox_Update">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
<property name="title">
<string>Update</string>
</property>
--- configmanager.cpp 2016-10-11 22:02:43.000000000 +0200
+++ configmanager.cpp 2016-11-09 12:56:50.392812690 +0100
@@ -472,7 +472,7 @@
registerOption("Thesaurus/Database", &thesaurus_database, "<dic not found>", &pseudoDialog->comboBoxThesaurusFileName);
//updates
- registerOption("Update/AutoCheck", &autoUpdateCheck, true, &pseudoDialog->checkBoxAutoUpdateCheck);
+ registerOption("Update/AutoCheck", &autoUpdateCheck, false, &pseudoDialog->checkBoxAutoUpdateCheck);
registerOption("Update/UpdateLevel", &updateLevel, 0, &pseudoDialog->comboBoxUpdateLevel);
registerOption("Update/AutoCheckInvervalDays", &autoUpdateCheckIntervalDays, 7, &pseudoDialog->spinBoxAutoUpdateCheckIntervalDays);
registerOption("Update/LastCheck", &lastUpdateCheck, QDateTime());

View file

@ -0,0 +1,48 @@
#fixing the dynamic_cast issue with patches provided by the texstudio author here:
# ) https://sourceforge.net/p/texstudio/bugs/1927/
# ) https://sourceforge.net/p/texstudio/hg/ci/5f9e814ad8f20c0e9653a49f793aad713628e66c/
# ) https://sourceforge.net/p/texstudio/hg/ci/5903721d443a01780dae861fa3cf6c05d67868f9/
--- pdfviewer/PDFDocument.h 2016-11-25 11:50:49.758719915 +0100
+++ pdfviewer/PDFDocument.h 2016-11-25 11:53:47.580496837 +0100
@@ -98,7 +98,7 @@
};
#ifdef PHONON
-#include <Phonon/VideoPlayer>
+#include <phonon/VideoPlayer>
class PDFMovie: public Phonon::VideoPlayer
{
@@ -104,7 +104,7 @@
{
Q_OBJECT
public:
- PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page);
+ PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page);
void place();
protected:
void contextMenuEvent(QContextMenuEvent *);
--- pdfviewer/PDFDocument.cpp 2016-10-11 22:02:43.000000000 +0200
+++ pdfviewer/PDFDocument.cpp 2016-11-25 11:51:06.366512289 +0100
@@ -359,7 +359,8 @@
}
#ifdef PHONON
-PDFMovie::PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page): VideoPlayer(parent), page(page)
+//PDFMovie::PDFMovie(PDFWidget *parent, Poppler::MovieAnnotation *annot, int page): VideoPlayer(parent), page(page)
+PDFMovie::PDFMovie(PDFWidget *parent, QSharedPointer<Poppler::MovieAnnotation> annot, int page): VideoPlayer(parent), page(page)
{
REQUIRE(parent && annot && parent->getPDFDocument());
REQUIRE(annot->subType() == Poppler::Annotation::AMovie);
@@ -861,7 +862,7 @@
case Poppler::Annotation::AMovie: {
#ifdef PHONON
if (movie) delete movie;
- movie = new PDFMovie(this, dynamic_cast<Poppler::MovieAnnotation *>(annotation), page);
+ movie = new PDFMovie(this, qSharedPointerDynamicCast<Poppler::MovieAnnotation>(annotation), page);
movie->place();
movie->show();
movie->play();

View file

@ -0,0 +1,39 @@
# Template file for 'texstudio'
pkgname=texstudio
version=2.11.2
revision=1
build_style=qmake
short_desc="Powerful Tex/LaTeX editor based on texmaker"
maintainer="Piraty <Piraty@users.noreply.github.com>"
license="GPL-3"
homepage="http://texstudio.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/TeXstudio%20${version}/${pkgname}-${version}.tar.gz"
checksum=02fdd4d1552593ba6ee85965f8043272230fa053b5b8e148405e80547c51d2dc
wrksrc="${pkgname}${version}"
hostmakedepends="pkg-config qt5-qmake"
makedepends="qt5-webkit-devel qt5-svg-devel qt5-script-devel qt5-tools-devel"
depends="qt5-svg"
configure_args="-unix"
configure_args+=" -spec linux-g++"
configure_args+=" NO_TESTS=true"
configure_args+=" CONFIG-=debug CONFIG-=debug_and_release CONFIG+=release"
build_options="phonon"
desc_option_phonon="build with phonon support"
if [ "$build_option_phonon" ]; then
configure_args+=" PHONON=true"
makedepends+=" phonon-qt5-devel"
fi
build_options+=" nopoppler"
desc_option_nopoppler="build without poppler (= no internal pdf preview)"
if [ "$build_option_nopoppler" ]; then
configure_args+=" NO_POPPLER_PREVIEW=true"
else
makedepends+=" poppler-qt5-devel"
fi
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" ${makedepends}"
fi