irk: cleaned build of it
authorMarcin Juszkiewicz <hrw@openembedded.org>
Wed, 25 Jan 2006 21:10:55 +0000 (21:10 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 25 Jan 2006 21:10:55 +0000 (21:10 +0000)
- moved common code to irk.inc
- irk renamed to irk-targus (as it handle Pocketop and Targus keyboard)
- irk-targus and irk-belkin both conflicts/replaces each other

packages/irk/irk-belkin_0.11.bb
packages/irk/irk-targus_0.11.0.bb [new file with mode: 0644]
packages/irk/irk.inc [moved from packages/irk/irk_0.11.bb with 57% similarity]

index a8d6056..9710e71 100644 (file)
@@ -1,31 +1,9 @@
-DESCRIPTION = "IRK provides a Qtopia/Opie Input Method plugin that allows you to use external infrared keyboards with the Zaurus. (version with Belkin support instead of Targus)"
-SECTION = "opie/inputmethods"
-PRIORITY = "optional"
-MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
-LICENSE = "GPL"
-DEPENDS = "virtual/libqpe lirc"
-RDEPENDS = "lirc"
-RPROVIDES = "irk"
-RCONFLICTS = "irk"
-RREPLACES = "irk"
-PR = "r1"
+include irk.inc
+
+DESCRIPTION += "(version with Belkin support)"
+RCONFLICTS = "irk-targus"
+RREPLACES = "irk-targus"
+PR = "r2"
 
 SRC_URI = "http://kopsisengineering.com/irk-current.tgz \
            file://install-default-conf.patch;patch=1"
-S = "${WORKDIR}/irk"
-
-inherit palmtop
-
-EXTRA_QMAKEVARS_POST = "CONFIG-=qtopia INCLUDEPATH+=${STAGING_INCDIR}/lirc"
-
-do_install() {
-       install -d ${D}${sysconfdir}/
-       install -d ${D}${palmtopdir}/etc/skel/
-       install -d ${D}${palmtopdir}/plugins/inputmethods/
-
-       install -m 0644 chicony.conf ${D}${sysconfdir}/lircd.conf
-       install -m 0644 IRK.conf ${D}${palmtopdir}/etc/skel/
-       oe_libinstall -so libirk ${D}${palmtopdir}/plugins/inputmethods
-}
-
-FILES_${PN} += "${sysconfdir}"
diff --git a/packages/irk/irk-targus_0.11.0.bb b/packages/irk/irk-targus_0.11.0.bb
new file mode 100644 (file)
index 0000000..d7ba4a7
--- /dev/null
@@ -0,0 +1,10 @@
+include irk.inc
+
+DESCRIPTION += "(version with Targus support)"
+HOMEPAGE = "http://angela1.data-uncertain.co.uk/~zaurus/irk.php"
+
+RCONFLICTS = "irk-belkin"
+RREPLACES = "irk-belkin"
+
+SRC_URI = "http://angela1.data-uncertain.co.uk/~zaurus/irk-${PV}.tgz \
+           file://install-default-conf.patch;patch=1"
similarity index 57%
rename from packages/irk/irk_0.11.bb
rename to packages/irk/irk.inc
index d210298..c988cda 100644 (file)
@@ -1,16 +1,10 @@
 DESCRIPTION = "IRK provides a Qtopia/Opie Input Method plugin that allows you to use external infrared keyboards with the Zaurus."
 SECTION = "opie/inputmethods"
 PRIORITY = "optional"
-MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
 LICENSE = "GPL"
 HOMEPAGE = "http://angela1.data-uncertain.co.uk/~zaurus/irk.php"
 DEPENDS = "virtual/libqpe lirc"
-RCONFLICTS = "irk-belkin"
-RREPLACES = "irk-belkin"
-PR = "r2"
-REALV = "0.11.0"
 
-SRC_URI = "http://angela1.data-uncertain.co.uk/~zaurus/irk-${REALV}.tgz"
 S = "${WORKDIR}/irk"
 
 inherit palmtop
@@ -18,14 +12,13 @@ inherit palmtop
 EXTRA_QMAKEVARS_POST = "CONFIG-=qtopia INCLUDEPATH+=${STAGING_INCDIR}/lirc"
 
 do_install() {
-       install -d ${D}${sysconfdir}
+       install -d ${D}${sysconfdir}/
+       install -d ${D}${palmtopdir}/etc/skel/
        install -d ${D}${palmtopdir}/plugins/inputmethods/
-       install -d ${D}/home/root/Settings/
 
-       install chicony.conf ${D}${sysconfdir}/lircd.conf
-       install IRK.conf ${D}${sysconfdir}
+       install -m 0644 chicony.conf ${D}${sysconfdir}/lircd.conf
+       install -m 0644 IRK.conf ${D}${palmtopdir}/etc/skel/
        oe_libinstall -so libirk ${D}${palmtopdir}/plugins/inputmethods
 }
 
-FILES_irk_append=" /etc /home/root"
-
+FILES_${PN} += "${sysconfdir}"