summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/packages/qpe-vexed
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2006-05-13 15:42:03 +0200
committerRene Wagner <rw@handhelds.org>2006-05-13 15:42:03 +0200
commit5a5346dfbec459c10d9e61e16e125b83975a1ef1 (patch)
tree342e16f3fe790d03b93294344e6154459888939f /org.handhelds.familiar/packages/qpe-vexed
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e35772d79306d1d9de19c12b23681618532d.
Diffstat (limited to 'org.handhelds.familiar/packages/qpe-vexed')
-rw-r--r--org.handhelds.familiar/packages/qpe-vexed/files/vit.patch82
-rw-r--r--org.handhelds.familiar/packages/qpe-vexed/qpe-vexed-levels_2.1Beta1.bb25
-rw-r--r--org.handhelds.familiar/packages/qpe-vexed/qpe-vexed_1.3.bb30
3 files changed, 137 insertions, 0 deletions
diff --git a/org.handhelds.familiar/packages/qpe-vexed/files/vit.patch b/org.handhelds.familiar/packages/qpe-vexed/files/vit.patch
new file mode 100644
index 0000000..c07d469
--- /dev/null
+++ b/org.handhelds.familiar/packages/qpe-vexed/files/vit.patch
@@ -0,0 +1,82 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qpe-vexed_arm/mainWidget.cpp~vit
++++ qpe-vexed_arm/mainWidget.cpp
+@@ -24,7 +24,7 @@
+ #include <qhbox.h>
+ #include <qpe/qpeapplication.h>
+
+-MainWidget::MainWidget(QWidget *parent, const char *name) : QWidget(parent, name) {
++MainWidget::MainWidget(QWidget *parent, const char *name, WFlags f) : QMainWindow(parent, name, f) {
+ this -> setBackgroundMode(PaletteButton);
+ this -> setCaption("QPE-Vexed");
+
+--- qpe-vexed_arm/mainWidget.h~vit
++++ qpe-vexed_arm/mainWidget.h
+@@ -28,7 +28,7 @@
+ #include "level.h"
+ #include "statuslabel.h"
+
+-#include <qwidget.h>
++#include <qmainwindow.h>
+ #include <qstring.h>
+
+ /*
+@@ -36,10 +36,11 @@
+ * Handles allmost all signals
+ */
+
+-class MainWidget : public QWidget {
++class MainWidget : public QMainWindow {
+ Q_OBJECT
+ public:
+- MainWidget(QWidget *parent = NULL, const char *name = NULL);
++ static QString appName() { return QString::fromLatin1("qpevexed"); }
++ MainWidget(QWidget *parent = NULL, const char *name = NULL, WFlags f = 0);
+ ~MainWidget();
+ protected:
+ void keyPressEvent(QKeyEvent*);
+--- qpe-vexed_arm/qpeVexed.cpp~vit
++++ qpe-vexed_arm/qpeVexed.cpp
+@@ -18,15 +18,8 @@
+ *
+ */
+
+-#include <qpe/qpeapplication.h>
+ #include "mainWidget.h"
++#include <opie2/oapplicationfactory.h>
+
+-int main(int argc, char **argv) {
+- QPEApplication a(argc, argv);
+-
+- MainWidget mw;
+-
+- a.setMainWidget(&mw);
+- mw.show();
+- a.exec();
+-}
++using namespace Opie::Core;
++OPIE_EXPORT_APP( OApplicationFactory<MainWidget> )
+--- qpe-vexed_arm/statuslabel.cpp~vit
++++ qpe-vexed_arm/statuslabel.cpp
+@@ -32,6 +32,6 @@
+ StatusLabel::~StatusLabel() {}
+
+ void StatusLabel::setLabel(const QString& pack, const QString& name, int num) {
+- QString s = QString::number(num);
++ QString s = QString::number(num+1);
+ setText(pack+" ("+s+"):\n\t"+name);
+ }
+--- qpe-vexed_arm/qpe-vexed.pro~vit
++++ qpe-vexed_arm/qpe-vexed.pro
+@@ -5,6 +5,6 @@
+ SOURCES = button.cpp fileiface.cpp level.cpp mainWidget.cpp menuBar.cpp playingBoard.cpp qpeVexed.cpp stone.cpp about.cpp statuslabel.cpp instruction.cpp
+ INCLUDEPATH += $(QPEDIR)/include
+ DEPENDPATH += $(QPEDIR)/include
+-LIBS += -lqpe -lqte
++LIBS += -lqpe -lqte -lopiecore2
+ #INTERFACES = board_designed.ui
+ TARGET = qpe-vexed
diff --git a/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed-levels_2.1Beta1.bb b/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed-levels_2.1Beta1.bb
new file mode 100644
index 0000000..f38c29f
--- /dev/null
+++ b/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed-levels_2.1Beta1.bb
@@ -0,0 +1,25 @@
+DESCRIPTION = "Vexed levels for qpe-vexed"
+SECTION = "opie/games"
+PRIORITY = "optional"
+MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
+LICENSE = "GPL"
+AUTHOR = "The Vexed Development Team"
+HOMEPAGE = "http://vexed.sourceforge.net/"
+PACKAGE_ARCH = "all"
+PR = "r1"
+
+SRC_URI = "cvs://anonymous@cvs.sourceforge.net/cvsroot/vexed/;module=vexed/levelpacks"
+
+S = "${WORKDIR}"
+
+do_install () {
+ install -d ${D}${palmtopdir}/etc/qpe-vexed
+
+ for level in ${WORKDIR}/levelpacks/*.ini;
+ do
+ install -m 0664 "$level" "${D}${palmtopdir}/etc/qpe-vexed/`basename "$level" .ini`.lvl";
+ done
+}
+
+FILES_${PN} = "${palmtopdir}/etc/qpe-vexed/*.lvl"
+
diff --git a/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed_1.3.bb b/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed_1.3.bb
new file mode 100644
index 0000000..f33fbe4
--- /dev/null
+++ b/org.handhelds.familiar/packages/qpe-vexed/qpe-vexed_1.3.bb
@@ -0,0 +1,30 @@
+DESCRIPTION = "Vexed clone"
+SECTION = "opie/games"
+PRIORITY = "optional"
+MAINTAINER = "Marcin Juszkiewicz <openembedded@hrw.one.pl>"
+LICENSE = "GPL"
+AUTHOR = "Alexander Hausner <Alexander.Hausner@web.de>"
+HOMEPAGE = "http://wwwcip.informatik.uni-erlangen.de/~sialhaus/qpe-vexed.html"
+DEPENDS = "qpe-vexed-levels"
+RDEPENDS = "qpe-vexed-levels"
+APPNAME = "qpe-vexed"
+APPTYPE = "binary"
+APPDESKTOP = "${S}"
+PR = "r3"
+
+SRC_URI = "http://wwwcip.informatik.uni-erlangen.de/~sialhaus/qpe-vexed_1.3_src.tar.gz \
+ file://vit.patch;patch=1"
+
+S = "${WORKDIR}/qpe-vexed_arm/"
+
+inherit opie
+
+do_install () {
+ install -d ${D}${palmtopdir}/pics/${APPNAME}/ \
+ ${D}${palmtopdir}/apps/Games/ \
+ ${D}${palmtopdir}/bin/
+
+ install -m 0644 ${S}/pkg/opt/QtPalmtop/pics/qpe-vexed.png ${D}${palmtopdir}/pics/
+ install -m 0644 ${S}/pkg/opt/QtPalmtop/pics/qpe-vexed/*.png ${D}${palmtopdir}/pics/${APPNAME}/
+ install -m 0644 ${S}/pkg/opt/QtPalmtop/pics/qpe-vexed/*.bmp ${D}${palmtopdir}/pics/${APPNAME}/
+}