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