Add vcpkg_from_*** and ${PORT} usage improvements to the `vcpkg create` templates. (#24763)

* Add vcpkg_from_*** and ${PORT} usage improvements to the `vcpkg create` templates.

* Also add some more quotes.

* Back out quotes to vcpkg_cmake_config_fixup as suggested by @JackBoosY
This commit is contained in:
Billy O'Neal 2022-05-18 02:26:19 -07:00 committed by GitHub
parent 6dbfaba039
commit c1b768b0d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -29,6 +29,12 @@
#
# See additional helpful variables in /docs/maintainers/vcpkg_common_definitions.md
# Also consider vcpkg_from_* functions if you can; the generated code here is for any web accessable
# source archive.
# vcpkg_from_github
# vcpkg_from_gitlab
# vcpkg_from_bitbucket
# vcpkg_from_sourceforge
vcpkg_download_distfile(ARCHIVE
URLS "@URL@"
FILENAME "@FILENAME@"
@ -37,7 +43,7 @@ vcpkg_download_distfile(ARCHIVE
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
ARCHIVE "${ARCHIVE}"
# (Optional) A friendly name to use instead of the filename of the archive (e.g.: a version number or tag).
# REF 1.0.0
# (Optional) Read the docs for how to generate patches at:
@ -74,5 +80,5 @@ vcpkg_cmake_install()
#}
# vcpkg_cmake_config_fixup(CONFIG_PATH cmake TARGET_PATH share/@PORT@)
# # Handle copyright
# file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/@PORT@" RENAME copyright)
# Uncomment the line below if necessary to install the license file for the port to share/${PORT}/copyright
# file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,6 +1,6 @@
{
"name": "@PORT@",
"version-string": "",
"version": "",
"homepage": "",
"description": "",
"dependencies": [