Update glib, gtk[3,4], libadwaita, and fix gtk3 build dependency loops. (#10769)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2024-11-21 14:26:44 -05:00
committed by GitHub
parent 14a3653c71
commit 204b70033b
15 changed files with 76 additions and 175 deletions

View File

@@ -3,7 +3,7 @@ require 'buildsystems/meson'
class Glib < Meson
description 'GLib provides the core application building blocks for libraries and applications written in C.'
homepage 'https://docs.gtk.org/glib/'
version '2.81.1'
version '2.83.0'
license 'LGPL-2.1'
compatibility 'all'
source_url 'https://gitlab.gnome.org/GNOME/glib.git'
@@ -11,10 +11,10 @@ class Glib < Meson
binary_compression 'tar.zst'
binary_sha256({
aarch64: '57c2786ced63e26c717e0e7951dc8960df8e3887de8bdedc94d2186aa59c3087',
armv7l: '57c2786ced63e26c717e0e7951dc8960df8e3887de8bdedc94d2186aa59c3087',
i686: 'aa85475d828e1c4469567defb6fd484cef6a8d716784ca9e8f53e458e95d4a7c',
x86_64: '10a5a19bba806274e5aef833cd465c8b7f531ca74af37f77a05c208850408282'
aarch64: '186348cf9750baa59c2b1f2c3f155c0c3900d32b3bd14a5adacd21c6b1dbc0ac',
armv7l: '186348cf9750baa59c2b1f2c3f155c0c3900d32b3bd14a5adacd21c6b1dbc0ac',
i686: 'd68bb861283879804bedcdd5722bbd7fc3db8906a6d4305587cd2d524e338b2a',
x86_64: 'ea5490b2e0564b5e14f161f165d11315137d2e01ea9daafb396c11ea10de2b83'
})
depends_on 'elfutils' # R
@@ -34,66 +34,4 @@ class Glib < Meson
-Dsysprof=disabled \
-Dman-pages=disabled \
-Dtests=false'
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
# Create libtool file. Needed by handbrake build.
return if File.file?("#{CREW_DEST_LIB_PREFIX}/#{@libname}.la")
@libname = name.to_s.start_with?('lib') ? name.downcase : "lib#{name.downcase}"
@libnames = Dir["#{CREW_DEST_LIB_PREFIX}/#{@libname}.so*"]
@libnames = Dir["#{CREW_DEST_LIB_PREFIX}/#{@libname}-*.so*"] if @libnames.empty?
@libnames.each do |s|
s.gsub!("#{CREW_DEST_LIB_PREFIX}/", '')
end
@dlname = @libnames.grep(/.so./).first
@libname = @dlname.gsub(/.so.\d+/, '')
@longest_libname = @libnames.max_by(&:length)
@libvars = @longest_libname.rpartition('.so.')[2].split('.')
@libtool_file = <<~LIBTOOLEOF
# #{@libname}.la - a libtool library file
# Generated by libtool (GNU libtool) (Created by Chromebrew)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='#{@dlname}'
# Names of this library.
library_names='#{@libnames.reverse.join(' ')}'
# The name of the static archive.
old_library='#{@libname}.a'
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for #{name}.
current=#{@libvars[1]}
age=#{@libvars[1]}
revision=#{@libvars[2]}
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='#{CREW_LIB_PREFIX}'
LIBTOOLEOF
File.write("#{CREW_DEST_LIB_PREFIX}/#{@libname}.la", @libtool_file)
end
end