summaryrefslogtreecommitdiffstats
path: root/meta-efl/recipes-devtools/python/python-efl.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-08-20 20:04:32 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-08-20 20:04:32 +0200
commitb64269b221774fe970382a62ae4b4d1b8e38edac (patch)
treeb18d6669a5a0980f263810bdb11c5746c3125de3 /meta-efl/recipes-devtools/python/python-efl.inc
parent402a0814947b310835c194b15d3b844e710dd394 (diff)
parentd19953e28e630de55caefba81571c31b6c358102 (diff)
downloadmeta-openembedded-b64269b221774fe970382a62ae4b4d1b8e38edac.tar.gz
Merge remote-tracking branch 'meta-oe-contrib/jansa/efl'
Diffstat (limited to 'meta-efl/recipes-devtools/python/python-efl.inc')
-rw-r--r--meta-efl/recipes-devtools/python/python-efl.inc41
1 files changed, 22 insertions, 19 deletions
diff --git a/meta-efl/recipes-devtools/python/python-efl.inc b/meta-efl/recipes-devtools/python/python-efl.inc
index 6ca5e3f7f4..77d4114ca7 100644
--- a/meta-efl/recipes-devtools/python/python-efl.inc
+++ b/meta-efl/recipes-devtools/python/python-efl.inc
@@ -6,8 +6,7 @@ AUTHOR = "Gustavo Sverzut Barbieri <barbieri@gmail.com>"
6# the extension modules. 6# the extension modules.
7DEPENDS = "python-cython-native python-pyrex-native python-numeric eina" 7DEPENDS = "python-cython-native python-pyrex-native python-numeric eina"
8RDEPENDS_${PN} += "python-lang" 8RDEPENDS_${PN} += "python-lang"
9PV = "0.7.3+svnr${SRCPV}" 9INC_PR = "r0"
10INC_PR = "r2"
11 10
12# necessary to let the call for python-config succeed 11# necessary to let the call for python-config succeed
13export BUILD_SYS 12export BUILD_SYS
@@ -15,29 +14,33 @@ export HOST_SYS
15 14
16inherit e-base autotools pkgconfig distutils-base 15inherit e-base autotools pkgconfig distutils-base
17 16
18SRC_URI = "${E_SVN}/trunk/BINDINGS/python;module=${SRCNAME};protocol=http" 17SRCVER = "${PV}"
19S = "${WORKDIR}/${SRCNAME}" 18
19SRC_URI = "\
20 ${E_MIRROR}/BINDINGS/python/${SRCNAME}-${SRCVER}.tar.bz2 \
21"
22S = "${WORKDIR}/${SRCNAME}-${SRCVER}"
20 23
21 24
22do_configure_prepend() { 25do_configure_prepend() {
23 # prefix CYTHON_.*_INCLUDEDIR with path to STAGING_DIR_HOST also use $PKG_CONFIG instead of pkg-config directly 26 # prefix CYTHON_.*_INCLUDEDIR with path to STAGING_DIR_HOST also use $PKG_CONFIG instead of pkg-config directly
24 sed -i "s#\`\$PKG_CONFIG --variable=includedir \"python-evas#${STAGING_DIR_HOST}\`\$PKG_CONFIG --variable=includedir \"python-evas#g" ${S}/configure.ac 27 sed -i "s#\`\$PKG_CONFIG --variable=includedir \"python-evas#${STAGING_DIR_HOST}\`\$PKG_CONFIG --variable=includedir \"python-evas#g" ${S}/configure.ac
25} 28}
26 29
27do_install_append() { 30do_install_append() {
28 if [ -e examples ]; then 31 if [ -e examples ]; then
29 for i in `find examples -name "*.edc"`; do 32 for i in `find examples -name "*.edc"`; do
30 cd ${S}/`dirname $i` 33 cd ${S}/`dirname $i`
31 echo "Generating .edj file for $i..." 34 echo "Generating .edj file for $i..."
32 edje_cc `basename $i` 35 edje_cc `basename $i`
33 echo "Removing sources in this directory..." 36 echo "Removing sources in this directory..."
34 rm -f *.edc *.png *.ttf *.jpeg 37 rm -f *.edc *.png *.ttf *.jpeg
35 done 38 done
36 cd ${S} 39 cd ${S}
37 install -d ${D}${datadir}/${PN}/ 40 install -d ${D}${datadir}/${PN}/
38 cp -a examples ${D}${datadir}/${PN}/ 41 cp -a examples ${D}${datadir}/${PN}/
39 find ${D}${datadir}/${PN}/examples -name ".svn" | xargs rm -rf 42 find ${D}${datadir}/${PN}/examples -name ".svn" | xargs rm -rf
40 fi 43 fi
41} 44}
42 45
43FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug" 46FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug"