python-efl.inc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. DESCRIPTION = "${PN} bindings"
  2. LICENSE = "LGPL-3.0"
  3. LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
  4. # there is also GPLv3.0 in COPYING;md5=d32239bcb673463ab874e80d47fae504 but no file seems to use that
  5. AUTHOR = "Gustavo Sverzut Barbieri <barbieri@gmail.com>"
  6. # NOTE: Due to a bug in distutils, even if we don't use pyrex but cython,
  7. # we need to build pyrex otherwise cython doesn't get called to build
  8. # the extension modules.
  9. DEPENDS = "python-cython-native python-pyrex-native python-numeric python-dbus lua efl elementary"
  10. RDEPENDS_${PN} += "python-lang"
  11. PROVIDES = "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas"
  12. inherit e-base distutils pkgconfig
  13. SRCVER = "${PV}"
  14. SRC_URI = "\
  15. ${E_RELEASES}/bindings/python/${SRCNAME}-${SRCVER}.tar.gz \
  16. "
  17. S = "${WORKDIR}/${SRCNAME}-${SRCVER}"
  18. do_install_append() {
  19. # drop all .pyo, pyc files
  20. find ${D}${libdir}/${PYTHON_DIR}/site-packages -name \*.pyo -o -name \*.pyc | xargs rm -f
  21. }
  22. PACKAGES += "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas python-ethumb ${PN}-examples"
  23. FILES_${PN} = " \
  24. ${libdir}/${PYTHON_DIR}/site-packages/python_efl*egg-info \
  25. ${libdir}/${PYTHON_DIR}/site-packages/efl/eo.so \
  26. ${libdir}/${PYTHON_DIR}/site-packages/efl/utils \
  27. ${libdir}/${PYTHON_DIR}/site-packages/efl/__init__.py \
  28. "
  29. FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug"
  30. FILES_${PN}-dev += "${libdir}/${PYTHON_DIR}/site-packages/*/*.la"
  31. FILES_${PN}-examples = "${datadir}/${PN}/examples"
  32. FILES_python-ecore = " \
  33. ${libdir}/${PYTHON_DIR}/site-packages/ecore/ \
  34. ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore*.so \
  35. ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore \
  36. "
  37. FILES_python-eldbus = " \
  38. ${libdir}/${PYTHON_DIR}/site-packages/e_dbus/ \
  39. ${libdir}/${PYTHON_DIR}/site-packages/efl/dbus_mainloop.so \
  40. "
  41. FILES_python-edje = " \
  42. ${libdir}/${PYTHON_DIR}/site-packages/edje/ \
  43. ${libdir}/${PYTHON_DIR}/site-packages/efl/edje*.so \
  44. "
  45. FILES_python-elementary = " \
  46. ${libdir}/${PYTHON_DIR}/site-packages/elementary/ \
  47. ${libdir}/${PYTHON_DIR}/site-packages/efl/elementary/ \
  48. "
  49. FILES_python-emotion = " \
  50. ${libdir}/${PYTHON_DIR}/site-packages/emotion/ \
  51. ${libdir}/${PYTHON_DIR}/site-packages/efl/emotion.so \
  52. "
  53. FILES_python-evas = " \
  54. ${libdir}/${PYTHON_DIR}/site-packages/evas/ \
  55. ${libdir}/${PYTHON_DIR}/site-packages/efl/evas.so \
  56. "
  57. FILES_python-ethumb = " \
  58. ${libdir}/${PYTHON_DIR}/site-packages/ethumb/ \
  59. ${libdir}/${PYTHON_DIR}/site-packages/efl/ethumb*so \
  60. "