pkgsrc/textproc/queequeg/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

57 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2014/01/25 10:30:25 wiz Exp $
DISTNAME= queequeg-0.91
PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=queequeg/}
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://queequeg.sourceforge.net/index-e.html
COMMENT= Tiny English grammar checker for non-native speakers
LICENSE= gnu-gpl-v2
DEPENDS+= ${PYPKGPREFIX}-cdb-[0-9]*:../../databases/py-cdb
BUILD_DEPENDS+= WordNet-[0-9]*:../../textproc/WordNet
USE_LANGUAGES= # none
PY_PATCHPLIST= yes
PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-cdb
SUBST_CLASSES+= fix-python
SUBST_STAGE.fix-python= pre-configure
SUBST_MESSAGE.fix-python= Fixing python interpreter
SUBST_FILES.fix-python+= *.py
SUBST_FILES.fix-python+= qq
SUBST_FILES.fix-python+= Makefile
SUBST_SED.fix-python+= -e 's,/usr/bin/env python,${PYTHONBIN},'
SUBST_SED.fix-python+= -e 's,python ,${PYTHONBIN} ,'
FIND_PREFIX:= WORDNETDIR=WordNet
.include "../../mk/find-prefix.mk"
BUILD_TARGET= dict
BUILD_MAKE_FLAGS= WORDNETDICT=${WORDNETDIR}/dict
INSTALLATION_DIRS= bin ${PYSITELIB} dict
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/qq ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/pstring.py \
${WRKSRC}/dictionary.py \
${WRKSRC}/abstfilter.py \
${WRKSRC}/document.py \
${WRKSRC}/sentence.py \
${WRKSRC}/postagfix.py \
${WRKSRC}/output.py \
${WRKSRC}/constraint.py \
${WRKSRC}/texparser.py \
${WRKSRC}/sgmllib_rev.py \
${WRKSRC}/markupbase_rev.py \
${WRKSRC}/regpat.py \
${WRKSRC}/grammarerror.py \
${WRKSRC}/unification.py \
${DESTDIR}${PREFIX}/${PYSITELIB}
${INSTALL_DATA} ${WRKSRC}/dict.cdb ${DESTDIR}${PREFIX}/dict
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"