Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / readline / readline_4.3.oe
1 DESCRIPTION = "The GNU Readline library provides a set of functions for use by applications that allow users to edit \
2 command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes  \
3 additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those   \
4 lines, and perform csh-like history expansion on previous commands."
5 SECTION = "libs"
6 PRIORITY = "optional"
7 MAINTAINER = "Greg Gilbert <greg@treke.net>"
8 LICENSE = "GPLv2"
9
10 SRC_URI = "ftp://ftp.cwru.edu/pub/bash/readline-${PV}.tar.gz \
11            file://acinclude.m4"
12
13 inherit autotools 
14
15 do_configure () {
16         install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
17         autotools_do_configure
18 }
19
20 do_install () {
21         autotools_do_install
22         # Make install doesn't properly install these
23         oe_libinstall -so -C shlib libhistory ${D}/${libdir}
24         oe_libinstall -so -C shlib libreadline ${D}/${libdir}
25 }
26
27 do_stage() {
28         oe_libinstall -a libhistory ${STAGING_LIBDIR}
29         oe_libinstall -a libreadline ${STAGING_LIBDIR}
30         oe_libinstall -so -C shlib libhistory ${STAGING_LIBDIR}
31         oe_libinstall -so -C shlib libreadline ${STAGING_LIBDIR}
32
33         install -d ${STAGING_INCDIR}/readline
34         for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h \
35           rlconf.h rltypedefs.h
36         do
37                 install -m 0644 $f ${STAGING_INCDIR}/readline/
38         done
39
40 }