[libconfuse] Update to 3.4 (#53681)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
SunBlack 2026-08-30 22:42:51 +02:00 committed by GitHub
parent 152dccd1a8
commit 194964eec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 46 additions and 42 deletions

View File

@ -1,36 +1,36 @@
# Don't change to vcpkg_from_github: The raw repo lacks gettext macros.
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/libconfuse/libconfuse/releases/download/v${VERSION}/confuse-${VERSION}.tar.xz"
FILENAME "libconfuse-confuse-${VERSION}.tar.xz"
SHA512 93cc62d98166199315f65a2f6f540a9c0d33592b69a2c6a57fd17f132aecc6ece39b9813b96c9a49ae2b66a99b7eba1188a9ce9e360e1c5fb4b973619e7088a0
)
vcpkg_extract_source_archive(SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
vcpkg_find_acquire_program(FLEX)
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY)
vcpkg_add_to_path("${FLEX_DIR}")
set(ENV{AUTOPOINT} true) # true, the program
vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
AUTORECONF
OPTIONS
--disable-examples
--disable-nls
)
vcpkg_make_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/confuse.h" "ifdef BUILDING_STATIC" "if 1")
endif()
file(INSTALL "${CURRENT_PORT_DIR}/unofficial-libconfuse-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-libconfuse")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
# Don't change to vcpkg_from_github: The raw repo lacks gettext macros.
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/libconfuse/libconfuse/releases/download/v${VERSION}/confuse-${VERSION}.tar.xz"
FILENAME "libconfuse-confuse-${VERSION}.tar.xz"
SHA512 3b53b8bbda339f8af479219f39a14b0772e33236b2f3cd6f2cf022b03bd8a580d2dd7595232cf0524b03a5d8884ca7481bdb33c49d15b5d0ee044af5add4011f
)
vcpkg_extract_source_archive(SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
vcpkg_find_acquire_program(FLEX)
get_filename_component(FLEX_DIR "${FLEX}" DIRECTORY)
vcpkg_add_to_path("${FLEX_DIR}")
set(ENV{AUTOPOINT} true) # true, the program
vcpkg_make_configure(
SOURCE_PATH "${SOURCE_PATH}"
AUTORECONF
OPTIONS
--disable-examples
--disable-nls
)
vcpkg_make_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/confuse.h" "ifdef BUILDING_STATIC" "if 1")
endif()
file(INSTALL "${CURRENT_PORT_DIR}/unofficial-libconfuse-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-libconfuse")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -9,8 +9,8 @@ if(NOT TARGET unofficial::libconfuse::libconfuse)
IMPORTED_LOCATION_RELEASE "${Z_VCPKG_libconfuse_LIBRARY_RELEASE}"
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
)
if("@VCPKG_BUILD_TYPE@" STREQUAL "")
find_library(Z_VCPKG_libconfuse_LIBRARY_DEBUG NAMES libconfuse PATHS "${z_vcpkg_libconfuse_prefix}/debug/lib" NO_DEFAULT_PATH REQUIRED)
if(EXISTS "${z_vcpkg_libconfuse_prefix}/debug/lib")
find_library(Z_VCPKG_libconfuse_LIBRARY_DEBUG NAMES confuse PATHS "${z_vcpkg_libconfuse_prefix}/debug/lib" NO_DEFAULT_PATH REQUIRED)
set_property(TARGET unofficial::libconfuse::libconfuse APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(unofficial::libconfuse::libconfuse PROPERTIES
IMPORTED_LOCATION_DEBUG "${Z_VCPKG_libconfuse_LIBRARY_DEBUG}"

View File

@ -1,7 +1,6 @@
{
"name": "libconfuse",
"version": "3.3",
"port-version": 1,
"version": "3.4",
"description": "Small configuration file parser library for C",
"homepage": "https://github.com/libconfuse/libconfuse",
"license": "ISC",

View File

@ -4877,8 +4877,8 @@
"port-version": 0
},
"libconfuse": {
"baseline": "3.3",
"port-version": 1
"baseline": "3.4",
"port-version": 0
},
"libcopp": {
"baseline": "2.3.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "56a8cd4c02f9411693618ebe09b742de792436d3",
"version": "3.4",
"port-version": 0
},
{
"git-tree": "9bdde41e2aa0e21eb18d8bc5c501e257418f7a26",
"version": "3.3",