From 6a0cd47ccfd2562afdd1ffe6e58c67b35d9da7fb Mon Sep 17 00:00:00 2001 From: espie Date: Sat, 16 Jul 2005 12:33:50 +0000 Subject: [PATCH] japanese handwritten recognition, poor substitute for the rocking linux zaurus IM. --- japanese/kanjipad/Makefile | 29 ++++++++++++++++++++++ japanese/kanjipad/distinfo | 4 +++ japanese/kanjipad/patches/patch-kanjipad_c | 23 +++++++++++++++++ japanese/kanjipad/pkg/DESCR | 0 japanese/kanjipad/pkg/PLIST | 7 ++++++ 5 files changed, 63 insertions(+) create mode 100644 japanese/kanjipad/Makefile create mode 100644 japanese/kanjipad/distinfo create mode 100644 japanese/kanjipad/patches/patch-kanjipad_c create mode 100644 japanese/kanjipad/pkg/DESCR create mode 100644 japanese/kanjipad/pkg/PLIST diff --git a/japanese/kanjipad/Makefile b/japanese/kanjipad/Makefile new file mode 100644 index 00000000000..c194a55cfd8 --- /dev/null +++ b/japanese/kanjipad/Makefile @@ -0,0 +1,29 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/07/16 12:33:50 espie Exp $ + +COMMENT='japanese handwriting recognition' +CATEGORIES=japanese +HOMEPAGE=http://www.gtk.org/~otaylor/kanjipad/ + +DISTNAME=kanjipad-1.2.1 +MASTER_SITES=ftp://ftp.gtk.org/pub/users/otaylor/kanjipad + +# GPL +PERMIT_PACKAGE_FTP=Yes +PERMIT_PACKAGE_CDROM=Yes +PERMIT_DISTFILES_FTP=Yes +PERMIT_DISTFILES_CDROM=Yes + +LIB_DEPENDS=gmodule,gtk,gdk::x11/gtk+ \ + glib::devel/glib + +MODULES=gettext +WANTLIB= c Xext Xi X11 m + +MAKE_FLAGS=OPTIMIZE='${CFLAGS}' PREFIX=${PREFIX} +FAKE_FLAGS=PREFIX=${WRKINST}${TRUEPREFIX} OPTIMIZE='${CFLAGS}' + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/kanjipad + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/kanjipad + +.include diff --git a/japanese/kanjipad/distinfo b/japanese/kanjipad/distinfo new file mode 100644 index 00000000000..1cde531b1b0 --- /dev/null +++ b/japanese/kanjipad/distinfo @@ -0,0 +1,4 @@ +MD5 (kanjipad-1.2.1.tar.gz) = df12d493b4bdb3defdff3d790b689b74 +RMD160 (kanjipad-1.2.1.tar.gz) = 8fade0f6efb5d0e02715c7f8ea7973f23b36d0d1 +SHA1 (kanjipad-1.2.1.tar.gz) = 8ddc4222386feeb184dae4c57dc7ec3e922adfbc +SIZE (kanjipad-1.2.1.tar.gz) = 74287 diff --git a/japanese/kanjipad/patches/patch-kanjipad_c b/japanese/kanjipad/patches/patch-kanjipad_c new file mode 100644 index 00000000000..b5cd74fa086 --- /dev/null +++ b/japanese/kanjipad/patches/patch-kanjipad_c @@ -0,0 +1,23 @@ +$OpenBSD: patch-kanjipad_c,v 1.1.1.1 2005/07/16 12:33:50 espie Exp $ +--- kanjipad.c.orig Sat Jul 16 14:19:07 2005 ++++ kanjipad.c Sat Jul 16 14:19:51 2005 +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + + #include "kanjipad.h" +@@ -393,9 +394,9 @@ init_engine() + dup2 (out_fd[1], STDOUT_FILENO); + + if (data_file) +- execlp ("kpengine","kpengine","--data-file", data_file, NULL); ++ execlp ("kpengine","kpengine","--data-file", data_file, (char *)0); + else +- execlp ("kpengine","kpengine", NULL); ++ execlp ("kpengine","kpengine", (char *)0); + + g_error ("Couldn't exec kpengine: %s", g_strerror(errno)); + diff --git a/japanese/kanjipad/pkg/DESCR b/japanese/kanjipad/pkg/DESCR new file mode 100644 index 00000000000..e69de29bb2d diff --git a/japanese/kanjipad/pkg/PLIST b/japanese/kanjipad/pkg/PLIST new file mode 100644 index 00000000000..db4399da65f --- /dev/null +++ b/japanese/kanjipad/pkg/PLIST @@ -0,0 +1,7 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/07/16 12:33:50 espie Exp $ +bin/kanjipad +bin/kpengine +share/doc/kanjipad/ +share/doc/kanjipad/README +share/kanjipad/ +share/kanjipad/jdata.dat