mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 11:07:10 +01:00
[icu] Fix configure failure due to not finding python (#10656)
* [icu] Fix configure failure due to not finding python * [icu] Remove deprecated functions * [icu] Fix configure failure due to not finding python * [icu] Fix deprecated functions * [icu] Fix deprecated functions
This commit is contained in:
parent
981daa4e98
commit
218e87ca1c
@ -1,5 +1,5 @@
|
|||||||
Source: icu
|
Source: icu
|
||||||
Version: 65.1-3
|
Version: 65.1-4
|
||||||
Homepage: http://icu-project.org/apiref/icu4c/
|
Homepage: http://icu-project.org/apiref/icu4c/
|
||||||
Description: Mature and widely used Unicode and localization library.
|
Description: Mature and widely used Unicode and localization library.
|
||||||
Supports: !uwp
|
Supports: !(arm|uwp)
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
|
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
|
||||||
message(FATAL_ERROR "Error: UWP builds are currently not supported.")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(ICU_VERSION_MAJOR 65)
|
set(ICU_VERSION_MAJOR 65)
|
||||||
set(ICU_VERSION_MINOR 1)
|
set(ICU_VERSION_MINOR 1)
|
||||||
@ -24,6 +22,9 @@ vcpkg_extract_source_archive_ex(
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/fix-extra.patch
|
${CMAKE_CURRENT_LIST_DIR}/fix-extra.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
|
vcpkg_find_acquire_program(PYTHON3)
|
||||||
|
set(ENV{PYTHON} "${PYTHON3}")
|
||||||
|
|
||||||
set(CONFIGURE_OPTIONS "--disable-samples --disable-tests")
|
set(CONFIGURE_OPTIONS "--disable-samples --disable-tests")
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||||
@ -35,7 +36,7 @@ endif()
|
|||||||
set(CONFIGURE_OPTIONS_RELEASE "--disable-debug --enable-release --prefix=${CURRENT_PACKAGES_DIR}")
|
set(CONFIGURE_OPTIONS_RELEASE "--disable-debug --enable-release --prefix=${CURRENT_PACKAGES_DIR}")
|
||||||
set(CONFIGURE_OPTIONS_DEBUG "--enable-debug --disable-release --prefix=${CURRENT_PACKAGES_DIR}/debug")
|
set(CONFIGURE_OPTIONS_DEBUG "--enable-debug --disable-release --prefix=${CURRENT_PACKAGES_DIR}/debug")
|
||||||
|
|
||||||
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||||
set(BASH bash)
|
set(BASH bash)
|
||||||
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fPIC")
|
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -fPIC")
|
||||||
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fPIC")
|
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -fPIC")
|
||||||
@ -188,7 +189,7 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|||||||
file(COPY ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
file(COPY ${DEBUG_DLLS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||||||
# rename static libraries to match import libs
|
# rename static libraries to match import libs
|
||||||
# see https://gitlab.kitware.com/cmake/cmake/issues/16617
|
# see https://gitlab.kitware.com/cmake/cmake/issues/16617
|
||||||
foreach(MODULE dt in io tu uc)
|
foreach(MODULE dt in io tu uc)
|
||||||
@ -221,5 +222,4 @@ endif()
|
|||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/icu)
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/icu/LICENSE ${CURRENT_PACKAGES_DIR}/share/icu/copyright)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user