aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLong Huan <8551701+longhuan2018@users.noreply.github.com>2019-08-20 23:43:20 +0800
committerCurtis J Bezault <curtbezault@gmail.com>2019-08-20 08:43:20 -0700
commit6b99a1dddc1103918e784d13e15cfcebadea9975 (patch)
tree23f5462969084aef8c9e90e4d1499100ff412f5c
parent3173e5516a6f495404c17311bedb8927369f2959 (diff)
downloadvcpkg-6b99a1dddc1103918e784d13e15cfcebadea9975.tar.gz
vcpkg-6b99a1dddc1103918e784d13e15cfcebadea9975.zip
[qtkeychain]Add new port (#7760)
* new port qtkeychain * Update CONTROL * not build translations on linux Avoiding issues #7771 by not build translations on linux
-rw-r--r--ports/qtkeychain/CONTROL4
-rw-r--r--ports/qtkeychain/portfile.cmake43
2 files changed, 47 insertions, 0 deletions
diff --git a/ports/qtkeychain/CONTROL b/ports/qtkeychain/CONTROL
new file mode 100644
index 000000000..d054322cf
--- /dev/null
+++ b/ports/qtkeychain/CONTROL
@@ -0,0 +1,4 @@
+Source: qtkeychain
+Version: v0.9.1
+Description: qtkeychain - Platform-independent Qt API for storing passwords securely
+Build-Depends: qt5-base, qt5-tools \ No newline at end of file
diff --git a/ports/qtkeychain/portfile.cmake b/ports/qtkeychain/portfile.cmake
new file mode 100644
index 000000000..5bbe14d89
--- /dev/null
+++ b/ports/qtkeychain/portfile.cmake
@@ -0,0 +1,43 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO frankosterfeld/qtkeychain
+ REF v0.9.1
+ SHA512 c80bd25a5b72c175d0d4a985b952924c807bf67be33eeb89e2b83757727e642c10d8d737cea9744d2faad74c50c1b55d82b306135559c35c91a088c3b198b33a
+ HEAD_REF master
+)
+
+list(APPEND QTKEYCHAIN_OPTIONS -DCMAKE_DEBUG_POSTFIX=d)
+list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TEST_APPLICATION:BOOL=OFF)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ list(APPEND QTKEYCHAIN_OPTIONS -DQTKEYCHAIN_STATIC:BOOL=ON)
+else()
+ list(APPEND QTKEYCHAIN_OPTIONS -DQTKEYCHAIN_STATIC:BOOL=OFF)
+endif()
+
+if (CMAKE_HOST_WIN32)
+ list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=ON)
+else()
+ list(APPEND QTKEYCHAIN_OPTIONS -DBUILD_TRANSLATIONS:BOOL=OFF)
+endif()
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS ${QTKEYCHAIN_OPTIONS}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+# Remove unneeded dirs
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/lib/cmake
+ ${CURRENT_PACKAGES_DIR}/lib/cmake
+)
+
+# Handle copyright
+file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/qtkeychain)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/qtkeychain/COPYING ${CURRENT_PACKAGES_DIR}/share/qtkeychain/copyright)