diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-08-20 12:42:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-19 21:42:29 -0700 |
| commit | d48e2bd9d9251b8060f566ad52e393ba7b5ff180 (patch) | |
| tree | 2788fdd66d6537737abb9e068e18c6295c28e47c /ports/sqlite-orm | |
| parent | a6ca1a514b74e0b11ff37673b40554b79603675e (diff) | |
| download | vcpkg-d48e2bd9d9251b8060f566ad52e393ba7b5ff180.tar.gz vcpkg-d48e2bd9d9251b8060f566ad52e393ba7b5ff180.zip | |
[sqlite-orm] Update to latest version (#12999)
Diffstat (limited to 'ports/sqlite-orm')
| -rw-r--r-- | ports/sqlite-orm/CONTROL | 2 | ||||
| -rw-r--r-- | ports/sqlite-orm/disable-examples.patch | 13 | ||||
| -rw-r--r-- | ports/sqlite-orm/fix-includes-not-found.patch | 18 | ||||
| -rw-r--r-- | ports/sqlite-orm/portfile.cmake | 29 |
4 files changed, 55 insertions, 7 deletions
diff --git a/ports/sqlite-orm/CONTROL b/ports/sqlite-orm/CONTROL index c86beeb3d..b0735d1de 100644 --- a/ports/sqlite-orm/CONTROL +++ b/ports/sqlite-orm/CONTROL @@ -1,4 +1,6 @@ Source: sqlite-orm Version: 1.5 +Port-Version: 1 +Homepage: https://github.com/fnc12/sqlite_orm Build-Depends: sqlite3 Description: SQLite ORM light header only library for modern C++ diff --git a/ports/sqlite-orm/disable-examples.patch b/ports/sqlite-orm/disable-examples.patch new file mode 100644 index 000000000..61d832016 --- /dev/null +++ b/ports/sqlite-orm/disable-examples.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ffbdf3..ba22109 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -75,7 +75,7 @@ if(SqliteOrm_BuildTests AND BUILD_TESTING)
+ add_subdirectory(tests)
+ endif()
+
+-add_subdirectory(examples)
++#add_subdirectory(examples)
+
+ install(TARGETS sqlite_orm EXPORT "${ProjectName}Targets"
+ INCLUDES DESTINATION "${INCLUDE_INSTALL_DIR}" COMPONENT Development
diff --git a/ports/sqlite-orm/fix-includes-not-found.patch b/ports/sqlite-orm/fix-includes-not-found.patch new file mode 100644 index 000000000..42ee7672c --- /dev/null +++ b/ports/sqlite-orm/fix-includes-not-found.patch @@ -0,0 +1,18 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5ffbdf3..a6b2659 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,11 +43,11 @@ set(SqliteOrm_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
+ add_library(sqlite_orm INTERFACE)
+
+ target_sources(sqlite_orm INTERFACE
+- $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/sqlite_orm/sqlite_orm.h>
++ $<BUILD_INTERFACE:${SqliteOrm_INCLUDE}/include/sqlite_orm/sqlite_orm.h>
+ $<INSTALL_INTERFACE:include/sqlite_orm/sqlite_orm.h>)
+
+ target_include_directories(sqlite_orm INTERFACE
+- $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
++ $<BUILD_INTERFACE:${SqliteOrm_INCLUDE}/include>
+ $<INSTALL_INTERFACE:include>)
+
+ include(ucm)
diff --git a/ports/sqlite-orm/portfile.cmake b/ports/sqlite-orm/portfile.cmake index 3b93af0b8..83dcfa923 100644 --- a/ports/sqlite-orm/portfile.cmake +++ b/ports/sqlite-orm/portfile.cmake @@ -1,15 +1,30 @@ -include(vcpkg_common_functions) +# header-only library vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO fnc12/sqlite_orm - REF e8a9e9416f421303f4b8970caab26dadf8bae98b # v1.5 - SHA512 9774345e0209482a137e5f3058e2f27db55ea72fd08c44e67c0989df8927fee896cb789dcb2cd21167689c2f2be1c126bd730a6ea1083a48e6dd58fb048c6f5e + REF b30ddc6a50dc582c93cd49d8d0cf8f5025ba1d2b # 1.5 + SHA512 faeeef88aef11e89e9565850c23087925fb4d75ef48a16434055f18831db8e230d044c81574d840dacca406d7095cb83a113afc326996e289ab11a02d8caa2f4 HEAD_REF master + PATCHES + fix-includes-not-found.patch + disable-examples.patch ) -file(COPY ${SOURCE_PATH}/include/sqlite_orm DESTINATION ${CURRENT_PACKAGES_DIR}/include/) +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DSQLITE_ORM_ENABLE_CXX_17=OFF + -DSqliteOrm_BuildTests=OFF + -DBUILD_TESTING=OFF +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sqlite_orm TARGET_PATH share/SqliteOrm) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib) -file(INSTALL - ${SOURCE_PATH}/LICENSE - DESTINATION ${CURRENT_PACKAGES_DIR}/share/sqlite-orm RENAME copyright) +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
\ No newline at end of file |
