From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/shopper/shopper-1.2.1/gcc3.patch | 11 +++++++++ recipes/shopper/shopper-1.2.1/path_fix.patch | 23 ++++++++++++++++++ recipes/shopper/shopper_1.2.1.bb | 36 ++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 recipes/shopper/shopper-1.2.1/gcc3.patch create mode 100644 recipes/shopper/shopper-1.2.1/path_fix.patch create mode 100644 recipes/shopper/shopper_1.2.1.bb (limited to 'recipes/shopper') diff --git a/recipes/shopper/shopper-1.2.1/gcc3.patch b/recipes/shopper/shopper-1.2.1/gcc3.patch new file mode 100644 index 0000000000..940b4ea93a --- /dev/null +++ b/recipes/shopper/shopper-1.2.1/gcc3.patch @@ -0,0 +1,11 @@ +--- Shopper/shoppingitem.h.orig 2004-03-07 12:02:51.087057272 +0000 ++++ Shopper/shoppingitem.h 2004-03-07 12:03:09.285290720 +0000 +@@ -33,7 +33,7 @@ + + public: + ShoppingItemCheckBox (const QString & text, QWidget * parent, +- const char * name=0 ); ++ const char * name ); + signals: + void edit(); + diff --git a/recipes/shopper/shopper-1.2.1/path_fix.patch b/recipes/shopper/shopper-1.2.1/path_fix.patch new file mode 100644 index 0000000000..d8142c7b22 --- /dev/null +++ b/recipes/shopper/shopper-1.2.1/path_fix.patch @@ -0,0 +1,23 @@ +--- Shopper/shoplist.cpp 2008-11-17 21:09:26.000000000 +0000 ++++ Shopper/shoplist.cpp 2008-11-17 22:21:12.000000000 +0000 +@@ -38,6 +38,7 @@ + #include + #include + ++#include + + // TODO: Somewhere it should say: + // if (mode == ShoppingItem::Left && nothing_left) { +@@ -229,6 +230,12 @@ + QString fileName = Global::applicationFileName("ShoppingListQt", "shoppinglist.xml"); + + QFile file( fileName ); ++ if ( ! file.exists() ) { ++ // Ugly hack ++ QString cmd = QString("cp " SHOPPER_DATADIR "/shoppinglist.xml ") + fileName; ++ system(cmd); ++ } ++ + _startCategory = static_cast(_showAllAction); + // If there's a file - read it. If not then we drop through to do + // other initialisation. diff --git a/recipes/shopper/shopper_1.2.1.bb b/recipes/shopper/shopper_1.2.1.bb new file mode 100644 index 0000000000..d84af43877 --- /dev/null +++ b/recipes/shopper/shopper_1.2.1.bb @@ -0,0 +1,36 @@ +DESCRIPTION = "Shopping list manager" +SECTION = "opie/applications" +PRIORITY = "optional" +LICENSE = "GPL" + +PR = "r1" + +SRC_URI = "${SOURCEFORGE_MIRROR}/zaurus-shopper/Shopper-${PV}.tar.gz \ + file://gcc3.patch;patch=1 \ + file://path_fix.patch;patch=1" +S = "${WORKDIR}/Shopper" + +inherit palmtop + +SHOPPER_DATADIR = "${palmtopdir}/share/shopper" +CXXFLAGS_append += " -DSHOPPER_DATADIR='"${SHOPPER_DATADIR}"' " + +QMAKE_PROFILES = "Shopper.pro" + +pkg_postinst() { + /opt/QtPalmtop/bin/qcop QPE/System "linkChanged(QString)" 2>/dev/null + if [ -n "$D" ]; then false; fi +} + +do_install() { + install -d ${D}${palmtopdir}/bin \ + ${D}${palmtopdir}/apps/Applications \ + ${D}${palmtopdir}/pics \ + ${D}${palmtopdir}/help/html \ + ${D}${SHOPPER_DATADIR} + install -m 0755 ${S}/Shopper ${D}${palmtopdir}/bin/ + install -m 0644 ${S}/Shopper.desktop ${D}${palmtopdir}/apps/Applications/ + install -m 0644 ${S}/Shopper.png ${D}${palmtopdir}/pics/ + install -m 0644 ${S}/Shopper.html ${D}${palmtopdir}/help/html/ + install -m 0644 ${S}/shoppinglist.xml ${D}${SHOPPER_DATADIR}/shoppinglist.xml +} -- cgit v1.2.3