diff options
Diffstat (limited to 'vcpkg/ports/treehh')
| -rw-r--r-- | vcpkg/ports/treehh/copyright | 5 | ||||
| -rw-r--r-- | vcpkg/ports/treehh/portfile.cmake | 10 | ||||
| -rw-r--r-- | vcpkg/ports/treehh/vcpkg.json | 7 |
3 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/treehh/copyright b/vcpkg/ports/treehh/copyright new file mode 100644 index 0000000..98d917a --- /dev/null +++ b/vcpkg/ports/treehh/copyright @@ -0,0 +1,5 @@ +Copyright (C) 2001-2022 Kasper Peeters <kasper@phi-sci.com>
+Distributed under the GNU General Public License version 2 or 3.
+
+Special permission to use tree.hh under the conditions of a
+different license can be requested from the author.
diff --git a/vcpkg/ports/treehh/portfile.cmake b/vcpkg/ports/treehh/portfile.cmake new file mode 100644 index 0000000..e020c54 --- /dev/null +++ b/vcpkg/ports/treehh/portfile.cmake @@ -0,0 +1,10 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO kpeeters/tree.hh
+ REF 42531adcf9d1ff51c5bc1b068a9c57a8a8a912a7
+ SHA512 793981f69a487a5c2aaa654c98725c0b5bbcc086a43b6f1501c5a8359dba87d6e90ff7507313fcf1ded5054a9f2551e174323c9017a9c6ae87da2c2966e73d7f
+ HEAD_REF master
+)
+
+file(INSTALL "${SOURCE_PATH}/src/tree.hh" DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}/")
+file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/treehh/vcpkg.json b/vcpkg/ports/treehh/vcpkg.json new file mode 100644 index 0000000..7c53a9d --- /dev/null +++ b/vcpkg/ports/treehh/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "treehh", + "version": "3.18", + "description": "An STL-like C++ header-only tree library", + "homepage": "https://github.com/kpeeters/tree.hh", + "license": "GPL-2.0-only OR GPL-3.0-only" +} |