aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/simdutf/portfile.cmake18
-rw-r--r--ports/simdutf/vcpkg.json16
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/simdutf/portfile.cmake b/ports/simdutf/portfile.cmake
new file mode 100644
index 000000000..c9e6bead8
--- /dev/null
+++ b/ports/simdutf/portfile.cmake
@@ -0,0 +1,18 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO simdutf/simdutf
+ REF v1.0.0
+ SHA512 3ab09aa61cb9765bf1a77de59c5b823ee58ae5e4badfd5dd70e511fd4f378f8d3917a5b577e7f275720b975740344968132ce0b3f628452bde67f2ab6cc82337
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE-APACHE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/simdutf/vcpkg.json b/ports/simdutf/vcpkg.json
new file mode 100644
index 000000000..67f03f8e2
--- /dev/null
+++ b/ports/simdutf/vcpkg.json
@@ -0,0 +1,16 @@
+{
+ "name": "simdutf",
+ "version-semver": "1.0.0",
+ "description": "Unicode validation and transcoding at billions of characters per second",
+ "homepage": "https://github.com/simdutf/simdutf",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}