[meta-python] python3-xmodem: Move docs to /usr/share/doc

Message ID 20220301205525.2264936-1-raj.khem@gmail.com
State New
Headers show
Series [meta-python] python3-xmodem: Move docs to /usr/share/doc | expand

Commit Message

Khem Raj March 1, 2022, 8:55 p.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../recipes-devtools/python/python3-xmodem_0.4.6.bb        | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-xmodem_0.4.6.bb b/meta-python/recipes-devtools/python/python3-xmodem_0.4.6.bb
index 9d722b84f6..6df392e2d6 100644
--- a/meta-python/recipes-devtools/python/python3-xmodem_0.4.6.bb
+++ b/meta-python/recipes-devtools/python/python3-xmodem_0.4.6.bb
@@ -7,8 +7,13 @@  SRC_URI[sha256sum] = "089737298f5738eabc43f2519efdc80b402693768f16383f7013b9e6f8
 
 inherit pypi setuptools3
 
+do_install:append() {
+    install -d ${D}${docdir}/${PN}
+    mv ${D}/usr/doc/* ${D}${docdir}/${PN}/
+    rmdir ${D}/usr/doc
+}
+
 RDEPENDS:${PN} += " \
     ${PYTHON_PN}-logging \
 "
-
 BBCLASSEXTEND = "native nativesdk"