blob: 35df8b4bb6f409315307504ed2f59bd811e79aa2 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Library for editing typed command lines"
2DESCRIPTION = "The GNU Readline library provides a set of functions for use by applications that allow users to edit \
3command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes \
4additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those \
5lines, and perform csh-like history expansion on previous commands."
6SECTION = "libs"
7
8# GPLv2+ (< 6.0), GPLv3+ (>= 6.0)
9LICENSE = "GPLv3+"
10LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
11
12DEPENDS += "ncurses"
13
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014SRC_URI = "${GNU_MIRROR}/readline/${BPN}-${PV}.tar.gz;name=archive"
15SRC_URI += "file://inputrc"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050016
17inherit autotools texinfo
18
19EXTRA_AUTORECONF += "--exclude=autoheader"
20
21LEAD_SONAME = "libreadline.so"
22
23do_configure_prepend () {
24 if [ ! -e ${S}/acinclude.m4 ]; then
25 cat ${S}/aclocal.m4 > ${S}/acinclude.m4
26 fi
27}
28
29do_install_append () {
30 # Make install doesn't properly install these
31 oe_libinstall -so -C shlib libhistory ${D}${libdir}
32 oe_libinstall -so -C shlib libreadline ${D}${libdir}
33
34 rmdir ${D}${bindir}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050035
36 install -m 0755 -d ${D}${sysconfdir}
37 install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050038}
39
40BBCLASSEXTEND = "native nativesdk"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050041
42CONFFILES_${PN} += "${sysconfdir}/inputrc"