summaryrefslogtreecommitdiff
path: root/recipes/xapian
diff options
context:
space:
mode:
authorElena Grandi <elena.valhalla@gmail.com>2009-08-24 10:00:03 +0200
committerElena Grandi <elena.valhalla@gmail.com>2009-08-24 10:00:03 +0200
commit4b9209b15524615e9ebd670f04cbffa75de86388 (patch)
tree84e1d46836c992897c8d70a436baa7a12f4d9666 /recipes/xapian
parent5e3196b053fef5099f0def4c6bdc858e8930ac3b (diff)
xapian-bindings-python: new recipe
Diffstat (limited to 'recipes/xapian')
-rw-r--r--recipes/xapian/xapian-bindings-python_1.0.14.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/xapian/xapian-bindings-python_1.0.14.bb b/recipes/xapian/xapian-bindings-python_1.0.14.bb
new file mode 100644
index 0000000000..665cd58913
--- /dev/null
+++ b/recipes/xapian/xapian-bindings-python_1.0.14.bb
@@ -0,0 +1,42 @@
+DESCRIPTION = "Open Source Search Engine Library python bindings"
+HOMEPAGE = "http://xapian.org"
+SECTION = "devel/libs"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "xapian-core"
+PR = "r0"
+
+SRC_URI = "http://www.oligarchy.co.uk/xapian/${PV}/xapian-bindings-${PV}.tar.gz"
+
+S = "${WORKDIR}/xapian-bindings-${PV}"
+
+inherit autotools pkgconfig distutils-base
+
+export XAPIAN_CONFIG = "${STAGING_BINDIR_NATIVE}/xapian-config"
+
+EXTRA_OECONF = "--with-python --without-php --without-ruby --without-tcl \
+ --without-csharp --without-java"
+
+do_configure () {
+ BUILD_SYS=${BUILD_SYS} HOST_SYS=${MULTIMACH_HOST_SYS} \
+ autotools_do_configure
+}
+
+# we don't want make to generate pyc and pyo files, but make install
+# expects them later
+do_compile() {
+ oe_runmake PYTHON=true
+ touch ${S}/python/xapian.pyc
+ touch ${S}/python/xapian.pyo
+}
+
+# workaround for bad installation destination and removal of fake .py? files
+do_install_append() {
+ mv ${D}/${STAGING_DIR_HOST}/usr/* ${D}/usr/
+ rm ${D}/usr/lib/python2.6/site-packages/xapian.py?
+}
+
+do_stage () {
+ autotools_stage_all
+}
+