blob: 67834bdd588ad5b817641e7cc0f337cff4a709af [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001SUMMARY = "Text file viewer similar to more"
2DESCRIPTION = "Less is a program similar to more, i.e. a terminal \
3based program for viewing text files and the output from other \
4programs. Less offers many features beyond those that more does."
5HOMEPAGE = "http://www.greenwoodsoftware.com/"
6SECTION = "console/utils"
7
Andrew Geissler9aee5002022-03-30 16:27:02 +00008# (GPL-2.0-or-later (<< 418), GPL-3.0-or-later (>= 418)) | less
Andrew Geissler595f6302022-01-24 19:11:47 +00009# Including email author giving permissing to use BSD
10#
11# From: Mark Nudelman <markn@greenwoodsoftware.com>
12# To: Elizabeth Flanagan <elizabeth.flanagan@intel.com
13# Date: 12/19/11
14#
15# Hi Elizabeth,
16# Using a generic BSD license for less is fine with me.
17# Thanks,
18#
19# --Mark
20#
21
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000022LICENSE = "GPL-3.0-or-later | BSD-2-Clause"
Andrew Geissler595f6302022-01-24 19:11:47 +000023LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \
Patrick Williamse760df82023-05-26 11:10:49 -050024 file://LICENSE;md5=1b2446f5c8632bf63a97d7a49750e1c6 \
Andrew Geissler595f6302022-01-24 19:11:47 +000025 "
26DEPENDS = "ncurses"
27
Andrew Geissler5082cc72023-09-11 08:41:39 -040028SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \
29 file://run-ptest \
30 "
Andrew Geissler595f6302022-01-24 19:11:47 +000031
Andrew Geissler5082cc72023-09-11 08:41:39 -040032SRC_URI[sha256sum] = "2911b5432c836fa084c8a2e68f6cd6312372c026a58faaa98862731c8b6052e8"
Andrew Geissler595f6302022-01-24 19:11:47 +000033
34UPSTREAM_CHECK_URI = "http://www.greenwoodsoftware.com/less/download.html"
Andrew Geissler595f6302022-01-24 19:11:47 +000035
Andrew Geissler5082cc72023-09-11 08:41:39 -040036inherit autotools ptest update-alternatives
37
38EXTRA_OEMAKE += " LESSTEST=1"
39
Andrew Geissler595f6302022-01-24 19:11:47 +000040inherit autotools update-alternatives
41
Andrew Geissler5082cc72023-09-11 08:41:39 -040042do_compile_ptest () {
43 cd ${S}/lesstest
44 oe_runmake
45}
46
Andrew Geissler595f6302022-01-24 19:11:47 +000047do_install () {
48 oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install
49}
50
Andrew Geissler5082cc72023-09-11 08:41:39 -040051do_install_ptest () {
52 cp ${S}/lesstest/lesstest ${D}${PTEST_PATH}
53 cp ${S}/lesstest/runtest ${D}${PTEST_PATH}
54 cp ${S}/lesstest/lt_screen ${D}${PTEST_PATH}
55 cp -r ${S}/lesstest/lt ${D}${PTEST_PATH}
56}
57
58RDEPENDS:${PN}-ptest:append = " perl-module-getopt-std perl-module-cwd locale-base-en-us"
59
Andrew Geissler595f6302022-01-24 19:11:47 +000060ALTERNATIVE:${PN} = "less"
61ALTERNATIVE_PRIORITY = "100"