add python-sword, python bindings for the sword document reader library
authorMichael Lauer <mickey@vanille-media.de>
Sun, 11 Sep 2005 18:07:19 +0000 (18:07 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 11 Sep 2005 18:07:19 +0000 (18:07 +0000)
patch courtesy Matt Reimer, thanks.

packages/meta/task-python-everything_1.0.0.bb [moved from packages/meta/task-python-everything_0.9.2.bb with 98% similarity]
packages/meta/task-python-sharprom_1.0.0.bb [moved from packages/meta/task-python-sharprom_0.9.0.bb with 97% similarity]
packages/python/python-sword_1.5.8.bb [new file with mode: 0644]

@@ -2,7 +2,7 @@ DESCRIPTION= "Everything Python"
 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
 HOMEPAGE = "http://www.vanille.de/projects/python.spy"
 LICENSE = "MIT"
-PR = "ml2"
+PR = "ml0"
 
 DEPENDS = "\
                python-ao               \
@@ -51,6 +51,7 @@ DEPENDS = "\
                python-sgmlop           \
                python-snmplib          \
                python-soappy           \
+               python-sword            \
                python-pysqlite         \
                python-pysqlite2        \
                python-tlslite          \
similarity index 97%
rename from packages/meta/task-python-sharprom_0.9.0.bb
rename to packages/meta/task-python-sharprom_1.0.0.bb
index 12009b4..349a404 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION= "Everything Python for SharpROM"
 MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
 HOMEPAGE = "http://www.vanille.de/projects/python.spy"
 LICENSE = "MIT"
-PR = "ml4"
+PR = "ml0"
 
 NONWORKING = "\
                python-codes            \
@@ -50,6 +50,7 @@ DEPENDS = "\
                python-sip              \
                python-snmplib          \
                python-soappy           \
+               python-sword            \
                python-tlslite          \
                python-urwid            \
                python-vmaps            \
diff --git a/packages/python/python-sword_1.5.8.bb b/packages/python/python-sword_1.5.8.bb
new file mode 100644 (file)
index 0000000..ddbebb5
--- /dev/null
@@ -0,0 +1,31 @@
+DESCRIPTION = "Python bindings for the sword library"
+SECTION = "devel/python"
+PRIORITY = "optional"
+MAINTAINER = "Matt Reimer <mreimer@vpop.net>"
+LICENSE = "GPL"
+RDEPENDS = "python-core sword"
+DEPENDS = "sword-${PV} swig-native"
+SRCNAME = "sword"
+PR = "r0"
+
+SRC_URI = "http://crosswire.org/ftpmirror/pub/sword/source/v1.5/sword-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}/bindings/swig/package"
+
+EXTRA_OECONF = "--with-sword-dir=${STAGING_DIR}/${HOST_SYS}"
+
+inherit distutils autotools
+
+PARALLEL_MAKE = ""
+
+do_configure_prepend() {
+       ./autogen.sh
+}
+
+do_compile() {
+        oe_runmake BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} pythonswig python_make
+}
+
+do_install() {
+       cd ${S}/python
+       distutils_do_install
+}