Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Library for editing typed command lines" |
| 2 | DESCRIPTION = "The GNU Readline library provides a set of functions for use by applications that allow users to edit \ |
| 3 | command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes \ |
| 4 | additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those \ |
| 5 | lines, and perform csh-like history expansion on previous commands." |
| 6 | SECTION = "libs" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | HOMEPAGE = "https://cnswww.cns.cwru.edu/php/chet/readline/rltop.html" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 8 | |
| 9 | # GPLv2+ (< 6.0), GPLv3+ (>= 6.0) |
| 10 | LICENSE = "GPLv3+" |
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" |
| 12 | |
| 13 | DEPENDS += "ncurses" |
| 14 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | SRC_URI = "${GNU_MIRROR}/readline/${BPN}-${PV}.tar.gz;name=archive" |
| 16 | SRC_URI += "file://inputrc" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | inherit autotools texinfo |
| 19 | |
| 20 | EXTRA_AUTORECONF += "--exclude=autoheader" |
| 21 | |
| 22 | LEAD_SONAME = "libreadline.so" |
| 23 | |
| 24 | do_configure_prepend () { |
| 25 | if [ ! -e ${S}/acinclude.m4 ]; then |
| 26 | cat ${S}/aclocal.m4 > ${S}/acinclude.m4 |
| 27 | fi |
| 28 | } |
| 29 | |
| 30 | do_install_append () { |
| 31 | # Make install doesn't properly install these |
| 32 | oe_libinstall -so -C shlib libhistory ${D}${libdir} |
| 33 | oe_libinstall -so -C shlib libreadline ${D}${libdir} |
| 34 | |
| 35 | rmdir ${D}${bindir} |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 36 | rm -rf ${D}${datadir}/${BPN}/*.c |
| 37 | rmdir ${D}${datadir}/${BPN} || true |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 38 | |
| 39 | install -m 0755 -d ${D}${sysconfdir} |
| 40 | install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | BBCLASSEXTEND = "native nativesdk" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 44 | |
| 45 | CONFFILES_${PN} += "${sysconfdir}/inputrc" |
Brad Bishop | f3f93bb | 2019-10-16 14:33:32 -0400 | [diff] [blame^] | 46 | |
| 47 | # OpenSuse injects versions into libreadline leading to conficits between our native one and theirs |
| 48 | # see their spec file for where this is injected. Extra versioning is harmless so we just do the same. |
| 49 | SRC_URI_append_class-native = " file://rl-native.map" |
| 50 | LDFLAGS_append_class-native = " -Wl,--version-script=${WORKDIR}/rl-native.map" |