org.gimp.GIMP-nightly.json 17.9 KB
Newer Older
1
{
2
    "app-id": "org.gimp.GIMP",
3 4
    "branch": "master",
    "runtime": "org.gnome.Platform",
5
    "runtime-version": "3.28",
6
    "sdk": "org.gnome.Sdk",
7
    "command": "gimp-2.99",
8
    "separate-locales": false,
9 10
    "rename-desktop-file": "gimp.desktop",
    "rename-icon": "gimp",
11
    "finish-args": ["--share=ipc", "--share=network",
12
                    "--socket=x11",
13
                    "--filesystem=host", "--filesystem=xdg-config/GIMP",
14
                    "--filesystem=xdg-config/gtk-3.0", "--filesystem=/tmp",
15 16
                    "--talk-name=org.gtk.vfs", "--talk-name=org.gtk.vfs.*",
                    "--talk-name=org.freedesktop.FileManager1"],
17
    "tags": ["GTK+3", "nightly"],
18
    "desktop-file-name-prefix": "(Nightly) ",
19 20 21 22 23 24 25
    "build-options" : {
        "cflags": "-O2 -g",
        "cxxflags": "-O2 -g",
        "env": {
            "V": "1"
        }
    },
26 27 28
    "cleanup": ["/include", "/lib/pkgconfig", "/share/pkgconfig",
                "/share/aclocal", "/man", "/share/man", "/share/gtk-doc",
                "/share/vala", "*.la", "*.a", "/bin/wmf*", "/bin/libwmf-*",
29
                "/bin/pygtk*", "/bin/pygobject*", "/bin/pygobject-codegen-2.0"],
30
    "modules": [
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
        {
            "name": "python",
            "modules": [
                {
                    "name": "py2cairo",
                    "rm-configure": true,
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://cairographics.org/releases/py2cairo-1.10.0.tar.bz2",
                            "sha256": "d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431"
                        },
                        {
                            "type": "script",
                            "commands": [
                                "libtoolize --force",
                                "aclocal",
                                "autoheader",
                                "automake --force-missing --add-missing --foreign",
                                "autoconf"
                            ],
                            "dest-filename": "autogen.sh"
                        }
                    ]
                },
                {
                    "name": "pygobject",
                    "config-opts": [ "--disable-introspection" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.7.tar.xz",
                            "sha256": "bb9d25a3442ca7511385a7c01b057492095c263784ef31231ffe589d83a96a5a"
                        },
                        {
                            "type": "shell",
                            "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                        }
                    ]
                },
                {
                    "name": "pygtk",
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.24/pygtk-2.24.0.tar.gz",
                            "sha256": "6e3e54fa6e65a69ac60bd58cb2e60a57f3346ac52efe995f3d10b6c38c972fd8"
                        },
                        {
                            "type": "shell",
                            "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "gexiv2",
            "modules": [
                {
                    "name": "exiv2",
                    "cleanup": [ "/bin" ],
                    "sources": [
                        {
                            "type": "archive",
96 97
                            "url": "http://www.exiv2.org/builds/exiv2-0.26-trunk.tar.gz",
                            "sha256": "c75e3c4a0811bf700d92c82319373b7a825a2331c12b8b37d41eb58e4f18eafb"
98 99 100 101 102 103 104 105 106 107 108 109
                        },
                        {
                            "type": "shell",
                            "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} config/" ]
                        }
                    ]
                }
            ],
            "config-opts": [ "--disable-introspection" ],
            "sources": [
                {
                    "type": "archive",
110 111
                    "url": "https://download.gnome.org/sources/gexiv2/0.10/gexiv2-0.10.8.tar.xz",
                    "sha256": "81c528fd1e5e03577acd80fb77798223945f043fd1d4e06920c71202eea90801"
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
                }
            ]
        },
        {
            "name": "openexr",
            "modules": [
                {
                    "name": "ilmbase",
                    "config-opts": [ "--disable-static" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://download.savannah.nongnu.org/releases/openexr/ilmbase-2.2.0.tar.gz",
                            "sha256": "ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7"
                        },
                        {
                            "type": "shell",
                            "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                        }
                    ]
                }
            ],
            "config-opts": [ "--disable-static", "--disable-ilmbasetest" ],
            "cleanup": [ "/bin", "/share/doc" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "http://download.savannah.nongnu.org/releases/openexr/openexr-2.2.0.tar.gz",
                    "sha256": "36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231"
                },
                {
                    "type": "shell",
                    "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                }
            ]
        },
        {
            "name": "libraw",
            "config-opts": [ "--disable-static" ],
            "cleanup": [ "/bin", "/share/doc" ],
            "sources": [
                {
                    "type": "archive",
155 156
                    "url": "http://www.libraw.org/data/LibRaw-0.19.0.tar.gz",
                    "sha256": "e83f51e83b19f9ba6b8bd144475fc12edf2d7b3b930d8d280bdebd8a8f3ed259"
157 158 159
                }
            ]
        },
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
        {
            /* This is a GIMP direct dependency, but also for poppler. So make sure
             * we build this before poppler.
             */
            "name": "openjpeg",
            "buildsystem": "cmake-ninja",
            "builddir": true,
            "cleanup": [ "/bin", "/lib/openjpeg-2.3" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz",
                    "sha256": "3dc787c1bb6023ba846c2a0d9b1f6e179f1cd255172bde9eb75b01f1e6c7d71a"
                }
            ]
        },
