diff options
author | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-11-23 04:18:37 +0800 |
---|---|---|
committer | Tobias C. Berner <tcberner@FreeBSD.org> | 2018-11-23 04:18:37 +0800 |
commit | cc8a667aa283dbd1c377aa55dd4b47568cebc6b9 (patch) | |
tree | 61cb3664013fb792e76869e17b47783aadc54052 /Mk/Uses | |
parent | 9ea8c5a60afa67ef2f40c0e73594522c3aec51a6 (diff) | |
download | freebsd-ports-gnome-cc8a667aa283dbd1c377aa55dd4b47568cebc6b9.tar.gz freebsd-ports-gnome-cc8a667aa283dbd1c377aa55dd4b47568cebc6b9.tar.zst freebsd-ports-gnome-cc8a667aa283dbd1c377aa55dd4b47568cebc6b9.zip |
pyqt: Change install directories for Python flavor support
* PyQt could not be installed for multiple Python versions at
the same time, as there were conflicting files.
This patch creates Python-version versioned directories for
all these, and further installs binaries with a version number.
* Note, there might be some hickups for software that depends on
on of the .so's provided by PyQt5, which might not be found
anymore autmotically, and maybe need some LD-flaggery.
* Update PyQt5 to 5.10.1
* Mark www/py-qt5-webengine broken. It is unforuntately no longer
compatible with the old qt5-webengine-5.9.4 we ship.
PR: 232745
Exp-run by: antoine
Differential Revision: https://reviews.freebsd.org/D8714
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/pyqt.mk | 51 |
1 files changed, 38 insertions, 13 deletions
diff --git a/Mk/Uses/pyqt.mk b/Mk/Uses/pyqt.mk index 72cae36f8ff9..4aaee34ec2c2 100644 --- a/Mk/Uses/pyqt.mk +++ b/Mk/Uses/pyqt.mk @@ -16,11 +16,10 @@ # * foo_build only build depend # * foo_run only run depend # * foo both (default) -# SIPDIR - Absolute path where sip files will be installed -# SIPDIR_REL - Relative version of SIPDIR -# -# Also PYQT_SIPDIR=${SIPDIR_REL} will be added to PLIST_SUB. -# +# PYQT_SIPDIR - where sip files will be installed to +# PYQT_APIDIR - where api files will be installed to +# PYQT_DOCDIR - where doc files will be installed to +# PYQT_EXAMPLESDIR - where examples will be installed to .if !defined(_INCLUDE_USES_PYQT_MK) _INCLUDE_USES_PYQT_MK= yes @@ -64,7 +63,7 @@ MASTER_SITES_QSCI2= SF/pyqt/QScintilla2/QScintilla-${PORTVERSION} \ SIP_VERSION= 4.19.8 QSCI2_VERSION= 2.10.4 PYQT4_VERSION= 4.12.1 -PYQT5_VERSION= 5.9.2 +PYQT5_VERSION= 5.10.1 SIP_DISTNAME= sip-${SIP_VERSION} PYQT4_DISTNAME= PyQt4_gpl_x11-${PYQT4_VERSION} @@ -205,9 +204,32 @@ py-serialport_DESC= Python bindings for QtSerialPort py-webkitwidgets_DESC= Python bindings for QtWebKitWidgets module py-widgets_DESC= Python bindings for QTWidgets module -SIPDIR_REL= share/py-sip/PyQt${_PYQT_VERSION} -SIPDIR= ${PREFIX}/${SIPDIR_REL} -PLIST_SUB+= PYQT_SIPDIR=${SIPDIR_REL} +# The versionned executable of sip +SIP= ${LOCALBASE}/bin/sip-${PYTHON_VER} + +# Relative directories +_VERSION_SUBDIR_REL= PyQt${_PYQT_VERSION}/${PYTHON_VER} +_APIDIR_REL= share/${_VERSION_SUBDIR_REL}/qsci +_DOCDIR_REL= share/doc/${_VERSION_SUBDIR_REL} +_EXAMPLEDIR_REL= share/examples/${_VERSION_SUBDIR_REL} +_SIPDIR_REL= share/${_VERSION_SUBDIR_REL}/sip +_DESIGNERDIR_REL= ${QT_PLUGINDIR_REL}/designer/${_VERSION_SUBDIR_REL} +_QMLDIR_REL= ${QT_QMLDIR_REL}/${_VERSION_SUBDIR_REL} + +# Absolute direcotries +PYQT_APIDIR= ${PREFIX}/${_APIDIR_REL} +PYQT_DOCDIR= ${PREFIX}/${_DOCDIR_REL} +PYQT_EXAMPLEDIR= ${PREFIX}/${_EXAMPLEDIR_REL} +PYQT_SIPDIR= ${PREFIX}/${_SIPDIR_REL} +PYQT_DESIGNERDIR= ${PREFIX}/${_DESIGNERDIR_REL} +PYQT_QMLDIR= ${PREFIX}/${_QMLDIR_REL} + +PLIST_SUB+= PYQT_APIDIR=${_APIDIR_REL} \ + PYQT_DOCDIR=${_DOCDIR_REL} \ + PYQT_EXAMPLEDIR=${_EXAMPLEDIR_REL} \ + PYQT_SIPDIR=${_SIPDIR_REL} \ + PYQT_DESIGNERDIR=${_DESIGNERDIR_REL} \ + PYQT_QMLDIR=${_QMLDIR_REL} .if defined(PYQT_DIST) PORTVERSION= ${PYQT_VERSION} @@ -227,14 +249,17 @@ PORTSCOUT?= limit:^${_QT_VERSION:R} .endif PATCHDIR= ${.CURDIR}/../../devel/${PYQT_RELNAME}-core/files -QSCIDIR= ${PREFIX}/share/qt${_PYQT_VERSION}/qsci CONFIGURE_ARGS+=-b ${PREFIX}/bin \ -d ${PYTHONPREFIX_SITELIBDIR} \ -q ${QMAKE} \ --confirm-license \ - --sip ${LOCALBASE}/bin/sip-${PYTHON_VER} \ - --sipdir ${SIPDIR} - + --sip ${SIP} \ + --sipdir ${PYQT_SIPDIR} +# Move the designer plugin and qml libraries to versioned folders. +.if ${_PYQT_VERSION:M5} +CONFIGURE_ARGS+=--qml-plugindir ${PYQT_QMLDIR} \ + --designer-plugindir ${PYQT_DESIGNERDIR} +.endif # One of the things PyQt looks for to determine whether to build the Qt DBus # main loop module (${PYQT_RELNAME}-dbussupport) is whether the dbus/ directory is # present. Only extract it for that port then. |