mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
8a8a25b795
closes #6462
39 lines
950 B
YAML
39 lines
950 B
YAML
distributable:
|
|
url: https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-{{version.raw}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://gnupg.org/ftp/gcrypt/libgpg-error/
|
|
match: /libgpg-error-\d+\.\d+(\.\d+)?\.tar\.gz/
|
|
strip:
|
|
- /libgpg-error-/
|
|
- /.tar.gz/
|
|
|
|
provides:
|
|
- bin/gpg-error
|
|
# Deprecated, but required for gpgme
|
|
- bin/gpg-error-config
|
|
- bin/gpgrt-config
|
|
- bin/yat2m
|
|
|
|
build:
|
|
script:
|
|
- run: |
|
|
sed -i -e '/#include "gpgrt-int.h"/a\
|
|
\
|
|
#if defined (__APPLE__)\
|
|
extern char** environ;\
|
|
#endif' \
|
|
spawn-posix.c
|
|
if: '>=1.50'
|
|
working-directory: src
|
|
- ./configure --prefix={{prefix}} --enable-install-gpg-error-config
|
|
- make
|
|
- make check
|
|
- make install
|
|
|
|
test:
|
|
script: test "$(gpg-error 56)" = "$OUTPUT"
|
|
env:
|
|
OUTPUT: '56 = (0, 56) = (GPG_ERR_SOURCE_UNKNOWN, GPG_ERR_BAD_CERT_CHAIN) = (Unspecified source, Bad certificate chain)'
|