aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/uni-algo
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/uni-algo')
-rw-r--r--vcpkg/ports/uni-algo/portfile.cmake24
-rw-r--r--vcpkg/ports/uni-algo/usage4
-rw-r--r--vcpkg/ports/uni-algo/vcpkg.json17
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/uni-algo/portfile.cmake b/vcpkg/ports/uni-algo/portfile.cmake
new file mode 100644
index 0000000..5eee791
--- /dev/null
+++ b/vcpkg/ports/uni-algo/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO uni-algo/uni-algo
+ REF "v${VERSION}"
+ SHA512 262f02acd56e96f0e4b4ba3d9793f2cab65c124d431add56fca2a7793c41c4cac7cd364395d4e84937e09f6c682366cca8228886388c8cc021b2ff2483f58652
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DUNI_ALGO_INSTALL=ON
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/uni-algo/usage b/vcpkg/ports/uni-algo/usage
new file mode 100644
index 0000000..c60950b
--- /dev/null
+++ b/vcpkg/ports/uni-algo/usage
@@ -0,0 +1,4 @@
+The package uni-algo provides CMake targets:
+
+ find_package(uni-algo CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE uni-algo::uni-algo)
diff --git a/vcpkg/ports/uni-algo/vcpkg.json b/vcpkg/ports/uni-algo/vcpkg.json
new file mode 100644
index 0000000..13c21f4
--- /dev/null
+++ b/vcpkg/ports/uni-algo/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "uni-algo",
+ "version-semver": "1.2.0",
+ "description": "Unicode Algorithms Implementation",
+ "homepage": "https://github.com/uni-algo/uni-algo",
+ "license": "Unlicense OR MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}