Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cppp-reiconv] new port #34263

Merged
merged 13 commits into from
Oct 28, 2023
Merged
28 changes: 28 additions & 0 deletions ports/cppp-reiconv/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/cppp-project/cppp-reiconv/releases/download/v2.1.0/cppp-reiconv-v2.1.0.zip"
FILENAME "cppp-reiconv-v2.1.0.zip"
SHA512 56294d63a71818842ec3f4a513bdc022ea3f472b582e16d377ec61282005965e7a08d619b9620cc036feb391e5b2eab3bfb4a1a21dcc860df89234e847048678
)

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
ChenPi11 marked this conversation as resolved.
Show resolved Hide resolved

vcpkg_find_acquire_program(PYTHON3)
ChenPi11 marked this conversation as resolved.
Show resolved Hide resolved
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")
13 changes: 13 additions & 0 deletions ports/cppp-reiconv/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,10 @@
"baseline": "3.7.6",
"port-version": 0
},
"cppp-reiconv": {
"baseline": "2.1.0",
"port-version": 0
},
"cpprestsdk": {
"baseline": "2.10.18",
"port-version": 4
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cppp-reiconv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f61d876faf21f4873b42776f5a44272e50e43609",
"version": "2.1.0",
"port-version": 0
}
]
}