176 177 178 179 180
        {
            "name": "poppler",
            "modules": [
                {
                    "name": "popplerdata",
181 182
                    "buildsystem": "cmake-ninja",
                    "builddir": true,
183 184 185
                    "sources": [
                        {
                            "type": "archive",
186 187
                            "url": "https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz",
                            "sha256": "1f9c7e7de9ecd0db6ab287349e31bf815ca108a5a175cf906a90163bdbe32012"
188 189 190 191
                        }
                    ]
                }
            ],
192 193 194 195
            "config-opts": [ "-DENABLE_GOBJECT_INTROSPECTION=OFF", "-DOpenJPEG_DIR=/usr/lib64/openjpeg-2.3" ],
            "cleanup": [ "/bin", "/share" ],
            "buildsystem": "cmake-ninja",
            "builddir": true,
196 197 198
            "sources": [
                {
                    "type": "archive",
199 200
                    "url": "https://poppler.freedesktop.org/poppler-0.69.0.tar.xz",
                    "sha256": "637ff943f805f304ff1da77ba2e7f1cbd675f474941fd8ae1e0fc01a5b45a3f9"
201 202 203 204
                }
            ]
        },
        {
205 206 207 208 209
            /* These are dependencies which are already in the runtime, but in
             * older versions. When we need newer versions of a dep, I add it
             * here so that I can easily spot the duplicate and recheck when
             * updating the runtime.
             */
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
            "name": "duplicate-dependencies",
            "modules": [
                {
                    "name": "libpng",
                    "cleanup": [ "/bin", "/share" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://src.fedoraproject.org/repo/pkgs/rpms/libpng/libpng-1.6.34.tar.xz/sha512/89407c5abc1623faaa3992fc1e4a62def671d9a7401108dfceee895d5f16fe7030090bea89b34a36d377d8e6a5d40046886991f663ce075d1a2d31bf9eaf3c51/libpng-1.6.34.tar.xz",
                            "sha256": "2f1e960d92ce3b3abd03d06dfec9637dfbd22febf107a536b44f7a47c60659f6"
                        }
                    ]
                },
                {
                    "name": "lcms2",
                    "config-opts": [ "--disable-static" ],
                    "cleanup": [ "/bin", "/share" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://src.fedoraproject.org/repo/pkgs/rpms/lcms2/lcms2-2.9.tar.gz/sha512/e30ad5a9a1ab9e7aaace9431434caa19a5ff6143db46644aba971a5ee37a265b26bf738e886d766405a7eb45a9d620d67c7ab3684ace86a107cf5a76642c04a5/lcms2-2.9.tar.gz",
                            "sha256": "a83cd711db57404e17bc943a4c9742d7a98560918ad3d0a4f511428f96d1ad5b"
                        }
                    ]
234 235 236 237 238 239 240 241 242 243 244 245
                },
                {
                    "name": "libwebp",
                    "config-opts": [ "--disable-static", "--enable-libwebpmux", "--enable-libwebpdemux" ],
                    "cleanup": [ "/share", "/bin" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "http://downloads.webmproject.org/releases/webp/libwebp-1.0.0.tar.gz",
                            "sha256": "84259c4388f18637af3c5a6361536d754a5394492f91be1abc2e981d4983225b"
                        }
                    ]
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
                }
            ]
        },
        {
            "name": "aalib",
            "config-opts": [ "--disable-static" ],
            "cleanup": [ "/bin", "/info", "/man" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://src.fedoraproject.org/repo/pkgs/rpms/aalib/aalib-1.4rc5.tar.gz/9801095c42bba12edebd1902bcf0a990/aalib-1.4rc5.tar.gz",
                    "sha256": "fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee"
                },
                {
                    "type": "shell",
                    "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                }
            ]
        },
        {
            "name": "libmng",
            "config-opts": [ "--disable-static" ],
            "cleanup": [ "/share" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://src.fedoraproject.org/repo/pkgs/rpms/libmng/libmng-2.0.3.tar.gz/7e9a12ba2a99dff7e736902ea07383d4/libmng-2.0.3.tar.gz",
                    "sha256": "cf112a1fb02f5b1c0fce5cab11ea8243852c139e669c44014125874b14b7dfaa"
                }
            ]
        },
        {
            "name": "libwmf",
            "config-opts": [ "--disable-static", "--disable-dependency-tracking" ],
            "cleanup": [ "/share/doc", "/bin" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://src.fedoraproject.org/repo/pkgs/rpms/libwmf/libwmf-0.2.8.4.tar.gz/d1177739bf1ceb07f57421f0cee191e0/libwmf-0.2.8.4.tar.gz",
                    "sha256": "5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8"
                },
                {
                    "type": "shell",
                    "commands": [ "cp -p /usr/share/automake-*/config.{sub,guess} ." ]
                }
            ]
        },
        {
            "name": "ghostscript",
            "config-opts": [ "--disable-cups" ],
            "make-args": [ "so" ],
            "make-install-args": [ "soinstall" ],
298
            "cleanup": [ "/bin", "/share/man", "/share/ghostscript/9.26/doc/", "/share/ghostscript/9.26/examples" ],
299 300 301
            "sources": [
                {
                    "type": "archive",
302 303
                    "url": "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs926/ghostscript-9.26.tar.gz",
                    "sha512": "670159c23618ffafa85c671642bf182a107a82c053a1fd8c3f45f73f203524077be1b212d2ddbabae7892c7713922877e03b020f78bd2aab1ae582c4fc7d820a"
304 305 306 307 308 309 310 311
                },
                {
                    "type": "shell",
                    "commands": [
                                  "cp -p /usr/share/automake-*/config.{sub,guess} freetype/builds/unix/",
                                  "cp -p /usr/share/automake-*/config.{sub,guess} ijs/",
                                  "cp -p /usr/share/automake-*/config.{sub,guess} jpeg/",
                                  "cp -p /usr/share/automake-*/config.{sub,guess} libpng/",
312
                                  "cp -p /usr/share/automake-*/config.{sub,guess} lcms2mt/",
313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
                                  "cp -p /usr/share/automake-*/config.{sub,guess} tiff/config/",
                                  "rm -rf libpng/pngread.c"
                                ]
                }
            ]
        },
        {
            "name": "libmypaint",
            "config-opts": [ "--disable-gegl", "--disable-introspection" ],
            "sources": [
                {
                    "type": "archive",
                    "url": "https://github.com/mypaint/libmypaint/releases/download/v1.3.0/libmypaint-1.3.0.tar.xz",
                    "sha256": "6a07d9d57fea60f68d218a953ce91b168975a003db24de6ac01ad69dcc94a671"
                }
            ]
        },
        {
            "name": "mypaint-brushes",
            "sources": [
                {
                    "type": "git",
                    "url": "https://github.com/Jehan/mypaint-brushes.git",
                    "branch": "v1.3.0",
                    "commit": "fce9b5f23f658f15f8168ef5cb2fee69cf90addb"
                }
            ]
        },
