diff --git a/.github/gpg-error-config b/.github/gpg-error-config new file mode 100755 index 000000000..13b6f896c --- /dev/null +++ b/.github/gpg-error-config @@ -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 libgpg-error + ;; + --libs) + pkg-config --libs libgpg-error + ;; + --version) + pkg-config --modversion libgpg-error + ;; + *) + echo "Unknown option: $arg" >&2 + exit 1 + ;; + esac +done diff --git a/.github/workflows/pythontest.yml b/.github/workflows/pythontest.yml index 1fc4e0323..92f7f60f2 100644 --- a/.github/workflows/pythontest.yml +++ b/.github/workflows/pythontest.yml @@ -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