Skip to content

Commit

Permalink
[GtkSourceView] update to 5.10.0 (#8278)
Browse files Browse the repository at this point in the history
* [GtkSourceView] update to 5.10.0

* Update G/GtkSourceView/build_tarballs.jl

Co-authored-by: Mosè Giordano <[email protected]>

---------

Co-authored-by: Mosè Giordano <[email protected]>
  • Loading branch information
jwahlstrand and giordano authored Mar 11, 2024
1 parent 5440199 commit ec31226
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions G/GtkSourceView/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand All @@ -17,34 +17,47 @@ 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
"""

# 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)

0 comments on commit ec31226

Please sign in to comment.