blob: a5368153584ff3ae3f1ed9953f429a03bd451de5 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001SUMMARY = "Python evdev lib"
2HOMEPAGE = "https://github.com/gvalkov/python-evdev"
Brad Bishop2d39a062019-10-28 08:33:36 -04003LICENSE = "BSD-3-Clause"
Brad Bishop316dfdd2018-06-25 12:45:53 -04004LIC_FILES_CHKSUM = "file://LICENSE;md5=18debddbb3f52c661a129724a883a8e2"
5
Brad Bishope42b3e32020-01-15 22:08:42 -05006FILESEXTRAPATHS_prepend := "${THISDIR}/python-evdev:"
7
8SRC_URI += " file://0001-Fix-build-on-32bit-arches-with-64bit-time_t.patch"
9
Brad Bishop868407c2019-11-04 13:24:47 -050010SRC_URI[md5sum] = "53e440943dfa2514f95b3c448d6a36cb"
11SRC_URI[sha256sum] = "b03f5e1be5b4a5327494a981b831d251a142b09e8778eda1a8b53eba91100166"
Brad Bishop316dfdd2018-06-25 12:45:53 -040012
13do_compile_prepend() {
14 rm -rf ${S}/evdev/ecodes.c
15}
16
17DISTUTILS_BUILD_ARGS = "build_ecodes --evdev-headers ${STAGING_DIR_TARGET}/usr/include/linux/input.h:${STAGING_DIR_TARGET}/usr/include/linux/input-event-codes.h"
18
19RDEPENDS_${PN} += "\
20 ${PYTHON_PN}-ctypes \
21 ${PYTHON_PN}-fcntl \
22 ${PYTHON_PN}-io \
23 ${PYTHON_PN}-shell \
24 ${PYTHON_PN}-stringold \
25 "