aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorHconk <1164588530@qq.com>2021-10-01 05:03:38 +0800
committerGitHub <noreply@github.com>2021-09-30 14:03:38 -0700
commit035b5877ad7259fa8c20375bfec0d92747533dd7 (patch)
treeef5fa983373f718fc5f44b036338647d6619ff22 /ports
parent3434e5cbab6106eb86b198711cdae4c8f99e7dd8 (diff)
downloadvcpkg-035b5877ad7259fa8c20375bfec0d92747533dd7.tar.gz
vcpkg-035b5877ad7259fa8c20375bfec0d92747533dd7.zip
[tree.hh] Add new port. (#20427)
* [tree.hh] create a new port. * [tree.hh] update baseline.json. * [treehh] update portfile and copyright * [treehh] update baseline
Diffstat (limited to 'ports')
-rw-r--r--ports/treehh/copyright5
-rw-r--r--ports/treehh/portfile.cmake10
-rw-r--r--ports/treehh/vcpkg.json6
3 files changed, 21 insertions, 0 deletions
diff --git a/ports/treehh/copyright b/ports/treehh/copyright
new file mode 100644
index 000000000..2fcaf2b3a
--- /dev/null
+++ b/ports/treehh/copyright
@@ -0,0 +1,5 @@
+Copyright (C) 2001-2020 Kasper Peeters <kasper@phi-sci.com>
+Distributed under the GNU General Public License version 3.
+
+Special permission to use tree.hh under the conditions of a
+different license can be requested from the author.
diff --git a/ports/treehh/portfile.cmake b/ports/treehh/portfile.cmake
new file mode 100644
index 000000000..1546f3640
--- /dev/null
+++ b/ports/treehh/portfile.cmake
@@ -0,0 +1,10 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO kpeeters/tree.hh
+ REF 8dc57bc2bb7cd2fd1d6e777c6b5b58db0c3852ef
+ SHA512 a40481952802fdfab05159822b012a576ea956135a44f88d93844cb578c49ed5fb6fb7330bce699d7fa6ba1da65d12b284b6e9e6b103eadfd76cbc96d6839db5
+ 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/ports/treehh/vcpkg.json b/ports/treehh/vcpkg.json
new file mode 100644
index 000000000..85147876d
--- /dev/null
+++ b/ports/treehh/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "treehh",
+ "version": "3.16",
+ "description": "An STL-like C++ header-only tree library",
+ "homepage": "https://github.com/kpeeters/tree.hh"
+}