aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libleidenalg
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libleidenalg')
-rw-r--r--vcpkg/ports/libleidenalg/portfile.cmake17
-rw-r--r--vcpkg/ports/libleidenalg/vcpkg.json23
2 files changed, 40 insertions, 0 deletions
diff --git a/vcpkg/ports/libleidenalg/portfile.cmake b/vcpkg/ports/libleidenalg/portfile.cmake
new file mode 100644
index 0000000..1cde806
--- /dev/null
+++ b/vcpkg/ports/libleidenalg/portfile.cmake
@@ -0,0 +1,17 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO vtraag/libleidenalg
+ REF "${VERSION}"
+ SHA512 f9e7b6157b2a871c4e9979245b91992b8edcd8bf2c98b5138bfa5786e227b41a9606ac18b4e4b2148e357bfabdf7b48cdf9a597e957c5fd391f2eb2f5e19f530
+ HEAD_REF main
+)
+
+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")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/libleidenalg/vcpkg.json b/vcpkg/ports/libleidenalg/vcpkg.json
new file mode 100644
index 0000000..d1480c7
--- /dev/null
+++ b/vcpkg/ports/libleidenalg/vcpkg.json
@@ -0,0 +1,23 @@
+{
+ "name": "libleidenalg",
+ "version": "0.12.0",
+ "maintainers": "Andrew Robbins <andrew@robbinsa.me>",
+ "description": "Leiden is a general algorithm for methods of community detection in large networks.",
+ "homepage": "https://github.com/vtraag/libleidenalg",
+ "license": "GPL-3.0-or-later",
+ "supports": "!xbox",
+ "dependencies": [
+ {
+ "name": "igraph",
+ "version>=": "1.0.0"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}