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.bb26
1 files changed, 25 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..8b5de01b69 100644
--- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
+++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb
@@ -5,12 +5,26 @@ 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://new-libarchive.patch \
10 file://0001-ffi-Insert-a-replacable-anchor-for-find_library.patch \
11 file://run-ptest \
12"
13
8PYPI_PACKAGE = "libarchive-c" 14PYPI_PACKAGE = "libarchive-c"
9 15
10inherit pypi setuptools3 16inherit pypi setuptools3 ptest-python-pytest
11 17
12SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" 18SRC_URI[sha256sum] = "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721"
13 19
20DEPENDS += "patchelf-native libarchive"
21# Avoid using find_library API which needs ldconfig and ld/objdump
22# https://docs.python.org/3/library/ctypes.html#ctypes-reference
23#
24do_configure:append() {
25 sed -i -e "s|@@REPLACE_FIND_LIBRARY_API@@|'${libdir}/$(patchelf --print-soname ${STAGING_LIBDIR}/libarchive.so)'|" ${S}/libarchive/ffi.py
26}
27
14RDEPENDS:${PN} += "\ 28RDEPENDS:${PN} += "\
15 libarchive \ 29 libarchive \
16 python3-ctypes \ 30 python3-ctypes \
@@ -18,4 +32,14 @@ RDEPENDS:${PN} += "\
18 python3-logging \ 32 python3-logging \
19" 33"
20 34
35RDEPENDS:${PN}-ptest += " \
36 locale-base-en-us \
37"
38
21BBCLASSEXTEND = "native" 39BBCLASSEXTEND = "native"
40
41do_install_ptest:append() {
42 install -d ${D}${PTEST_PATH}/libarchive
43 cp ${S}/libarchive/* ${D}${PTEST_PATH}/libarchive/
44 cp ${S}/README.rst ${D}${PTEST_PATH}/README.rst
45}