aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-07-19 04:47:09 +0800
committerPhil Christensen <philc@microsoft.com>2019-07-18 13:47:09 -0700
commit527d1009c39f71f65bdb945ff17017f290460438 (patch)
tree10ed4b54f202b53f35cdc17ab60e81ff3b2588e8
parent416bee254a37d65acfadd20915bb70123862957f (diff)
downloadvcpkg-527d1009c39f71f65bdb945ff17017f290460438.tar.gz
vcpkg-527d1009c39f71f65bdb945ff17017f290460438.zip
[dbg-macro] Add new port (#7237)
-rw-r--r--ports/dbg-macro/CONTROL4
-rw-r--r--ports/dbg-macro/portfile.cmake16
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/dbg-macro/CONTROL b/ports/dbg-macro/CONTROL
new file mode 100644
index 000000000..80a2e3165
--- /dev/null
+++ b/ports/dbg-macro/CONTROL
@@ -0,0 +1,4 @@
+Source: dbg-macro
+Version: 2019-07-11
+Description: A dbg(...) macro for C++
+Homepage: https://github.com/sharkdp/dbg-macro
diff --git a/ports/dbg-macro/portfile.cmake b/ports/dbg-macro/portfile.cmake
new file mode 100644
index 000000000..3aee7268d
--- /dev/null
+++ b/ports/dbg-macro/portfile.cmake
@@ -0,0 +1,16 @@
+# single header file library
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sharkdp/dbg-macro
+ REF 4409d8428baf700873bcfee42e63bbca6700b97e
+ SHA512 f9f936707631bee112566a24c92cbf171e54362099df689253ab38d0489400f65c284df81749376f18cb3ebcefea3cc18844554016798c2542ec73dc2afcc931
+ HEAD_REF master
+)
+
+file(COPY ${SOURCE_PATH}/dbg.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)