aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/asock
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/asock
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/asock')
-rw-r--r--vcpkg/ports/asock/portfile.cmake24
-rw-r--r--vcpkg/ports/asock/vcpkg.json18
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/asock/portfile.cmake b/vcpkg/ports/asock/portfile.cmake
new file mode 100644
index 0000000..2a995db
--- /dev/null
+++ b/vcpkg/ports/asock/portfile.cmake
@@ -0,0 +1,24 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jeremyko/ASockLib
+ REF "${VERSION}"
+ SHA512 6c05cd7796a7a2b788e304a7ecd419f64f9b80368f941e5730c68cb1e439058cac03ce06426c166da7c144b58174942834159cbd271cc2612e5c9cd210788411
+ HEAD_REF master
+)
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DJEREMYKO_ASOCK_BUILD_TESTS=OFF
+ -DJEREMYKO_ASOCK_BUILD_SAMPLES=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/asock")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+file(REMOVE "${CURRENT_PACKAGES_DIR}/share/asock/LICENSE" "${CURRENT_PACKAGES_DIR}/share/asock/README.md")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+
diff --git a/vcpkg/ports/asock/vcpkg.json b/vcpkg/ports/asock/vcpkg.json
new file mode 100644
index 0000000..04c3092
--- /dev/null
+++ b/vcpkg/ports/asock/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "asock",
+ "version": "1.0.7",
+ "description": "A simple portable socket library",
+ "homepage": "https://github.com/jeremyko/ASockLib",
+ "license": "MIT",
+ "supports": "windows | linux | osx",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}