341
        {
342 343
            "name" : "pango",
            "modules": [
344
                {
345 346 347 348 349 350 351 352
                    "name" : "fribidi",
                    "sources" : [
                        {
                            "url" : "https://github.com/fribidi/fribidi/releases/download/0.19.7/fribidi-0.19.7.tar.bz2",
                            "sha256" : "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e",
                            "type" : "archive"
                        }
                    ]
353
                }
354
            ],
355 356 357 358 359 360 361 362
            "sources" : [
                {
                    "url" : "https://download.gnome.org/sources/pango/1.42/pango-1.42.1.tar.xz",
                    "sha256" : "915a6756b298578ff27c7a6393f8c2e62e6e382f9411f2504d7af1a13c7bce32",
                    "type" : "archive"
                }
            ]
        },
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
        {
            "name" : "libheif",
            "modules": [
                {
                    "name": "libde265",
                    "config-opts": [ "--disable-sherlock265" ],
                    "sources": [
                        {
                            "type": "archive",
                            "url": "https://github.com/strukturag/libde265/releases/download/v1.0.3/libde265-1.0.3.tar.gz",
                            "sha256": "e4206185a7c67d3b797d6537df8dcaa6e5fd5a5f93bd14e65a755c33cd645f7a"
                        }
                    ]
                }
            ],
            "sources" : [
                {
                    "url" : "https://github.com/strukturag/libheif/releases/download/v1.1.0/libheif-1.1.0.tar.gz",
                    "sha256" : "3f8e62e5481b38965b05d44cddc522b15c4820ee635205f826a6b15c0d4040cb",
                    "type" : "archive"
                }
            ]
        },
