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