Debian Codegraph @

data/org.gnome.EvolutionEws.Devel.json

raw
1 {
2 "app-id": "org.gnome.EvolutionEws.Devel",
3 "runtime": "org.gnome.Platform",
4 "runtime-version": "master",
5 "sdk": "org.gnome.Sdk",
6 "command": "evolution",
7 "rename-icon": "evolution",
8 "copy-icon": true,
9 "branch": "master",
10 "desktop-file-name-suffix": " (Nightly)",
11 "tags": [ "devel" ],
12 "cleanup": [
13 "*.la",
14 "*.a"
15 ],
16 "finish-args": [
17 "--share=ipc",
18 "--share=network",
19 "--socket=fallback-x11",
20 "--socket=wayland",
21 "--socket=pulseaudio",
22 "--socket=pcsc",
23 "--device=dri",
24 "--filesystem=~/.gnupg:rw",
25 "--filesystem=xdg-config/gnupg:rw",
26 "--filesystem=~/.pki:rw",
27 "--filesystem=xdg-config/pki:rw",
28 "--filesystem=xdg-run/gvfsd:rw",
29 "--filesystem=/run/.heim_org.h5l.kcm-socket",
30 "--metadata=X-DConf=migrate-path=/org/gnome/evolution/",
31 "--talk-name=org.freedesktop.Notifications",
32 "--talk-name=org.freedesktop.secrets",
33 "--talk-name=org.gnome.keyring.SystemPrompter",
34 "--talk-name=org.gnome.OnlineAccounts"
35 ],
36 "add-extensions": {
37 "org.gnome.Evolution.Extension": {
38 "directory": "evolution/extensions",
39 "add-ld-path": "lib",
40 "merge-dirs": "lib;share",
41 "subdirectories": true,
42 "no-autodownload": true,
43 "autodelete": true
44 }
45 },
46 "modules": [
47 {
48 "name": "libcanberra",
49 "config-opts": [
50 "--disable-gtk",
51 "--disable-oss",
52 "--enable-alsa",
53 "--enable-gtk3",
54 "--enable-null",
55 "--without-systemdsystemunitdir",
56 "--with-builtin=dso",
57 "--disable-gtk-doc",
58 "--disable-gtk-doc-html"
59 ],
60 "cleanup": [
61 "/bin",
62 "/share/gtk-doc",
63 "/share/gdm",
64 "/share/gnome",
65 "/share/vala"
66 ],
67 "sources": [
68 {
69 "type": "archive",
70 "url": "http://0pointer.de/lennart/projects/libcanberra/libcanberra-0.30.tar.xz",
71 "sha256": "c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72"
72 },
73 {
74 "type": "script",
75 "dest-filename": "libcanberra-x11-check.patch",
76 "commands": [
77 "From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001",
78 "Subject: gtk: Don't assume all GdkDisplays are GdkX11Displays: broadway/wayland",
79 "",
80 "diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c",
81 "index 67791f0..c1532ab 100644",
82 "--- a/src/canberra-gtk-module.c",
83 "+++ b/src/canberra-gtk-module.c",
84 "@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {",
85 " guchar *data = NULL;",
86 " gint ret = -1;",
87 " ",
88 "+#ifdef GDK_IS_X11_DISPLAY",
89 "+ if (!GDK_IS_X11_DISPLAY(d))",
90 "+ return 0;",
91 "+#endif",
92 "+",
93 " if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),",
94 " gdk_x11_get_xatom_by_name_for_display(d, \"_NET_WM_DESKTOP\"),",
95 " 0, G_MAXLONG, False, XA_CARDINAL, &type_return,",
96 "@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) {",
97 " guchar *data = NULL;",
98 " gint ret = -1;",
99 " ",
100 "+#ifdef GDK_IS_X11_DISPLAY",
101 "+ if (!GDK_IS_X11_DISPLAY(d))",
102 "+ return 0;",
103 "+#endif",
104 "+",
105 " if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)),",
106 " gdk_x11_get_xatom_by_name_for_display(d, \"_NET_CURRENT_DESKTOP\"),",
107 " 0, G_MAXLONG, False, XA_CARDINAL, &type_return,",
108 "@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) {",
109 " gboolean ret = FALSE;",
110 " Atom xembed;",
111 " ",
112 "+#ifdef GDK_IS_X11_DISPLAY",
113 "+ if (!GDK_IS_X11_DISPLAY(d))",
114 "+ return FALSE;",
115 "+#endif",
116 "+",
117 " /* Gnome Panel applets are XEMBED windows. We need to make sure we",
118 " * ignore them */",
119 " ",
120 "diff --git a/src/canberra-gtk.c b/src/canberra-gtk.c",
121 "index 34446f5..08cb668 100644",
122 "--- a/src/canberra-gtk.c",
123 "+++ b/src/canberra-gtk.c",
124 "@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) {",
125 " guchar *data = NULL;",
126 " gint ret = -1;",
127 " ",
128 "+#ifdef GDK_IS_X11_DISPLAY",
129 "+ if (!GDK_IS_X11_DISPLAY(d))",
130 "+ return 0;",
131 "+#endif",
132 "+",
133 " if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w),",
134 " gdk_x11_get_xatom_by_name_for_display(d, \"_NET_WM_DESKTOP\"),",
135 " 0, G_MAXLONG, False, XA_CARDINAL, &type_return,",
136 ""
137 ]
138 },
139 {
140 "type": "shell",
141 "commands": [
142 "patch -p1 <libcanberra-x11-check.patch"
143 ]
144 }
145 ]
146 },
147
148 {
149 "name": "libical",
150 "cleanup": [
151 "/lib/cmake",
152 "/libexec/libical"
153 ],
154 "buildsystem": "cmake-ninja",
155 "config-opts": [
156 "-DCMAKE_INSTALL_LIBDIR:PATH=/app/lib",
157 "-DBUILD_SHARED_LIBS:BOOL=ON",
158 "-DGOBJECT_INTROSPECTION:BOOL=ON",
159 "-DICAL_BUILD_DOCS:BOOL=OFF",
160 "-DICAL_GLIB_VAPI:BOOL=ON",
161 "-DICAL_GLIB:BOOL=ON"
162 ],
163 "sources": [
164 {
165 "type": "git",
166 "url": "https://github.com/libical/libical.git",
167 "branch": "3.0"
168 }
169 ]
170 },
171
172 {
173 "name": "liboauth",
174 "config-opts": [ "--enable-nss" ],
175 "cleanup": [ "/share/man" ],
176 "sources": [
177 {
178 "type": "archive",
179 "url": "https://downloads.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz",
180 "sha256": "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"
181 }
182 ]
183 },
184
185 {
186 "name": "librest",
187 "buildsystem": "meson",
188 "config-opts": [
189 "-Dexamples=false",
190 "-Dgtk_doc=false",
191 "-Dtests=false"
192 ],
193 "sources": [
194 {
195 "type": "git",
196 "url": "https://gitlab.gnome.org/GNOME/librest.git",
197 "branch": "master"
198 }
199 ]
200 },
201
202 {
203 "name": "gnome-online-accounts",
204 "buildsystem": "meson",
205 "config-opts": [
206 "-Dvapi=false",
207 "-Dgoabackend=false",
208 "-Dintrospection=false"
209 ],
210 "cleanup": [
211 "/bin"
212 ],
213 "sources": [
214 {
215 "type": "git",
216 "url": "https://gitlab.gnome.org/GNOME/gnome-online-accounts.git",
217 "branch": "master"
218 }
219 ]
220 },
221
222 {
223 "name": "geocode-glib",
224 "buildsystem": "meson",
225 "config-opts": [
226 "-Denable-installed-tests=false",
227 "-Denable-introspection=false",
228 "-Denable-gtk-doc=false",
229 "-Dsoup2=false"
230 ],
231 "cleanup": [
232 "/share/gtk-doc"
233 ],
234 "sources": [
235 {
236 "type": "archive",
237 "url": "https://download.gnome.org/sources/geocode-glib/3.26/geocode-glib-3.26.4.tar.xz",
238 "sha256": "2d9a6826d158470449a173871221596da0f83ebdcff98b90c7049089056a37aa"
239 }
240 ]
241 },
242
243 {
244 "name": "libgweather4",
245 "buildsystem": "meson",
246 "config-opts": [
247 "-Denable_vala=false",
248 "-Dgtk_doc=false",
249 "-Dintrospection=false",
250 "-Dtests=false"
251 ],
252 "cleanup": [
253 "/lib/girepository-1.0",
254 "/share/gtk-doc",
255 "/share/gir-1.0"
256 ],
257 "sources": [
258 {
259 "type": "git",
260 "url": "https://gitlab.gnome.org/GNOME/libgweather.git",
261 "branch": "main"
262 }
263 ]
264 },
265
266 {
267 "name": "openldap",
268 "rm-configure": true,
269 "cleanup": [
270 "/bin",
271 "/etc",
272 "/share/man"
273 ],
274 "config-opts": [
275 "--disable-backends",
276 "--disable-overlays",
277 "--disable-slapd",
278 "--disable-debug",
279 "--enable-dynamic",
280 "--without-threads",
281 "--with-tls=gnutls"
282 ],
283 "sources": [
284 {
285 "type": "archive",
286 "url": "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.6.8.tgz",
287 "sha256": "48969323e94e3be3b03c6a132942dcba7ef8d545f2ad35401709019f696c3c4e"
288 },
289
290 {
291 "type": "script",
292 "dest-filename": "autogen.sh",
293 "commands": [
294 "AUTOMAKE=\"/bin/true\" autoreconf -vfi"
295 ]
296 }
297 ]
298 },
299
300 {
301 "name": "evolution-data-server",
302 "buildsystem": "cmake-ninja",
303 "cleanup": [
304 "/etc/xdg",
305 "/share/GConf"
306 ],
307 "config-opts": [
308 "-DDBUS_SERVICES_PREFIX=org.gnome.EvolutionEws.Devel",
309 "-DEXTENSIONS_DIR=/app/evolution/extensions",
310 "-DENABLE_FILE_LOCKING=fcntl",
311 "-DENABLE_DOT_LOCKING=OFF",
312 "-DENABLE_GTK=ON",
313 "-DENABLE_GTK4=OFF",
314 "-DENABLE_GOA=ON",
315 "-DENABLE_EXAMPLES=OFF",
316 "-DENABLE_INTROSPECTION=OFF",
317 "-DENABLE_VALA_BINDINGS=OFF",
318 "-DENABLE_INSTALLED_TESTS=OFF",
319 "-DENABLE_GTK_DOC=OFF",
320 "-DWITH_LIBDB=OFF",
321 "-DWITH_PRIVATE_DOCS=OFF",
322 "-DWITH_PHONENUMBER=OFF",
323 "-DWITH_SYSTEMDUSERUNITDIR=OFF"
324 ],
325 "sources": [
326 {
327 "type": "git",
328 "url": "https://gitlab.gnome.org/GNOME/evolution-data-server.git",
329 "branch": "gnome-48"
330 }
331 ]
332 },
333
334 {
335 "name": "intltool",
336 "cleanup": [ "*" ],
337 "sources": [
338 {
339 "type": "archive",
340 "url": "https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz",
341 "sha256": "67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd"
342 }
343 ]
344 },
345
346 {
347 "name": "gspell",
348 "config-opts": [
349 "--disable-gtk-doc",
350 "--disable-introspection",
351 "--disable-vala"
352 ],
353 "cleanup": [
354 "/bin",
355 "/share/gtk-doc"
356 ],
357 "sources": [
358 {
359 "type": "archive",
360 "url": "https://download.gnome.org/sources/gspell/1.12/gspell-1.12.2.tar.xz",
361 "sha256": "b4e993bd827e4ceb6a770b1b5e8950fce3be9c8b2b0cbeb22fdf992808dd2139"
362 }
363 ]
364 },
365
366 {
367 "name": "libassuan",
368 "config-opts": [
369 "--disable-doc"
370 ],
371 "sources": [
372 {
373 "type": "archive",
374 "url": "https://gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.5.tar.bz2",
375 "sha256": "8e8c2fcc982f9ca67dcbb1d95e2dc746b1739a4668bc20b3a3c5be632edb34e4"
376 }
377 ]
378 },
379
380 {
381 "name": "pinentry",
382 "config-opts": [
383 "--enable-pinentry-gnome3",
384 "--disable-ncurses",
385 "--disable-fallback-curses",
386 "--disable-pinentry-curses",
387 "--disable-pinentry-emacs",
388 "--disable-inside-emacs",
389 "--disable-pinentry-efl",
390 "--disable-pinentry-gtk2",
391 "--disable-pinentry-qt",
392 "--disable-pinentry-qt4",
393 "--disable-pinentry-qt5",
394 "--disable-pinentry-tty",
395 "--disable-pinentry-tqt",
396 "--disable-pinentry-fltk",
397 "--disable-doc",
398 "--with-libassuan-prefix=/app"
399 ],
400 "cleanup": [ "/share/info" ],
401 "sources": [
402 {
403 "type": "archive",
404 "url": "https://www.gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.0.tar.bz2",
405 "sha256": "9b3cd5226e7597f2fded399a3bc659923351536559e9db0826981bca316494de"
406 }
407 ]
408 },
409
410 {
411 "name": "bogofilter",
412 "buildsystem": "simple",
413 "build-commands": [
414 "cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
415 ],
416 "cleanup": [ "/etc" ],
417 "sources": [
418 {
419 "type": "git",
420 "url": "https://git.code.sf.net/p/bogofilter/git",
421 "branch": "main"
422 }
423 ]
424 },
425
426 {
427 "name": "cmark",
428 "buildsystem": "cmake-ninja",
429 "builddir": true,
430 "cleanup": [
431 "/bin",
432 "/lib/cmake",
433 "/share"
434 ],
435 "sources": [
436 {
437 "type": "archive",
438 "url": "https://github.com/commonmark/cmark/archive/refs/tags/0.31.0.tar.gz",
439 "sha256": "bbcb8f8c03b5af33fcfcf11a74e9499f20a9043200b8552f78a6e8ba76e04d11"
440 }
441 ]
442 },
443
444 {
445 "name": "evolution",
446 "buildsystem": "cmake-ninja",
447 "build-options" : {
448 "cflags": "-DTEMP_HOME=1 -Wno-deprecated-declarations"
449 },
450 "config-opts": [
451 "-DOVERRIDE_APPLICATION_ID=org.gnome.EvolutionEws.Devel",
452 "-DENABLE_AUTOAR=OFF",
453 "-DENABLE_CONTACT_MAPS=OFF",
454 "-DENABLE_GNOME_DESKTOP=OFF",
455 "-DENABLE_GTK_DOC=OFF",
456 "-DENABLE_INSTALLED_TESTS=OFF",
457 "-DENABLE_PST_IMPORT=OFF",
458 "-DENABLE_TEXT_HIGHLIGHT=OFF",
459 "-DENABLE_YTNEF=OFF",
460 "-DWITH_BOGOFILTER=/app/bin/bogofilter",
461 "-DWITH_GLADE_CATALOG=OFF",
462 "-DWITH_HELP=OFF"
463 ],
464 "cleanup": [
465 "/etc/xdg",
466 "/share/GConf",
467 "/share/man"
468 ],
469 "sources": [
470 {
471 "type": "git",
472 "url": "https://gitlab.gnome.org/GNOME/evolution.git",
473 "branch": "gnome-48"
474 },
475 {
476 "type": "shell",
477 "commands": [
478 "cp config.h.in config.h.in.orig",
479 "cat config.h.in.orig | sed -e \"s|\\@VERSION_SUBSTRING\\@| \\(flatpak git$(git log --pretty=format:%h --max-count=1)\\)|\" >config.h.in",
480 "cp data/org.gnome.Evolution.appdata.xml.in.in data/org.gnome.Evolution.appdata.xml.in.in.orig",
481 "cat data/org.gnome.Evolution.appdata.xml.in.in.orig | sed -e \"s|\\@APPDATA_RELEASES\\@|APPDATA_RELEASES|\" >data/org.gnome.Evolution.appdata.xml.in.in"
482 ]
483 }
484 ],
485 "post-install": [
486 "mv /app/share/applications/org.gnome.Evolution.desktop /app/share/applications/org.gnome.EvolutionEws.Devel.desktop"
487 ]
488 },
489
490 {
491 "name": "libmspack",
492 "cleanup": [ "/bin" ],
493 "sources": [
494 {
495 "type": "archive",
496 "url": "https://www.cabextract.org.uk/libmspack/libmspack-0.10.1alpha.tar.gz",
497 "sha256": "bac862dee6e0fc10d92c70212441d9f8ad9b0222edc9a708c3ead4adb1b24a8e"
498 }
499 ]
500 },
501
502 {
503 "name": "flatpak-evolution-wrapper",
504 "buildsystem": "simple",
505 "sources": [
506 {
507 "type": "script",
508 "commands": [
509 "if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; then",
510 " /app/bin/evolution.bin \"$@\"",
511 "else",
512 " export BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
513 " export GIO_USE_NETWORK_MONITOR=base",
514 " export WEBKIT_FORCE_SANDBOX=0",
515 " gsettings reset org.gnome.evolution-data-server network-monitor-gio-name",
516 "",
517 " gpg-agent --homedir ~/.gnupg --daemon --pinentry-program=/app/bin/pinentry",
518 "",
519 " LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @SOURCES_SERVICE@ | wc -l)",
520 " if [ \"${LINES}\" = \"0\" ]; then",
521 " /app/libexec/evolution-source-registry &",
522 " gdbus wait --session --timeout=1@TIMEOUTMULT@ @SOURCES_SERVICE@",
523 " fi",
524 "",
525 " LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @ADDRESSBOOK_SERVICE@ | wc -l)",
526 " if [ \"${LINES}\" = \"0\" ]; then",
527 " /app/libexec/evolution-addressbook-factory -r &",
528 " gdbus wait --session --timeout=1@TIMEOUTMULT@ @ADDRESSBOOK_SERVICE@",
529 " fi",
530 "",
531 " LINES=$(gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames | grep @CALENDAR_SERVICE@ | wc -l)",
532 " if [ \"${LINES}\" = \"0\" ]; then",
533 " /app/libexec/evolution-calendar-factory -r &",
534 " gdbus wait --session --timeout=1@TIMEOUTMULT@ @CALENDAR_SERVICE@",
535 " fi",
536 "",
537 " /app/bin/evolution.bin \"$@\"",
538 "",
539 " pkill -TERM gpg-agent",
540 "fi"
541 ],
542 "dest-filename": "flatpak-evolution-wrapper.sh.in"
543 },
544 {
545 "type": "script",
546 "commands": [
547 "# see https://gitlab.gnome.org/GNOME/glib/issues/1737",
548 "# previous versions used milliseconds instead of seconds as the timeout argument",
549 "(`pkg-config --atleast-version 2.60.1 gio-2.0` || `pkg-config --atleast-version 2.61.0 gio-2.0`) && TIMEOUTMULT= || TIMEOUTMULT=000",
550 "",
551 "sed -e \"s|\\@SOURCES_SERVICE\\@|$(pkg-config --variable=sourcesdbusservicename evolution-data-server-1.2)|\" \\",
552 " -e \"s|\\@ADDRESSBOOK_SERVICE\\@|$(pkg-config --variable=addressbookdbusservicename evolution-data-server-1.2)|\" \\",
553 " -e \"s|\\@CALENDAR_SERVICE\\@|$(pkg-config --variable=calendardbusservicename evolution-data-server-1.2)|\" \\",
554 " -e \"s|\\@TIMEOUTMULT\\@|${TIMEOUTMULT}|\""
555 ],
556 "dest-filename": "flatpak-evolution-fix-service-names.sh"
557 }
558 ],
559 "build-commands": [
560 "./flatpak-evolution-fix-service-names.sh <flatpak-evolution-wrapper.sh.in >flatpak-evolution-wrapper.sh",
561 "chmod a+x flatpak-evolution-wrapper.sh",
562 "mv /app/bin/evolution /app/bin/evolution.bin",
563 "cp flatpak-evolution-wrapper.sh /app/bin/evolution"
564 ]
565 },
566
567 {
568 "name": "evolution-ews",
569 "buildsystem": "cmake-ninja",
570 "sources": [
571 {
572 "type": "git",
573 "url": "https://gitlab.gnome.org/GNOME/evolution-ews.git",
574 "branch": "gnome-48"
575 }
576 ]
577 }
578 ]
579 }