1 |
commit: cdd2944054be300c0cec172702aa1d3d24e273b1 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 13 14:26:08 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 13 14:26:08 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=cdd29440 |
7 |
|
8 |
kde-apps/cantor: Patch upstreamed, fix RDEPEND |
9 |
|
10 |
Package-Manager: portage-2.3.3 |
11 |
|
12 |
kde-apps/cantor/cantor-16.12.49.9999.ebuild | 7 +- |
13 |
.../files/cantor-16.12.2-julia-kf-5.31.patch | 190 --------------------- |
14 |
2 files changed, 2 insertions(+), 195 deletions(-) |
15 |
|
16 |
diff --git a/kde-apps/cantor/cantor-16.12.49.9999.ebuild b/kde-apps/cantor/cantor-16.12.49.9999.ebuild |
17 |
index d5da0c7aa1..bff025a191 100644 |
18 |
--- a/kde-apps/cantor/cantor-16.12.49.9999.ebuild |
19 |
+++ b/kde-apps/cantor/cantor-16.12.49.9999.ebuild |
20 |
@@ -52,14 +52,11 @@ DEPEND=" |
21 |
python? ( ${PYTHON_DEPS} ) |
22 |
R? ( dev-lang/R ) |
23 |
" |
24 |
-RDEPEND="${RDEPEND}" |
25 |
+RDEPEND="${DEPEND}" |
26 |
|
27 |
RESTRICT+=" test" |
28 |
|
29 |
-PATCHES=( |
30 |
- "${FILESDIR}"/${PN}-16.12.2-bashism.patch |
31 |
- "${FILESDIR}"/${PN}-16.12.2-julia-kf-5.31.patch |
32 |
-) |
33 |
+PATCHES=( "${FILESDIR}"/${PN}-16.12.2-bashism.patch ) |
34 |
|
35 |
pkg_pretend() { |
36 |
kde5_pkg_pretend |
37 |
|
38 |
diff --git a/kde-apps/cantor/files/cantor-16.12.2-julia-kf-5.31.patch b/kde-apps/cantor/files/cantor-16.12.2-julia-kf-5.31.patch |
39 |
deleted file mode 100644 |
40 |
index 425c61eb48..0000000000 |
41 |
--- a/kde-apps/cantor/files/cantor-16.12.2-julia-kf-5.31.patch |
42 |
+++ /dev/null |
43 |
@@ -1,190 +0,0 @@ |
44 |
-From 45322d9f58f50df3d4d5755d4199e579f6fd8646 Mon Sep 17 00:00:00 2001 |
45 |
-From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
46 |
-Date: Sat, 11 Feb 2017 22:46:35 +0100 |
47 |
-Subject: [PATCH] [julia] Fix build with -fno-operator-names |
48 |
- |
49 |
-REVIEW: 129942 |
50 |
---- |
51 |
- src/backends/julia/juliaexpression.cpp | 6 +++--- |
52 |
- src/backends/julia/juliaextensions.cpp | 4 ++-- |
53 |
- src/backends/julia/juliahighlighter.cpp | 4 ++-- |
54 |
- src/backends/julia/juliakeywords.cpp | 10 +++++----- |
55 |
- src/backends/julia/juliaserver/juliaserver.cpp | 4 ++-- |
56 |
- src/backends/julia/juliaserver/main.cpp | 4 ++-- |
57 |
- src/backends/julia/juliasession.cpp | 4 ++-- |
58 |
- 7 files changed, 18 insertions(+), 18 deletions(-) |
59 |
- |
60 |
-diff --git a/src/backends/julia/juliaexpression.cpp b/src/backends/julia/juliaexpression.cpp |
61 |
-index 27cdd85..618200d 100644 |
62 |
---- a/src/backends/julia/juliaexpression.cpp |
63 |
-+++ b/src/backends/julia/juliaexpression.cpp |
64 |
-@@ -40,7 +40,7 @@ void JuliaExpression::evaluate() |
65 |
- |
66 |
- // Plots integration |
67 |
- m_plot_filename.clear(); |
68 |
-- if (juliaSession->integratePlots() and checkPlotShowingCommands()) { |
69 |
-+ if (juliaSession->integratePlots() && checkPlotShowingCommands()) { |
70 |
- // Simply add plot saving command to the end of execution |
71 |
- QStringList inlinePlotFormats; |
72 |
- inlinePlotFormats << QLatin1String("svg"); |
73 |
-@@ -73,8 +73,8 @@ void JuliaExpression::finalize() |
74 |
- setResult(new Cantor::TextResult(juliaSession->getOutput())); |
75 |
- setStatus(Cantor::Expression::Error); |
76 |
- } else { |
77 |
-- if (not m_plot_filename.isEmpty() |
78 |
-- and QFileInfo(m_plot_filename).exists()) { |
79 |
-+ if (!m_plot_filename.isEmpty() |
80 |
-+ && QFileInfo(m_plot_filename).exists()) { |
81 |
- // If we have plot in result, show it |
82 |
- setResult( |
83 |
- new Cantor::ImageResult(QUrl::fromLocalFile(m_plot_filename))); |
84 |
-diff --git a/src/backends/julia/juliaextensions.cpp b/src/backends/julia/juliaextensions.cpp |
85 |
-index 4585c6f..ad5e3a9 100644 |
86 |
---- a/src/backends/julia/juliaextensions.cpp |
87 |
-+++ b/src/backends/julia/juliaextensions.cpp |
88 |
-@@ -138,7 +138,7 @@ QString JuliaPlotExtension::plotFunction2d( |
89 |
- { |
90 |
- auto new_left = left; |
91 |
- auto new_right = right; |
92 |
-- if (new_left.isEmpty() and new_right.isEmpty()) { |
93 |
-+ if (new_left.isEmpty() && new_right.isEmpty()) { |
94 |
- new_left = QLatin1String("-1"); |
95 |
- new_right = QLatin1String("1"); |
96 |
- } else if (new_left.isEmpty()) { |
97 |
-@@ -165,7 +165,7 @@ QString JuliaPlotExtension::plotFunction3d( |
98 |
- { |
99 |
- |
100 |
- auto update_interval = [](Interval &interval) { |
101 |
-- if (interval.first.isEmpty() and interval.second.isEmpty()) { |
102 |
-+ if (interval.first.isEmpty() && interval.second.isEmpty()) { |
103 |
- interval.first = QLatin1String("-1"); |
104 |
- interval.second = QLatin1String("1"); |
105 |
- } else if (interval.first.isEmpty()) { |
106 |
-diff --git a/src/backends/julia/juliahighlighter.cpp b/src/backends/julia/juliahighlighter.cpp |
107 |
-index 4795361..f7d3622 100644 |
108 |
---- a/src/backends/julia/juliahighlighter.cpp |
109 |
-+++ b/src/backends/julia/juliahighlighter.cpp |
110 |
-@@ -98,7 +98,7 @@ void JuliaHighlighter::highlightBlock(const QString &text) |
111 |
- while (pos < text.length()) { |
112 |
- // Trying to close current environments |
113 |
- bool triggered = false; |
114 |
-- for (int i = 0; i < flags.size() and not triggered; i++) { |
115 |
-+ for (int i = 0; i < flags.size() && !triggered; i++) { |
116 |
- int flag = flags[i]; |
117 |
- QRegExp ®exp = regexps_ends[i]; |
118 |
- QTextCharFormat &format = formats[i]; |
119 |
-@@ -144,7 +144,7 @@ void JuliaHighlighter::highlightBlock(const QString &text) |
120 |
- singleLineCommentStart.indexIn(text, pos); |
121 |
- |
122 |
- if (singleLineCommentStartPos != -1 |
123 |
-- and singleLineCommentStartPos < minPos) { |
124 |
-+ && singleLineCommentStartPos < minPos) { |
125 |
- // single line comment starts earlier |
126 |
- setFormat(pos, text.length() - pos, commentFormat()); |
127 |
- break; |
128 |
-diff --git a/src/backends/julia/juliakeywords.cpp b/src/backends/julia/juliakeywords.cpp |
129 |
-index f0a5846..8a0efec 100644 |
130 |
---- a/src/backends/julia/juliakeywords.cpp |
131 |
-+++ b/src/backends/julia/juliakeywords.cpp |
132 |
-@@ -62,11 +62,11 @@ void JuliaKeywords::loadFromFile() |
133 |
- const QStringRef name = xml.name(); |
134 |
- |
135 |
- if (name == QLatin1String("keywords") |
136 |
-- or name == QLatin1String("variables") |
137 |
-- or name == QLatin1String("plot_showing_commands")) { |
138 |
-+ || name == QLatin1String("variables") |
139 |
-+ || name == QLatin1String("plot_showing_commands")) { |
140 |
- while (xml.readNextStartElement()) { |
141 |
- Q_ASSERT( |
142 |
-- xml.isStartElement() and xml.name() == QLatin1String("word") |
143 |
-+ xml.isStartElement() && xml.name() == QLatin1String("word") |
144 |
- ); |
145 |
- |
146 |
- const QString text = xml.readElementText(); |
147 |
-@@ -91,7 +91,7 @@ void JuliaKeywords::loadFromFile() |
148 |
- |
149 |
- void JuliaKeywords::addVariable(const QString &variable) |
150 |
- { |
151 |
-- if (not m_variables.contains(variable)) { |
152 |
-+ if (!m_variables.contains(variable)) { |
153 |
- m_variables << variable; |
154 |
- } |
155 |
- } |
156 |
-@@ -104,7 +104,7 @@ void JuliaKeywords::clearVariables() |
157 |
- |
158 |
- void JuliaKeywords::addFunction(const QString &function) |
159 |
- { |
160 |
-- if (not m_functions.contains(function)) { |
161 |
-+ if (!m_functions.contains(function)) { |
162 |
- m_functions << function; |
163 |
- } |
164 |
- } |
165 |
-diff --git a/src/backends/julia/juliaserver/juliaserver.cpp b/src/backends/julia/juliaserver/juliaserver.cpp |
166 |
-index c9beb4c..91585cf 100644 |
167 |
---- a/src/backends/julia/juliaserver/juliaserver.cpp |
168 |
-+++ b/src/backends/julia/juliaserver/juliaserver.cpp |
169 |
-@@ -47,7 +47,7 @@ void JuliaServer::runJuliaCommand(const QString &command) |
170 |
- { |
171 |
- // Redirect stdout, stderr to temprorary files |
172 |
- QTemporaryFile output, error; |
173 |
-- if (not output.open() or not error.open()) { |
174 |
-+ if (!output.open() || !error.open()) { |
175 |
- qFatal("Unable to create temprorary files for stdout/stderr"); |
176 |
- return; |
177 |
- } |
178 |
-@@ -90,7 +90,7 @@ void JuliaServer::runJuliaCommand(const QString &command) |
179 |
- bool is_nothing = jl_unbox_bool( |
180 |
- static_cast<jl_value_t *>(jl_call2(equality, nothing, val)) |
181 |
- ); |
182 |
-- if (not is_nothing) { |
183 |
-+ if (!is_nothing) { |
184 |
- jl_static_show(JL_STDOUT, val); |
185 |
- } |
186 |
- m_was_exception = false; |
187 |
-diff --git a/src/backends/julia/juliaserver/main.cpp b/src/backends/julia/juliaserver/main.cpp |
188 |
-index ad7e4d9..11687ec 100644 |
189 |
---- a/src/backends/julia/juliaserver/main.cpp |
190 |
-+++ b/src/backends/julia/juliaserver/main.cpp |
191 |
-@@ -30,7 +30,7 @@ int main(int argc, char *argv[]) |
192 |
- { |
193 |
- QCoreApplication app(argc, argv); |
194 |
- |
195 |
-- if (not QDBusConnection::sessionBus().isConnected()) { |
196 |
-+ if (!QDBusConnection::sessionBus().isConnected()) { |
197 |
- qWarning() << "Can't connect to the D-Bus session bus.\n" |
198 |
- "To start it, run: eval `dbus-launch --auto-syntax`"; |
199 |
- return 1; |
200 |
-@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) |
201 |
- const QString &serviceName = |
202 |
- QString::fromLatin1("org.kde.Cantor.Julia-%1").arg(app.applicationPid()); |
203 |
- |
204 |
-- if (not QDBusConnection::sessionBus().registerService(serviceName)) { |
205 |
-+ if (!QDBusConnection::sessionBus().registerService(serviceName)) { |
206 |
- qWarning() << QDBusConnection::sessionBus().lastError().message(); |
207 |
- return 2; |
208 |
- } |
209 |
-diff --git a/src/backends/julia/juliasession.cpp b/src/backends/julia/juliasession.cpp |
210 |
-index 425e6cb..9183e11 100644 |
211 |
---- a/src/backends/julia/juliasession.cpp |
212 |
-+++ b/src/backends/julia/juliasession.cpp |
213 |
-@@ -86,7 +86,7 @@ void JuliaSession::login() |
214 |
- QDBusConnection::sessionBus() |
215 |
- ); |
216 |
- |
217 |
-- if (not m_interface->isValid()) { |
218 |
-+ if (!m_interface->isValid()) { |
219 |
- qWarning() << QDBusConnection::sessionBus().lastError().message(); |
220 |
- return; |
221 |
- } |
222 |
-@@ -213,7 +213,7 @@ bool JuliaSession::getWasException() |
223 |
- { |
224 |
- const QDBusReply<bool> &reply = |
225 |
- m_interface->call(QLatin1String("getWasException")); |
226 |
-- return reply.isValid() and reply.value(); |
227 |
-+ return reply.isValid() && reply.value(); |
228 |
- } |
229 |
- |
230 |
- void JuliaSession::listVariables() |
231 |
--- |
232 |
-2.10.2 |
233 |
- |