diff options
| author | myd7349 <myd7349@gmail.com> | 2020-05-29 04:09:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-28 13:09:59 -0700 |
| commit | 43208001aa678448e56714dc5132e7ece82e5af6 (patch) | |
| tree | 0805201a0eaa15b2a84fdc7a060f6bc6d538fdb0 | |
| parent | 3da553937ecd2902ef970b08ff8301427181ab85 (diff) | |
| download | vcpkg-43208001aa678448e56714dc5132e7ece82e5af6.tar.gz vcpkg-43208001aa678448e56714dc5132e7ece82e5af6.zip | |
[nanoprintf] Add new port (#11605)
* [nanoprintf] Add new port
* [nanoprintf] Update
| -rw-r--r-- | ports/nanoprintf/CONTROL | 4 | ||||
| -rw-r--r-- | ports/nanoprintf/portfile.cmake | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/ports/nanoprintf/CONTROL b/ports/nanoprintf/CONTROL new file mode 100644 index 000000000..f3518b900 --- /dev/null +++ b/ports/nanoprintf/CONTROL @@ -0,0 +1,4 @@ +Source: nanoprintf +Version: 2020-05-27 +Description: A tiny embeddable printf replacement written in C99 +Homepage: https://github.com/charlesnicholson/nanoprintf diff --git a/ports/nanoprintf/portfile.cmake b/ports/nanoprintf/portfile.cmake new file mode 100644 index 000000000..7587949e1 --- /dev/null +++ b/ports/nanoprintf/portfile.cmake @@ -0,0 +1,12 @@ +# header-only library +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO charlesnicholson/nanoprintf + REF b210b50a2b8608e2f0226b47a8f82c3476177a4f + SHA512 8340bf3785a8609568188e28e3fb905007d6da052f860df02fe0b8b2fdef3ca1ac87b91f7ac203fbd7235bcd50c8a63f33b2fca2854cad1351899c59cd8d7646 + HEAD_REF master +) + +file(COPY ${SOURCE_PATH}/nanoprintf.h DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
