-
Notifications
You must be signed in to change notification settings - Fork 7.1k
[opencc] Add new port #8474
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
Merged
Merged
[opencc] Add new port #8474
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e4f4bc4
[opencc] Add new port
myd7349 1ed7819
[opencc] Update to 2019-10-09
myd7349 618ef36
[opencc] Minor update
myd7349 c238b0e
Merge branch 'master' into prs/opencc
myd7349 cbafbf6
Merge branch 'master' into prs/opencc
myd7349 66fc64e
[opencc] Modernize
myd7349 5a49c12
Merge branch 'master' into prs/opencc
myd7349 f2680e5
Merge branch 'master' into prs/opencc
myd7349 ecc6b1e
Merge branch 'master' into prs/opencc
myd7349 d3de54e
[opencc] Update to 2020-04-26
myd7349 424b98d
Merge branch 'master' into prs/opencc
myd7349 196c5ee
Merge branch 'prs/opencc' of https://github.com/myd7349/vcpkg into pr…
myd7349 da28f4b
[opencc] Bypass arm64-windows
myd7349 63eb9cf
[opencc] Modernize
myd7349 0b06412
[opencc] Rebuild on osx
myd7349 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.