mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:09:00 +08:00
[cppp-reiconv] new port (#34263)
* [cppp-reiconv] New port * [cppp-reiconv] Add Python required. * [cppp-reiconv] Fix a bug. * [cppp-reiconv] Avoid create binary directory when static build. * [cppp-reiconv] Update version database. * [cppp-reiconv] Update SHA of `git-tree` in version database. * [cppp-reiconv] Update SHA512. * [cppp-reiconv] Update version db SHA info. * [cppp-reiconv] Use `v${VERSION}` for version. * [cppp-reiconv] Use `vcpkg_extract_source_archive` instead of `vcpkg_extract_source_archive_ex`. * [cppp-reiconv] Update SHA of git-tree in version database.
This commit is contained in:
parent
e8539b06a1
commit
ab567f88a4
28
ports/cppp-reiconv/portfile.cmake
Normal file
28
ports/cppp-reiconv/portfile.cmake
Normal file
@ -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")
|
13
ports/cppp-reiconv/vcpkg.json
Normal file
13
ports/cppp-reiconv/vcpkg.json
Normal file
@ -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
|
||||
}
|
||||
]
|
||||
}
|
@ -1872,6 +1872,10 @@
|
||||
"baseline": "3.7.6",
|
||||
"port-version": 1
|
||||
},
|
||||
"cppp-reiconv": {
|
||||
"baseline": "2.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"cpprestsdk": {
|
||||
"baseline": "2.10.18",
|
||||
"port-version": 4
|
||||
|
9
versions/c-/cppp-reiconv.json
Normal file
9
versions/c-/cppp-reiconv.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "48b338ed3b71e8f573134ce0ddc26921c4f3ead7",
|
||||
"version": "2.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user