less: cleanup update-alternatives deprecated code
(From OE-Core rev: a8ad6529b214c1c7b12dffb557d9f7afa3ee1f04) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
1d1205698f
commit
a260a6ed1b
|
@ -23,7 +23,7 @@ LICENSE = "GPLv3+ | BSD-2-Clause"
|
|||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
|
||||
file://LICENSE;md5=1237c0f825bb36122b0b2b486ffbe6be"
|
||||
DEPENDS = "ncurses"
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
SRC_URI = "http://www.greenwoodsoftware.com/${BPN}/${BPN}-${PV}.tar.gz"
|
||||
|
||||
|
@ -34,9 +34,7 @@ inherit autotools update-alternatives
|
|||
|
||||
do_install () {
|
||||
oe_runmake 'bindir=${D}${bindir}' 'mandir=${D}${mandir}' install
|
||||
mv ${D}${bindir}/less ${D}${bindir}/less.${BPN}
|
||||
}
|
||||
|
||||
ALTERNATIVE_NAME = "less"
|
||||
ALTERNATIVE_PATH = "less.${BPN}"
|
||||
ALTERNATIVE_${PN} = "less"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
|
Loading…
Reference in New Issue