summaryrefslogtreecommitdiffstats
path: root/meta-efl/recipes-devtools/python/python-efl.inc
blob: 6837dab9fec0db860e3ffd5894a35bb0a169c3e4 (plain)
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
64
65
66
67
68
69
70
71
DESCRIPTION = "${PN} bindings"

LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"
# there is also GPLv3.0 in COPYING;md5=d32239bcb673463ab874e80d47fae504 but no file seems to use that

AUTHOR = "Gustavo Sverzut Barbieri <barbieri@gmail.com>"
# NOTE: Due to a bug in distutils, even if we don't use pyrex but cython,
# we need to build pyrex otherwise cython doesn't get called to build
# the extension modules.
DEPENDS = "python-cython-native python-pyrex-native python-numeric python-dbus lua efl elementary"
RDEPENDS_${PN} += "python-lang"

PROVIDES = "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas"

inherit e-base distutils pkgconfig

SRCVER = "${PV}"

SRC_URI = "\
    ${E_RELEASES}/bindings/python/${SRCNAME}-${SRCVER}.tar.gz \
"
S = "${WORKDIR}/${SRCNAME}-${SRCVER}"

do_install_append() {
    # drop all .pyo, pyc files
    find ${D}${libdir}/${PYTHON_DIR}/site-packages -name \*.pyo -o -name \*.pyc | xargs rm -f
}

PACKAGES += "python-ecore python-eldbus python-edje python-elementary python-emotion python-evas python-ethumb ${PN}-examples"

FILES_${PN} = " \
    ${libdir}/${PYTHON_DIR}/site-packages/python_efl*egg-info \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/eo.so \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/utils \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/__init__.py \
"
FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug"
FILES_${PN}-dev += "${libdir}/${PYTHON_DIR}/site-packages/*/*.la"

FILES_${PN}-examples = "${datadir}/${PN}/examples"

FILES_python-ecore = " \
    ${libdir}/${PYTHON_DIR}/site-packages/ecore/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore*.so \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/ecore \
"
FILES_python-eldbus = " \
    ${libdir}/${PYTHON_DIR}/site-packages/e_dbus/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/dbus_mainloop.so \
"
FILES_python-edje = " \
    ${libdir}/${PYTHON_DIR}/site-packages/edje/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/edje*.so \
"
FILES_python-elementary = " \
    ${libdir}/${PYTHON_DIR}/site-packages/elementary/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/elementary/ \
"
FILES_python-emotion = " \
    ${libdir}/${PYTHON_DIR}/site-packages/emotion/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/emotion.so \
"
FILES_python-evas = " \
    ${libdir}/${PYTHON_DIR}/site-packages/evas/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/evas.so \
"
FILES_python-ethumb = " \
    ${libdir}/${PYTHON_DIR}/site-packages/ethumb/ \
    ${libdir}/${PYTHON_DIR}/site-packages/efl/ethumb*so \
"