aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-09-25 15:35:41 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-09-25 15:35:41 -0700
commit084b1afe9af1690916fab95bbb80c6891109f0fc (patch)
tree7ecf78d6662f611d299eaf833670da9ca9f78519
parentfe92af4ddd6ab409e013208ce131a40e333c0ba8 (diff)
downloadvcpkg-084b1afe9af1690916fab95bbb80c6891109f0fc.tar.gz
vcpkg-084b1afe9af1690916fab95bbb80c6891109f0fc.zip
[anax] Use vcpkg_from_github(). Add missing vcpkg_copy_pdbs()
-rw-r--r--ports/anax/CONTROL2
-rw-r--r--ports/anax/portfile.cmake18
2 files changed, 11 insertions, 9 deletions
diff --git a/ports/anax/CONTROL b/ports/anax/CONTROL
index 7eb71786b..12be38d11 100644
--- a/ports/anax/CONTROL
+++ b/ports/anax/CONTROL
@@ -1,3 +1,3 @@
Source: anax
-Version: 2.1.0-2
+Version: 2.1.0-3
Description: An open source C++ entity system. <https://github.com/miguelmartin75/anax>
diff --git a/ports/anax/portfile.cmake b/ports/anax/portfile.cmake
index ef14f7264..8881957fc 100644
--- a/ports/anax/portfile.cmake
+++ b/ports/anax/portfile.cmake
@@ -8,13 +8,13 @@
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/anax-2.1.0)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/miguelmartin75/anax/archive/v2.1.0.zip"
- FILENAME "anax-2.1.0.zip"
- SHA512 89f2df64add676ab48a19953b95d8eae1da9c8c5f3c0f6bc757a3bc99af6e4360c56c12d27d12c672ccd754b1f53a5e271533b381641f20e8cf3ca8ddda6cd1a
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO miguelmartin75/anax
+ REF v2.1.0
+ SHA512 b573733b5f9634bf8cfc5b0715074f9a8ee29ecb48dc981d9371254a1f6ff8afbbb9ba6aa0877d53e518e5486ecc398a6d331fb9b5dbfd17d8707679216e11a3
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
@@ -23,8 +23,8 @@ vcpkg_apply_patches(
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
- OPTIONS
- -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
+ OPTIONS
+ -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON
)
vcpkg_install_cmake()
@@ -34,3 +34,5 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/anax)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/anax/LICENSE ${CURRENT_PACKAGES_DIR}/share/anax/copyright)
+
+vcpkg_copy_pdbs() \ No newline at end of file