-
Notifications
You must be signed in to change notification settings - Fork 720
/
python3-pyserial_3.5.bb
63 lines (51 loc) · 1.69 KB
/
python3-pyserial_3.5.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
SUMMARY = "Serial Port Support for Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=520e45e59fc2cf94aa53850f46b86436"
SRC_URI[sha256sum] = "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
inherit pypi setuptools3 ptest
do_install:append() {
rm -f ${D}${bindir}/pyserial-miniterm
rm -f ${D}${bindir}/pyserial-ports
rm -rf ${D}${bindir}/__pycache__
rmdir ${D}${bindir}
}
PACKAGES =+ "${PN}-java ${PN}-osx ${PN}-win32 ${PN}-tools"
FILES:${PN}-java = " \
${PYTHON_SITEPACKAGES_DIR}/serial/*java* \
${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*java* \
"
FILES:${PN}-osx = " \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/*osx* \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*osx* \
"
FILES:${PN}-win32 = " \
${PYTHON_SITEPACKAGES_DIR}/serial/*serialcli* \
${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*serialcli* \
${PYTHON_SITEPACKAGES_DIR}/serial/*win32* \
${PYTHON_SITEPACKAGES_DIR}/serial/__pycache__/*win32* \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/miniterm* \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/miniterm* \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/*windows* \
${PYTHON_SITEPACKAGES_DIR}/serial/tools/__pycache__/*windows* \
"
RDEPENDS:${PN} = "\
${PYTHON_PN}-fcntl \
${PYTHON_PN}-io \
${PYTHON_PN}-logging \
${PYTHON_PN}-netclient \
${PYTHON_PN}-numbers \
${PYTHON_PN}-shell \
${PYTHON_PN}-stringold \
${PYTHON_PN}-threading \
"
BBCLASSEXTEND = "native nativesdk"
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
${PYTHON_PN}-pytest \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/test
cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
}