aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libcred
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/libcred
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libcred')
-rw-r--r--vcpkg/ports/libcred/disable_tests.patch17
-rw-r--r--vcpkg/ports/libcred/portfile.cmake21
-rw-r--r--vcpkg/ports/libcred/vcpkg.json22
3 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/libcred/disable_tests.patch b/vcpkg/ports/libcred/disable_tests.patch
new file mode 100644
index 0000000..33d82cd
--- /dev/null
+++ b/vcpkg/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/vcpkg/ports/libcred/portfile.cmake b/vcpkg/ports/libcred/portfile.cmake
new file mode 100644
index 0000000..deb8ad3
--- /dev/null
+++ b/vcpkg/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/vcpkg/ports/libcred/vcpkg.json b/vcpkg/ports/libcred/vcpkg.json
new file mode 100644
index 0000000..2865593
--- /dev/null
+++ b/vcpkg/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
+ }
+ ]
+}