diff options
Diffstat (limited to 'ports/jwt-cpp')
| -rw-r--r-- | ports/jwt-cpp/CONTROL | 5 | ||||
| -rw-r--r-- | ports/jwt-cpp/fix-warning.patch | 31 | ||||
| -rw-r--r-- | ports/jwt-cpp/portfile.cmake | 11 | ||||
| -rw-r--r-- | ports/jwt-cpp/vcpkg.json | 9 |
4 files changed, 12 insertions, 44 deletions
diff --git a/ports/jwt-cpp/CONTROL b/ports/jwt-cpp/CONTROL deleted file mode 100644 index 7cc3d4496..000000000 --- a/ports/jwt-cpp/CONTROL +++ /dev/null @@ -1,5 +0,0 @@ -Source: jwt-cpp -Version: 0.4.0 -Homepage: https://github.com/Thalhammer/jwt-cpp -Description: A header only library for creating and validating json web tokens in c++ -Build-Depends: picojson
\ No newline at end of file diff --git a/ports/jwt-cpp/fix-warning.patch b/ports/jwt-cpp/fix-warning.patch deleted file mode 100644 index 4c2e166c3..000000000 --- a/ports/jwt-cpp/fix-warning.patch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/include/jwt-cpp/base.h b/include/jwt-cpp/base.h
-index 375e0eb..4023709 100644
---- a/include/jwt-cpp/base.h
-+++ b/include/jwt-cpp/base.h
-@@ -2,6 +2,10 @@
- #include <string>
- #include <array>
-
-+#ifdef _MSC_VER
-+#pragma warning(disable : 4267)
-+#endif
-+
- #ifdef __has_cpp_attribute
- #if __has_cpp_attribute(fallthrough)
- #define JWT_FALLTHROUGH [[fallthrough]]
-diff --git a/include/jwt-cpp/jwt.h b/include/jwt-cpp/jwt.h
-index 6e55729..4579310 100644
---- a/include/jwt-cpp/jwt.h
-+++ b/include/jwt-cpp/jwt.h
-@@ -12,6 +12,11 @@
- #include <openssl/ec.h>
- #include <openssl/err.h>
-
-+#ifdef _MSC_VER
-+#pragma warning(disable : 4267)
-+#pragma warning(disable : 4067)
-+#endif
-+
- //If openssl version less than 1.1
- #if OPENSSL_VERSION_NUMBER < 0x10100000L
- #define OPENSSL10
diff --git a/ports/jwt-cpp/portfile.cmake b/ports/jwt-cpp/portfile.cmake index 00c4496c9..f9390ee3d 100644 --- a/ports/jwt-cpp/portfile.cmake +++ b/ports/jwt-cpp/portfile.cmake @@ -1,17 +1,12 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO Thalhammer/jwt-cpp - REF 34bb0644ea613cfcbc09c148db9de8aa6c5612b5 # v0.4.0 - SHA512 773007fc7a73a831e292451d7a38feb9434f7c11c653d43b9f3679c564f64805a1cbd1baab6b13107c42cc06549ad7cd08aebd6658d8ee0022f5b8d601fa94cc + REF b45bc9994d8087c5ba7aa1f1588302f04ae84c83 # v0.5.0 + SHA512 d2c6e2174cd86c27b8866f6ea50a379a321788e91f97a0548e694d11469c05d93b0713e0c38b37a8f14a0aded4fc4635599dcfb50142e4496fb3c8b9f7e5f8cd HEAD_REF master - PATCHES - fix-warning.patch ) # Copy the header files file(GLOB HEADER_FILES ${SOURCE_PATH}/include/jwt-cpp/*) -file(COPY ${HEADER_FILES} - DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp - REGEX "\.(gitattributes|gitignore|picojson.h)$" EXCLUDE) - +file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp) file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/jwt-cpp/vcpkg.json b/ports/jwt-cpp/vcpkg.json new file mode 100644 index 000000000..47533b72f --- /dev/null +++ b/ports/jwt-cpp/vcpkg.json @@ -0,0 +1,9 @@ +{ + "name": "jwt-cpp", + "version-semver": "0.5.0", + "description": "A header only library for creating and validating json web tokens in c++", + "homepage": "https://github.com/Thalhammer/jwt-cpp", + "dependencies": [ + "picojson" + ] +} |
