diff options
author | rhialto <rhialto@pkgsrc.org> | 2020-01-26 12:53:34 +0000 |
---|---|---|
committer | rhialto <rhialto@pkgsrc.org> | 2020-01-26 12:53:34 +0000 |
commit | e22e6e915b9b1041b84072952cbd5d80f9a9c264 (patch) | |
tree | f8d3a8c18f22e4ddf79a0065c587879efab8597e /x11 | |
parent | c3828a4ce386653c9863c7be21ca65ccf266b358 (diff) | |
download | pkgsrc-e22e6e915b9b1041b84072952cbd5d80f9a9c264.tar.gz |
Python-version some more files to avoid conflicts.
This package installs once per python version. A few files were not
versioned and caused conflicts. These files now have the python version
number in their path.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/py-qt5-qscintilla/Makefile | 7 | ||||
-rw-r--r-- | x11/py-qt5-qscintilla/PLIST | 4 | ||||
-rw-r--r-- | x11/py-qt5/ALTERNATIVES | 3 | ||||
-rw-r--r-- | x11/py-qt5/Makefile | 14 | ||||
-rw-r--r-- | x11/py-qt5/PLIST | 14 |
5 files changed, 28 insertions, 14 deletions
diff --git a/x11/py-qt5-qscintilla/Makefile b/x11/py-qt5-qscintilla/Makefile index b816b36cbb6..46074084909 100644 --- a/x11/py-qt5-qscintilla/Makefile +++ b/x11/py-qt5-qscintilla/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.3 2020/01/18 21:48:34 jperkin Exp $ +# $NetBSD: Makefile,v 1.4 2020/01/26 12:53:34 rhialto Exp $ .include "../../x11/qt5-qscintilla/Makefile.common" PKGNAME= ${PYPKGPREFIX}-qt5-${DISTNAME:tl:S/_gpl-/-/} COMMENT= QScintilla -- Python bindings -PKGREVISION= 2 +PKGREVISION= 3 WRKSRC= ${WRKDIR}/${DISTNAME}/Python @@ -22,7 +22,8 @@ do-configure: --qmake=${QTDIR}/bin/qmake --sip=${PREFIX}/bin/sip${PYVERSSUFFIX} \ --pyqt-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX}/PyQt5 \ --qsci-sipdir=${PREFIX}/share/sip${PYVERSSUFFIX}/PyQt5 \ - --qsci-libdir=${QTDIR}/lib + --qsci-libdir=${QTDIR}/lib \ + --apidir=${QTDIR}/qsci${PYVERSSUFFIX} .include "../../lang/python/extension.mk" .include "../../x11/py-sip/buildlink3.mk" diff --git a/x11/py-qt5-qscintilla/PLIST b/x11/py-qt5-qscintilla/PLIST index 8f6fab18006..f21facd6d62 100644 --- a/x11/py-qt5-qscintilla/PLIST +++ b/x11/py-qt5-qscintilla/PLIST @@ -1,10 +1,10 @@ -@comment $NetBSD: PLIST,v 1.2 2019/10/29 19:17:09 bouyer Exp $ +@comment $NetBSD: PLIST,v 1.3 2020/01/26 12:53:34 rhialto Exp $ ${PYSITELIB}/PyQt5/Qsci.pyi ${PYSITELIB}/PyQt5/Qsci.so ${PYSITELIB}/QScintilla-${PKGVERSION}.dist-info/INSTALLER ${PYSITELIB}/QScintilla-${PKGVERSION}.dist-info/METADATA ${PYSITELIB}/QScintilla-${PKGVERSION}.dist-info/RECORD -qt5/qsci/api/python/QScintilla2.api +qt5/qsci${PYVERSSUFFIX}/api/python/QScintilla2.api share/sip${PYVERSSUFFIX}/PyQt5/Qsci/qsciabstractapis.sip share/sip${PYVERSSUFFIX}/PyQt5/Qsci/qsciapis.sip share/sip${PYVERSSUFFIX}/PyQt5/Qsci/qscicommand.sip diff --git a/x11/py-qt5/ALTERNATIVES b/x11/py-qt5/ALTERNATIVES new file mode 100644 index 00000000000..3c592704b6d --- /dev/null +++ b/x11/py-qt5/ALTERNATIVES @@ -0,0 +1,3 @@ +bin/pylupdate5 @PREFIX@/bin/pylupdate5-${PYVERSSUFFIX} +bin/pyrcc5 @PREFIX@/bin/pyrcc5-${PYVERSSUFFIX} +bin/pyuic5 @PREFIX@/bin/pyuic5-${PYVERSSUFFIX} diff --git a/x11/py-qt5/Makefile b/x11/py-qt5/Makefile index 9b8d1b4fe7e..9d1f41f9609 100644 --- a/x11/py-qt5/Makefile +++ b/x11/py-qt5/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.50 2020/01/18 21:51:14 jperkin Exp $ +# $NetBSD: Makefile,v 1.51 2020/01/26 12:53:34 rhialto Exp $ DISTNAME= PyQt5-5.13.2 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/PyQt5/qt5/} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= x11 python MASTER_SITES= https://www.riverbankcomputing.com/static/Downloads/PyQt5/${PKGVERSION_NOREV}/ @@ -22,9 +22,12 @@ USE_TOOLS+= gmake pkg-config CONFIGURE_ARGS+= -b ${PREFIX}/bin CONFIGURE_ARGS+= -d ${PREFIX}/${PYSITELIB} CONFIGURE_ARGS+= --sipdir ${PREFIX}/share/sip${PYVERSSUFFIX}/PyQt5 +CONFIGURE_ARGS+= --qml-plugindir ${PREFIX}/qt5/plugins/PyQt5-${PYVERSSUFFIX}/ +CONFIGURE_ARGS+= --designer-plugindir ${PREFIX}/qt5/plugins/designer${PYVERSSUFFIX}/ CONFIGURE_ARGS+= -q ${QTDIR}/bin/qmake CONFIGURE_ARGS+= --confirm-license CONFIGURE_ARGS+= --qsci-api +CONFIGURE_ARGS+= --qsci-api-destdir ${PREFIX}/qt5/qsci${PYVERSSUFFIX} CONFIGURE_ARGS+= --sip ${BUILDLINK_PREFIX.py-sip}/bin/sip${PYVERSSUFFIX} CONFIGURE_ARGS+= --verbose @@ -61,6 +64,13 @@ fix-darwin-install-name: .else PLIST.x11= yes .endif +post-install: fix-alternatives + +fix-alternatives: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} pylupdate5 pylupdate5-${PYVERSSUFFIX} && \ + ${MV} pyrcc5 pyrcc5-${PYVERSSUFFIX} && \ + ${MV} pyuic5 pyuic5-${PYVERSSUFFIX} || ${TRUE} .include "../../lang/python/extension.mk" .include "../../sysutils/dbus-python-common/buildlink3.mk" diff --git a/x11/py-qt5/PLIST b/x11/py-qt5/PLIST index a4e5d2a0afb..d48e33a9ea0 100644 --- a/x11/py-qt5/PLIST +++ b/x11/py-qt5/PLIST @@ -1,7 +1,7 @@ -@comment $NetBSD: PLIST,v 1.13 2019/10/29 19:17:09 bouyer Exp $ -bin/pylupdate5 -bin/pyrcc5 -bin/pyuic5 +@comment $NetBSD: PLIST,v 1.14 2020/01/26 12:53:34 rhialto Exp $ +bin/pylupdate5-${PYVERSSUFFIX} +bin/pyrcc5-${PYVERSSUFFIX} +bin/pyuic5-${PYVERSSUFFIX} ${PYSITELIB}/PyQt5-${PKGVERSION}.dist-info/INSTALLER ${PYSITELIB}/PyQt5-${PKGVERSION}.dist-info/METADATA ${PYSITELIB}/PyQt5-${PKGVERSION}.dist-info/RECORD @@ -106,9 +106,9 @@ ${PYSITELIB}/PyQt5/uic/widget-plugins/qtquickwidgets.py ${PYSITELIB}/PyQt5/uic/widget-plugins/qtwebenginewidgets.py ${PYSITELIB}/PyQt5/uic/widget-plugins/qtwebkit.py ${PYSITELIB}/dbus/mainloop/pyqt5.so -qt5/plugins/PyQt5/libpyqt5qmlplugin.so -qt5/plugins/designer/libpyqt5.so -qt5/qsci/api/python/PyQt5.api +qt5/plugins/PyQt5-${PYVERSSUFFIX}/libpyqt5qmlplugin.so +qt5/plugins/designer${PYVERSSUFFIX}/libpyqt5.so +qt5/qsci${PYVERSSUFFIX}/api/python/PyQt5.api share/sip${PYVERSSUFFIX}/PyQt5/Enginio/Enginiomod.sip share/sip${PYVERSSUFFIX}/PyQt5/Enginio/enginio.sip share/sip${PYVERSSUFFIX}/PyQt5/Enginio/enginioclient.sip |