summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-libarchive-c_5.1.bb')
-rw-r--r--meta/recipes-devtools/python/python3-libarchive-c_5.1.bb20
1 files changed, 19 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
index 4e318e52f4..c8aff3defe 100644
--- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
+++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
@@ -5,9 +5,13 @@ HOMEPAGE = "https://github.com/Changaco/python-libarchive-c"
5LICENSE = "CC0-1.0" 5LICENSE = "CC0-1.0"
6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc" 6LIC_FILES_CHKSUM = "file://LICENSE.md;md5=bcab380227a83bc147350b40a81e6ffc"
7 7
8SRC_URI += " \
9 file://run-ptest \
10"
11
8PYPI_PACKAGE = "libarchive-c" 12PYPI_PACKAGE = "libarchive-c"
9 13
10inherit pypi setuptools3 14inherit pypi setuptools3 ptest
11 15
12SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" 16SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721"
13 17
@@ -18,4 +22,18 @@ RDEPENDS:${PN} += "\
18 python3-logging \ 22 python3-logging \
19" 23"
20 24
25RDEPENDS:${PN}-ptest += " \
26 locale-base-en-us \
27 python3-pytest \
28 python3-unittest-automake-output \
29"
30
21BBCLASSEXTEND = "native" 31BBCLASSEXTEND = "native"
32
33do_install_ptest() {
34 install -d ${D}${PTEST_PATH}/tests
35 install -d ${D}${PTEST_PATH}/libarchive
36 cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
37 cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/
38 cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst
39}