diff options
author | 2012-03-17 00:26:43 +0100 | |
---|---|---|
committer | 2012-03-17 00:26:43 +0100 | |
commit | 054f23d4f607613a1a47f6c13af9e4ff5fc6e2b8 (patch) | |
tree | d2115f6f27d361e91df439c94fa5d909ee96f589 | |
parent | drop unneed deps in lyx (diff) | |
download | rebutia-054f23d4f607613a1a47f6c13af9e4ff5fc6e2b8.tar.gz rebutia-054f23d4f607613a1a47f6c13af9e4ff5fc6e2b8.tar.bz2 rebutia-054f23d4f607613a1a47f6c13af9e4ff5fc6e2b8.zip |
Add private 2.0.x patchset, currently unused in ebuilds
-rw-r--r-- | app-office/lyx/Manifest | 2 | ||||
-rw-r--r-- | app-office/lyx/files/2.0.patches | 255 |
2 files changed, 257 insertions, 0 deletions
diff --git a/app-office/lyx/Manifest b/app-office/lyx/Manifest index 1bda282..3d856d4 100644 --- a/app-office/lyx/Manifest +++ b/app-office/lyx/Manifest @@ -1,6 +1,8 @@ AUX 1.6.7-python.patch 906 RMD160 74a2f14445d6b011fe04d06f3bd6710d36ab6351 SHA1 a9bc180553105b61767a82280e211a2c187cfbd4 SHA256 ad4ebb8d3837536eea869e15b3759840a1153d64d74b744e956ce9bdf5e5651d AUX 2.0.3-python.patch 1036 RMD160 1fdf43487cb67e61b02387834402e9618de87082 SHA1 834ac9383503078c6e9d54610056704b7c9d23c0 SHA256 954f96dab553024fb128924c7ba3d70a91946f6909d203ee0902d6ec8740ded8 +AUX 2.0.patches 9317 RMD160 b4e7a4a6102e39949dfd7cace714b809cbb03e58 SHA1 7157b03cbc517f480412327ff2c68bd7770b4bc2 SHA256 0b2b01543bda25260aa5064fcb1afe1e4ac42efee2503f98cdaf9144a01f0523 AUX lyx-1.5.0-gentoo.patch 1298 RMD160 69b7ce68234e7f5c2fee708944267f1974aa10d0 SHA1 16c3e6f846c55c3eb5fd9d7da1247a3429efa7a4 SHA256 36be1ea2577cce270319a7a3b4bed92e5925c0e974edda8729bda2179ac8ffe2 AUX lyx.desktop 215 RMD160 13192f0f4e84e870565a3daff7d46c56954ed0fe SHA1 f72f3ff17a3a1b84cbb0aaf12c9e75387879a420 SHA256 b0ffd201e0a2e0cb39a52aadb9921e86fbb31c8d3cac04526371d6606246898c EBUILD lyx-1.6.9999.ebuild 4197 RMD160 1fb05dc360e08c8033a3957d27c4db58b31901fe SHA1 895061e60ef59ac85f787fa5e4c1892588124276 SHA256 5c79ce22e68b93cc470f7c4aab4b35e2e5e9bb45db6ae3e10c12869c9f77262f +EBUILD lyx-2.0.98.ebuild 4621 RMD160 1edf8a1b99ab260dda358c51e444134f7073336b SHA1 0cc622572f9b45e052a2029d93ceade1fecd0271 SHA256 9d44f8d3113d3381c50dd41e1f352ddbf0273d61c72671038be7ae6c2f8bad72 EBUILD lyx-2.0.9999.ebuild 4407 RMD160 d69a754d1160924c4ca439967db6ed04a856bc58 SHA1 274e397f3568b9b452e925e1d365b82035278da4 SHA256 14270507b3567b607afaf4926e1ba3a016c5c653535786b00659a970ae372672 diff --git a/app-office/lyx/files/2.0.patches b/app-office/lyx/files/2.0.patches new file mode 100644 index 0000000..43a5c6e --- /dev/null +++ b/app-office/lyx/files/2.0.patches @@ -0,0 +1,255 @@ +diff --git a/src/Format.cpp b/src/Format.cpp +index 050af14..7d495b7 100644 +--- a/src/Format.cpp ++++ b/src/Format.cpp +@@ -260,6 +260,27 @@ void Formats::setEditor(string const & name, string const & command) + } + + ++bool Formats::viewURL(docstring const & url) { ++ Format const * format = getFormat("html"); ++ if (!format) ++ return false; ++ ++ string command = libScriptSearch(format->viewer()); ++ ++ if (!contains(command, token_from_format)) ++ command += ' ' + token_from_format; ++ command = subst(command, token_from_format, quoteName(to_utf8(url))); ++ ++ LYXERR(Debug::FILES, "Executing command: " << command); ++ ++ Systemcall one; ++ one.startscript(Systemcall::DontWait, command); ++ ++ // we can't report any sort of error, since we aren't waiting ++ return true; ++} ++ ++ + bool Formats::view(Buffer const & buffer, FileName const & filename, + string const & format_name) const + { +diff --git a/src/Format.h b/src/Format.h +index 445c11b..3737f4c 100644 +--- a/src/Format.h ++++ b/src/Format.h +@@ -143,6 +143,8 @@ public: + void setViewer(std::string const & name, std::string const & command); + /// + void setEditor(std::string const & name, std::string const & command); ++ /// Currently used by hyperlink insets and GuiCitation ++ bool viewURL(docstring const & url); + /// View the given file. Buffer used for DVI's paper orientation. + bool view(Buffer const & buffer, support::FileName const & filename, + std::string const & format_name) const; +diff --git a/src/insets/InsetHyperlink.cpp b/src/insets/InsetHyperlink.cpp +index 42dd691..7a293ff 100644 +--- a/src/insets/InsetHyperlink.cpp ++++ b/src/insets/InsetHyperlink.cpp +@@ -100,7 +100,10 @@ bool InsetHyperlink::getStatus(Cursor & cur, FuncRequest const & cmd, + + void InsetHyperlink::viewTarget() const + { +- if (getParam("type") == "file:") { ++ if (getParam("type").empty()) ++ formats.viewURL(getParam("target")); ++ ++ else if (getParam("type") == "file:") { + FileName url = makeAbsPath(to_utf8(getParam("target")), buffer().filePath()); + string const format = formats.getFormatFromFile(url); + formats.view(buffer(), url, format); +diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc +index a8cf62e..8086b7f 100644 +--- a/lib/ui/stdcontext.inc ++++ b/lib/ui/stdcontext.inc +@@ -601,6 +601,8 @@ Menuset + # + Menu "context-hyperlink" + Item "Settings...|S" "inset-settings" ++ Separator ++ Item "Open Target...|O" "inset-edit" + End + + End +diff --git a/lib/ui/stdmenus.inc b/lib/ui/stdmenus.inc +index 88d84d2..f2cb35a 100644 +--- a/lib/ui/stdmenus.inc ++++ b/lib/ui/stdmenus.inc +@@ -384,6 +384,7 @@ Menuset + Item "Breakable Slash|a" "specialchar-insert slash" + Item "Menu Separator|M" "specialchar-insert menu-separator" + Item "Phonetic Symbols|P" "command-sequence math-insert \text\textipa ; char-forward ;" ++ Item "Visible Space|V" "unicode-insert 0x2423" + End + + Menu "insert_formatting" +diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp +index ba008ac..9825e38 100644 +--- a/src/frontends/qt4/GuiView.cpp ++++ b/src/frontends/qt4/GuiView.cpp +@@ -213,7 +213,7 @@ struct GuiView::GuiViewPrivate + { + // hardcode here the platform specific icon size + smallIconSize = 14; // scaling problems +- normalIconSize = 22; // ok, default ++ normalIconSize = 20; // ok, default + bigIconSize = 26; // better for some math icons + + splitter_ = new QSplitter; +diff --git a/lib/scripts/legacy_lyxpreview2ppm.py b/lib/scripts/legacy_lyxpreview2ppm.py +index be242cc..3125006 100644 +--- a/lib/scripts/legacy_lyxpreview2ppm.py ++++ b/lib/scripts/legacy_lyxpreview2ppm.py +@@ -172,11 +172,18 @@ def legacy_latex_file(latex_file, fg_color, bg_color, bg_color_gr): + use_preview_dvi_re = re.compile("(\s*\\\\usepackage\[[^]]+)(dvips\]{preview})") + use_preview_pdf_re = re.compile("(\s*\\\\usepackage\[[^]]+)(pdftex\]{preview})") + ++ do_not_color_pictures_re = re.compile("(\\includegraphics)") ++ + tmp = mkstemp() + + success = 0 + try: + for line in open(latex_file, 'r').readlines(): ++ match = do_not_color_pictures_re.search(line) ++ if match != None: ++ tmp.write("\colorbox{white}{" + line + "}\n") ++ continue ++ + match = use_preview_dvi_re.match(line) + if match == None: + match = use_preview_pdf_re.match(line) +@@ -192,7 +199,7 @@ def legacy_latex_file(latex_file, fg_color, bg_color, bg_color_gr): + + success = 1 + tmp.write("%stightpage,%s\n" \ +- " \\AtBeginDocument{\\AtBeginDvi{%%\n" \ ++ " \\usepackage{color}\n\\AtBeginDocument{\\AtBeginDvi{%%\n" \ + " \\special{!userdict begin/bop-hook{//bop-hook exec\n" \ + " <%s%s>{255 div}forall setrgbcolor\n" \ + " clippath fill setrgbcolor}bind def end}}}\n" \ +Index: stdinsets.inc +=================================================================== +--- a/lib/layouts/stdinsets.inc (revision 28602) ++++ a/lib/layouts/stdinsets.inc (working copy) +@@ -166,7 +166,7 @@ + Family typewriter + EndFont + LabelFont +- Color foreground ++ Color latex + Size Small + EndFont + BgColor listingsbg +diff --git a/lib/ui/default.ui b/lib/ui/default.ui +index 03efe16..32e9efc 100644 +--- a/lib/ui/default.ui ++++ b/lib/ui/default.ui +@@ -46,13 +46,13 @@ Include "stdtoolbars.inc" + # + Toolbars + "standard" "on,top" +- "view/update" "on,top" ++ "view/update" "off,top" + "extra" "on,top,samerow" + "review" "auto,review,top" +- "vcs" "off,top" ++ "vcs" "on,top" + "table" "auto,table,bottom" + "math_panels" "auto,math,bottom" + "math" "auto,math,bottom" + "mathmacrotemplate" "auto,mathmacrotemplate,bottom" +- "minibuffer" "off,bottom" ++ "minibuffer" "on,bottom" + End +Index: lib/ui/stdtoolbars.inc +=================================================================== +--- a/lib/ui/stdtoolbars.inc (revision 29259) ++++ b/lib/ui/stdtoolbars.inc (working copy) +@@ -91,6 +91,8 @@ + Item "Increase depth" "depth-increment" + Item "Decrease depth" "depth-decrement" + Separator ++ Item "Align center" "paragraph-params \align center" ++ Separator + Item "Insert figure float" "float-insert figure" + Item "Insert table float" "float-insert table" + Item "Insert label" "label-insert" +diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp +index ea08213..e29cc7f 100644 +--- a/src/frontends/qt4/GuiView.cpp ++++ b/src/frontends/qt4/GuiView.cpp +@@ -1623,9 +1623,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag) + + case LFUN_BUFFER_RELOAD: + enable = doc_buffer && !doc_buffer->isUnnamed() +- && doc_buffer->fileName().exists() +- && (!doc_buffer->isClean() +- || doc_buffer->isExternallyModified(Buffer::timestamp_method)); ++ && doc_buffer->fileName().exists(); + break; + + case LFUN_BUFFER_CHILD_OPEN: +Index: src/frontends/qt4/GuiApplication.cpp +=================================================================== +--- a/src/frontends/qt4/GuiApplication.cpp (revision 31877) ++++ b/src/frontends/qt4/GuiApplication.cpp (working copy) +@@ -708,7 +708,8 @@ + QString app_name = "LyX"; + QCoreApplication::setOrganizationName(app_name); + QCoreApplication::setOrganizationDomain("lyx.org"); +- QCoreApplication::setApplicationName(lyx_package); ++ //make portage build LyX.conf without interefence to devel tweaks... ++ QCoreApplication::setApplicationName("LyX"); + + // Install translator for GUI elements. + installTranslator(&d->qt_trans_); +diff --git a/src/frontends/qt4/GuiCompleter.cpp b/src/frontends/qt4/GuiCompleter.cpp +index 89a889d..ac5088f 100644 +--- a/src/frontends/qt4/GuiCompleter.cpp ++++ b/src/frontends/qt4/GuiCompleter.cpp +@@ -165,7 +165,7 @@ GuiCompleter::GuiCompleter(GuiWorkArea * gui, QObject * parent) + model_ = new GuiCompletionModel(this, 0); + setModel(model_); + setCompletionMode(QCompleter::PopupCompletion); +- setCaseSensitivity(Qt::CaseSensitive); ++ setCaseSensitivity(Qt::CaseInsensitive); + setWidget(gui_); + + // create the popup +diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp +index 04c5b82..a127b0e 100644 +--- a/src/mathed/InsetMathHull.cpp ++++ b/src/mathed/InsetMathHull.cpp +@@ -29,6 +29,7 @@ + #include "Encoding.h" + #include "Exporter.h" + #include "FuncRequest.h" ++#include "LyX.h" + #include "FuncStatus.h" + #include "Language.h" + #include "LaTeXFeatures.h" +@@ -1277,6 +1278,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd) + break; + + case LFUN_BREAK_PARAGRAPH: ++ lyx::dispatch(FuncRequest(LFUN_MATH_EXTERN, "maxima")); + // just swallow this + break; + +diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp +index bcbf6da..0173a8d 100644 +--- a/src/rowpainter.cpp ++++ b/src/rowpainter.cpp +@@ -888,8 +888,8 @@ void RowPainter::paintText() + + // If we reach the end of a change or if the author changes, paint it. + // We also don't paint across things like tables +- if (change_running.changed() && (highly_editable_inset +- || !change.changed() || !change_running.isSimilarTo(change))) { ++ if (change_running.changed() && ( ++ !change.changed() || !change_running.isSimilarTo(change))) { + // Calculate 1/3 height of the buffer's default font + FontMetrics const & fm + = theFontMetrics(pi_.base.bv->buffer().params().getFont()); |