aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/tegaki-recognize/Makefile
blob: a1eb1b60f9758cf423e71da4622d46159274f1ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Timothy Beyer <beyert@cs.ucr.edu>
# $FreeBSD$

PORTNAME=   tegaki
PORTVERSION=    0.3.1.2
CATEGORIES= japanese python
MASTER_SITES=   http://www.tegaki.org/releases/${PORTVERSION:.2=}/
PKGNAMESUFFIX=  -recognize
DISTNAME=   ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}

MAINTAINER= beyert@cs.ucr.edu
COMMENT=    Open-Source Chinese and Japanese Handwriting Recognition

LICENSE=    GPLv2

LIB_DEPENDS=    libzinnia.so:japanese/zinnia
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/tegakigtk/recognizer.py:japanese/py-tegaki-gtk

OPTIONS_DEFINE= DOCS

USES=       python:2
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME=    ${PORTNAME}_recognize

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

post-patch:
    @${REINPLACE_CMD} \
        -e 's,distutils\.command\.install ,setuptools\.command\.install ,' \
        ${WRKSRC}/setup.py

.include <bsd.port.mk>