aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/oatpp-mongo
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/oatpp-mongo
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/oatpp-mongo')
-rw-r--r--vcpkg/ports/oatpp-mongo/portfile.cmake24
-rw-r--r--vcpkg/ports/oatpp-mongo/vcpkg.json19
2 files changed, 43 insertions, 0 deletions
diff --git a/vcpkg/ports/oatpp-mongo/portfile.cmake b/vcpkg/ports/oatpp-mongo/portfile.cmake
new file mode 100644
index 0000000..b3bf876
--- /dev/null
+++ b/vcpkg/ports/oatpp-mongo/portfile.cmake
@@ -0,0 +1,24 @@
+set(OATPP_VERSION "1.3.0")
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO oatpp/oatpp-mongo
+ REF ${OATPP_VERSION}
+ SHA512 11f4164948feb63ed3f5e8554a54348e29cd4d90333761f98c37f4eb49f129c6589955755e8e052c5c29e6b2980f1bb899657415d6480c3ae7a50fc2445afbfe
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-mongo CONFIG_PATH lib/cmake/oatpp-mongo-${OATPP_VERSION})
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/oatpp-mongo/vcpkg.json b/vcpkg/ports/oatpp-mongo/vcpkg.json
new file mode 100644
index 0000000..da880a9
--- /dev/null
+++ b/vcpkg/ports/oatpp-mongo/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "oatpp-mongo",
+ "version": "1.3.0",
+ "port-version": 1,
+ "description": "Oat++ MongoDB adapter for Oat++ ORM (native client). It contains DTO to BSON mapper plus database driver.",
+ "homepage": "https://github.com/oatpp/oatpp-mongo",
+ "license": "Apache-2.0",
+ "dependencies": [
+ "oatpp",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}