mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
libterm-readkey-perl: add recipe
Term::ReadKey - A perl module for simple terminal control. It's being strongly recommended by po4a. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
c311abb43e
commit
61a2e24f60
36
meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb
Normal file
36
meta-perl/recipes-perl/libterm/libterm-readkey-perl_2.37.bb
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
SUMMARY = "Term::ReadKey - A perl module for simple terminal control."
|
||||
DESCRIPTION = "Term::ReadKey is a compiled perl module dedicated to providing simple \
|
||||
control over terminal driver modes (cbreak, raw, cooked, etc.,) support \
|
||||
for non-blocking reads, if the architecture allows, and some generalized \
|
||||
handy functions for working with terminals. One of the main goals is to \
|
||||
have the functions as portable as possible, so you can just plug in "use \
|
||||
Term::ReadKey" on any architecture and have a good likelihood of it \
|
||||
working."
|
||||
HOMEPAGE = "http://search.cpan.org/~jstowe/TermReadKey-${PV}"
|
||||
SECTION = "libraries"
|
||||
|
||||
LICENSE = "Artistic-1.0 | GPLv1+"
|
||||
LIC_FILES_CHKSUM = "file://README;md5=c275db663c8489a5709ebb22b185add5"
|
||||
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/J/JS/JSTOWE/TermReadKey-${PV}.tar.gz"
|
||||
|
||||
SRC_URI[md5sum] = "e8ea15c16333ac4f8d146d702e83cc0c"
|
||||
SRC_URI[sha256sum] = "4a9383cf2e0e0194668fe2bd546e894ffad41d556b41d2f2f577c8db682db241"
|
||||
|
||||
S = "${WORKDIR}/TermReadKey-${PV}"
|
||||
|
||||
# It needs depend on native to let dynamic loader use native modules
|
||||
# rather than target ones.
|
||||
DEPENDS = "libterm-readkey-perl-native"
|
||||
|
||||
inherit cpan
|
||||
|
||||
do_configure_append () {
|
||||
# Hack the dynamic module loader so that it use native modules since it can't load
|
||||
# the target ones.
|
||||
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
|
||||
sed -i -e "s#-I\$(INST_ARCHLIB)#-I${STAGING_BINDIR_NATIVE}/perl-native/perl/vendor_perl/${@get_perl_version(d)}#g" Makefile
|
||||
fi
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
Loading…
Reference in New Issue
Block a user