xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/ed/ed_1.18.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Line-oriented text editor"
2*4882a593SmuzhiyunHOMEPAGE = "http://www.gnu.org/software/ed/"
3*4882a593SmuzhiyunDESCRIPTION = "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*4882a593Smuzhiyun
5*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=76d6e300ffd8fb9d18bd9b136a9bba13 \
7*4882a593Smuzhiyun                    file://ed.h;endline=20;md5=6e6a818b0593f937fc63ba08d5e314bf \
8*4882a593Smuzhiyun                    file://main.c;endline=17;md5=8419a08bb12936f32384a0d1c0f9e74c \
9*4882a593Smuzhiyun                    "
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunSECTION = "base"
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunCVE_PRODUCT = "gnu:ed"
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun# LSB states that ed should be in /bin/
16*4882a593Smuzhiyunbindir = "${base_bindir}"
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun# Upstream regularly removes previous releases from https://ftp.gnu.org/gnu/ed/
19*4882a593SmuzhiyunSRC_URI = "${GNU_MIRROR}/ed/${BP}.tar.lz"
20*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "${GNU_MIRROR}/ed/"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunSRC_URI[sha256sum] = "aca8efad9800c587724a20b97aa8fc47e6b5a47df81606feaba831b074462b4f"
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunEXTRA_OEMAKE = "-e MAKEFLAGS="
25*4882a593Smuzhiyun
26*4882a593Smuzhiyuninherit texinfo
27*4882a593Smuzhiyun
28*4882a593Smuzhiyundo_configure() {
29*4882a593Smuzhiyun	${S}/configure
30*4882a593Smuzhiyun}
31*4882a593Smuzhiyun
32*4882a593Smuzhiyundo_install() {
33*4882a593Smuzhiyun	oe_runmake 'DESTDIR=${D}' install
34*4882a593Smuzhiyun	# Info dir listing isn't interesting at this point so remove it if it exists.
35*4882a593Smuzhiyun	if [ -e "${D}${infodir}/dir" ]; then
36*4882a593Smuzhiyun		rm -f ${D}${infodir}/dir
37*4882a593Smuzhiyun	fi
38*4882a593Smuzhiyun}
39