Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libxslt] Update to v1.1.42 #42484

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions ports/libxslt/fix-gcrypt-deps.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dc6501..d36a049 100644
index fb352475..4113fbff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -317,7 +317,9 @@ target_include_directories(
@@ -319,7 +319,9 @@ target_include_directories(

if(LIBXSLT_WITH_CRYPTO AND NOT WIN32)
target_link_libraries(LibExslt PRIVATE Gcrypt::Gcrypt)
Expand All @@ -12,9 +12,9 @@ index 6dc6501..d36a049 100644
+ string(APPEND EXSLT_PRIVATE_REQUIRES " libgcrypt")
endif()

target_link_libraries(LibExslt PUBLIC LibXslt LibXml2::LibXml2)
if(UNIX)
diff --git a/FindGcrypt.cmake b/FindGcrypt.cmake
index 781113d..a78fa84 100644
index 781113d5..6f680beb 100644
--- a/FindGcrypt.cmake
+++ b/FindGcrypt.cmake
@@ -1,3 +1,20 @@
Expand All @@ -38,7 +38,7 @@ index 781113d..a78fa84 100644
include(FindPackageHandleStandardArgs)
include(SelectLibraryConfigurations)

@@ -38,3 +53,4 @@ if(GCRYPT_FOUND AND NOT TARGET Gcrypt::Gcrypt)
@@ -38,3 +55,4 @@ if(GCRYPT_FOUND AND NOT TARGET Gcrypt::Gcrypt)
INTERFACE_INCLUDE_DIRECTORIES "${GCRYPT_INCLUDE_DIRS}"
)
endif()
Expand Down
4 changes: 2 additions & 2 deletions ports/libxslt/libexslt-pkgconfig.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/libexslt.pc.in b/libexslt.pc.in
index 1d60563..50089e8 100644
index f448bb83..791bcdda 100644
--- a/libexslt.pc.in
+++ b/libexslt.pc.in
@@ -7,7 +7,8 @@ includedir=@includedir@
Expand All @@ -9,6 +9,6 @@ index 1d60563..50089e8 100644
-Requires: libxml-2.0, libxslt
+Requires: libxslt
+Requires.private: @EXSLT_PRIVATE_REQUIRES@
Cflags: @EXSLT_INCLUDEDIR@
Cflags: @EXSLT_INCLUDEDIR@ @LIBEXSLT_CFLAGS@
Libs: @EXSLT_LIBDIR@ -lexslt
Libs.private: @EXSLT_PRIVATE_LIBS@
10 changes: 5 additions & 5 deletions ports/libxslt/msvc-no-suffix.patch
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8679fb..6dc6501 100644
index fb352475..a4bb094e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,7 +249,7 @@ set_target_properties(
VERSION ${PROJECT_VERSION}
@@ -247,7 +247,7 @@ set_target_properties(
SOVERSION ${LIBXSLT_MAJOR_VERSION}
)

-if(MSVC)
+if(0) # Never add suffixes which are not added by the autotools build or the nmake makefiles
if(BUILD_SHARED_LIBS)
set_target_properties(
LibXslt
@@ -327,7 +332,7 @@ set_target_properties(
VERSION ${LIBEXSLT_VERSION}
@@ -340,7 +340,7 @@ set_target_properties(
SOVERSION ${LIBEXSLT_MAJOR_VERSION}
)

-if(MSVC)
Expand Down
31 changes: 23 additions & 8 deletions ports/libxslt/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
vcpkg_download_distfile(FIX_PACKAGE_VERSION_PATCH
URLS https://github.com/GNOME/libxslt/commit/7504032097712714aafe309d54f2ad57e3364bac.diff?full_index=1
FILENAME Fix-package-version.patch
SHA512 972921decf374fe8a4cad4e09890ce0d5961ee05e3c52d117c09fe8bde1a4540ebe212e767f8a95d281945240f29a90fd15e37104f45d47440032737d41dc8d0
)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO GNOME/libxslt
REF v1.1.37
SHA512 4e7a57cbe02ceea34404213a88bdbb63a756edfab63063ce3979b670816ae3f6fb3637a49508204e6e46b936628e0a3b8b77e9201530a1184225bd68da403b25
REF "v${VERSION}"
SHA512 0974419e0eae3cd4070ca52341b3df2d1b873b30d0ede2143274fcd0ef8653d5ac55b5f0faad56d8cf60443fefb01c5f5ddecff4b7638ba28e450e88f1c3d3c4
HEAD_REF master
PATCHES
python3.patch
msvc-no-suffix.patch
libexslt-pkgconfig.patch
fix-gcrypt-deps.patch
skip-install-docs.patch
${FIX_PACKAGE_VERSION_PATCH}
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
"python" LIBXSLT_WITH_PYTHON
"crypto" LIBXSLT_WITH_CRYPTO
"plugins" LIBXSLT_WITH_MODULES
"profiler" LIBXSLT_WITH_PROFILER
"thread" LIBXSLT_WITH_THREADS
"tools" LIBXSLT_WITH_PROGRAMS
)
if("python" IN_LIST FEATURES)
vcpkg_find_acquire_program(PYTHON3)
Expand All @@ -28,16 +39,13 @@ vcpkg_cmake_configure(
OPTIONS
${FEATURE_OPTIONS}
-DLIBXSLT_WITH_TESTS:BOOL=OFF
-DLIBXSLT_WITH_THREADS:BOOL=ON
OPTIONS_RELEASE
${FEATURE_OPTIONS_RELEASE}
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=OFF
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=OFF
-DLIBXSLT_WITH_DEBUGGER:BOOL=OFF
OPTIONS_DEBUG
${FEATURE_OPTIONS_DEBUG}
-DLIBXSLT_WITH_XSLT_DEBUG:BOOL=ON
-DLIBXSLT_WITH_MEM_DEBUG:BOOL=ON
-DLIBXSLT_WITH_DEBUGGER:BOOL=ON
)
vcpkg_cmake_install()
Expand All @@ -56,7 +64,9 @@ if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/libxslt/debug/xslt-config" [[${prefix}/include]] [[${prefix}/../include]])
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libxslt/xsltconfig.h" "#define LIBXSLT_DEFAULT_PLUGINS_PATH() \"${CURRENT_INSTALLED_DIR}/lib/libxslt-plugins\"" "" IGNORE_UNCHANGED)
vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(TOOL_NAMES xsltproc AUTO_CLEAN)
endif()

vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
Expand All @@ -72,12 +82,17 @@ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
if(NOT VCPKG_BUILD_TYPE)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libxslt.pc" " -lxslt" " -llibxslt")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libexslt.pc" " -lexslt" " -llibexslt")
endif()
endif()
endif()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
endif()

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libxslt")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Copyright")
6 changes: 3 additions & 3 deletions ports/libxslt/python3.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8679fb..6dc6501 100644
index fb352475..75bd44a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,6 +35,11 @@ if(LIBXSLT_WITH_PYTHON)
@@ -63,6 +63,11 @@ if(LIBXSLT_WITH_PYTHON)
check_symbol_exists(F_GETFL fcntl.h HAVE_F_GETFL)
if(HAVE_UNISTD_H AND HAVE_F_GETFL)
if(WIN32 OR (HAVE_UNISTD_H AND HAVE_F_GETFL))
find_package(Python COMPONENTS Interpreter Development REQUIRED)
+ elseif(1)
+ find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
Expand Down
8 changes: 5 additions & 3 deletions ports/libxslt/skip-install-docs.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6dc6501..d36a049 100644
index fb352475..23fe90f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -432,10 +434,12 @@ if(LIBXSLT_WITH_PYTHON)
@@ -474,12 +474,14 @@ if(LIBXSLT_WITH_PYTHON)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxslt.py DESTINATION ${LIBXSLT_PYTHON_INSTALL_DIR} COMPONENT runtime)
endif()

