[opencv4] fix feature python (#33197)

This commit is contained in:
autoantwort 2023-08-17 22:00:47 +02:00 committed by GitHub
parent 41f14f54a9
commit c337b472f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

View File

@ -585,6 +585,12 @@ if(VCPKG_TARGET_IS_ANDROID)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/README.android")
endif()
if("python" IN_LIST FEATURES)
file(GLOB python_dir LIST_DIRECTORIES true RELATIVE "${CURRENT_PACKAGES_DIR}/lib/" "${CURRENT_PACKAGES_DIR}/lib/python*")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/${python_dir}/site-packages/cv2/typing")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/${python_dir}/site-packages/cv2/typing")
endif()
vcpkg_fixup_pkgconfig()
configure_file("${CURRENT_PORT_DIR}/usage.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)

View File

@ -1,7 +1,7 @@
{
"name": "opencv4",
"version": "4.8.0",
"port-version": 1,
"port-version": 2,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",

View File

@ -6014,7 +6014,7 @@
},
"opencv4": {
"baseline": "4.8.0",
"port-version": 1
"port-version": 2
},
"opendnp3": {
"baseline": "3.1.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "89d6da3b45b7e1667bdc3083f9641e57ad4930a9",
"version": "4.8.0",
"port-version": 2
},
{
"git-tree": "78f4556a682ebb41e2ff3f26090ef51cafe5a66c",
"version": "4.8.0",