diff --git a/G/GtkSourceView/build_tarballs.jl b/G/GtkSourceView/build_tarballs.jl index bfd96e4ad9f..4cbf989c21d 100644 --- a/G/GtkSourceView/build_tarballs.jl +++ b/G/GtkSourceView/build_tarballs.jl @@ -3,12 +3,12 @@ using BinaryBuilder name = "GtkSourceView" -version = v"4.4.0" +version = v"5.10.0" # Collection of sources required to build GtkSourceView sources = [ - "https://download.gnome.org/sources/gtksourceview/4.4/gtksourceview-$(version).tar.xz" => - "9ddb914aef70a29a66acd93b4f762d5681202e44094d2d6370e51c9e389e689a", + "https://download.gnome.org/sources/gtksourceview/$(version.major).$(version.minor)/gtksourceview-$(version).tar.xz" => + "b38a3010c34f59e13b05175e9d20ca02a3110443fec2b1e5747413801bc9c23f", "./bundled", ] @@ -17,14 +17,25 @@ script = raw""" cd $WORKSPACE/srcdir/gtksourceview-*/ # We need to run native `xmllint` and `glib-compile-resources` -apk add libxml2-utils glib-dev +apk add libxml2-utils glib-dev gtk-update-icon-cache # Don't build broken tests atomic_patch -p1 ../patches/meson_build_no_tests.patch +# host version needs to be used +rm -f /workspace/destdir/bin/gtk4-update-icon-cache + mkdir build && cd build + +MESON_FLAGS=(-Dintrospection=disabled -Dvapi=false) + +# buildtype=plain disables stack-protector-strong, needed for this platform +if [[ "${target}" == i686-linux-musl ]]; then + MESON_FLAGS+=(--buildtype=plain) +fi + meson .. \ - -Dgir=false \ + "${MESON_FLAGS[@]}" \ --cross-file="${MESON_TARGET_TOOLCHAIN}" ninja -j${nproc} ninja install @@ -32,19 +43,21 @@ ninja install # These are the platforms we will build for by default, unless further # platforms are passed in on the command line -platforms = supported_platforms() +platforms = filter!(p -> arch(p) != "armv6l", supported_platforms()) # The products that we will ensure are always built products = [ - LibraryProduct("libgtksourceview-4", :libgtksourceview), + LibraryProduct("libgtksourceview-5", :libgtksourceview), ] # Dependencies that must be installed before this package can be built dependencies = [ - Dependency("Glib_jll", v"2.59.0"; compat="2.59"), - Dependency("GTK3_jll"), + Dependency("Glib_jll", v"2.76.5"; compat="2.76"), + Dependency("GTK4_jll"), + Dependency("Cairo_jll"; compat="1.16.1"), Dependency("FriBidi_jll"), + BuildDependency("Xorg_xorgproto_jll"; platforms=filter(p->Sys.islinux(p)||Sys.isfreebsd(p), platforms)), ] # Build the tarballs, and possibly a `build.jl` as well. -build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies) +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6",preferred_gcc_version=v"5",clang_use_lld=false)