diff options
| author | Twice <i@twice.moe> | 2020-11-10 06:46:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-09 14:46:44 -0800 |
| commit | 10c38371cb264932530b7e175b34712f48c15264 (patch) | |
| tree | e2a294c3b58fe72f069a6175e3a056272542bacf | |
| parent | 88cf04335827299dc02fff5b1f39680a2e7c5c8b (diff) | |
| download | vcpkg-10c38371cb264932530b7e175b34712f48c15264.tar.gz vcpkg-10c38371cb264932530b7e175b34712f48c15264.zip | |
[protopuf] Add a new port protopuf (#14446)
* [protopuf] add new port
* [protopuf] fix sha512
* [protopuf] add homepage & fix typo
* [protopuf] format manifest
| -rw-r--r-- | ports/protopuf/portfile.cmake | 20 | ||||
| -rw-r--r-- | ports/protopuf/vcpkg.json | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/ports/protopuf/portfile.cmake b/ports/protopuf/portfile.cmake new file mode 100644 index 000000000..45e9c1763 --- /dev/null +++ b/ports/protopuf/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO PragmaTwice/protopuf + REF v1.0.0 + SHA512 45644fd586da80a7bb9e434152f2b28b99d45f5679b9fcc173ff3f1abf42d8deb971641351cf67dc3408a86da25ed03154fe612f56983282da32dc3e29333f6c + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DBUILD_TESTS=OFF +) + +vcpkg_install_cmake() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/protopuf/vcpkg.json b/ports/protopuf/vcpkg.json new file mode 100644 index 000000000..ab15ca949 --- /dev/null +++ b/ports/protopuf/vcpkg.json @@ -0,0 +1,6 @@ +{ + "name": "protopuf", + "version-string": "1.0.0", + "description": "A little, highly templated, and protobuf-compatible serialization/deserialization library written in C++20", + "homepage": "https://github.com/PragmaTwice/protopuf" +} |
