aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-02-05 18:28:27 +0800
committermiwi <miwi@FreeBSD.org>2011-02-05 18:28:27 +0800
commitd8c35f16133230ec3d0ff32fa280e3fa66e45a1a (patch)
tree66e19460d8eff64f9978a5db70ae0db85ed0deb2 /japanese
parent95574af736391f0e65f806989aa197850d598f4c (diff)
downloadfreebsd-ports-gnome-d8c35f16133230ec3d0ff32fa280e3fa66e45a1a.tar.gz
freebsd-ports-gnome-d8c35f16133230ec3d0ff32fa280e3fa66e45a1a.tar.zst
freebsd-ports-gnome-d8c35f16133230ec3d0ff32fa280e3fa66e45a1a.zip
Tegaki Main program:
* is free and open-source * is multi-plaform * focuses on Chinese (simplified and traditional) and Japanese characters * supports 2 different recognition engines * aspires to work on both desktop-PCs and mobile devices WWW: http://www.tegaki.org/ PR: ports/149690 Submitted by: Timothy Beyer <beyert at cs.ucr.edu> Feature safe: yes
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile1
-rw-r--r--japanese/tegaki-recognize/Makefile40
-rw-r--r--japanese/tegaki-recognize/distinfo2
-rw-r--r--japanese/tegaki-recognize/files/patch-setup.py15
-rw-r--r--japanese/tegaki-recognize/pkg-descr9
-rw-r--r--japanese/tegaki-recognize/pkg-plist9
6 files changed, 76 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index cec4196ad6e7..d7f592de6ed3 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -346,6 +346,7 @@
SUBDIR += tcl80
SUBDIR += tdiary
SUBDIR += teTeX
+ SUBDIR += tegaki-recognize
SUBDIR += texfamily
SUBDIR += texfamily-vfn2a
SUBDIR += texinfo
diff --git a/japanese/tegaki-recognize/Makefile b/japanese/tegaki-recognize/Makefile
new file mode 100644
index 000000000000..3a9717831c96
--- /dev/null
+++ b/japanese/tegaki-recognize/Makefile
@@ -0,0 +1,40 @@
+# New ports collection makefile for: tegaki-recognize
+
+# Date created: 15 Aug 2010
+# Whom: Timothy Beyer <beyert@cs.ucr.edu>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tegaki
+PORTVERSION= 0.3.1
+CATEGORIES= japanese python
+MASTER_SITES= http://www.tegaki.org/releases/${PORTVERSION}/
+PKGNAMESUFFIX= -recognize
+DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
+
+MAINTAINER= beyert@cs.ucr.edu
+COMMENT= Open-Source Chinese and Japanese Handwriting Recognition
+
+LIB_DEPENDS= zinnia.0:${PORTSDIR}/japanese/zinnia
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/tegakigtk/recognizer.py:${PORTSDIR}/japanese/py-tegaki-gtk
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_PKGNAME= ${PORTNAME}_recognize
+
+.include <bsd.port.pre.mk>
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/japanese/tegaki-recognize/distinfo b/japanese/tegaki-recognize/distinfo
new file mode 100644
index 000000000000..c586c46fbe5a
--- /dev/null
+++ b/japanese/tegaki-recognize/distinfo
@@ -0,0 +1,2 @@
+SHA256 (tegaki-recognize-0.3.1.tar.gz) = 161dc7d204b1d387b275ec7cbb19eebb9e7c1bccc47f8978cf3e51582f55556e
+SIZE (tegaki-recognize-0.3.1.tar.gz) = 295897
diff --git a/japanese/tegaki-recognize/files/patch-setup.py b/japanese/tegaki-recognize/files/patch-setup.py
new file mode 100644
index 000000000000..2ab817816300
--- /dev/null
+++ b/japanese/tegaki-recognize/files/patch-setup.py
@@ -0,0 +1,15 @@
+--- setup.py.orig 2010-03-23 00:07:56.000000000 -0700
++++ setup.py 2010-08-15 21:33:21.000000000 -0700
+@@ -30,12 +30,6 @@
+ class install(installbase):
+ def run(self):
+ installbase.run(self)
+- self._write_file("tegaki-recognize.in",
+- os.path.join("share", "menu"),
+- 0644)
+- self._write_file("tegaki-recognize.desktop.in",
+- os.path.join("share", "applications"),
+- 0644)
+
+ def _write_file(self, filename, folder, mode):
+ txt = load_file(filename)
diff --git a/japanese/tegaki-recognize/pkg-descr b/japanese/tegaki-recognize/pkg-descr
new file mode 100644
index 000000000000..699b6616e727
--- /dev/null
+++ b/japanese/tegaki-recognize/pkg-descr
@@ -0,0 +1,9 @@
+Tegaki Main program:
+
+ * is free and open-source
+ * is multi-plaform
+ * focuses on Chinese (simplified and traditional) and Japanese characters
+ * supports 2 different recognition engines
+ * aspires to work on both desktop-PCs and mobile devices
+
+WWW: http://www.tegaki.org/
diff --git a/japanese/tegaki-recognize/pkg-plist b/japanese/tegaki-recognize/pkg-plist
new file mode 100644
index 000000000000..1447ed739478
--- /dev/null
+++ b/japanese/tegaki-recognize/pkg-plist
@@ -0,0 +1,9 @@
+bin/tegaki-recognize
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/README
+share/pixmaps/tegaki-recognize.svg
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry %%PYTHON_LIBDIR%%