diff --git a/ports/daw-header-libraries/portfile.cmake b/ports/daw-header-libraries/portfile.cmake new file mode 100644 index 00000000000000..06753efd930d86 --- /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 00000000000000..25c09477650138 --- /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 00000000000000..97ec4b5e3fec65 --- /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 00000000000000..84ccbe00a3c7fe --- /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 00000000000000..e3b8e10c892ce3 --- /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 00000000000000..468da7e7c44b18 --- /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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 7e64191461249c..90dd7df0a8aacd 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1632,6 +1632,18 @@ "baseline": "0.8.2", "port-version": 1 }, + "daw-header-libraries": { + "baseline": "1.21.1", + "port-version": 0 + }, + "daw-json-link": { + "baseline": "2.9.11", + "port-version": 0 + }, + "daw-utf-range": { + "baseline": "2.1.0", + "port-version": 0 + }, "dbg-macro": { "baseline": "2019-07-11", "port-version": 0 diff --git a/versions/d-/daw-header-libraries.json b/versions/d-/daw-header-libraries.json new file mode 100644 index 00000000000000..7abb51e03b8d8a --- /dev/null +++ b/versions/d-/daw-header-libraries.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "6687948f2f2f4c3ba578a8ac41624c58a541f1a2", + "version-semver": "1.21.1", + "port-version": 0 + } + ] +} diff --git a/versions/d-/daw-json-link.json b/versions/d-/daw-json-link.json new file mode 100644 index 00000000000000..7f49b0d5743026 --- /dev/null +++ b/versions/d-/daw-json-link.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "04d0df53fc3b69309aa10f53cc92f0933e8139b8", + "version-semver": "2.9.11", + "port-version": 0 + } + ] +} diff --git a/versions/d-/daw-utf-range.json b/versions/d-/daw-utf-range.json new file mode 100644 index 00000000000000..dec5553b5c7070 --- /dev/null +++ b/versions/d-/daw-utf-range.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "e1c08fdf12013384e9a86e5233245321fea58793", + "version-semver": "2.1.0", + "port-version": 0 + } + ] +}