[buildout]
extends =
  ../bzip2/buildout.cfg
  ../file/buildout.cfg
  ../gnutls/buildout.cfg
  ../sqlite3/buildout.cfg
parts = gnupg

[npth]
<= gpg-common
version = 1.5
md5sum = 9ba2dc4302d2f32c66737c43ed191b1b
configure-options-extra =
  --disable-tests

[libassuan]
<= with-gpg-error
version = 2.4.3
md5sum = 8e01a7c72d3e5d154481230668e6eb5a

[libksba]
<= with-gpg-error
version = 1.3.5
md5sum = 8302a3e263a7c630aa7dea7d341f07a2

[gnupg]
<= libgcrypt
version = 2.2.1
md5sum = f781efae8756f6cf5d500aad8e4b33e2
configure-options +=
  --disable-ldap
  --disable-card-support
  --disable-photo-viewers
  --with-bzip2=${bzip2:location}
  --with-ksba-prefix=${libksba:location}
  --with-libassuan-prefix=${libassuan:location}
  --with-libgcrypt-prefix=${libgcrypt:location}
  --with-npth-prefix=${npth:location}
  --with-readline=${readline:location}
environment =
  PATH=${pkgconfig:location}/bin:${gettext:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${gnutls:pkg-config-path}:${gnutls:location}/lib/pkgconfig:${sqlite3:location}/lib/pkgconfig
  CPPFLAGS=-I${file:location}/include -I${libgcrypt:location}/include
  LDFLAGS=-L${file:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${readline:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${sqlite3:location}/lib -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${file:location}/lib -Wl,-rpath=${libgpg-error:location}/lib -Wl,-rpath -Wl,${gnutls:location}/lib -Wl,-rpath=${libksba:location}/lib -Wl,-rpath=${libassuan:location}/lib -Wl,-rpath=${libgcrypt:location}/lib -Wl,-rpath=${npth:location}/lib
