aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangli28 <47812810+wangli28@users.noreply.github.com>2019-05-10 06:05:40 +0000
committerPhil Christensen <philc@microsoft.com>2019-05-09 23:05:39 -0700
commit5f1e14ac134fd63152b7b1c2c857bf7b2fb30570 (patch)
tree9108f12696bfd3b61d5232cf4a40ad65a92fe344
parentddec7174c17c927074c903a63f638808ad19ea07 (diff)
downloadvcpkg-5f1e14ac134fd63152b7b1c2c857bf7b2fb30570.tar.gz
vcpkg-5f1e14ac134fd63152b7b1c2c857bf7b2fb30570.zip
[loguru] Add new port (#6342)
-rw-r--r--ports/loguru/CONTROL4
-rw-r--r--ports/loguru/copyright3
-rw-r--r--ports/loguru/portfile.cmake12
3 files changed, 19 insertions, 0 deletions
diff --git a/ports/loguru/CONTROL b/ports/loguru/CONTROL
new file mode 100644
index 000000000..baa9503b0
--- /dev/null
+++ b/ports/loguru/CONTROL
@@ -0,0 +1,4 @@
+Source: loguru
+Version: v2.0.0
+Description: A lightweight and flexible C++ logging library
+Build-Depends: \ No newline at end of file
diff --git a/ports/loguru/copyright b/ports/loguru/copyright
new file mode 100644
index 000000000..334edabf8
--- /dev/null
+++ b/ports/loguru/copyright
@@ -0,0 +1,3 @@
+This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, modify and distribute it as you see fit.
+
+That being said, I would appreciate credit! If you find Loguru useful, tweet me at @ernerfeldt mail me at emil.ernerfeldt@gmail.com. \ No newline at end of file
diff --git a/ports/loguru/portfile.cmake b/ports/loguru/portfile.cmake
new file mode 100644
index 000000000..80efb0eea
--- /dev/null
+++ b/ports/loguru/portfile.cmake
@@ -0,0 +1,12 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO emilk/loguru
+ REF v2.0.0
+ SHA512 d6358f843689d10a44dc7bf590305cbfb89727e26d971ca4fe439e5468cdb7bcee2aa858368250e9654fb5ecebf63bca9742451881dae78068fecb18f279d988
+ HEAD_REF master
+)
+
+file(INSTALL ${SOURCE_PATH}/loguru.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/loguru)
+file(COPY ${CURRENT_PORT_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/loguru) \ No newline at end of file