From 3634e8ff554a0d15663aa7aee3cb53f25600e9fe Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 5 Feb 2011 10:28:27 +0000 Subject: 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 Feature safe: yes --- japanese/Makefile | 1 + japanese/tegaki-recognize/Makefile | 40 ++++++++++++++++++++++++++ japanese/tegaki-recognize/distinfo | 2 ++ japanese/tegaki-recognize/files/patch-setup.py | 15 ++++++++++ japanese/tegaki-recognize/pkg-descr | 9 ++++++ japanese/tegaki-recognize/pkg-plist | 9 ++++++ 6 files changed, 76 insertions(+) create mode 100644 japanese/tegaki-recognize/Makefile create mode 100644 japanese/tegaki-recognize/distinfo create mode 100644 japanese/tegaki-recognize/files/patch-setup.py create mode 100644 japanese/tegaki-recognize/pkg-descr create mode 100644 japanese/tegaki-recognize/pkg-plist (limited to 'japanese') 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 +# +# $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 + +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 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%% -- cgit v1.2.3