[oe-commits] acid-burn : python-imaging: update to version 1.1.6 and split out . debug and docs into separate sub-packages to save space.
git version control
git at git.openembedded.org
Tue Sep 1 16:22:26 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dreambox
Commit: 00e5c225513b6a7cd91189a2c9c03146580f4c77
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=00e5c225513b6a7cd91189a2c9c03146580f4c77
Author: acid-burn <acidburn at opendreambox.org>
Date: Tue Sep 1 15:30:08 2009 +0200
python-imaging: update to version 1.1.6 and split out .debug and docs into separate sub-packages to save space.
---
packages/python/python-imaging_1.1.5.bb | 36 -----------------------
packages/python/python-imaging_1.1.6.bb | 47 +++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 36 deletions(-)
diff --git a/packages/python/python-imaging_1.1.5.bb b/packages/python/python-imaging_1.1.5.bb
deleted file mode 100644
index ae00249..0000000
--- a/packages/python/python-imaging_1.1.5.bb
+++ /dev/null
@@ -1,36 +0,0 @@
-DESCRIPTION = "Python Imaging Library"
-SECTION = "devel/python"
-PRIORITY = "optional"
-LICENSE = "GPL"
-DEPENDS = "freetype jpeg"
-RDEPENDS = "python-lang python-stringold"
-SRCNAME = "Imaging"
-
-PR = "r1"
-
-SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \
-file://path.patch;patch=1"
-
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
-inherit distutils
-
-do_compile() {
-
- export STAGING_LIBDIR=${STAGING_LIBDIR}
- export STAGING_INCDIR=${STAGING_INCDIR}
- distutils_do_compile
-}
-
-do_install() {
-
- export STAGING_LIBDIR=${STAGING_LIBDIR}
- export STAGING_INCDIR=${STAGING_INCDIR}
-
- distutils_do_install
-
- install -d ${D}${datadir}/doc/${PN}/html/
- install -m 0644 ${S}/README ${D}${datadir}/doc/${PN}/
- install -m 0644 ${S}/Docs/* ${D}${datadir}/doc/${PN}/html/
-
-}
diff --git a/packages/python/python-imaging_1.1.6.bb b/packages/python/python-imaging_1.1.6.bb
new file mode 100755
index 0000000..7c8c733
--- /dev/null
+++ b/packages/python/python-imaging_1.1.6.bb
@@ -0,0 +1,47 @@
+DESCRIPTION = "Python Imaging Library"
+SECTION = "devel/python"
+PRIORITY = "optional"
+LICENSE = "GPL"
+DEPENDS = "freetype jpeg tiff"
+RDEPENDS = "python-lang python-stringold"
+RDEPENDS_${PN}-doc = "${PN}"
+SRCNAME = "Imaging"
+PR = "ml2"
+
+SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \
+ file://path.patch;patch=1"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit distutils
+
+# Exclude debug files from the main packages
+FILES_${PN} = " \
+ ${bindir}/* \
+ ${libdir}/${PYTHON_DIR}/site-packages/PIL.pth \
+ ${libdir}/${PYTHON_DIR}/site-packages/PIL/*egg-info \
+ ${libdir}/${PYTHON_DIR}/site-packages/PIL/*.py* \
+ ${libdir}/${PYTHON_DIR}/site-packages/PIL/*.so \
+"
+
+FILES_${PN}-dbg += " \
+ ${libdir}/${PYTHON_DIR}/site-packages/PIL/.debug \
+"
+
+FILES_${PN}-doc += " \
+ ${docdir}/* \
+"
+
+do_compile() {
+ export STAGING_LIBDIR=${STAGING_LIBDIR}
+ export STAGING_INCDIR=${STAGING_INCDIR}
+ distutils_do_compile
+}
+
+do_install() {
+ export STAGING_LIBDIR=${STAGING_LIBDIR}
+ export STAGING_INCDIR=${STAGING_INCDIR}
+ distutils_do_install
+ install -d ${D}${datadir}/doc/${PN}/html/
+ install -m 0644 ${S}/README ${D}${datadir}/doc/${PN}/
+ install -m 0644 ${S}/Docs/* ${D}${datadir}/doc/${PN}/html/
+}
More information about the Openembedded-commits
mailing list