Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Serial Port Support for Python" |
| 2 | LICENSE = "BSD-3-Clause" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d476d94926db6e0008a5b3860d1f5c0d" |
| 4 | |
| 5 | SRC_URI[md5sum] = "ed6183b15519a0ae96675e9c3330c69b" |
| 6 | SRC_URI[sha256sum] = "6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627" |
| 7 | |
| 8 | inherit pypi setuptools3 ptest |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | |
| 10 | do_install_append() { |
| 11 | rm -f ${D}${bindir}/miniterm.py |
| 12 | rmdir ${D}${bindir} |
| 13 | } |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 14 | |
| 15 | PACKAGES =+ "${PN}-java ${PN}-osx ${PN}-win32 ${PN}-tools" |
| 16 | |
| 17 | FILES_${PN}-java = " \ |
| 18 | ${PYTHON_SITEPACKAGES_DIR}/serial/*java* \ |
| 19 | ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*java* \ |
| 20 | " |
| 21 | |
| 22 | FILES_${PN}-osx = " \ |
| 23 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*osx* \ |
| 24 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*osx* \ |
| 25 | " |
| 26 | |
| 27 | FILES_${PN}-win32 = " \ |
| 28 | ${PYTHON_SITEPACKAGES_DIR}/serial/*serialcli* \ |
| 29 | ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*serialcli* \ |
| 30 | ${PYTHON_SITEPACKAGES_DIR}/serial/*win32* \ |
| 31 | ${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*win32* \ |
| 32 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/miniterm* \ |
| 33 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/miniterm* \ |
| 34 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/*windows* \ |
| 35 | ${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*windows* \ |
| 36 | " |
| 37 | |
| 38 | RDEPENDS_${PN} = "\ |
| 39 | ${PYTHON_PN}-fcntl \ |
| 40 | ${PYTHON_PN}-io \ |
| 41 | ${PYTHON_PN}-logging \ |
| 42 | ${PYTHON_PN}-netclient \ |
| 43 | ${PYTHON_PN}-numbers \ |
| 44 | ${PYTHON_PN}-shell \ |
| 45 | ${PYTHON_PN}-stringold \ |
| 46 | ${PYTHON_PN}-threading \ |
| 47 | " |
| 48 | |
| 49 | BBCLASSEXTEND = "native nativesdk" |
| 50 | |
| 51 | SRC_URI += " \ |
| 52 | file://run-ptest \ |
| 53 | " |
| 54 | |
| 55 | RDEPENDS_${PN}-ptest += " \ |
| 56 | ${PYTHON_PN}-pytest \ |
| 57 | " |
| 58 | |
| 59 | do_install_ptest() { |
| 60 | install -d ${D}${PTEST_PATH}/test |
| 61 | cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/ |
| 62 | } |