diff options
| author | Lily <47812810+LilyWangL@users.noreply.github.com> | 2020-04-27 23:03:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 08:03:18 -0700 |
| commit | 218e87ca1c89a510a6a91ed72647219734918080 (patch) | |
| tree | 45f3a6c4b47cdf71ea0d4b651add9c23bdb92d66 | |
| parent | 981daa4e98f0fbb5267ae80cd9e2cdaca985dc44 (diff) | |
| download | vcpkg-218e87ca1c89a510a6a91ed72647219734918080.tar.gz vcpkg-218e87ca1c89a510a6a91ed72647219734918080.zip | |
[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
| -rw-r--r-- | ports/icu/CONTROL | 4 | ||||
| -rw-r--r-- | ports/icu/portfile.cmake | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/ports/icu/CONTROL b/ports/icu/CONTROL index 9f57f9f5f..c592e69f2 100644 --- a/ports/icu/CONTROL +++ b/ports/icu/CONTROL @@ -1,5 +1,5 @@ Source: icu
-Version: 65.1-3
+Version: 65.1-4
Homepage: http://icu-project.org/apiref/icu4c/
Description: Mature and widely used Unicode and localization library.
-Supports: !uwp
+Supports: !(arm|uwp)
diff --git a/ports/icu/portfile.cmake b/ports/icu/portfile.cmake index eb690fb13..64518ec62 100644 --- a/ports/icu/portfile.cmake +++ b/ports/icu/portfile.cmake @@ -1,6 +1,4 @@ -if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore)
- message(FATAL_ERROR "Error: UWP builds are currently not supported.")
-endif()
+vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp")
set(ICU_VERSION_MAJOR 65)
set(ICU_VERSION_MINOR 1)
@@ -24,6 +22,9 @@ vcpkg_extract_source_archive_ex( ${CMAKE_CURRENT_LIST_DIR}/fix-extra.patch
)
+vcpkg_find_acquire_program(PYTHON3)
+set(ENV{PYTHON} "${PYTHON3}")
+
set(CONFIGURE_OPTIONS "--disable-samples --disable-tests")
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_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(VCPKG_C_FLAGS "${VCPKG_C_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)
endif()
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
# see https://gitlab.kitware.com/cmake/cmake/issues/16617
foreach(MODULE dt in io tu uc)
@@ -221,5 +222,4 @@ endif() vcpkg_copy_pdbs()
# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/icu)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/icu/LICENSE ${CURRENT_PACKAGES_DIR}/share/icu/copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
