diff options
Diffstat (limited to 'meta/recipes-extended/less/less_678.bb')
| -rw-r--r-- | meta/recipes-extended/less/less_678.bb | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/recipes-extended/less/less_678.bb b/meta/recipes-extended/less/less_678.bb new file mode 100644 index 0000000000..87ec6c92ca --- /dev/null +++ b/meta/recipes-extended/less/less_678.bb | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | SUMMARY = "Text file viewer similar to more" | ||
| 2 | DESCRIPTION = "Less is a program similar to more, i.e. a terminal \ | ||
| 3 | based program for viewing text files and the output from other \ | ||
| 4 | programs. Less offers many features beyond those that more does." | ||
| 5 | HOMEPAGE = "http://www.greenwoodsoftware.com/" | ||
| 6 | SECTION = "console/utils" | ||
| 7 | |||
| 8 | # (GPL-2.0-or-later (<< 418), GPL-3.0-or-later (>= 418)) | less | ||
| 9 | # 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 | |||
| 22 | LICENSE = "GPL-3.0-or-later | BSD-2-Clause" | ||
| 23 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464 \ | ||
| 24 | file://LICENSE;md5=8051a271adb36d1462531a3b40c22878 \ | ||
| 25 | " | ||
| 26 | DEPENDS = "ncurses" | ||
| 27 | |||
| 28 | SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz \ | ||
| 29 | file://run-ptest \ | ||
| 30 | " | ||
| 31 | |||
| 32 | SRC_URI[sha256sum] = "4c085364f3028290d34647df27f56018c365dc4c0092ab7de74ed8fe89014fe7" | ||
| 33 | |||
| 34 | UPSTREAM_CHECK_URI = "http://www.greenwoodsoftware.com/less/download.html" | ||
| 35 | |||
| 36 | inherit autotools ptest update-alternatives | ||
| 37 | |||
| 38 | EXTRA_OEMAKE += " LESSTEST=1" | ||
| 39 | |||
| 40 | inherit autotools update-alternatives | ||
| 41 | |||
| 42 | do_compile_ptest () { | ||
| 43 | cd ${S}/lesstest | ||
| 44 | oe_runmake | ||
| 45 | } | ||
| 46 | |||
| 47 | do_install () { | ||
| 48 | oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install | ||
| 49 | } | ||
| 50 | |||
| 51 | do_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 | |||
| 58 | RDEPENDS:${PN}-ptest:append = " perl-module-getopt-std perl-module-cwd perl-module-file-basename locale-base-en-us" | ||
| 59 | |||
| 60 | ALTERNATIVE:${PN} = "less" | ||
| 61 | ALTERNATIVE_PRIORITY = "100" | ||
