Skip to content

Conversation

@lemirep
Copy link

@lemirep lemirep commented Dec 22, 2025

  • Changes comply with the maintainer guide.
  • The name of the port matches an existing name for this component on https://repology.org/ if possible, and/or is strongly associated with that component on search engines.
  • Optional dependencies are resolved in exactly one way. For example, if the component is built with CMake, all find_package calls are REQUIRED, are satisfied by vcpkg.json's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxx.
  • The versioning scheme in vcpkg.json matches what upstream says.
  • The license declaration in vcpkg.json matches what upstream says.
  • The installed as the "copyright" file matches what upstream says.
  • The source code of the component installed comes from an authoritative source.
  • The generated "usage text" is accurate. See adding-usage for context.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is in the new port's versions file.
  • Only one version is added to each modified port's versions file.

@lemirep
Copy link
Author

lemirep commented Dec 22, 2025

@microsoft-github-policy-service agree company="KDAB"

@lemirep
Copy link
Author

lemirep commented Dec 22, 2025

Upstream has no official version, used 0.0.1

@lemirep lemirep marked this pull request as ready for review December 22, 2025 10:48
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d4fba04
--- /dev/null
Copy link
Member

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")
Copy link
Member

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")
Copy link
Member

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",
Copy link
Member

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?

@BillyONeal BillyONeal marked this pull request as draft December 23, 2025 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants