{
 "app_id": "net.poedit.Poedit",
 "source_url": "https://raw.githubusercontent.com/flathub/net.poedit.Poedit/master/net.poedit.Poedit.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--filesystem=home",
  "--talk-name=org.freedesktop.secrets"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:13:42.311099+00:00",
 "manifest": {
  "id": "net.poedit.Poedit",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "command": "poedit",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--filesystem=home",
   "--talk-name=org.freedesktop.secrets",
   "--share=network",
   "--metadata=X-DConf=migrate-path=/net/poedit/Poedit/"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/man",
   "/share/doc",
   "/share/gettext",
   "/share/gir-1.0",
   "/share/man",
   "/share/vala",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/intltool/intltool-0.51.json",
   {
    "name": "wxWidgets",
    "rm-configure": true,
    "config-opts": [
     "--with-gtk=3",
     "--disable-sdltest",
     "--enable-webview",
     "--with-cxx=14",
     "--enable-stl",
     "--enable-webviewwebkit"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.11/wxWidgets-3.2.11.tar.bz2",
      "sha256": "6a129015bce2e914e4bf61ec4411854ad962801d47e92f2eb8340adb6a90af08"
     },
     {
      "type": "shell",
      "commands": [
       "cp -p /usr/share/automake-*/config.{sub,guess} .",
       "autoconf -f -B build/autoconf_prepend-include"
      ]
     }
    ]
   },
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh",
     "./b2 install --prefix=/app\n             --with-filesystem\n             --with-date_time\n             --with-regex\n             --with-thread\n             --with-system\n             --with-random\n             --with-iostreams\n             --with-chrono\n             --with-atomic\n             define='BOOST_SYSTEM_NO_DEPRECATED'\n             -sNO_BZIP2=1\n             cxxflags=-fPIC\n             cflags=-fPIC"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.84.0/source/boost_1_84_0.tar.bz2",
      "sha256": "cc4b893acf645c9d4b698e9a0f08ca8846aa5d6c68275c14c3e7949c24109454"
     },
     {
      "type": "patch",
      "path": "boost-1.83-fix-no-member-named_that_error.patch"
     }
    ]
   },
   {
    "name": "lucene++",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "config-opts": [
      "-DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'",
      "-DENABLE_DEMO=OFF",
      "-DENABLE_TEST=OFF"
     ]
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_3.0.9.tar.gz",
      "sha256": "4e69e29d5d79a976498ef71eab70c9c88c7014708be4450a9fda7780fe93584e"
     },
     {
      "type": "patch",
      "path": "lucene++-fix-build-new-cmake.patch"
     }
    ]
   },
   {
    "name": "gtkspell",
    "cleanup": [
     "*.la",
     "/share/gtk-doc"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/gtkspell/files/3.0.10/gtkspell3-3.0.10.tar.xz",
      "sha256": "b040f63836b347eb344f5542443dc254621805072f7141d49c067ecb5a375732"
     }
    ]
   },
   {
    "name": "gettext",
    "sources": [
     {
      "type": "archive",
      "url": "https://ftp.gnu.org/pub/gnu/gettext/gettext-0.26.tar.xz",
      "sha256": "d1fb86e260cfe7da6031f94d2e44c0da55903dbae0a2fa0fae78c91ae1b56f00"
     }
    ]
   },
   {
    "name": "cpprestsdk",
    "buildsystem": "cmake-ninja",
    "subdir": "Release",
    "modules": [
     {
      "name": "websocketpp",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/zaphoyd/websocketpp/archive/0.8.2.tar.gz",
        "sha256": "6ce889d85ecdc2d8fa07408d6787e7352510750daa66b5ad44aacb47bea76755"
       },
       {
        "type": "patch",
        "path": "websocketpp-update-required-cmake.patch"
       }
      ]
     }
    ],
    "build-options": {
     "config-opts": [
      "-DCMAKE_CXX_FLAGS='-Wno-format-truncation'",
      "-DCMAKE_BUILD_TYPE=Release",
      "-DBUILD_TESTS=OFF",
      "-DBUILD_SAMPLES=OFF",
      "-DCPPREST_EXCLUDE_WEBSOCKETS=OFF",
      "-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF"
     ]
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/microsoft/cpprestsdk/archive/refs/tags/v2.10.19.tar.gz",
      "sha256": "4b0d14e5bfe77ce419affd253366e861968ae6ef2c35ae293727c1415bd145c8"
     },
     {
      "type": "patch",
      "path": "disable-cpprestsdk-cpp-warn-error.patch"
     }
    ]
   },
   {
    "name": "cld2",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "config-opts": [
      "-DCMAKE_BUILD_TYPE=Release",
      "-DCMAKE_CXX_FLAGS='-std=c++98'"
     ]
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/CLD2Owners/cld2.git",
      "commit": "b56fa78a2fe44ac2851bae5bf4f4693a0644da7b"
     },
     {
      "type": "patch",
      "path": "cld2-add-cmake-file.patch"
     },
     {
      "type": "patch",
      "path": "cld2-update-required-cmake.patch"
     }
    ]
   },
   {
    "name": "poedit",
    "config-opts": [
     "--with-boost-libdir=/app/lib",
     "--with-cld2"
    ],
    "build-options": {
     "cppflags": "-I/app/include",
     "ldflags": "-L/app/lib"
    },
    "post-install": [
     "mv /app/share/applications/net.poedit.PoeditURI.desktop /app/share/applications/net.poedit.Poedit.URI.desktop"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/vslavik/poedit/releases/download/v3.9.1-oss/poedit-3.9.1.tar.gz",
      "sha256": "d70c45e2ee3b4c8f7b6e2f61a09d4f720b23a09aeed1c44a58a0050634f260fd"
     },
     {
      "type": "patch",
      "path": "appdata.patch"
     }
    ]
   }
  ]
 }
}