aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/discreture
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/discreture
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/discreture')
-rw-r--r--vcpkg/ports/discreture/portfile.cmake19
-rw-r--r--vcpkg/ports/discreture/usage4
-rw-r--r--vcpkg/ports/discreture/vcpkg.json19
3 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/discreture/portfile.cmake b/vcpkg/ports/discreture/portfile.cmake
new file mode 100644
index 0000000..e3ba24b
--- /dev/null
+++ b/vcpkg/ports/discreture/portfile.cmake
@@ -0,0 +1,19 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mraggi/discreture
+ REF eeeec31c814e6a9a8506a6bfd6a5b35704350605
+ SHA512 de1c7d74d337605fd9b9d1f3ee6637b4afd179d495de243b21168b0a4376b83c0519b4cced985af694850755ab1e3caca5087b3ca0cd6ccb3b73b10bd6b25b49
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+# Handle copyright
+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/discreture/usage b/vcpkg/ports/discreture/usage
new file mode 100644
index 0000000..00af381
--- /dev/null
+++ b/vcpkg/ports/discreture/usage
@@ -0,0 +1,4 @@
+The package discreture is header only and can be used from CMake via:
+
+ find_path(DISCRETURE_INCLUDE_DIRS "discreture.hpp")
+ target_include_directories(main PRIVATE ${DISCRETURE_INCLUDE_DIRS}) \ No newline at end of file
diff --git a/vcpkg/ports/discreture/vcpkg.json b/vcpkg/ports/discreture/vcpkg.json
new file mode 100644
index 0000000..84e0489
--- /dev/null
+++ b/vcpkg/ports/discreture/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "discreture",
+ "version-date": "2020-01-29",
+ "port-version": 3,
+ "description": "A modern C++ library for efficiently and easily iterating through common combinatorial objects, such as combinations, permutations, partitions and more.",
+ "homepage": "https://github.com/mraggi/discreture",
+ "dependencies": [
+ "boost-container",
+ "boost-iterator",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}