diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/bzip3 | |
Diffstat (limited to 'vcpkg/ports/bzip3')
| -rw-r--r-- | vcpkg/ports/bzip3/disable-man.patch | 13 | ||||
| -rw-r--r-- | vcpkg/ports/bzip3/portfile.cmake | 30 | ||||
| -rw-r--r-- | vcpkg/ports/bzip3/usage | 9 | ||||
| -rw-r--r-- | vcpkg/ports/bzip3/vcpkg.json | 23 |
4 files changed, 75 insertions, 0 deletions
diff --git a/vcpkg/ports/bzip3/disable-man.patch b/vcpkg/ports/bzip3/disable-man.patch new file mode 100644 index 0000000..64fce09 --- /dev/null +++ b/vcpkg/ports/bzip3/disable-man.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5b6ad2c..b9945c6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,7 +111,7 @@ if(BZIP3_BUILD_APPS) + set(BZIP3_APP_SCRIPTS bunzip3 bz3cat bz3grep bz3less bz3more bz3most) + install(PROGRAMS ${BZIP3_APP_SCRIPTS} DESTINATION ${CMAKE_INSTALL_BINDIR}) + +- if(UNIX) ++ if(0) + set(BZIP3_MANS + bunzip3.1 + bz3cat.1 diff --git a/vcpkg/ports/bzip3/portfile.cmake b/vcpkg/ports/bzip3/portfile.cmake new file mode 100644 index 0000000..023bde9 --- /dev/null +++ b/vcpkg/ports/bzip3/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO iczelia/bzip3 + REF ${VERSION} + SHA512 4864db82af7bfb4b9753a4dfc6b966fb707607b5e5693134b6771a4c745a2cbe5767928c54f36ba89181d59dc2882d5630379c60655e23d0e7b2a0997d655aef + HEAD_REF master + PATCHES + disable-man.patch +) + +vcpkg_check_features(OUT_FEATURE_OPTIONS options + FEATURES + tools BZIP3_BUILD_APPS +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${options} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/bzip3) +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") diff --git a/vcpkg/ports/bzip3/usage b/vcpkg/ports/bzip3/usage new file mode 100644 index 0000000..5888941 --- /dev/null +++ b/vcpkg/ports/bzip3/usage @@ -0,0 +1,9 @@ +bzip3 provides CMake targets: + + find_package(bzip3 CONFIG REQUIRED) + target_link_libraries(main PUBLIC bzip3::bz3) + +bzip3 provides pkg-config modules: + + # A better and stronger spiritual successor to BZip2 + bzip3 diff --git a/vcpkg/ports/bzip3/vcpkg.json b/vcpkg/ports/bzip3/vcpkg.json new file mode 100644 index 0000000..053ff5b --- /dev/null +++ b/vcpkg/ports/bzip3/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "bzip3", + "version": "1.5.3", + "description": "A better and stronger spiritual successor to BZip2.", + "homepage": "https://github.com/kspalaiologos/bzip3/", + "license": "LGPL-3.0-or-later", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "tools": { + "description": "Build bzip3 applications", + "supports": "!windows" + } + } +} |