aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeeWanderer <mxx888777@gmail.com>2020-06-24 00:26:53 +0300
committerGitHub <noreply@github.com>2020-06-23 14:26:53 -0700
commit36bb6f02e9f9925ed83593b4f2c8569f6f5a4c0d (patch)
tree31b65ffea812163d3acca187635f9b5c7d93f34d
parent09be10d763f7152f7efc53d16d666ef2015e59d6 (diff)
downloadvcpkg-36bb6f02e9f9925ed83593b4f2c8569f6f5a4c0d.tar.gz
vcpkg-36bb6f02e9f9925ed83593b4f2c8569f6f5a4c0d.zip
[tgbot-cpp] Add new port (#11876)
-rw-r--r--ports/tgbot-cpp/CONTROL5
-rw-r--r--ports/tgbot-cpp/portfile.cmake24
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/tgbot-cpp/CONTROL b/ports/tgbot-cpp/CONTROL
new file mode 100644
index 000000000..3c8398783
--- /dev/null
+++ b/ports/tgbot-cpp/CONTROL
@@ -0,0 +1,5 @@
+Source: tgbot-cpp
+Version: 1.2.1
+Homepage: https://github.com/reo7sp/tgbot-cpp
+Description: C++14 library for Telegram bot API.
+Build-Depends: boost-algorithm, boost-asio, boost-lexical-cast, boost-property-tree, boost-system, boost-test, boost-variant, curl, openssl, zlib
diff --git a/ports/tgbot-cpp/portfile.cmake b/ports/tgbot-cpp/portfile.cmake
new file mode 100644
index 000000000..859b5d03e
--- /dev/null
+++ b/ports/tgbot-cpp/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO reo7sp/tgbot-cpp
+ REF v1.2.1
+ SHA512 b094f9c80dd15b7930b7d7250169b3199d9c84b84826adececa8237111f5ba384ec790dbe969999f362ca2fb35b93950d053777ce5f167007e33c3e4eb133453
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
+endif()
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)