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/cppp-reiconv | |
Diffstat (limited to 'vcpkg/ports/cppp-reiconv')
| -rw-r--r-- | vcpkg/ports/cppp-reiconv/portfile.cmake | 28 | ||||
| -rw-r--r-- | vcpkg/ports/cppp-reiconv/vcpkg.json | 13 |
2 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/cppp-reiconv/portfile.cmake b/vcpkg/ports/cppp-reiconv/portfile.cmake new file mode 100644 index 0000000..eae729b --- /dev/null +++ b/vcpkg/ports/cppp-reiconv/portfile.cmake @@ -0,0 +1,28 @@ +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/cppp-project/cppp-reiconv/releases/download/v${VERSION}/cppp-reiconv-v${VERSION}.zip" + FILENAME "cppp-reiconv-v${VERSION}.zip" + SHA512 56294d63a71818842ec3f4a513bdc022ea3f472b582e16d377ec61282005965e7a08d619b9620cc036feb391e5b2eab3bfb4a1a21dcc860df89234e847048678 +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" +) + +vcpkg_find_acquire_program(PYTHON3) +get_filename_component(PYTHON3_DIR ${PYTHON3} DIRECTORY) +vcpkg_add_to_path("${PYTHON3_DIR}") + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS -DENABLE_TEST=OFF -DENABLE_EXTRA=ON +) + +vcpkg_cmake_install() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING") diff --git a/vcpkg/ports/cppp-reiconv/vcpkg.json b/vcpkg/ports/cppp-reiconv/vcpkg.json new file mode 100644 index 0000000..ae359b2 --- /dev/null +++ b/vcpkg/ports/cppp-reiconv/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "cppp-reiconv", + "version": "2.1.0", + "description": "cppp-reiconv: A character set conversion library based on GNU LIBICONV for The C++ Plus Project.", + "homepage": "https://github.com/cppp-project/cppp-reiconv", + "license": "LGPL-3.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |