[libxau] Revise (#51316)

This commit is contained in:
Kai Pastor 2026-04-22 21:54:15 +02:00 committed by GitHub
parent 8687dce6ad
commit 7bb810743c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 37 additions and 60 deletions

View File

@ -1,25 +0,0 @@
diff --git a/Makefile.am b/Makefile.am
index cb3adbe..dd17d48 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -62,6 +62,5 @@ ChangeLog:
dist-hook: ChangeLog INSTALL
-ACLOCAL_AMFLAGS = -I m4
-EXTRA_DIST = meson.build meson_options.txt
\ No newline at end of file
+EXTRA_DIST = meson.build meson_options.txt
diff --git a/configure.ac b/configure.ac
index e1182b6..97b9d41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,6 @@ AC_INIT([libXau], [1.0.12],
[https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues], [libXau])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_MACRO_DIRS([m4])
AC_USE_SYSTEM_EXTENSIONS
# Initialize Automake

View File

@ -1,33 +1,30 @@
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
else()
vcpkg_from_gitlab(
GITLAB_URL "https://gitlab.freedesktop.org/xorg"
OUT_SOURCE_PATH SOURCE_PATH
REPO "lib/libxau"
REF "libXau-${VERSION}"
SHA512 d76ea5a7d5f70159b3d40242cee66b4a763b98ce57b0b5660ce47cac9bc240d51fb20eec969f8fffdfd79fa46ec8e1b9bf2aa4ca9d39d1f45d515e75afb23a7d
HEAD_REF master
PATCHES
fix-configure-ac.patch
)
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
AUTORECONF
OPTIONS "${OPTIONS}"
)
vcpkg_make_install()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
endif()
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
return()
endif()
vcpkg_from_gitlab(
GITLAB_URL "https://gitlab.freedesktop.org/xorg"
OUT_SOURCE_PATH SOURCE_PATH
REPO "lib/libxau"
REF "libXau-${VERSION}"
SHA512 d76ea5a7d5f70159b3d40242cee66b4a763b98ce57b0b5660ce47cac9bc240d51fb20eec969f8fffdfd79fa46ec8e1b9bf2aa4ca9d39d1f45d515e75afb23a7d
HEAD_REF master
)
file(MAKE_DIRECTORY "${SOURCE_PATH}/m4")
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
AUTORECONF
)
vcpkg_make_install()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

View File

@ -1,7 +1,7 @@
{
"name": "libxau",
"version": "1.0.12",
"port-version": 1,
"port-version": 2,
"description": "Functions for handling Xauthority files and entries.",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxau",
"license": "MIT-open-group",

View File

@ -5854,7 +5854,7 @@
},
"libxau": {
"baseline": "1.0.12",
"port-version": 1
"port-version": 2
},
"libxaw": {
"baseline": "1.0.13",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "44da13403d81833b1eec97b22c787fb5b9a13c6e",
"version": "1.0.12",
"port-version": 2
},
{
"git-tree": "ad22e5798fd0cadf1617251a773ba74f9098e62c",
"version": "1.0.12",