summaryrefslogtreecommitdiffstats
path: root/textproc/queequeg/Makefile
blob: 74a5b09a84fd6c7a08911ae75d9d36f6af9328e5 (plain)
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
39
40
41
# Created by: 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=	Tiny English grammar checker

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

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

USES=		python:2 shebangfix
SHEBANG_FILES=	*.py misc/*.py qq
ALL_TARGET=	dict
MAKE_ARGS=	WORDNETDICT="${LOCALBASE}/share/WordNet" \
		PYTHON="${PYTHON_CMD}"
NO_ARCH=	yes

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	${INSTALL_SCRIPT} ${WRKSRC}/qq ${STAGEDIR}${DATADIR}
	${LN} -shf ${DATADIR}/qq ${STAGEDIR}${PREFIX}/bin/qq
	${INSTALL_DATA} ${WRKSRC}/*.py ${WRKSRC}/dict.cdb ${STAGEDIR}${DATADIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/htdocs/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud