selftest-ed_1.20.2.bb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. SUMMARY = "Line-oriented text editor"
  2. HOMEPAGE = "http://www.gnu.org/software/ed/"
  3. DESCRIPTION = "GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. A restricted version of ed, red, can only edit files in the current directory and cannot execute shell commands."
  4. LICENSE = "GPL-2.0-only"
  5. LIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
  6. file://ed.h;endline=20;md5=c3212b6c53b09668107420af9368c0ef \
  7. file://main.c;endline=17;md5=e5d2ae5ddd1ecb87dc71702c06dd06dc \
  8. "
  9. SECTION = "base"
  10. CVE_PRODUCT = "gnu:ed"
  11. # LSB states that ed should be in /bin/
  12. bindir = "${base_bindir}"
  13. # Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/
  14. SRC_URI = "${GNU_MIRROR}/ed/ed-${PV}.tar.lz"
  15. UPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/"
  16. SRC_URI[sha256sum] = "65fec7318f48c2ca17f334ac0f4703defe62037bb13cc23920de077b5fa24523"
  17. S = "${WORKDIR}/ed-${PV}"
  18. EXTRA_OEMAKE = "-e MAKEFLAGS="
  19. # for gcc 15 true/false change
  20. CFLAGS += "-std=gnu17"
  21. inherit texinfo
  22. do_configure() {
  23. ${S}/configure
  24. }
  25. do_install() {
  26. oe_runmake 'DESTDIR=${D}' install
  27. # Info dir listing isn't interesting at this point so remove it if it exists.
  28. if [ -e "${D}${infodir}/dir" ]; then
  29. rm -f ${D}${infodir}/dir
  30. fi
  31. }
  32. BBCLASSEXTEND = "native"