diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2012-08-20 20:04:32 +0200 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-08-20 20:04:32 +0200 |
| commit | b64269b221774fe970382a62ae4b4d1b8e38edac (patch) | |
| tree | b18d6669a5a0980f263810bdb11c5746c3125de3 /meta-efl/recipes-devtools/python/python-efl.inc | |
| parent | 402a0814947b310835c194b15d3b844e710dd394 (diff) | |
| parent | d19953e28e630de55caefba81571c31b6c358102 (diff) | |
| download | meta-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.inc | 41 |
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. |
| 7 | DEPENDS = "python-cython-native python-pyrex-native python-numeric eina" | 7 | DEPENDS = "python-cython-native python-pyrex-native python-numeric eina" |
| 8 | RDEPENDS_${PN} += "python-lang" | 8 | RDEPENDS_${PN} += "python-lang" |
| 9 | PV = "0.7.3+svnr${SRCPV}" | 9 | INC_PR = "r0" |
| 10 | INC_PR = "r2" | ||
| 11 | 10 | ||
| 12 | # necessary to let the call for python-config succeed | 11 | # necessary to let the call for python-config succeed |
| 13 | export BUILD_SYS | 12 | export BUILD_SYS |
| @@ -15,29 +14,33 @@ export HOST_SYS | |||
| 15 | 14 | ||
| 16 | inherit e-base autotools pkgconfig distutils-base | 15 | inherit e-base autotools pkgconfig distutils-base |
| 17 | 16 | ||
| 18 | SRC_URI = "${E_SVN}/trunk/BINDINGS/python;module=${SRCNAME};protocol=http" | 17 | SRCVER = "${PV}" |
| 19 | S = "${WORKDIR}/${SRCNAME}" | 18 | |
| 19 | SRC_URI = "\ | ||
| 20 | ${E_MIRROR}/BINDINGS/python/${SRCNAME}-${SRCVER}.tar.bz2 \ | ||
| 21 | " | ||
| 22 | S = "${WORKDIR}/${SRCNAME}-${SRCVER}" | ||
| 20 | 23 | ||
| 21 | 24 | ||
| 22 | do_configure_prepend() { | 25 | do_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 | ||
| 27 | do_install_append() { | 30 | do_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 | ||
| 43 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug" | 46 | FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/*.egg/*/*/.debug" |
