Skip to content

Commit

Permalink
Add gpg-error-config
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Feb 2, 2025
1 parent 60dda33 commit 29582bd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/gpg-error-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

# gpg-error-config: simple replacement gpg-error-config that is a shim
# for pkg-config.

# Parse flags
for arg in "$@"; do
case $arg in
--cflags)
pkg-config --cflags gpg-error
;;
--libs)
pkg-config --libs gpg-error
;;
--version)
pkg-config --modversion gpg-error
;;
*)
echo "Unknown option: $arg" >&2
exit 1
;;
esac
done
4 changes: 2 additions & 2 deletions .github/workflows/pythontest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ jobs:
- name: Install native dependencies (Ubuntu)
run: sudo apt-get update && sudo apt-get install -y libgpgme-dev libgpg-error-dev
if: "matrix.os == 'ubuntu-latest'"
- name: Provide gpgme-config for gpgme
- name: Provide gpgme-config and gpg-error-config
if: "matrix.os == 'ubuntu-latest'"
run: |
mkdir -p "$HOME/.local/bin"
cp .github/gpgme-config "$HOME/.local/bin/gpgme-config"
chmod +x "$HOME/.local/bin/gpgme-config"
cp .github/gpg-error-config "$HOME/.local/bin/gpg-error-config"
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install native dependencies (MacOS)
run: brew install swig gpgme
Expand Down

0 comments on commit 29582bd

Please sign in to comment.