feat: upgrade glib to v2.90.1

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-10-21 10:45:09 +00:00
1 parent 7cce55fdee
commit 7d48965269
4 files changed
+13 -9

No files matched your search

+5
View File
@@ -120,6 +120,11 @@ def _is_dev_file(ent) -> bool:
or ent.name.endswith(".hpp")
or ent.name.endswith(".cmake")
or ent.name.endswith(".inc")
or ent.name.endswith(".c")
or ent.name.endswith(".cc")
or ent.name.endswith(".cxx")
or ent.name.endswith(".cpp")
or ent.name.endswith(".hpp")
or ("Makefile" in ent.name)
)
+1
View File
@@ -85,5 +85,6 @@ on_pack(lambda c: pack_glob(c, ["lib/*gobject*"]))
package("libcairo-gobject-dev")
dep("libcairo-dev (same)")
dep("libcairo-gobject (same)")
dep("glib-dev @same-arch")
on_pack(lambda c: pack_glob(c, ["include/cairo/*gobject*", "lib/pkgconfig/*gobject*"]))
+5 -8
View File
@@ -1,15 +1,15 @@
import shutil
import os
from lib.make import *
from lib import cpp
upstream_version = "2.89.2"
upstream_version = "2.90.1"
version(upstream_version)
description("a general-purpose, portable utility library")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/glib/2.89/glib-2.89.2.tar.xz")
source_url("https://download.gnome.org/sources/glib/2.90/glib-2.90.1.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
@@ -25,7 +25,7 @@ builddep("gobject-introspection @target")
def build():
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "") + " -Wno-missing-include-dirs"
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "")
os.environ["CXXFLAGS"] = os.environ.get("CXXLAGS", "") + os.environ["CFLAGS"]
cpp.meson_setup([
"-Druntime_dir=/run",
@@ -37,6 +37,7 @@ def build():
f"--includedir={get_prefix('glib-dev')}/include",
f"--libexecdir={get_prefix('libglib')}/libexec",
f"--datadir={get_prefix('glib')}/share",
"-Dtests=false",
])
cpp.meson_compile()
cpp.meson_install()
@@ -51,18 +52,15 @@ def pack_libxxx(composer, prefix):
continue
composer.addfile(f"lib/{i}", f"lib/{i}")
def pack_libglib(composer):
composer.add_dir("libexec", "libexec")
pack_libxxx(composer, "libglib")
package("libglib")
dep("semi-libc @same-arch")
dep("libpcre2 @same-arch")
on_pack(pack_libglib)
package("libgobject")
dep("libglib (same)")
dep("libffi @same-arch")
@@ -94,7 +92,6 @@ dep("libffi @same-arch")
dep("semi-libc @same-arch")
on_pack(lambda composer: pack_libxxx(composer, "libgirepository"))
def pack_glib(composer):
composer.makedir("lib")
for i in os.listdir("lib"):
+2 -1
View File
@@ -4,7 +4,7 @@ from lib.make import *
from lib import cpp, arch
version("1.86.0")
version("1.86.0+1")
description("to describe the APIs and collect them in a uniform, machine readable format")
maintainer("sisungo <[email protected]>")
source_managed("gitlab://gitlab.gnome.org/GNOME/gobject-introspection#1.86.0")
@@ -45,4 +45,5 @@ package("gobject-introspection")
dep("python @same-arch")
dep("setuptools.py @same-arch")
dep("glib-dev @same-arch")
dep("libexpat @same-arch")
on_pack(pack)