diff --git a/ports/libcred/disable_tests.patch b/ports/libcred/disable_tests.patch new file mode 100644 index 0000000000..33d82cdb9c --- /dev/null +++ b/ports/libcred/disable_tests.patch @@ -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) diff --git a/ports/libcred/portfile.cmake b/ports/libcred/portfile.cmake new file mode 100644 index 0000000000..deb8ad3fc9 --- /dev/null +++ b/ports/libcred/portfile.cmake @@ -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() diff --git a/ports/libcred/vcpkg.json b/ports/libcred/vcpkg.json new file mode 100644 index 0000000000..2865593a77 --- /dev/null +++ b/ports/libcred/vcpkg.json @@ -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 + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 4709b303b3..6998e804bf 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4372,6 +4372,10 @@ "baseline": "1.0", "port-version": 2 }, + "libcred": { + "baseline": "1.0.0", + "port-version": 0 + }, "libcroco": { "baseline": "0.6.13", "port-version": 7 diff --git a/versions/l-/libcred.json b/versions/l-/libcred.json new file mode 100644 index 0000000000..7cf82bcf9b --- /dev/null +++ b/versions/l-/libcred.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "fc969f90949113fa71a044b18b520590400ef352", + "version": "1.0.0", + "port-version": 0 + } + ] +}