File:  [cvs.NetBSD.org] / pkgsrc / textproc / py-libxslt / Makefile
Revision 1.51: download - view: text, annotated - select for diffs
Tue Jul 3 05:03:37 2018 UTC (6 years, 5 months ago) by adam
Branches: MAIN
CVS tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, HEAD
extend PYTHON_VERSIONS_ for Python 3.7

# $NetBSD: Makefile,v 1.51 2018/07/03 05:03:37 adam Exp $

.include "../../textproc/libxslt/Makefile.common"

PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	textproc python

MAINTAINER=	minskim@NetBSD.org
COMMENT=	Python wrapper for libxslt

DEPENDS+=	${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
DEPENDS+=	${PYPKGPREFIX}-libxml2>=2.6.8:../../textproc/py-libxml2

PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # not yet ported as of 1.1.28

PYSETUPSUBDIR=	python
NO_CONFIGURE=	yes

MAKE_ENV+=		PYLIBXSLTVERSION=${PKGVERSION}

PYSITEDIR=		${PREFIX}/lib/python${PYVERSSUFFIX}/site-packages

SUBST_CLASSES+=		setup
SUBST_MESSAGE.setup=	Fixing hardcoded paths.
SUBST_STAGE.setup=	pre-build
SUBST_FILES.setup=	python/setup.py
SUBST_SED.setup=	-e "s,@LIBICONVDIR@,${BUILDLINK_PREFIX.iconv},g"
SUBST_SED.setup+=	-e "s,@LIBXML2DIR@,${BUILDLINK_PREFIX.libxml2},g"
SUBST_SED.setup+=	-e "s,@LIBXSLTDIR@,${BUILDLINK_PREFIX.libxslt},g"
SUBST_SED.setup+=	-e "s,@PYSHLIBDIR@,${PYSITEDIR},g"

post-extract: setuppy
.PHONY: setuppy
setuppy:
	${CP} ${FILESDIR}/setup.py ${WRKSRC}/python

.include "../../textproc/py-libxml2/buildlink3.mk"
BUILDLINK_API_DEPENDS.libxslt+=	libxslt>=${PKGVERSION}
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/distutils.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>