diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/daw-header-libraries/portfile.cmake | 18 | ||||
| -rw-r--r-- | ports/daw-header-libraries/vcpkg.json | 16 | ||||
| -rw-r--r-- | ports/daw-json-link/portfile.cmake | 40 | ||||
| -rw-r--r-- | ports/daw-json-link/vcpkg.json | 17 | ||||
| -rw-r--r-- | ports/daw-utf-range/portfile.cmake | 23 | ||||
| -rw-r--r-- | ports/daw-utf-range/vcpkg.json | 17 |
6 files changed, 131 insertions, 0 deletions
diff --git a/ports/daw-header-libraries/portfile.cmake b/ports/daw-header-libraries/portfile.cmake new file mode 100644 index 000000000..06753efd9 --- /dev/null +++ b/ports/daw-header-libraries/portfile.cmake @@ -0,0 +1,18 @@ +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO beached/header_libraries + REF b44178fed16111944d1338999d88b129797608ce + SHA512 0b13bec450ba68e2b2ac2e76c9c529fa84a95df092b104660c88e9cfda91df9e5b70f0f7f6bcbb4f7ea05c1a5613734ceff8d84929b37b115c2bc86c232d9261 + HEAD_REF master +) + +vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +# remove empty lib and debug/lib directories (and duplicate files from debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/daw-header-libraries/vcpkg.json b/ports/daw-header-libraries/vcpkg.json new file mode 100644 index 000000000..25c094776 --- /dev/null +++ b/ports/daw-header-libraries/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "daw-header-libraries", + "version-semver": "1.21.1", + "description": "Set of header-only algorithms used in daw-utf8-range and daw-json-link.", + "homepage": "https://github.com/beached/header_libraries", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/ports/daw-json-link/portfile.cmake b/ports/daw-json-link/portfile.cmake new file mode 100644 index 000000000..97ec4b5e3 --- /dev/null +++ b/ports/daw-json-link/portfile.cmake @@ -0,0 +1,40 @@ +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO beached/daw_json_link + REF d8cb3a25a545b27b6ab5e68f4480b92ad0dc78fe + SHA512 19f486c6782f6134db0f7c8a1a4031b69aeae7f64846f186bccfa37927c8a688545fe5825de841e5ec5408267922b0334db3727d00fcb96b1a36eee81a05eae9 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DDAW_USE_PACKAGE_MANAGEMENT=ON +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH share/${PORT}/cmake) + +# remove empty lib and debug/lib directories (and duplicate files from debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +# Append the json-link and dragonbox license information into a single +# copyright file (they are both Boost v1.0 but it is good to be clear). +file(APPEND ${SOURCE_PATH}/copyright [=[+----------------------------------------------------------------------------+ +| json-link copywrite | ++----------------------------------------------------------------------------+ +]=]) +file(READ ${SOURCE_PATH}/LICENSE json_link_copywrite) +file(APPEND ${SOURCE_PATH}/copyright ${json_link_copywrite}) +file(APPEND ${SOURCE_PATH}/copyright [=[ + + ++----------------------------------------------------------------------------+ +| dragonbox copywrite | ++----------------------------------------------------------------------------+ +]=]) + +file(READ ${SOURCE_PATH}/LICENSE_Dragonbox dragonbox_copywrite) +file(APPEND ${SOURCE_PATH}/copyright ${dragonbox_copywrite}) +file(INSTALL ${SOURCE_PATH}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) diff --git a/ports/daw-json-link/vcpkg.json b/ports/daw-json-link/vcpkg.json new file mode 100644 index 000000000..84ccbe00a --- /dev/null +++ b/ports/daw-json-link/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "daw-json-link", + "version-semver": "2.9.11", + "description": "Perhaps the fastest JSON deserializer/serializer posssible or at least close to it.", + "homepage": "https://github.com/beached/daw_json_link", + "dependencies": [ + "daw-utf-range", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/ports/daw-utf-range/portfile.cmake b/ports/daw-utf-range/portfile.cmake new file mode 100644 index 000000000..e3b8e10c8 --- /dev/null +++ b/ports/daw-utf-range/portfile.cmake @@ -0,0 +1,23 @@ +# Header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO beached/utf_range + REF b20d4037db30f69ef73daa4428a631f95e0bbb10 + SHA512 4f9d4b4831c4bd6dc560830077965ae5b3351dc7695d0523262bc6229c8d7623e03338be772337f89084038d7039b4a0b41ef8de2ef98eb880f85ca5e01d5838 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH + ${SOURCE_PATH} + OPTIONS + -DDAW_USE_PACKAGE_MANAGEMENT=ON +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +# remove empty lib and debug/lib directories (and duplicate files from debug/include) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib") + +file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/daw-utf-range/vcpkg.json b/ports/daw-utf-range/vcpkg.json new file mode 100644 index 000000000..468da7e7c --- /dev/null +++ b/ports/daw-utf-range/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "daw-utf-range", + "version-semver": "2.1.0", + "description": "Header-only utf8 string range used by daw-json-link. Includes a constexpr/noexcept modified version of utfcpp.", + "homepage": "https://github.com/beached/header_libraries", + "dependencies": [ + "daw-header-libraries", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |
