libgpg-error_1.56.bb 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. SUMMARY = "Small library that defines common error values for all GnuPG components"
  2. DESCRIPTION = "Contains common error codes and error handling functions used by GnuPG, Libgcrypt, GPGME and more packages. "
  3. HOMEPAGE = "http://www.gnupg.org/related_software/libgpg-error/"
  4. BUGTRACKER = "https://bugs.g10code.com/gnupg/index"
  5. LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
  7. file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
  8. file://src/gpg-error.h.in;beginline=2;endline=18;md5=badc79a9308e1cbd2657b2441c7cf017 \
  9. file://src/init.c;beginline=2;endline=17;md5=f01cdfcf747af5380590cfd9bbfeaaf7 \
  10. "
  11. SECTION = "libs"
  12. UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html"
  13. SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \
  14. file://pkgconfig.patch \
  15. file://0001-Do-not-fail-when-testing-config-scripts.patch \
  16. file://run-ptest \
  17. "
  18. SRC_URI[sha256sum] = "82c3d2deb4ad96ad3925d6f9f124fe7205716055ab50e291116ef27975d169c0"
  19. BINCONFIG = "${bindir}/gpg-error-config"
  20. inherit autotools binconfig-disabled pkgconfig gettext multilib_header multilib_script ptest
  21. require recipes-support/gnupg/drop-unknown-suffix.inc
  22. RDEPENDS:${PN}-ptest:append = " make bash"
  23. MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/gpgrt-config"
  24. CPPFLAGS += "-P"
  25. do_install:append() {
  26. # we don't have common lisp in OE
  27. rm -rf "${D}${datadir}/common-lisp/"
  28. oe_multilib_header gpg-error.h gpgrt.h
  29. }
  30. do_compile_ptest() {
  31. oe_runmake -C tests buildtest-TESTS
  32. }
  33. do_install_ptest() {
  34. install ${B}/tests/t-*[!\.o] ${D}${PTEST_PATH}
  35. install ${B}/tests/Makefile ${D}${PTEST_PATH}
  36. }
  37. FILES:${PN}-dev += "${bindir}/gpg-error"
  38. FILES:${PN}-doc += "${datadir}/libgpg-error/errorref.txt"
  39. BBCLASSEXTEND = "native nativesdk"