diff --git a/ports/kf6archive/portfile.cmake b/ports/kf6archive/portfile.cmake new file mode 100644 index 0000000000..ec7b8abe2c --- /dev/null +++ b/ports/kf6archive/portfile.cmake @@ -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}) diff --git a/ports/kf6archive/vcpkg.json b/ports/kf6archive/vcpkg.json new file mode 100644 index 0000000000..0248493c71 --- /dev/null +++ b/ports/kf6archive/vcpkg.json @@ -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" + ] + } + } +} diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index e4aa2bef8a..45a5f0392d 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -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 diff --git a/scripts/ci.feature.baseline.txt b/scripts/ci.feature.baseline.txt index 46bd2acdf7..4756efa085 100644 --- a/scripts/ci.feature.baseline.txt +++ b/scripts/ci.feature.baseline.txt @@ -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 diff --git a/versions/baseline.json b/versions/baseline.json index 28d1c51dc1..b347f6a5fc 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/k-/kf6archive.json b/versions/k-/kf6archive.json new file mode 100644 index 0000000000..af6b91b28d --- /dev/null +++ b/versions/k-/kf6archive.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "590a13d6a936df53932719c4d98a4f4fe8c3be60", + "version": "6.7.0", + "port-version": 0 + } + ] +}