aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/queequeg/Makefile
blob: 002423e67e41c52a821913420279e691be732f4e (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
38
# New ports collection makefile for:   Queequeg
# Date created:                28 February 2004
# Whom:                        Kimura Fuyuki <fuyuki@nigredo.org>
#
# $FreeBSD$
#

PORTNAME=   queequeg
PORTVERSION=    0.91
PORTREVISION=   1
CATEGORIES= textproc
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A tiny English grammar checker

BUILD_DEPENDS=  wn:${PORTSDIR}/textproc/wordnet \
        ${PYTHON_SITELIBDIR}/cdbmodule.so:${PORTSDIR}/databases/py-cdb
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/cdbmodule.so:${PORTSDIR}/databases/py-cdb

USE_PYTHON= 2.3+
MAKE_ARGS=  dict WORDNETDICT="${LOCALBASE}/share/WordNet"

.if !defined(NOPORTDOCS)
PORTDOCS=   address.png index-e.html index.html
.endif

do-install:
    ${MKDIR} ${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/qq ${DATADIR}
    ${LN} -shf ${DATADIR}/qq ${PREFIX}/bin/qq
    ${INSTALL_DATA} ${WRKSRC}/*.py ${WRKSRC}/dict.cdb ${DATADIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    cd ${WRKSRC}/htdocs; ${INSTALL_DATA} * ${DOCSDIR}
.endif

.include <bsd.port.mk>