diff options
| author | Nicolai Grodzitski <utromvecherom@gmail.com> | 2018-05-03 08:29:46 +0300 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-05-02 22:29:46 -0700 |
| commit | d0aeb24a44e7446f834055e06ec7c416b877c425 (patch) | |
| tree | bfc7d10dcbedd13ef76f350a00f1e36345b6a22c | |
| parent | b4217a9468001ed0d4f293012c5bfa19426a5ad2 (diff) | |
| download | vcpkg-d0aeb24a44e7446f834055e06ec7c416b877c425.tar.gz vcpkg-d0aeb24a44e7446f834055e06ec7c416b877c425.zip | |
Add RESTinio port. (#3410)
* Make restinio port. First implementation (find-module files are not
installed yet).
* Add current status of a port files (not working).
* Prepare restinio port files.
* Change restinio archive URL.
* [restinio] Slim portfile
| -rw-r--r-- | ports/restinio/CONTROL | 4 | ||||
| -rw-r--r-- | ports/restinio/portfile.cmake | 25 |
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/restinio/CONTROL b/ports/restinio/CONTROL new file mode 100644 index 000000000..516de716a --- /dev/null +++ b/ports/restinio/CONTROL @@ -0,0 +1,4 @@ +Source: restinio
+Version: 0.4.5
+Description: A header-only C++14 library that gives you an embedded HTTP/Websocket server targeted primarily for asynchronous processing of HTTP-requests.
+Build-Depends: asio, fmt, http-parser
diff --git a/ports/restinio/portfile.cmake b/ports/restinio/portfile.cmake new file mode 100644 index 000000000..ba25481f6 --- /dev/null +++ b/ports/restinio/portfile.cmake @@ -0,0 +1,25 @@ +include(vcpkg_common_functions)
+
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/restinio-0.4.5-vcpkg)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://bitbucket.org/sobjectizerteam/restinio-0.4/downloads/restinio-0.4.5-vcpkg.zip"
+ FILENAME "restinio-0.4.5-vcpkg.zip"
+ SHA512 f5f135f761f29b2d4a9641ac1b37bb57bb6213df39b92ad349f8b73440142b2bd2a6093ee4c222417f61303ae46e960fb77b7a0c34d7e3924f3df1a50036b2da
+)
+
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/vcpkg
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/restinio")
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/restinio)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/restinio/LICENSE ${CURRENT_PACKAGES_DIR}/share/restinio/copyright)
|
