aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nanoprintf
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/nanoprintf')
-rw-r--r--vcpkg/ports/nanoprintf/portfile.cmake12
-rw-r--r--vcpkg/ports/nanoprintf/vcpkg.json6
2 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/nanoprintf/portfile.cmake b/vcpkg/ports/nanoprintf/portfile.cmake
new file mode 100644
index 0000000..4b86150
--- /dev/null
+++ b/vcpkg/ports/nanoprintf/portfile.cmake
@@ -0,0 +1,12 @@
+# header-only library
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO charlesnicholson/nanoprintf
+ REF "v${VERSION}"
+ SHA512 1148796bcc0fac973ff613b9868426d6948087f7319c88b723f22be659c0f5d5add95b1e256a0d7a84671129a981d1aed9c28dd4aeb44ede5082bd07b0c2b8e7
+ HEAD_REF master
+)
+
+file(COPY "${SOURCE_PATH}/nanoprintf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/nanoprintf/vcpkg.json b/vcpkg/ports/nanoprintf/vcpkg.json
new file mode 100644
index 0000000..6ba1838
--- /dev/null
+++ b/vcpkg/ports/nanoprintf/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "nanoprintf",
+ "version": "0.5.5",
+ "description": "A tiny embeddable printf replacement written in C99",
+ "homepage": "https://github.com/charlesnicholson/nanoprintf"
+}