diff options
| author | George Fotopoulos <xorz57@gmail.com> | 2018-01-30 02:44:57 +0200 |
|---|---|---|
| committer | Alexander Karatarakis <alex@karatarakis.com> | 2018-01-29 16:44:57 -0800 |
| commit | e95159b5a60be3dc8ba29d7baf20ce76b47c2f0e (patch) | |
| tree | 446199ec379594f4cbfcb41b2f9b9d0b3527c8ed | |
| parent | b2eb87dc71c9df22d5c9fb5c2136786489b03196 (diff) | |
| download | vcpkg-e95159b5a60be3dc8ba29d7baf20ce76b47c2f0e.tar.gz vcpkg-e95159b5a60be3dc8ba29d7baf20ce76b47c2f0e.zip | |
[forest] New Package (#2650)
* Add header-only library forest
| -rw-r--r-- | ports/forest/CONTROL | 3 | ||||
| -rw-r--r-- | ports/forest/portfile.cmake | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/ports/forest/CONTROL b/ports/forest/CONTROL new file mode 100644 index 000000000..522668d9d --- /dev/null +++ b/ports/forest/CONTROL @@ -0,0 +1,3 @@ +Source: forest +Version: 4.5.0 +Description: Forest is an open-source, template library of tree data structures written in C++11. diff --git a/ports/forest/portfile.cmake b/ports/forest/portfile.cmake new file mode 100644 index 000000000..6f076a0db --- /dev/null +++ b/ports/forest/portfile.cmake @@ -0,0 +1,16 @@ +# Ηeader-only library + +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/forest-4.5.0) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/xorz57/forest/archive/4.5.0.zip" + FILENAME "forest-4.5.0.zip" + SHA512 ae256ad38802d0827cfcd45ffae35ddb95cf74e38cf3e5d806f6e2215f701abfb8159f82e2bb6362788fe96a9f9008429d366e7abbc7980b29b3528052cfe43e +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Handle headers +file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h") + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/forest RENAME copyright) |
