aboutsummaryrefslogtreecommitdiff
path: root/ports/aixlog
diff options
context:
space:
mode:
authorPhoebe <925731795@qq.com>2019-09-06 01:43:09 +0800
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-05 10:43:09 -0700
commit33f15e40e858dcabddd1f1cc1b67368778516fbf (patch)
treea123c6cad05a70a19cb5b4f1370348e42e9cfb5b /ports/aixlog
parente6564a5ad99d80cf77f4c269a73a049f17c845e2 (diff)
downloadvcpkg-33f15e40e858dcabddd1f1cc1b67368778516fbf.tar.gz
vcpkg-33f15e40e858dcabddd1f1cc1b67368778516fbf.zip
modernize many ports (#7986)
* modernize many ports * Update the code to handle copyright * Retriger to build qt5-gamepad
Diffstat (limited to 'ports/aixlog')
-rw-r--r--ports/aixlog/CONTROL2
-rw-r--r--ports/aixlog/portfile.cmake28
2 files changed, 7 insertions, 23 deletions
diff --git a/ports/aixlog/CONTROL b/ports/aixlog/CONTROL
index 12e2a88c9..ba6d2c228 100644
--- a/ports/aixlog/CONTROL
+++ b/ports/aixlog/CONTROL
@@ -1,3 +1,3 @@
Source: aixlog
-Version: 1.2.1
+Version: 1.2.1-1
Description: Header-only C++ logging library
diff --git a/ports/aixlog/portfile.cmake b/ports/aixlog/portfile.cmake
index 4838372d6..64ffb29ef 100644
--- a/ports/aixlog/portfile.cmake
+++ b/ports/aixlog/portfile.cmake
@@ -1,32 +1,16 @@
-# Common Ambient Variables:
-# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
-# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
-# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
-# PORT = current port name (zlib, etc)
-# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
-# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
-# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
-# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
-# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
-#
include(vcpkg_common_functions)
vcpkg_from_github(
- OUT_SOURCE_PATH SOURCE_PATH
- REPO badaix/aixlog
- REF v1.2.1
- SHA512 776558fdd911f0cc9e8d467bf8e00a1930d2e51bb8ccd5f36f95955fefecab65faf575a80fdaacfe83fd32808f8b9c2e0323b16823e0431300df7bc0c1dfde12
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO badaix/aixlog
+ REF v1.2.1
+ SHA512 776558fdd911f0cc9e8d467bf8e00a1930d2e51bb8ccd5f36f95955fefecab65faf575a80fdaacfe83fd32808f8b9c2e0323b16823e0431300df7bc0c1dfde12
)
-
-
-file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
file(COPY ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
-
-# Handle copyright
-file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/aixlog)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/aixlog/LICENSE ${CURRENT_PACKAGES_DIR}/share/aixlog/copyright)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME aixlog)