Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 1 | # Common code for dbus applications using python. |
| 2 | |
| 3 | inherit allarch |
| 4 | inherit obmc-phosphor-systemd |
| 5 | inherit obmc-phosphor-license |
| 6 | |
| 7 | RDEPENDS_${PN} += "python-dbus python-pygobject" |
Brad Bishop | db6cd1b | 2015-10-18 22:00:15 -0400 | [diff] [blame] | 8 | INSTALL_NAME ?= "${PN}" |
| 9 | SCRIPT_NAME ?= "${INSTALL_NAME}.py" |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 10 | |
| 11 | do_install_append() { |
| 12 | # install the script |
| 13 | install -d ${D}${sbindir} |
Brad Bishop | db6cd1b | 2015-10-18 22:00:15 -0400 | [diff] [blame] | 14 | install -m 0755 ${S}/${SCRIPT_NAME} ${D}${sbindir}/${INSTALL_NAME} |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 15 | } |