mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[opencc] Add new port (#8474)
* [opencc] Add new port * [opencc] Update to 2019-10-09 * [opencc] Minor update * [opencc] Modernize * [opencc] Update to 2020-04-26 * [opencc] Bypass arm64-windows * [opencc] Modernize * [opencc] Rebuild on osx
This commit is contained in:
parent
7341c295b6
commit
b9c3a26392
8
ports/opencc/CONTROL
Normal file
8
ports/opencc/CONTROL
Normal file
@ -0,0 +1,8 @@
|
||||
Source: opencc
|
||||
Version: 2020-04-26-1
|
||||
Description: A project for conversion between Traditional and Simplified Chinese
|
||||
Homepage: https://github.com/BYVoid/OpenCC
|
||||
Supports: !(arm|arm64|uwp)
|
||||
|
||||
Feature: tools
|
||||
Description: Build OpenCC command-line tools
|
50
ports/opencc/portfile.cmake
Normal file
50
ports/opencc/portfile.cmake
Normal file
@ -0,0 +1,50 @@
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO BYVoid/OpenCC
|
||||
REF e8ec6d59f264a4a42e310148a9534a8cc0123928
|
||||
SHA512 e6b3f6d681223b299795c324a48e82609abd1f411d3cbd5f9d8607284ec04717fa9878953d037c25a931a0857f50a5c0e883e0d44ddbea18c50830ad49514c59
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
get_filename_component(PYTHON3_DIR ${PYTHON3} DIRECTORY)
|
||||
vcpkg_add_to_path(${PYTHON3_DIR})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_DOCUMENTATION=OFF
|
||||
-DENABLE_GTEST=OFF
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
if(tools IN_LIST FEATURES)
|
||||
foreach(opencc_tool opencc opencc_dict opencc_phrase_extract)
|
||||
file(COPY
|
||||
${CURRENT_PACKAGES_DIR}/bin/${opencc_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}
|
||||
)
|
||||
endforeach()
|
||||
|
||||
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
||||
endif()
|
||||
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
||||
else()
|
||||
foreach(opencc_tool opencc opencc_dict opencc_phrase_extract)
|
||||
file(REMOVE
|
||||
${CURRENT_PACKAGES_DIR}/bin/${opencc_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}
|
||||
${CURRENT_PACKAGES_DIR}/debug/bin/${opencc_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
@ -1237,6 +1237,11 @@ openal-soft:arm-uwp=fail
|
||||
openal-soft:x64-uwp=fail
|
||||
openblas:arm64-windows=fail
|
||||
openblas:arm-uwp=fail
|
||||
# opencc/deps/rapidjson-1.1.0/rapidjson.h: Unknown machine endianess detected
|
||||
opencc:arm64-windows=fail
|
||||
# opencc/deps/marisa-0.2.5/lib/marisa/grimoire/io/mapper.cc currently doesn't support UWP.
|
||||
opencc:arm-uwp=fail
|
||||
opencc:x64-uwp=fail
|
||||
opencensus-cpp:arm64-windows=fail
|
||||
opencensus-cpp:x64-windows=fail
|
||||
opencensus-cpp:x64-windows-static=fail
|
||||
|
Loading…
x
Reference in New Issue
Block a user