ports/devel/py-qt5-core/Makefile
Tobias C. Berner 3aef0d5211 PyQt: Update to 5.13.0
Updates
- PyQt to 5.13.0
- sip to 4.19.18
- qscintilla to 2.11.2

PR:		239023
Exp-run by:	antoine
2019-10-18 06:57:27 +00:00

59 lines
1.7 KiB
Makefile

# $FreeBSD$
PORTNAME= core
CATEGORIES= devel python
MAINTAINER= kde@FreeBSD.org
COMMENT= Python bindings for the Qt5 toolkit, QtCore module
BUILD_DEPENDS= ${PY_ENUM34}
RUN_DEPENDS= ${PY_ENUM34}
PYQT_MODULE= QtCore
CONFIGURE_ARGS= ${PYQT5_MODULES_ALL:N${PYQT_MODULE}:C/.*/--disable=&/} \
--enable=${PYQT_MODULE}
PYQT_DIST= yes
USES= python pyqt:5 qt:5
USE_PYTHON= concurrent flavors py3kplist
USE_PYQT= sip
USE_QT= core buildtools_build qmake_build
OPTIONS_DEFINE= API DEBUG
OPTIONS_DEFAULT=API
OPTIONS_SUB= yes
API_DESC= Install QtCore API for QScintilla2
API_CONFIGURE_ON= --qsci-api --qsci-api-destdir=${PYQT_APIDIR}
API_CONFIGURE_OFF= --no-qsci-api
API_LIB_DEPENDS= libqscintilla2_qt5.so:devel/qscintilla2-qt5
DEBUG_CONFIGURE_ON= --debug --trace
.include <bsd.port.pre.mk>
# Bug 180467: We need to remove the port_v${VERSION} directory that does not
# correspond to the Python version being used to avoid failures in the
# bytecompilation calls in post-install.
PLIST_SUB+= PYTHON_MAJOR_VER="${PYTHON_MAJOR_VER}"
post-patch:
.if ${PYTHON_MAJOR_VER} == "2"
${RM} -r ${WRKSRC}/pyuic/uic/port_v3
.elif ${PYTHON_MAJOR_VER} == "3"
${RM} -r ${WRKSRC}/pyuic/uic/port_v2
.endif
post-install:
${INSTALL_DATA} ${FILESDIR}/Qt.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt5 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-f -d ${PYTHONPREFIX_SITELIBDIR}/PyQt5 \
${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5
# This Qt.so masks the Qt.py which is supposed to import
# all of the Qt submodules.
${RM} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/PyQt5/Qt.so
.include <bsd.port.post.mk>