aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nunome
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/nunome
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
openembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.bz2
openembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.zip
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 <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/nunome')
-rw-r--r--recipes/nunome/files/nunome.patch197
-rw-r--r--recipes/nunome/files/timer.patch21
-rw-r--r--recipes/nunome/nunome_1.0.2.bb44
3 files changed, 262 insertions, 0 deletions
diff --git a/recipes/nunome/files/nunome.patch b/recipes/nunome/files/nunome.patch
new file mode 100644
index 0000000000..450e16041c
--- /dev/null
+++ b/recipes/nunome/files/nunome.patch
@@ -0,0 +1,197 @@
+# Signed off by Michael 'Mickey' Lauer <mickey@Vanille.de>
+--- nunome/dicman/nnmDicman.cpp~nunome.patch
++++ nunome/dicman/nnmDicman.cpp
+@@ -1,75 +1,4 @@
+-/*
+- $Id: nnmDicman.cpp,v 1.1.1.1 2005/06/29 22:24:22 leggewie Exp $
+-
+- Copyright (C) 2001-2002 AXE,Inc. <sg@axe-inc.co.jp>
+-
+- This file is part of Nunome-Qtopia.
+-
+- Nunome-Qtopia is free software; you can redistribute it and/or modify it
+- under the terms of the GNU General Public License as published by
+- the Free Software Foundation; either version 2, or (at your option)
+- any later version.
+-
+- Nunome-Qtopia is distributed in the hope that it will be useful, but
+- WITHOUT ANY WARRANTY; without even the implied warranty of
+- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+- GNU General Public License for more details.
+-
+- You should have received a copy of the GNU General Public License
+- along with Nunome; see the file COPYING. If not, write to
+- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+-
+-/* Dictinary maintenance tool */
+-
+-#include <qpeapplication.h>
+-#include <qlabel.h>
+-#include <qpainter.h>
+-#include <qpixmap.h>
+-#include <qwidget.h>
+-#include <qlayout.h>
+-#include <qpushbutton.h>
+-#include <qlineedit.h>
+-
+-#include <stdio.h>
+-#include <stdlib.h>
+-#include <unistd.h>
+-#include <sys/types.h>
+-#include <signal.h>
+-
+-extern "C" {
+-#include "Nnm.h"
+-#include "NnmFeature.h"
+-#include "nnmStub.h"
+-#include "NnmProto.h"
+-}
+-#include "nnmCanvas.h"
+-
+-class uiWidget : public QWidget
+-{
+-Q_OBJECT
+-
+-public:
+- uiWidget( QWidget *parent = 0, const char *name = 0, WFlags f=0 );
+-
+- int serverPID;
+- char *dictionaryPath;
+-
+-private slots:
+- void regist( void );
+- void clear( void );
+- void quit( void );
+-
+- void format( const QString & );
+-
+-private:
+- nnmCanvas *canvas;
+- QLineEdit *input;
+- ulong code;
+-
+- void updateDictionary( void );
+-};
+-
+-#include "moc_nnmDicman.cpp"
++#include "nnmDicman.h"
+
+ uiWidget::uiWidget( QWidget *parent, const char *name, WFlags f )
+ : QWidget( parent, name, f )
+--- nunome/ui/nunome.cpp~nunome.patch
++++ nunome/ui/nunome.cpp
+@@ -22,7 +22,7 @@
+
+ /* Nunome input-method */
+
+-#include <qpeapplication.h>
++#include <qpe/qpeapplication.h>
+ #include <qpainter.h>
+ #include <qpixmap.h>
+ #include <qwidget.h>
+--- nunome/ui/nunome.h~nunome.patch
++++ nunome/ui/nunome.h
+@@ -32,14 +32,14 @@
+ #include "nnmSelect.h"
+ #include "nnmSymbol.h"
+
+-#define PARAMETER_FILE_PATH "/usr/local/share/nunome/.nunome"
++#define PARAMETER_FILE_PATH "/opt/QtPalmtop/share/nunome/.nunome"
+
+-#define DEFAULT_SYSTEM_DICTIONARY "/usr/local/share/nunome/nunome_uni.dic"
+-#define DEFAULT_USER_DICTIONARY "/usr/local/share/nunome/user.dic"
++#define DEFAULT_SYSTEM_DICTIONARY "/opt/QtPalmtop/share/nunome/nunome_uni.dic"
++#define DEFAULT_USER_DICTIONARY "/opt/QtPalmtop/share/nunome/user.dic"
+ #define DEFAULT_TIMEOUT_MSEC 500
+ #define DEFAULT_LEARN_FLAG true
+-#define DEFAULT_SERVER_PROGRAM_PATH "/usr/local/share/nunome/nnmsrv"
+-#define DEFAULT_LEARN_PROGRAM_PATH "/usr/local/share/nunome/nnmDicman"
++#define DEFAULT_SERVER_PROGRAM_PATH "/opt/QtPalmtop/bin/nnmsrv"
++#define DEFAULT_LEARN_PROGRAM_PATH "/opt/QtPalmtop/bin/nnmDicman"
+
+ class nnmParameter
+ {
+--- nunome/ui/nunomeImpl.h~nunome.patch
++++ nunome/ui/nunomeImpl.h
+@@ -23,7 +23,7 @@
+ #ifndef NUNOMEIMPL_H
+ #define NUNOMEIMPL_H
+
+-#include <inputmethodinterface.h>
++#include <qpe/inputmethodinterface.h>
+
+ class Nunome;
+ class QPixmap;
+--- /dev/null
++++ nunome/dicman/nnmDicman.h
+@@ -0,0 +1,70 @@
++/*
++ $Id: nnmDicman.cpp,v 1.1.1.1 2005/06/29 22:24:22 leggewie Exp $
++
++ Copyright (C) 2001-2002 AXE,Inc. <sg@axe-inc.co.jp>
++
++ This file is part of Nunome-Qtopia.
++
++ Nunome-Qtopia is free software; you can redistribute it and/or modify it
++ under the terms of the GNU General Public License as published by
++ the Free Software Foundation; either version 2, or (at your option)
++ any later version.
++
++ Nunome-Qtopia is distributed in the hope that it will be useful, but
++ WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ GNU General Public License for more details.
++
++ You should have received a copy of the GNU General Public License
++ along with Nunome; see the file COPYING. If not, write to
++ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
++
++/* Dictinary maintenance tool */
++
++#include <qpe/qpeapplication.h>
++#include <qlabel.h>
++#include <qpainter.h>
++#include <qpixmap.h>
++#include <qwidget.h>
++#include <qlayout.h>
++#include <qpushbutton.h>
++#include <qlineedit.h>
++
++#include <stdio.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <sys/types.h>
++#include <signal.h>
++
++extern "C" {
++#include "Nnm.h"
++#include "NnmFeature.h"
++#include "nnmStub.h"
++#include "NnmProto.h"
++}
++#include "nnmCanvas.h"
++
++class uiWidget : public QWidget
++{
++Q_OBJECT
++
++public:
++ uiWidget( QWidget *parent = 0, const char *name = 0, WFlags f=0 );
++
++ int serverPID;
++ char *dictionaryPath;
++
++private slots:
++ void regist( void );
++ void clear( void );
++ void quit( void );
++
++ void format( const QString & );
++
++private:
++ nnmCanvas *canvas;
++ QLineEdit *input;
++ ulong code;
++
++ void updateDictionary( void );
++};
diff --git a/recipes/nunome/files/timer.patch b/recipes/nunome/files/timer.patch
new file mode 100644
index 0000000000..ccd65647be
--- /dev/null
+++ b/recipes/nunome/files/timer.patch
@@ -0,0 +1,21 @@
+diff --git a/ui/nnmCanvas.cpp b/ui/nnmCanvas.cpp
+index a548ddf..3b8e7d4 100755
+--- a/ui/nnmCanvas.cpp
++++ b/ui/nnmCanvas.cpp
+@@ -35,7 +35,7 @@
+
+ nnmCanvas::nnmCanvas( QWidget *parent, int timeoutParam, int initID,
+ const char *name, WFlags f )
+- : QWidget( parent, name, f )
++ : QWidget( parent, name, f ), timer(0)
+ {
+ setFixedSize( NnmCANVAS_DISPLAY_SIZE, NnmCANVAS_DISPLAY_SIZE );
+ init();
+@@ -149,7 +149,7 @@ void nnmCanvas::resizeEvent( QResizeEvent *event )
+
+ void nnmCanvas::init( void )
+ {
+- if ( timeoutMsec > 0 && timer->isActive() ) {
++ if ( timeoutMsec > 0 && timer && timer->isActive() ) {
+ timer->stop();
+ } \ No newline at end of file
diff --git a/recipes/nunome/nunome_1.0.2.bb b/recipes/nunome/nunome_1.0.2.bb
new file mode 100644
index 0000000000..bf297b0699
--- /dev/null
+++ b/recipes/nunome/nunome_1.0.2.bb
@@ -0,0 +1,44 @@
+DESCRIPTION = "Japanese input method plugin"
+HOMEPAGE = "http://www.sikigami.com/nunome-Qtopia-1.0/"
+SECTION = "opie/inputmethods"
+PRIORITY = "optional"
+LICENSE = "GPL"
+RDEPENDS = "virtual/japanese-font"
+PR = "r3"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/gakusei/nunome-${PV}.tar.bz2 \
+ file://timer.patch;patch=1 \
+ file://nunome.patch;patch=1"
+S = "${WORKDIR}/nunome"
+
+inherit opie
+
+EXTRA_QMAKEVARS_POST += "INCLUDEPATH+=${S}/Nnmlib INCLUDEPATH+=${S}/ui LIBS+=-L${S}"
+OE_QMAKE_CXXFLAGS := "${@oe_filter_out('-fno-rtti', '${OE_QMAKE_CXXFLAGS}', d)}"
+PARALLEL_MAKE = ""
+
+do_configure_prepend() {
+ sed -i -e 's,/opt/QtPalmtop/bin/,${bindir}/,g' "${S}/ui/nunome.h"
+ sed -i -e 's,/opt/QtPalmtop/,${palmtopdir}/,g' "${S}/ui/nunome.h"
+ printf "TEMPLATE=subdirs\nSUBDIRS=Nnmlib server ui dicman ui\n" >nunome.pro
+ cd Nnmlib && qmake -project -t lib && cd ../
+ cd server && qmake -project && printf "LIBS+=-lNnmlib\nTARGET=server.bin\n" >> server.pro && cd ../
+ cd dicman && qmake -project && printf "LIBS+=-lnunome -lNnmlib\nTARGET=dicman.bin\n" >> dicman.pro && cd ../
+ cd ui && qmake -project -t lib && printf "LIBS+=-lNnmlib\nTARGET=nunome\n" >> ui.pro && cd ../
+ find . -name "moc*"|xargs rm -f
+ find . -name "Makefile"|xargs rm -f
+}
+
+do_install() {
+ install -d ${D}${palmtopdir}/lib
+ install -d ${D}${bindir}
+ install -d ${D}${palmtopdir}/i18n/ja
+ install -d ${D}${palmtopdir}/share/nunome
+
+ oe_libinstall -so libNnmlib ${D}${palmtopdir}/lib
+ install -m 644 nunome_uni.dic ${D}${palmtopdir}/share/nunome
+ install -m 755 server.bin ${D}${bindir}/nnmsrv
+ install -m 755 dicman.bin ${D}${bindir}/nnmDicman
+ install -m 644 ui/nunome.qm ${D}${palmtopdir}/i18n/ja
+ install -m 644 dicman/nnmDicman.qm ${D}${palmtopdir}/i18n/ja
+}