aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/cinatra
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/cinatra')
-rw-r--r--vcpkg/ports/cinatra/portfile.cmake17
-rw-r--r--vcpkg/ports/cinatra/vcpkg.json15
2 files changed, 32 insertions, 0 deletions
diff --git a/vcpkg/ports/cinatra/portfile.cmake b/vcpkg/ports/cinatra/portfile.cmake
new file mode 100644
index 0000000..0317c49
--- /dev/null
+++ b/vcpkg/ports/cinatra/portfile.cmake
@@ -0,0 +1,17 @@
+set(VCPKG_BUILD_TYPE "release") # header-only port
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO qicosmos/cinatra
+ REF ${VERSION}
+ SHA512 1432a5d799736469c34faffec540c5908484e5581edaceb1f809fce619fb357b182f8a6a1e7f814d2ba81ae94d31bfda30923af61ee557449363ef7cc084a902
+ HEAD_REF master
+)
+
+# Install Cinatra’s headers
+file(INSTALL
+ "${SOURCE_PATH}/include/cinatra"
+ "${SOURCE_PATH}/include/cinatra.hpp"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include"
+)
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/cinatra/vcpkg.json b/vcpkg/ports/cinatra/vcpkg.json
new file mode 100644
index 0000000..45bd2a2
--- /dev/null
+++ b/vcpkg/ports/cinatra/vcpkg.json
@@ -0,0 +1,15 @@
+{
+ "name": "cinatra",
+ "version": "0.9.5",
+ "port-version": 1,
+ "description": "Cinatra is a high performance HTTP framework with modern C++ features.",
+ "homepage": "https://github.com/qicosmos/cinatra",
+ "license": "MIT",
+ "supports": "!uwp & !android",
+ "dependencies": [
+ "asio",
+ "async-simple",
+ "iguana",
+ "tanakh-cmdline"
+ ]
+}