aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/kissnet
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/kissnet')
-rw-r--r--vcpkg/ports/kissnet/portfile.cmake14
-rw-r--r--vcpkg/ports/kissnet/usage4
-rw-r--r--vcpkg/ports/kissnet/vcpkg.json17
3 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/kissnet/portfile.cmake b/vcpkg/ports/kissnet/portfile.cmake
new file mode 100644
index 0000000..8ae1c70
--- /dev/null
+++ b/vcpkg/ports/kissnet/portfile.cmake
@@ -0,0 +1,14 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ybalrid/kissnet
+ REF 12ea4c632cc719b608876bf1894ce96eea0a1174 # 2024-01-20
+ SHA512 44f169c912cfa00bcc6132dfbd62a4d3d40bb70db92ba69b21a76e32eb8b4363f17c6eb1413974af55f4fcfbafbf32cc98e6ac147e46bad8cf7c691016a30bdb
+ HEAD_REF master
+)
+
+# Install the header-only library
+file(INSTALL "${SOURCE_PATH}/kissnet.hpp"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/kissnet/usage b/vcpkg/ports/kissnet/usage
new file mode 100644
index 0000000..0d042de
--- /dev/null
+++ b/vcpkg/ports/kissnet/usage
@@ -0,0 +1,4 @@
+The package kissnet is header only and can be used from CMake via:
+
+ find_path(KISSNET_INCLUDE_DIRS "kissnet.hpp")
+ target_include_directories(main PRIVATE ${KISSNET_INCLUDE_DIRS}) \ No newline at end of file
diff --git a/vcpkg/ports/kissnet/vcpkg.json b/vcpkg/ports/kissnet/vcpkg.json
new file mode 100644
index 0000000..af0dc0a
--- /dev/null
+++ b/vcpkg/ports/kissnet/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "kissnet",
+ "version-date": "2024-01-20",
+ "description": "Keep It Simple Stupid NETwork - C++17 wrapping of your OS's native socket API",
+ "homepage": "https://github.com/Ybalrid/kissnet",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}