new port: kf6archive (#46399)

This commit is contained in:
James Robertson
2025-07-31 19:53:38 -05:00
committed by GitHub
parent 316e9e2bc5
commit e9bb3f9e7a
6 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/karchive
REF "v${VERSION}"
SHA512 f87fd53ba029b05d3c233ea8d8a9dbb7b2aba2aec55a38b26cfd0f6e1c49d8c1297c06d634175ccc5bbbce00261a3387a2da3c705011e9cbae538eae2723fef3
HEAD_REF master
)
vcpkg_find_acquire_program(PKGCONFIG)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DBUILD_TESTING=OFF
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6Archive)
vcpkg_copy_pdbs()
# Static builds should not have libraries in the bin directory
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/data")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/data")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})

View File

@@ -0,0 +1,60 @@
{
"name": "kf6archive",
"version": "6.7.0",
"description": "File compression",
"homepage": "https://api.kde.org/frameworks/karchive/html/index.html",
"license": "LGPL-2.0-or-later",
"supports": "!xbox",
"dependencies": [
"bzip2",
"ecm",
"liblzma",
"openssl",
"qtbase",
{
"name": "qttools",
"features": [
"linguist"
]
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib",
"zstd"
],
"default-features": [
"bzip2"
],
"features": {
"bzip2": {
"description": "Support for bzip2 compressed files and data streams",
"dependencies": [
"bzip2"
]
},
"lzma": {
"description": "Support for xz compressed files and data streams",
"dependencies": [
"liblzma"
]
},
"openssl": {
"description": "Support for compressed encrypted files and data streams",
"dependencies": [
"openssl"
]
},
"zstd": {
"description": "Support for zstd compressed files and data streams",
"dependencies": [
"zstd"
]
}
}
}

View File

@@ -476,6 +476,10 @@ jinja2cpplight:x64-android=fail
juce:arm-neon-android=fail
juce:arm64-android=fail
juce:x64-android=fail
# needs newer ECM version
kf6archive:arm-neon-android=skip
kf6archive:arm64-android=skip
kf6archive:x64-android=skip
lcm:arm-neon-android=fail
lcm:arm64-android=fail
lcm:arm64-windows-static-md=fail

View File

@@ -1215,6 +1215,7 @@ kf5xmlgui:arm64-windows = cascade
kf5xmlgui:x64-uwp = cascade
kf5xmlgui:x64-windows = cascade
kf5xmlgui:x86-windows = cascade
kf6archive(android) = skip # needs newer ECM version
lapack-reference:arm64-uwp = cascade
lapack-reference:arm64-windows = cascade
lapack-reference:x64-uwp = cascade

View File

@@ -4316,6 +4316,10 @@
"baseline": "5.98.0",
"port-version": 0
},
"kf6archive": {
"baseline": "6.7.0",
"port-version": 0
},
"kfr": {
"baseline": "6.2.0",
"port-version": 0

View File

@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "590a13d6a936df53932719c4d98a4f4fe8c3be60",
"version": "6.7.0",
"port-version": 0
}
]
}