Add various packages and patches for build system improvements

- Introduced valgrind with a patch to respect flags and updated its configuration.
- Added Vulkan ICD loader with CMake build configuration.
- Implemented Waf build system with a custom build script and configuration.
- Included Wayland protocols with Meson build system.
- Added xcb-util-keysyms with autotools configuration.
- Introduced Yasm with multiple patches for compatibility and improvements.
- Added Yelp tools and XSL with Meson build configurations and necessary patches for POSIX compliance.
This commit is contained in:
2026-03-22 23:25:50 -05:00
parent a0e45c65d3
commit bf96e50e44
144 changed files with 7131 additions and 45 deletions
@@ -0,0 +1,10 @@
#!/bin/sh
while IFS= read -r f; do
link=${1:?}/${f##*/}
if [ -e "$f" ] && [ ! -e "$link" ]; then
ln -s "/$f" "$link"
elif [ ! -e "$f" ] && [ -L "$link" ]; then
rm -f "$link"
fi
done
@@ -0,0 +1,12 @@
[hook]
name = "fontconfig-config"
description = "Updating fontconfig configuration..."
[when]
phase = "post"
operation = ["install", "remove"]
paths = ["usr/share/fontconfig/conf.default/*"]
[exec]
command = "/usr/share/depot.d/scripts/fontconfig/40-fontconfig-config /etc/fonts/conf.d"
needs_paths = true
@@ -0,0 +1,84 @@
diff --git a/test/run-test.sh b/test/run-test.sh
index 9b3c91c..73c0d3e 100644
--- a/test/run-test.sh
+++ b/test/run-test.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# fontconfig/test/run-test.sh
#
# Copyright © 2000 Keith Packard
@@ -84,11 +84,11 @@ fstat() {
ret=$(stat -c "$fmt" "$fn")
else
# BSD
- if [ "x$fmt" == "x%Y" ]; then
+ if [ "x$fmt" = "x%Y" ]; then
ret=$(stat -f "%m" "$fn")
- elif [ "x$fmt" == "x%y" ]; then
+ elif [ "x$fmt" = "x%y" ]; then
ret=$(stat -f "%Sm" -t "%F %T %z" "$fn")
- elif [ "x$fmt" == "x%n %s %y %z" ]; then
+ elif [ "x$fmt" = "x%n %s %y %z" ]; then
ret=$(stat -f "%SN %z %Sm %Sc" -t "%F %T %z" "$fn")
else
echo "E: Unknown format"
diff --git a/test/run-test-map.sh b/test/run-test-map.sh
index 869d7b2..c634bb8 100755
--- a/test/run-test-map.sh
+++ b/test/run-test-map.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# fontconfig/test/run-test-cache-map.sh
#
# Copyright © 2018 Keith Packard
@@ -41,9 +41,8 @@ EXPECTED="out-map.expected"
FCLIST=../fc-list/fc-list$EXEEXT
FCCACHE=../fc-cache/fc-cache$EXEEXT
-which bwrap > /dev/null 2>&1
-if [ $? -eq 0 ]; then
- BWRAP=`which bwrap`
+if command -v bwrap > /dev/null 2>&1; then
+ BWRAP=$(command -v bwrap)
fi
FONT1=$TESTDIR/4x6.pcf
diff --git a/test/wrapper-script.sh b/test/wrapper-script.sh
index 94dcb85..ae68c6d 100755
--- a/test/wrapper-script.sh
+++ b/test/wrapper-script.sh
@@ -1,20 +1,24 @@
-#! /bin/bash
+#! /bin/sh
CC=${CC:-gcc}
case "$1" in
*.exe)
export WINEPATH=$(${CC} -print-sysroot)/mingw/bin
- fccwd=`pwd`
- cd $(IFS=:;for i in $PATH; do echo $i|grep mingw> /dev/null; [ $? -eq 0 ] && echo $i; done)
- if [ "x$(dirname $@)" = "x." ]; then
- /usr/bin/env wine $fccwd/$@
+ fccwd=$(pwd)
+ mingw_path=$(IFS=:; for i in $PATH; do
+ case "$i" in
+ *mingw*) printf '%s\n' "$i"; break ;;
+ esac
+ done)
+ cd "$mingw_path" || exit 1
+ if [ "$(dirname -- "$1")" = "." ]; then
+ /usr/bin/env wine "$fccwd/$1"
else
- /usr/bin/env wine $@
+ /usr/bin/env wine "$@"
fi
;;
*)
- $@
+ "$@"
;;
esac
-
+16
View File
@@ -0,0 +1,16 @@
[hook]
name = "fontconfig-cache"
description = "Updating fontconfig cache..."
[when]
phase = "post"
operation = ["install", "upgrade", "remove"]
paths = [
"etc/fonts/conf.d/*",
"usr/share/fonts/*",
"usr/share/fontconfig/conf.avail/*",
"usr/share/fontconfig/conf.default/*",
]
[exec]
command = "/usr/bin/fc-cache -s"
+57
View File
@@ -0,0 +1,57 @@
[build]
type = "meson"
[build.flags]
build_dir = "build"
configure = [
"--wrap-mode=nofallback",
"-Dbitmap-conf=noinstall",
"-Ddefault-sub-pixel-rendering=noinstall",
"-Ddoc-html=disabled",
"-Ddoc-pdf=disabled",
"-Ddoc-txt=disabled",
]
post_install = [
'mkdir -p "$DESTDIR/usr/share/fontconfig/conf.default"',
'for _f in "$DESTDIR"/etc/fonts/conf.d/*.conf; do [ -e "$_f" ] || continue; ln -sf "../conf.avail/${_f##*/}" "$DESTDIR/usr/share/fontconfig/conf.default/${_f##*/}"; rm -f "$_f"; done',
'install -Dm644 "$DEPOT_SPECDIR/40-fontconfig-config.toml" -t "$DESTDIR/usr/share/depot.d/hooks"',
'install -Dm644 "$DEPOT_SPECDIR/fontconfig-hook.toml" -t "$DESTDIR/usr/share/depot.d/hooks"',
'install -D "$DEPOT_SPECDIR/40-fontconfig-config.script" "$DESTDIR/usr/share/depot.d/scripts/fontconfig/40-fontconfig-config"',
]
keep = [ "etc/fonts/fonts.conf" ]
[dependencies]
build = [
"docbook-sgml",
"gperf",
"meson",
"perl-sgmls",
]
runtime = [
"sh",
"expat",
"freetype2",
"glibc",
]
[[manual_sources]]
files = [
"40-fontconfig-config.script",
"40-fontconfig-config.toml",
"fontconfig-hook.toml",
"postinstall.sh",
"postupdate.sh",
"fontconfig-2.17.1-posixify.patch"
]
[package]
description = "Library for configuring and customizing font access"
homepage = "https://www.freedesktop.org/wiki/Software/fontconfig/"
license = "HPND AND Unicode-DFS-2016"
name = "fontconfig"
version = "2.17.1"
[[source]]
extract_dir = "$name-$version"
url = "https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/$version/fontconfig-$version.tar.xz"
patches = [ "fontconfig-2.17.1-posixify.patch" ]
+1
View File
@@ -0,0 +1 @@
/usr/bin/fc-cache -rs
+1
View File
@@ -0,0 +1 @@
/usr/bin/fc-cache -rs