Source: texstudio
Version: 2.7.0+debian-2.1
Severity: wishlist
Usertags: embedded-synctex-parser

texstudio currently contains a copy of synctex parser from texlive-bin.
This code is now provided as shared library by
libsynctex1/libsynctex-dev. Please consider the attached patch to use
the shared library instead of the embedded copy.

Cheers
-- 
Sebastian Ramacher
diff -Nru texstudio-2.7.0+debian/debian/changelog 
texstudio-2.7.0+debian/debian/changelog
--- texstudio-2.7.0+debian/debian/changelog     2014-04-22 16:45:40.000000000 
+0200
+++ texstudio-2.7.0+debian/debian/changelog     2014-07-05 12:18:36.000000000 
+0200
@@ -1,3 +1,10 @@
+texstudio (2.7.0+debian-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use synctex parser provided by libsynctex-dev.
+
+ -- Sebastian Ramacher <[email protected]>  Sat, 05 Jul 2014 12:05:28 +0200
+
 texstudio (2.7.0+debian-2) unstable; urgency=medium
 
   * Moving html documentation and latex templates to separate package.
diff -Nru texstudio-2.7.0+debian/debian/control 
texstudio-2.7.0+debian/debian/control
--- texstudio-2.7.0+debian/debian/control       2014-04-18 22:46:04.000000000 
+0200
+++ texstudio-2.7.0+debian/debian/control       2014-07-05 12:07:47.000000000 
+0200
@@ -4,7 +4,7 @@
 Maintainer: Tom Jampen <[email protected]>
 Build-Depends:
  debhelper (>= 9), libhunspell-dev, libpoppler-qt4-dev, pkg-config, qt4-qmake,
- zlib1g-dev
+ zlib1g-dev, libsynctex-dev
 Standards-Version: 3.9.5
 Homepage: http://texstudio.sf.net/
 
diff -Nru texstudio-2.7.0+debian/debian/patches/series 
texstudio-2.7.0+debian/debian/patches/series
--- texstudio-2.7.0+debian/debian/patches/series        2014-03-22 
13:07:01.000000000 +0100
+++ texstudio-2.7.0+debian/debian/patches/series        2014-07-05 
12:08:13.000000000 +0200
@@ -3,3 +3,4 @@
 03-disable-auto-update.patch
 04-no-qt-translations.patch
 05-fix-poppler-qt5-path.patch
+use-system-synctex.patch
diff -Nru texstudio-2.7.0+debian/debian/patches/use-system-synctex.patch 
texstudio-2.7.0+debian/debian/patches/use-system-synctex.patch
--- texstudio-2.7.0+debian/debian/patches/use-system-synctex.patch      
1970-01-01 01:00:00.000000000 +0100
+++ texstudio-2.7.0+debian/debian/patches/use-system-synctex.patch      
2014-07-05 12:08:37.000000000 +0200
@@ -0,0 +1,45 @@
+Description: Use synctex provided by libsynctex-dev
+Author: Sebastian Ramacher <[email protected]>
+Last-Update: 2014-07-05
+
+--- texstudio-2.7.0+debian.orig/PDFDocument.h
++++ texstudio-2.7.0+debian/PDFDocument.h
+@@ -35,7 +35,7 @@
+ #else
+ #include "poppler-qt5.h"
+ #endif
+-#include "synctex_parser.h"
++#include <synctex_parser.h>
+ 
+ #include "ui_PDFDocument.h"
+ #include "pdfrendermanager.h"
+--- texstudio-2.7.0+debian.orig/texstudio.pro
++++ texstudio-2.7.0+debian/texstudio.pro
+@@ -3,7 +3,7 @@ LANGUAGE = C++
+ DESTDIR = ./
+ CONFIG += qt precompile_header uitools
+ CONFIG += link_pkgconfig
+-PKGCONFIG = hunspell
++PKGCONFIG = hunspell synctex
+ QT += network \
+     xml \
+     svg \
+@@ -91,8 +91,6 @@ HEADERS += texmaker.h \
+     userquickdialog.h \
+     PDFDocument.h \
+     PDFDocks.h \
+-    synctex_parser_utils.h \
+-    synctex_parser.h \
+     latexstyleparser.h \
+     pdfrenderengine.h \
+     pdfrendermanager.h \
+@@ -597,9 +595,6 @@ exists(./.hg) {
+   SOURCES += hg_revision.cpp
+ }
+ 
+-# moved to the end because it seems to destroy the precompiled header
+-SOURCES+=synctex_parser_utils.c synctex_parser.c
+-
+ #QMAKE_CXXFLAGS_DEBUG += -Werror  -Wall -Wextra  -Winit-self -Wmain 
-Wmissing-include-dirs -Wtrigraphs -Wunused -Wunknown-pragmas  -Wundef  
-Wpointer-arith -Wtype-limits -Wwrite-strings -Wclobbered  -Wempty-body 
-Wsign-compare -Waddress -Wlogical-op   -Winline
+ QMAKE_CXXFLAGS_DEBUG += -Wall -Wextra  -Winit-self -Wmissing-include-dirs 
-Wtrigraphs -Wunused -Wunknown-pragmas  -Wundef  -Wpointer-arith  
-Wwrite-strings -Wempty-body -Wsign-compare -Waddress   -Winline
+ 

Attachment: signature.asc
Description: Digital signature

Reply via email to