diff options
| author | Rémi Bédard-Couture <remi.bc@outlook.com> | 2021-02-08 20:57:27 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-08 17:57:27 -0800 |
| commit | c6756ce80b0b869add908c709e5de90d34e6aa08 (patch) | |
| tree | b2f9bc782040c4c1804effc135e8797fb0d239df | |
| parent | 65e5ea1df685a5362e70367bef4dbf827addff31 (diff) | |
| download | vcpkg-c6756ce80b0b869add908c709e5de90d34e6aa08.tar.gz vcpkg-c6756ce80b0b869add908c709e5de90d34e6aa08.zip | |
[discreture] Add new port (#15967)
* [discreture] Add new port
* Remove unused options
* Replace hardcoded port name with cmake variable
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
* Adding version file to fix windows-x86 build failure
* Add usage file to point to the correct header file at the end of the installation
* Update port version SHA after vcpkg x-add-version discreture
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
| -rw-r--r-- | ports/discreture/CONTROL | 5 | ||||
| -rw-r--r-- | ports/discreture/portfile.cmake | 21 | ||||
| -rw-r--r-- | ports/discreture/usage | 4 | ||||
| -rw-r--r-- | versions/baseline.json | 4 | ||||
| -rw-r--r-- | versions/d-/discreture.json | 9 |
5 files changed, 43 insertions, 0 deletions
diff --git a/ports/discreture/CONTROL b/ports/discreture/CONTROL new file mode 100644 index 000000000..a2dff85cf --- /dev/null +++ b/ports/discreture/CONTROL @@ -0,0 +1,5 @@ +Source: discreture
+Version: 2020-01-29
+Homepage: https://github.com/mraggi/discreture
+Description: A modern C++ library for efficiently and easily iterating through common combinatorial objects, such as combinations, permutations, partitions and more.
+Build-Depends: boost-iterator, boost-container
diff --git a/ports/discreture/portfile.cmake b/ports/discreture/portfile.cmake new file mode 100644 index 000000000..51bec5feb --- /dev/null +++ b/ports/discreture/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mraggi/discreture + REF eeeec31c814e6a9a8506a6bfd6a5b35704350605 + SHA512 de1c7d74d337605fd9b9d1f3ee6637b4afd179d495de243b21168b0a4376b83c0519b4cced985af694850755ab1e3caca5087b3ca0cd6ccb3b73b10bd6b25b49 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +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/ports/discreture/usage b/ports/discreture/usage new file mode 100644 index 000000000..00af38177 --- /dev/null +++ b/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/versions/baseline.json b/versions/baseline.json index 2df1d8c68..6fb69bf59 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1652,6 +1652,10 @@ "baseline": "2.2.6", "port-version": 0 }, + "discreture": { + "baseline": "2020-01-29", + "port-version": 0 + }, "distorm": { "baseline": "3.4.1", "port-version": 0 diff --git a/versions/d-/discreture.json b/versions/d-/discreture.json new file mode 100644 index 000000000..61605c740 --- /dev/null +++ b/versions/d-/discreture.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "7977d6135bba5e0648102988dc1a1f9ed422da8e", + "version-string": "2020-01-29", + "port-version": 0 + } + ] +} |
