summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-office')
-rw-r--r--app-office/lyx/files/lyx-2.3.6.1-python.patch50
-rw-r--r--app-office/lyx/files/lyx-prefer-xdg-open.patch60
2 files changed, 0 insertions, 110 deletions
diff --git a/app-office/lyx/files/lyx-2.3.6.1-python.patch b/app-office/lyx/files/lyx-2.3.6.1-python.patch
deleted file mode 100644
index 666d82c06bf8..000000000000
--- a/app-office/lyx/files/lyx-2.3.6.1-python.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-https://src.fedoraproject.org/rpms/lyx/raw/054d18eb79a8ec3d4480ab4449b3c62b12770d2d/f/lyx-2.3.6-layout2layout.patch
---- a/lib/scripts/layout2layout.py
-+++ b/lib/scripts/layout2layout.py
-@@ -256,7 +256,7 @@
-
- def trim_bom(line):
- " Remove byte order mark."
-- if line[0:3] == "\357\273\277":
-+ if line[0:3] == b"\357\273\277":
- return line[3:]
- else:
- return line
-@@ -345,8 +345,8 @@
- # for categories
- re_Declaration = re.compile(b'^#\\s*\\Declare\\w+Class.*$')
- re_ExtractCategory = re.compile(b'^(#\\s*\\Declare\\w+Class(?:\\[[^]]*?\\])?){([^(]+?)\\s+\\(([^)]+?)\\)\\s*}\\s*$')
-- ConvDict = {"article": "Articles", "book" : "Books", "letter" : "Letters", "report": "Reports", \
-- "presentation" : "Presentations", "curriculum vitae" : "Curricula Vitae", "handout" : "Handouts"}
-+ ConvDict = {b"article": b"Articles", b"book" : b"Books", b"letter" : b"Letters", b"report": b"Reports", \
-+ b"presentation" : b"Presentations", b"curriculum vitae" : b"Curricula Vitae", b"handout" : b"Handouts"}
- # Arguments
- re_OptArgs = re.compile(b'^(\\s*)OptionalArgs(\\s+)(\\d+)\\D*$', re.IGNORECASE)
- re_ReqArgs = re.compile(b'^(\\s*)RequiredArgs(\\s+)(\\d+)\\D*$', re.IGNORECASE)
-@@ -485,7 +485,7 @@
- continue
- col = match.group(2)
- if col == "collapsable":
-- lines[i] = match.group(1) + "collapsible"
-+ lines[i] = match.group(1) + b"collapsible"
- i += 1
- continue
-
-@@ -703,7 +703,7 @@
- # Insert the required number of arguments at the end of the style definition
- match = re_End.match(lines[i])
- if match:
-- newarg = ['']
-+ newarg = [b'']
- # First the optionals (this is the required order pre 2.1)
- if opts > 0:
- if opts == 1:
-@@ -1153,7 +1153,7 @@
- if latextype == b"item_environment" and label.lower() == b"counter_enumi":
- lines[labeltype_line] = re_LabelType.sub(b'\\1\\2\\3Enumerate', lines[labeltype_line])
- # Don't add the LabelCounter line later
-- counter = ""
-+ counter = b""
-
- # Replace
- #
diff --git a/app-office/lyx/files/lyx-prefer-xdg-open.patch b/app-office/lyx/files/lyx-prefer-xdg-open.patch
deleted file mode 100644
index 5e12f6c2e699..000000000000
--- a/app-office/lyx/files/lyx-prefer-xdg-open.patch
+++ /dev/null
@@ -1,60 +0,0 @@
-From: "Dr. Tobias Quathamer" <toddy@debian.org>
-Date: Wed, 31 Jan 2018 23:27:37 +0100
-Subject: Prefer xdg-open
-
-Add xdg-open as the first choice whenever this seems to be useful.
----
- lib/configure.py | 12 ++++++------
- 1 file changed, 6 insertions(+), 6 deletions(-)
-
-diff --git a/lib/configure.py b/lib/configure.py
-index 7fee68d..abc4d53 100644
---- a/lib/configure.py
-+++ b/lib/configure.py
-@@ -657,7 +657,7 @@ def checkFormatEntries(dtl_tools):
- checkViewerEditor('a Dia viewer and editor', ['dia'],
- rc_entry = [r'\Format dia dia DIA "" "%%" "%%" "vector,zipped=native", "application/x-dia-diagram"'])
- #
-- checkViewerEditor('an OpenDocument drawing viewer and editor', ['libreoffice', 'lodraw', 'ooffice', 'oodraw', 'soffice'],
-+ checkViewerEditor('an OpenDocument drawing viewer and editor', ['xdg-open', 'libreoffice', 'lodraw', 'ooffice', 'oodraw', 'soffice'],
- rc_entry = [r'\Format odg "odg, sxd" "OpenDocument drawing" "" "%%" "%%" "vector,zipped=native" "application/vnd.oasis.opendocument.graphics"'])
- #
- checkViewerEditor('a Grace viewer and editor', ['xmgrace'],
-@@ -682,16 +682,16 @@ def checkFormatEntries(dtl_tools):
- \Format xbm xbm XBM "" "%s" "%s" "" "image/x-xbitmap"
- \Format xpm xpm XPM "" "%s" "%s" "" "image/x-xpixmap"'''
- path, iv = checkViewerNoRC('a raster image viewer',
-- ['xv', 'gwenview', 'kview',
-+ ['xdg-open', 'xv', 'gwenview', 'kview',
- 'eog', 'xviewer', 'ristretto', 'gpicview', 'lximage-qt',
-- 'xdg-open', 'gimp-remote', 'gimp'],
-+ 'gimp-remote', 'gimp'],
- rc_entry = [imageformats])
- path, ie = checkEditorNoRC('a raster image editor',
- ['gimp-remote', 'gimp'], rc_entry = [imageformats])
- addToRC(imageformats % ((iv, ie)*10))
- #
- checkViewerEditor('a text editor',
-- ['xemacs', 'gvim', 'kedit', 'kwrite', 'kate',
-+ ['xdg-open', 'xemacs', 'gvim', 'kedit', 'kwrite', 'kate',
- 'nedit', 'gedit', 'geany', 'leafpad', 'mousepad', 'xed', 'notepad'],
- rc_entry = [r'''\Format asciichess asc "Plain text (chess output)" "" "" "%%" "" ""
- \Format docbook sgml DocBook B "" "%%" "document,menu=export" ""
-@@ -745,7 +745,7 @@ def checkFormatEntries(dtl_tools):
- #checkProg('a Postscript interpreter', ['gs'],
- # rc_entry = [ r'\ps_command "%%"' ])
- checkViewer('a Postscript previewer',
-- ['kghostview', 'okular', 'qpdfview --unique',
-+ ['xdg-open', 'kghostview', 'okular', 'qpdfview --unique',
- 'evince', 'xreader',
- 'gv', 'ghostview -swap', 'gsview64', 'gsview32'],
- rc_entry = [r'''\Format eps eps EPS "" "%%" "" "vector" "image/x-eps"
-@@ -756,7 +756,7 @@ def checkFormatEntries(dtl_tools):
- # maybe use "bestApplication()" from https://github.com/jleclanche/python-mime
- # the MIME type is set for pdf6, because that one needs to be autodetectable by libmime
- checkViewer('a PDF previewer',
-- ['pdfview', 'kpdf', 'okular', 'qpdfview --unique',
-+ ['xdg-open', 'pdfview', 'kpdf', 'okular', 'qpdfview --unique',
- 'evince', 'xreader', 'kghostview', 'xpdf', 'SumatraPDF',
- 'acrobat', 'acroread', 'mupdf',
- 'gv', 'ghostview', 'AcroRd32', 'gsview64', 'gsview32'],