[shotwell/wip/ci] ci: Switch to flatpak without extra data




commit a7b90a5182272babaa0de4f6d381f1bb3403f1d5
Author: Jens Georg <mail jensge org>
Date:   Thu Jul 28 14:01:47 2022 +0200

    ci: Switch to flatpak without extra data
    
    Extra data causes the .flatpak not to be installable which makes the CI
    a bit useless

 .gitlab-ci.yml                     |   2 +-
 flatpak/org.gnome.Shotwell.Ci.json | 235 +++++++++++++++++++++++++++++++++++++
 2 files changed, 236 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b7a0bdf1..de315b6f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ flatpak:
     extends: ['.flatpak']
     image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
     variables:
-        MANIFEST_PATH: "flatpak/org.gnome.Shotwell.json"
+        MANIFEST_PATH: "flatpak/org.gnome.Shotwell.Ci.json"
         RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo";
         # Replace with your application name, as written in the manifest
         FLATPAK_MODULE: "shotwell"
diff --git a/flatpak/org.gnome.Shotwell.Ci.json b/flatpak/org.gnome.Shotwell.Ci.json
new file mode 100644
index 00000000..b7244140
--- /dev/null
+++ b/flatpak/org.gnome.Shotwell.Ci.json
@@ -0,0 +1,235 @@
+{
+    "app-id" : "org.gnome.Shotwell",
+    "runtime" : "org.gnome.Platform",
+    "runtime-version" : "master",
+    "sdk" : "org.gnome.Sdk",
+    "command" : "shotwell",
+    "tags" : [
+        "nightly"
+    ],
+    "desktop-file-name-prefix" : "(Nightly) ",
+    "finish-args" : [
+        "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+        "--filesystem=~/.config/dconf:ro",
+        "--filesystem=/media",
+        "--filesystem=/run/media",
+        "--filesystem=xdg-download",
+        "--filesystem=xdg-pictures",
+        "--filesystem=xdg-run/dconf",
+        "--share=ipc",
+        "--share=network",
+        "--device=all",
+        "--device=dri",
+        "--socket=wayland",
+        "--socket=x11",
+        "--talk-name=ca.desrt.dconf",
+        "--talk-name=org.freedesktop.FileManager1",
+        "--talk-name=org.gnome.SettingsDaemon",
+        "--talk-name=org.gtk.vfs",
+        "--talk-name=org.gtk.vfs.*",
+        "--env=GSETTINGS_BACKEND=dconf",
+        "--talk-name=org.freedesktop.secrets"
+    ],
+    "cleanup" : [
+        "/include",
+        "/lib/pkconfig",
+        "/share/pkgconfig",
+        "/share/gtk-doc",
+        "/share/man",
+        "/share/vala",
+        "/lib/girepository",
+        "*.la",
+        "*.a"
+    ],
+    "modules" : [
+        {
+            "name" : "opencv",
+            "buildsystem" : "cmake-ninja",
+            "builddir" : true,
+            "cleanup" : [
+                "/share/OpenCV/*.cmake",
+                "/share/OpenCV/*.supp"
+            ],
+            "config-opts" : [
+                "-DCMAKE_BUILD_TYPE=Release",
+                "-DOPENCV_GENERATE_PKGCONFIG=ON",
+                "-DBUILD_TESTS=OFF",
+                "-DBUILD_EXAMPLES=OFF",
+                "-DBUILD_PERF_TESTS=OFF",
+                "-DWITH_FFMPEG=OFF",
+                "-DWITH_GTK=OFF",
+                "-DWITH_GSTREAMER=OFF",
+                "-DWITH_JASPER=OFF",
+                "-DWITH_OPENEXR=OFF",
+                "-DWITH_GDAL=OFF",
+                "-DWITH_GDCM=OFF",
+                "-DBUILD_opencv_apps=OFF",
+                "-DCMAKE_INSTALL_LIBDIR=lib",
+                "-DBUILD_LIST=imgproc,imgcodecs,objdetect,dnn"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "tag" : "4.5.2",
+                    "commit" : "69357b1e88680658a07cffde7678a4d697469f03",
+                    "url" : "https://github.com/opencv/opencv";
+                }
+            ]
+        },
+        {
+            "name" : "libusb",
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : 
"https://github.com/libusb/libusb/releases/download/v1.0.24/libusb-1.0.24.tar.bz2";,
+                    "sha256" : "7efd2685f7b327326dcfb85cee426d9b871fd70e22caa15bb68d595ce2a2b12a"
+                }
+            ],
+            "config-opts" : [
+                "--disable-udev"
+            ]
+        },
+        {
+            "name" : "libghoto2",
+            "cleanup" : [
+                "/bin",
+                "/lib/udev",
+                "/share/doc"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : 
"https://sourceforge.net/projects/gphoto/files/libgphoto/2.5.27/libgphoto2-2.5.27.tar.bz2/download";,
+                    "sha256" : "f8b85478c44948a0b0b52c4d4dfda2de1d7bcb7b262c76bd1ae306d9c63240d7",
+                    "dest-filename" : "libgphoto2-2.5.27.tar.bz2"
+                }
+            ],
+            "config-opts" : [
+                "--disable-introspection",
+                "--disable-docs"
+            ]
+        },
+        {
+            "name" : "liboauth",
+            "config-opts" : [
+                "--enable-nss"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://sourceforge.net/projects/liboauth/files/liboauth-1.0.3.tar.gz/download";,
+                    "sha256" : "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f",
+                    "dest-filename" : "liboauth-1.0.3.tar.gz"
+                }
+            ]
+        },
+        {
+            "name" : "libgdata",
+            "buildsystem" : "meson",
+            "cleanup": ["/share/gtk-doc"],
+            "config-opts": [ "-Dintrospection=false", "-Dalways_build_tests=false", "-Dgoa=disabled", 
"-Dgtk_doc=false"],
+            "sources" : [
+                {
+                    "type" : "archive",
+                        "url": "https://download.gnome.org/sources/libgdata/0.18/libgdata-0.18.1.tar.xz";,
+                        "sha256": "dd8592eeb6512ad0a8cf5c8be8c72e76f74bfe6b23e4dd93f0756ee0716804c7"
+                }
+            ]
+        },
+        {
+            "name" : "libraw",
+            "config-opts" : [
+                "--disable-examples",
+                "--disable-jasper",
+                "--disable-static",
+                "--enable-jpeg",
+                "--enable-lcms",
+                "--enable-openmp"
+            ],
+            "rm-configure" : true,
+            "cleanup" : [
+                "/share/doc"
+            ],
+            "sources" : [
+                {
+                    "type" : "archive",
+                    "url" : "https://www.libraw.org/data/LibRaw-0.20.2.tar.gz";,
+                    "sha256" : "dc1b486c2003435733043e4e05273477326e51c3ea554c6864a4eafaff1004a6"
+                },
+                {
+                    "type" : "patch",
+                    "path" : "patches/libraw-pkgconfig.patch"
+                },
+                {
+                    "type": "script",
+                    "dest-filename": "autogen.sh",
+                    "commands": [
+                        "autoreconf -vfi"
+                    ]
+                }
+            ]
+        },
+        {
+            "name" : "exiv2",
+            "cleanup" : [
+                "/bin"
+            ],
+            "buildsystem" : "cmake",
+            "config-opts" : [
+                "-DCMAKE_INSTALL_LIBDIR=lib",
+                "-DCMAKE_BUILD_TYPE=Release",
+                "-DEXIV2_BUILD_EXIV2_COMMAND=OFF",
+                "-DEXIV2_BUILD_SAMPLES=OFF",
+                "-DEXIV2_BUILD_UNIT_TESTS=OFF",
+                "-DEXIV2_ENABLE_BMFF=ON"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://github.com/Exiv2/exiv2/";,
+                    "branch" : "0.27-maintenance"
+                }
+            ]
+        },
+        {
+            "name" : "gexiv2",
+            "buildsystem" : "meson",
+            "cleanup" : [
+                "/lib/girepository-1.0",
+                "/share/gir-1.0"
+            ],
+            "config-opts" : [
+                "-Dpython3_girdir=no"
+            ],
+            "build-options" : {
+                "env" : {
+                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_GIRDIR" : "/app/share/gir-1.0",
+                    "PKG_CONFIG_GOBJECT_INTROSPECTION_1_0_TYPELIBDIR" : "/app/lib/girepository-1.0"
+                }
+            },
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/gexiv2.git/";
+                }
+            ]
+        },
+        {
+            "name" : "shotwell",
+            "buildsystem" : "meson",
+            "config-opts" : [
+                "-Dudev=false",
+                "-Dinstall_apport_hook=false",
+                "-Dface_detection=true",
+                "-Dface_detection_helper_bus=private"
+            ],
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/shotwell.git/";,
+                    "branch" : "master"
+                },
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]