[oe] [PATCH 11/23] cups: split backends and models

Otavio Salvador otavio at ossystems.com.br
Sat May 9 00:50:27 UTC 2009


Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
 recipes/cups/cups.inc       |   13 ++++++++++++-
 recipes/cups/cups_1.2.12.bb |    2 +-
 recipes/cups/cups_1.2.7.bb  |    8 ++------
 recipes/cups/cups_1.3.8.bb  |    2 +-
 4 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/recipes/cups/cups.inc b/recipes/cups/cups.inc
index 8e2a7a8..074bf83 100644
--- a/recipes/cups/cups.inc
+++ b/recipes/cups/cups.inc
@@ -62,7 +62,18 @@ python do_package_append() {
 	os.system('chmod 0511 %s/install/cups/var/run/cups/certs' % workdir)
 }
 
-PACKAGES =+ "${PN}-lib ${PN}-libimage"
+PACKAGES_DYNAMIC += "${PN}-backend-*"
+
+python populate_packages_prepend() {
+	backend_dir = bb.data.expand('${libdir}/cups/backend/', d)
+	do_split_packages(d, backend_dir, '^(.*)$', 'cups-backend-%s',
+	                  '${PN} backend for %s', prepend=True, allow_links=True)
+}
+
+FILES_${PN}-filters += "${libdir}/cups/filter/*"
+FILES_${PN}-models += "${datadir}/cups/model/*"
+
+PACKAGES =+ "${PN}-lib ${PN}-libimage ${PN}-filters ${PN}-models"
 
 FILES_${PN}-lib = "${libdir}/libcups.so.*"
 
diff --git a/recipes/cups/cups_1.2.12.bb b/recipes/cups/cups_1.2.12.bb
index 4f7d0d4..eb156d5 100644
--- a/recipes/cups/cups_1.2.12.bb
+++ b/recipes/cups/cups_1.2.12.bb
@@ -1,2 +1,2 @@
 require cups.inc
-PR = "r2"
+PR = "r3"
diff --git a/recipes/cups/cups_1.2.7.bb b/recipes/cups/cups_1.2.7.bb
index 8559bfc..b00db42 100644
--- a/recipes/cups/cups_1.2.7.bb
+++ b/recipes/cups/cups_1.2.7.bb
@@ -1,8 +1,8 @@
 DESCRIPTION = "An Internet printing system for Unix."
 SECTION = "console/utils"
 LICENSE = "GPL LGPL"
-DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
-PR = "r1"
+DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib install-native fakeroot-native"
+PR = "r2"
 
 SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
 	  "
@@ -70,7 +70,3 @@ FILES_${PN} += "${datadir}/doc/cups/images \
 		${datadir}/doc/cups/*.css \
                 ${datadir}/icons/ \
 	       "
-
-
-
-
diff --git a/recipes/cups/cups_1.3.8.bb b/recipes/cups/cups_1.3.8.bb
index 79cbc32..68a36dd 100644
--- a/recipes/cups/cups_1.3.8.bb
+++ b/recipes/cups/cups_1.3.8.bb
@@ -1,7 +1,7 @@
 require cups.inc
 
 SRC_URI += "file://use_echo_only_in_init.patch;patch=1"
-PR = "r2"
+PR = "r3"
 
 DEFAULT_PREFERENCE = "-1"
 
-- 
1.6.3.rc1.51.gea0b7





More information about the Openembedded-devel mailing list