-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[whereami] Add new port #49023
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
base: master
Are you sure you want to change the base?
[whereami] Add new port #49023
Conversation
|
@microsoft-github-policy-service agree company="KDAB" |
|
Upstream has no official version, used 0.0.1 |
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| new file mode 100644 | ||
| index 0000000..d4fba04 | ||
| --- /dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is just adding 2 files directly, if the separate build system remains, can you just add them as files and file(COPY them into place in portfile.cmake rather than trying to do it as a patch?
| vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-whereami CONFIG_PATH "lib/cmake/unofficial-whereami") | ||
| vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.MIT" "${SOURCE_PATH}/LICENSE.WTFPLv2") | ||
|
|
||
| if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/include") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you know this without an exists check?
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
| endif() | ||
|
|
||
| if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/usage") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We know there is a usage file. though in this case I think the autogenerated usage should be sufficient and the usage file should be removed.
| @@ -0,0 +1,17 @@ | |||
| { | |||
| "name": "whereami", | |||
| "version": "0.0.1", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you point to where this version number comes from upstream?
find_packagecalls are REQUIRED, are satisfied byvcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.vcpkg.jsonmatches what upstream says.vcpkg.jsonmatches what upstream says../vcpkg x-add-version --alland committing the result.