386 387 388 389 390 391
        {
            "name": "babl",
            "config-opts": [ "--disable-docs" ],
            "sources": [
                {
                    "type": "git",
392
                    "url": "https://gitlab.gnome.org/GNOME/babl.git",
393
                    "branch": "master"
394 395 396 397 398
                }
            ]
        },
        {
            "name": "gegl",
399
            "config-opts": [ "--disable-docs", "--disable-introspection" ],
400 401 402 403
            "cleanup": [ "/bin" ],
            "sources": [
                {
                    "type": "git",
404
                    "url": "https://gitlab.gnome.org/GNOME/gegl.git",
405
                    "branch": "master"
406 407 408 409 410
                }
            ]
        },
        {
            "name": "gimp",
411 412
            "config-opts": [ "--disable-docs", "--disable-gtk-doc", "--disable-gtk-doc-html",
                             "--with-icc-directory=/run/host/usr/share/color/icc/" ],
413
            "cleanup": [ "/bin/gimptool-3.0", "/bin/gimp-console-2.99" ],
414 415 416
            "sources": [
                {
                    "type": "git",
417
                    "url": "https://gitlab.gnome.org/GNOME/gimp.git",
418
                    "branch": "master"
419
                }
420 421 422 423 424
            ],
	    "post-install": [
                "rm -fr /app/include /app/lib/pkgconfig /app/share/pkgconfig",
                "rm -fr /app/share/gtk-doc/ /app/share/man/",
                "rm -fr /app/lib/*.la /app/lib/*.a",
425
                "rm -fr /app/share/ghostscript/9.26/doc/",
426 427
                "rm -fr /app/bin/wmf* /app/bin/libwmf-*",
                "rm -fr /app/bin/pygtk* /app/bin/pygobject* /app/bin/pygobject-codegen-2.0"
428 429 430 431
            ]
        }
    ]
}