Files
poky/meta/recipes-support/popt/popt_1.18.bb
Yi Zhao d37d6ad960 popt: fix override syntax in RDEPENDS
RDEPENDS_${PN}-ptest -> RDEPENDS:${PN}-ptest

(From OE-Core rev: 6168dbc9b27da1ed88c277bab6f024e6e068e685)

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 37a47bfced900c2f1e239b216d8614eb290f2f0c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22 23:46:29 +01:00

34 lines
1.2 KiB
BlitzBasic

SUMMARY = "Library for parsing command line options"
DESCRIPTION = "Popt is a C library for parsing command line parameters. Popt was heavily influenced by the getopt() and getopt_long() functions, but it improves on them by allowing more powerful argument expansion. Popt can parse arbitrary argv[] style arrays and automatically set variables based on command line arguments."
HOMEPAGE = "https://www.rpm.org/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=cb0613c30af2a8249b8dcc67d3edb06d"
DEPENDS = "virtual/libiconv"
SRC_URI = "\
http://ftp.rpm.org/popt/releases/popt-1.x/${BP}.tar.gz \
file://0001-popt-test-output-format-for-ptest.patch \
file://run-ptest \
"
SRC_URI[sha256sum] = "5159bc03a20b28ce363aa96765f37df99ea4d8850b1ece17d1e6ad5c24fdc5d1"
inherit autotools gettext ptest
RDEPENDS:${PN}-ptest += "bash"
do_compile_ptest() {
sed 's#lt-test1#test1#g' ${S}/tests/testit.sh > ${B}/tests/testit.sh
}
do_install_ptest() {
install ${B}/tests/.libs/test* ${D}/${PTEST_PATH}
install ${B}/tests/.libs/tdict ${D}/${PTEST_PATH}
install ${B}/tests/testit.sh ${D}/${PTEST_PATH}
install ${B}/tests/test-poptrc ${D}/${PTEST_PATH}
}
BBCLASSEXTEND = "native nativesdk"