+if(VCPKG_INSTALL_DOCS)
install(FILES libexslt/libexslt.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 COMPONENT documentation)
install(FILES libxslt/libxslt.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3 COMPONENT documentation)
install(FILES doc/xsltproc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
if(LIBXSLT_WITH_PROGRAMS)
install(FILES doc/xsltproc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
endif()
install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxslt COMPONENT documentation PATTERN Makefile.* EXCLUDE)
+endif()

Expand Down
17 changes: 11 additions & 6 deletions ports/libxslt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "libxslt",
"version": "1.1.37",
"port-version": 4,
"version": "1.1.42",
"description": "Libxslt is a XSLT library implemented in C for XSLT 1.0 and most of EXSLT",
"homepage": "https://github.com/GNOME/libxslt",
"license": null,
Expand All @@ -21,7 +20,7 @@
}
],
"default-features": [
"default-features"
"thread"
],
"features": {
"crypto": {
Expand All @@ -31,16 +30,22 @@
"libgcrypt"
]
},
"default-features": {
"description": "default features for the current platform"
},
"plugins": {
"description": "(deprecated)",
"supports": "!static"
},
"profiler": {
"description": "Build with profiling support"
},
"python": {
"description": "Builds with python support",
"supports": "!windows"
},
"thread": {
"description": "Enable multi-threading support"
},
"tools": {
"description": "Build the utilities"
}
}
}
8 changes: 6 additions & 2 deletions ports/xcb/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "xcb",
"version": "1.14",
"port-version": 2,
"port-version": 3,
"description": "C interface to the X Window System protocol, which replaces the traditional Xlib interface.",
"homepage": "https://xcb.freedesktop.org/",
"license": "X11-distribute-modifications-variant",
Expand All @@ -11,7 +11,11 @@
"libxdmcp",
{
"name": "libxslt",
"host": true
"host": true,
"default-features": false,
"features": [
"tools"
]
},
"pthread",
"pthread-stubs",
Expand Down
6 changes: 3 additions & 3 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5481,8 +5481,8 @@
"port-version": 0
},
"libxslt": {
"baseline": "1.1.37",
"port-version": 4
"baseline": "1.1.42",
"port-version": 0
},
"libxt": {
"baseline": "1.3.0",
Expand Down Expand Up @@ -9778,7 +9778,7 @@
},
"xcb": {
"baseline": "1.14",
"port-version": 2
"port-version": 3
},
"xcb-image": {
"baseline": "0.4.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libxslt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8bd8a88f0bf38f7e3b7dda75aa505d413a496836",
"version": "1.1.42",
"port-version": 0
},
{
"git-tree": "75b0e06db8a91635c6383e8d7be0f96222aa3cbd",
"version": "1.1.37",
Expand Down
5 changes: 5 additions & 0 deletions versions/x-/xcb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "c22c4b92b4143d3aeb4d3ecbe82d9c03ca7acece",
"version": "1.14",
"port-version": 3
},
{
"git-tree": "409e8b6e371d2541c6330d13034e44bcaa4e10e8",
"version": "1.14",
Expand Down