[libcred] Add new port (#41204)

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
This commit is contained in:
Jürgen Herrmann 2024-09-30 18:01:58 +02:00 committed by GitHub
parent cb0934f1da
commit c1f1fb3128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,17 @@
diff --git a/meson.build b/meson.build
index 4de2473..d49a42a 100644
--- a/meson.build
+++ b/meson.build
@@ -56,8 +56,8 @@ endif
install_headers('include/libcred.hpp')
-executable('ex1', ['example/ex1.cpp'], link_with: credhelperlib, include_directories: ['include'])
-executable('ex2', ['example/ex2.cpp'], link_with: credhelperlib, include_directories: ['include'])
+#executable('ex1', ['example/ex1.cpp'], link_with: credhelperlib, include_directories: ['include'])
+#executable('ex2', ['example/ex2.cpp'], link_with: credhelperlib, include_directories: ['include'])
-testexe = executable('testexe', ['test/test.cpp'], link_with: credhelperlib, include_directories: ['include'])
-test('test1', testexe)
+#testexe = executable('testexe', ['test/test.cpp'], link_with: credhelperlib, include_directories: ['include'])
+#test('test1', testexe)

View File

@ -0,0 +1,21 @@
if (VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mamba-org/libcred
REF ${VERSION}
SHA512 77470b552cafc2506f9f1be56a2cd7aa412a4b568120037bf730273b5cc7c4dbabebb0abb6b192e3aef69912c6b5721d9e80b0cae0059f4fe814a5c0a8f3dcfb
HEAD_REF main
PATCHES
disable_tests.patch
)
vcpkg_configure_meson(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_install_meson()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

22
ports/libcred/vcpkg.json Normal file
View File

@ -0,0 +1,22 @@
{
"name": "libcred",
"version": "1.0.0",
"description": "a cross-platform credentials helper library",
"homepage": "https://github.com/mamba-org/libcred",
"license": "MIT",
"supports": "!osx & !uwp & !arm & !(windows & staticcrt) & !android",
"dependencies": [
{
"name": "glib",
"platform": "linux"
},
{
"name": "libsecret",
"platform": "linux"
},
{
"name": "vcpkg-tool-meson",
"host": true
}
]
}

View File

@ -4372,6 +4372,10 @@
"baseline": "1.0", "baseline": "1.0",
"port-version": 2 "port-version": 2
}, },
"libcred": {
"baseline": "1.0.0",
"port-version": 0
},
"libcroco": { "libcroco": {
"baseline": "0.6.13", "baseline": "0.6.13",
"port-version": 7 "port-version": 7

9
versions/l-/libcred.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "fc969f90949113fa71a044b18b520590400ef352",
"version": "1.0.0",
"port-version": 0
}
]
}