diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-02-08 23:56:27 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-02-08 23:56:27 -0800 |
| commit | 135138391e2767e21f8b681f1ed5539ac79687e4 (patch) | |
| tree | 3f886b34e528d7d7d1fecdcea6f4468df6a38918 | |
| parent | b4c3c30d4039ac56f1264b3692aa3a4cc49c6869 (diff) | |
| parent | ddab90208a59a173e07754cb2a0c6a53f17e8f7c (diff) | |
| download | vcpkg-135138391e2767e21f8b681f1ed5539ac79687e4.tar.gz vcpkg-135138391e2767e21f8b681f1ed5539ac79687e4.zip | |
Merge pull request #634 from sdcb/sqlite-modern-cpp
add sqlite-modern-cpp
| -rw-r--r-- | ports/sqlite-modern-cpp/CONTROL | 4 | ||||
| -rw-r--r-- | ports/sqlite-modern-cpp/portfile.cmake | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/sqlite-modern-cpp/CONTROL b/ports/sqlite-modern-cpp/CONTROL new file mode 100644 index 000000000..641b3229c --- /dev/null +++ b/ports/sqlite-modern-cpp/CONTROL @@ -0,0 +1,4 @@ +Source: sqlite-modern-cpp
+Version: 2.4
+Build-Depends: sqlite3
+Description: The C++14 wrapper around sqlite library
diff --git a/ports/sqlite-modern-cpp/portfile.cmake b/ports/sqlite-modern-cpp/portfile.cmake new file mode 100644 index 000000000..3171b5550 --- /dev/null +++ b/ports/sqlite-modern-cpp/portfile.cmake @@ -0,0 +1,20 @@ +# header only
+include(vcpkg_common_functions)
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/sqlite_modern_cpp-2.4)
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/aminroosta/sqlite_modern_cpp/archive/v2.4.tar.gz"
+ FILENAME "sqlite_modern_cpp-2.4.tar.gz"
+ SHA512 99d8220c9dcbf7383c75ef8061bc792a4ea0b7e6e1290992f1604f66e77fcb5055af8c54c2d82b6a8d331359e2829d987b7528208f032f32699e1349296792db
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+file(INSTALL ${SOURCE_PATH}/hdr/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+# Handle copyright
+vcpkg_download_distfile(LICENSE
+ URLS https://raw.githubusercontent.com/aminroosta/sqlite_modern_cpp/1d7747fcbb16325ec6673477b06f0c780de24a27/License.txt
+ FILENAME "sqlite_modern_cpp-2.4-license-mit.txt"
+ SHA512 4ffc41d14902b37841463b9e9274537cb48523a7ab7e5fbbbd14a01820d141e367851b0496aa18546ddab96100e7381db7fc35621c795a97c3290b618e18a8bd
+)
+file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/sqlite-modern-cpp)
+file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/sqlite-modern-cpp RENAME copyright)
|
