clearsilver: fix various build issues
authorCliff Brake <cbrake@bec-systems.com>
Wed, 9 Sep 2009 13:20:02 +0000 (09:20 -0400)
committerCliff Brake <cbrake@bec-systems.com>
Wed, 9 Sep 2009 13:20:02 +0000 (09:20 -0400)
- fix hardcoded Python 2.4 path in patch
- fix missing env variables by inheriting
  distutils-common-base

recipes/clearsilver/clearsilver_0.10.3.bb
recipes/clearsilver/files/crosscompile.patch

index 6c41497..752223d 100644 (file)
@@ -3,16 +3,16 @@ SECTION = "net"
 DESCRIPTION = "Clearsilver is a fast, powerful, and language-neutral HTML template system"
 LICENSE = "Neotonic ClearSilver License"
 DEPENDS = "python"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.clearsilver.net/downloads/${P}.tar.gz \
            file://crosscompile.patch;patch=1"
 
 EXTRA_OECONF = "--disable-apache --disable-perl --disable-ruby --disable-java --disable-csharp --enable-gettext --with-python=${STAGING_BINDIR_NATIVE}/python"
 
-inherit autotools
+inherit autotools distutils-common-base
 
-FILES_${PN} += "/usr/lib/python*"
+export PYTHON_DIR
 
 do_compile() {
        BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} oe_runmake
index 1b73bd5..a19506d 100644 (file)
@@ -52,7 +52,7 @@ Index: clearsilver-0.10.3/python/Makefile
  TARGETS = $(NEO_UTIL_SO)
  endif
  
-+PYTHON_SITE = /usr/lib/python2.4/site-packages/
++PYTHON_SITE = /usr/lib/${PYTHON_DIR}/site-packages/
 +
  all: $(TARGETS)