aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVinny <vpaladino778@gmail.com>2019-10-07 13:31:39 -0400
committerVictor Romero <romerosanchezv@gmail.com>2019-10-07 10:31:38 -0700
commite86ff2cc54bda9e9ee322ab69141e7113d5c40a9 (patch)
tree4fd38d038afa6072a18ebe818584e7c765bb3267 /scripts
parentea79220f9d9d33a11101c8dea0827aaff5a2b9b3 (diff)
downloadvcpkg-e86ff2cc54bda9e9ee322ab69141e7113d5c40a9.tar.gz
vcpkg-e86ff2cc54bda9e9ee322ab69141e7113d5c40a9.zip
Update vcpkg create template (#8427)
* Began updating * Added 'Homepage:' to CONTROL, added vcpkg_check_features to vcpkg_create template * Update portfile.in.cmake Added documentation link for vcpkg_check_features
Diffstat (limited to 'scripts')
-rw-r--r--scripts/templates/CONTROL.in1
-rw-r--r--scripts/templates/portfile.in.cmake21
2 files changed, 19 insertions, 3 deletions
diff --git a/scripts/templates/CONTROL.in b/scripts/templates/CONTROL.in
index c5b706861..e22cefdce 100644
--- a/scripts/templates/CONTROL.in
+++ b/scripts/templates/CONTROL.in
@@ -1,3 +1,4 @@
Source: @PORT@
Version:
+Homepage:
Description: \ No newline at end of file
diff --git a/scripts/templates/portfile.in.cmake b/scripts/templates/portfile.in.cmake
index 33f8a4853..f6003a0cf 100644
--- a/scripts/templates/portfile.in.cmake
+++ b/scripts/templates/portfile.in.cmake
@@ -9,8 +9,10 @@
# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
#
+# See additional helpful variables in /docs/maintainers/vcpkg_common_definitions.md
-include(vcpkg_common_functions)
+# # Specifies if the port install should fail immediately given a condition
+# vcpkg_fail_port_install(MESSAGE "@PORT@ currently only supports Linux and Mac platforms" ON_TARGET "Windows")
vcpkg_download_distfile(ARCHIVE
URLS "@URL@"
@@ -30,6 +32,15 @@ vcpkg_extract_source_archive_ex(
# 002_more_port_fixes.patch
)
+# # Check if one or more features are a part of a package installation.
+# # See /docs/maintainers/vcpkg_check_features.md for more details
+# vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+# FEATURES # <- Keyword FEATURES is required because INVERTED_FEATURES are being used
+# tbb WITH_TBB
+# INVERTED_FEATURES
+# tbb ROCKSDB_IGNORE_PACKAGE_TBB
+# )
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja
@@ -40,8 +51,12 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-# Handle copyright
+# # Moves all .cmake files from /debug/share/@PORT@/ to /share/@PORT@/
+# # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details
+# vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/@PORT@)
+
+# # Handle copyright
# file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/@PORT@ RENAME copyright)
-# Post-build test for cmake libraries
+# # Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME @PORT@)