[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / textproc / py-xapian

File: [cvs.NetBSD.org] / pkgsrc / textproc / py-xapian / Makefile (download)

Revision 1.2, Fri Jul 14 12:55:45 2017 UTC (3 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.1: +6 -2 lines

Collect patches for xapian in a common subdirectory. Put distinfo for
modules into a separate file as well. Don't hard-code -lstdc++ for
broken ancient OpenBSD versions of GCC. Sync p5-Xapian PLIST with
reality.

# $NetBSD: Makefile,v 1.2 2017/07/14 12:55:45 joerg Exp $

PKGNAME=		${PYPKGPREFIX}-${PKGNAME_MODULE}
COMMENT=		Python bindings for Xapian search engine
HOMEPAGE=		https://xapian.org/docs/bindings/python/

DEPENDS+=		${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx

.include "../../lang/python/pyversion.mk"

.if (${PYPKGPREFIX} == py27)
CONFIGURE_ARGS+=	--with-python
PYTHON_3_OR_EMPTY=	# empty
.else
CONFIGURE_ARGS+=	--with-python3 PYTHON3=${PYTHONBIN}
PYTHON_3_OR_EMPTY=	3
.endif

PLIST_SUBST+=		PYTHON_3_OR_EMPTY=${PYTHON_3_OR_EMPTY:Q}
PY_PATCHPLIST=		yes

REPLACE_PYTHON=		python/docs/examples/*.py

post-install:
	${CHMOD} +x ${DESTDIR}${PREFIX}/share/doc/xapian-bindings/python${PYTHON_3_OR_EMPTY}/examples/*.py
.if (${PYPKGPREFIX} != py27)
	${MKDIR} ${DESTDIR}${PREFIX}/${PYSITELIB}/xapian/__pycache__
	${MV} ${DESTDIR}${PREFIX}/${PYSITELIB}/xapian/*.cpython* ${DESTDIR}${PREFIX}/${PYSITELIB}/xapian/__pycache__/
.endif

.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../textproc/xapian/module.mk"
.include "../../mk/bsd.pkg.mk"