glib-2.0: Clean up anonymous methods
authorRichard Purdie <richard@openedhand.com>
Mon, 20 Nov 2006 09:17:58 +0000 (09:17 +0000)
committerRichard Purdie <richard@openedhand.com>
Mon, 20 Nov 2006 09:17:58 +0000 (09:17 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@876 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/glib-2.0/glib-2.0-native_2.10.3.bb
meta/packages/glib-2.0/glib-2.0-native_2.12.0.bb
meta/packages/glib-2.0/glib-2.0.inc [new file with mode: 0644]
meta/packages/glib-2.0/glib-2.0_2.10.3.bb
meta/packages/glib-2.0/glib-2.0_2.12.0.bb
meta/packages/glib-2.0/glib-2.0_2.6.4.bb
meta/packages/glib-2.0/glib-2.0_2.8.6.bb

index 402ec2d..753e6ad 100644 (file)
@@ -20,11 +20,6 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig native gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
-
 acpaths = ""
 do_configure_prepend () {
        install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h .
index 768f277..065f5bc 100644 (file)
@@ -19,11 +19,6 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig native gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
-
 acpaths = ""
 do_configure_prepend () {
        install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h .
diff --git a/meta/packages/glib-2.0/glib-2.0.inc b/meta/packages/glib-2.0/glib-2.0.inc
new file mode 100644 (file)
index 0000000..ccbbd2b
--- /dev/null
@@ -0,0 +1,6 @@
+
+python () {
+    import bb
+    if bb.data.getVar("USE_NLS", d, 1) == "no":
+        raise bb.parse.SkipPackage("${PN} requires native language support.")
+}
index df0f3bd..799101d 100644 (file)
@@ -24,10 +24,7 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
+require glib-2.0.inc
 
 acpaths = ""
 do_configure_prepend () {
index 31d7347..ff2ff98 100644 (file)
@@ -23,10 +23,7 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
+require glib-2.0.inc
 
 acpaths = ""
 do_configure_prepend () {
index f1cb217..9295338 100644 (file)
@@ -24,10 +24,7 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
+require glib-2.0.inc
 
 acpaths = ""
 do_configure_prepend () {
index 3c10624..654b991 100644 (file)
@@ -24,10 +24,7 @@ S = "${WORKDIR}/glib-${PV}"
 
 inherit autotools pkgconfig gettext
 
-python () {
-       if bb.data.getVar("USE_NLS", d, 1) == "no":
-               raise bb.parse.SkipPackage("${PN} requires native language support.")
-}
+require glib-2.0.inc
 
 acpaths = ""
 do_configure_prepend () {