File: /usr/ports/textproc/py-libxslt/Makefile
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
# $FreeBSD: head/textproc/py-libxslt/Makefile 544040 2020-08-03 08:51:17Z antoine $
CATEGORIES= textproc gnome python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Python interface for XSLT C library for GNOME
DEPRECATED= Uses deprecated version of python
EXPIRATION_DATE= 2020-09-15
MASTERDIR= ${.CURDIR}/../libxslt
BUILD_WRKSRC= ${WRKSRC}/python
INSTALL_WRKSRC= ${BUILD_WRKSRC}
DESCR= ${.CURDIR}/pkg-descr
PLIST= ${.CURDIR}/pkg-plist
USE_GNOME= libxslt
USES+= python:2.7
USE_PYTHON= flavors
CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc \
--with-python=${PYTHON_CMD}
DOCSDIR= ${PREFIX}/share/doc/py-libxslt
EXAMPLESDIR= ${PREFIX}/share/examples/py-libxslt
post-install:
@cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} /usr/iports/lib/${PYTHON_VERSION}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
@cd ${STAGEDIR}${PREFIX} && ${PYTHON_CMD} -O /usr/iports/lib/${PYTHON_VERSION}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}
.include "${MASTERDIR}/Makefile"