aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/readline/readline_6.1.bb
blob: c9f0c58c24448d598e67da668a504018823d0fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DESCRIPTION = "The GNU Readline library provides a set of functions for use by applications that allow users to edit \
command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes  \
additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those   \
lines, and perform csh-like history expansion on previous commands."
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv3+"
DEPENDS = "ncurses"
LEAD_SONAME = "libreadline.so"

PKGV = "${PV}+p2"
PR = "r1"

# Don't bring it in silently because there was a switch from GPLv2
# to GPLv3.  It might require newer ncurses 5.7 too which are not
# preferred by default.
DEFAULT_PREFERENCE = "-1"

SRC_URI = "${GNU_MIRROR}/readline/readline-${PV}.tar.gz;name=tarball \
  ${GNU_MIRROR}/readline/readline-${PV}-patches/readline61-001;striplevel=0;name=patch001;apply=yes \
  ${GNU_MIRROR}/readline/readline-${PV}-patches/readline61-002;striplevel=0;name=patch002;apply=yes \
  file://libs.patch \
  file://acinclude.m4"
S = "${WORKDIR}/readline-${PV}"

EXTRA_OECONF = "--with-curses --enable-multibyte"

inherit autotools

PACKAGES += "${PN}-examples"

FILES_${PN} = "${libdir}/*.so.*"
FILES_${PN}-examples = "${datadir}/readline/*.c"


do_configure_prepend () {
    install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
}

BBCLASSEXTEND = "native"

##############

SRC_URI[tarball.md5sum] = "fc2f7e714fe792db1ce6ddc4c9fb4ef3"
SRC_URI[tarball.sha256sum] = "f0caf608c06ccd6d56b3bee1843458d509c53f9b53dffffe07cc11d8f03fa969"

SRC_URI[patch001.md5sum] = "c642f2e84d820884b0bf9fd176bc6c3f"
SRC_URI[patch001.sha256sum] = "9adbc791c0b76d4f161623ad9e4a5938d763bf4067d59d180312d620d7c94dde"

SRC_URI[patch002.md5sum] = "1a76781a1ea734e831588285db7ec9b1"
SRC_URI[patch002.sha256sum] = "a19519cd56bf3c55d2ce226b70bae1a962ff0f40e2478d090dd12b6624c23d62"