diff --git a/srcpkgs/python-PyQt5-dbus b/srcpkgs/python-PyQt5-dbus new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-dbus @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-devel b/srcpkgs/python-PyQt5-devel new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-devel @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-devel-tools b/srcpkgs/python-PyQt5-devel-tools new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-devel-tools @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-doc b/srcpkgs/python-PyQt5-doc new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-doc @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-enginio b/srcpkgs/python-PyQt5-enginio new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-enginio @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-location b/srcpkgs/python-PyQt5-location new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-location @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-multimedia b/srcpkgs/python-PyQt5-multimedia new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-multimedia @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-opengl b/srcpkgs/python-PyQt5-opengl new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-opengl @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-quick b/srcpkgs/python-PyQt5-quick new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-quick @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-sensors b/srcpkgs/python-PyQt5-sensors new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-sensors @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-serialport b/srcpkgs/python-PyQt5-serialport new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-serialport @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-sql b/srcpkgs/python-PyQt5-sql new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-sql @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-svg b/srcpkgs/python-PyQt5-svg new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-svg @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-tools b/srcpkgs/python-PyQt5-tools new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-tools @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-webkit b/srcpkgs/python-PyQt5-webkit new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-webkit @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-websockets b/srcpkgs/python-PyQt5-websockets new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-websockets @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-x11extras b/srcpkgs/python-PyQt5-x11extras new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-x11extras @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5-xmlpatterns b/srcpkgs/python-PyQt5-xmlpatterns new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python-PyQt5-xmlpatterns @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python-PyQt5/patches/PyQt5-5.3.2-add-dep-to-QtWebKitWidgets.patch b/srcpkgs/python-PyQt5/patches/PyQt5-5.3.2-add-dep-to-QtWebKitWidgets.patch new file mode 100644 index 00000000000..346faf09747 --- /dev/null +++ b/srcpkgs/python-PyQt5/patches/PyQt5-5.3.2-add-dep-to-QtWebKitWidgets.patch @@ -0,0 +1,12 @@ +--- configure.py.orig 2014-07-04 11:09:11.000000000 +0200 ++++ configure.py 2014-09-09 03:13:52.351527684 +0200 +@@ -86,7 +86,7 @@ MODULE_METADATA = { + 'QtSvg': ModuleMetadata(qmake_QT=['svg']), + 'QtTest': ModuleMetadata(qmake_QT=['testlib', 'widgets']), + 'QtWebKit': ModuleMetadata(qmake_QT=['webkit', 'network']), +- 'QtWebKitWidgets': ModuleMetadata(qmake_QT=['webkitwidgets']), ++ 'QtWebKitWidgets': ModuleMetadata(qmake_QT=['webkitwidgets', 'printsupport']), + 'QtWebSockets': ModuleMetadata(qmake_QT=['websockets']), + 'QtWidgets': ModuleMetadata(qmake_QT=['widgets']), + 'QtWinExtras': ModuleMetadata(qmake_QT=['winextras', 'widgets']), + diff --git a/srcpkgs/python-PyQt5/template b/srcpkgs/python-PyQt5/template new file mode 100644 index 00000000000..e7b70d7ff15 --- /dev/null +++ b/srcpkgs/python-PyQt5/template @@ -0,0 +1,320 @@ +# Template file for 'python-PyQt5' +pkgname=python-PyQt5 +version=5.3.2 +revision=1 +wrksrc="PyQt-gpl-${version}" +hostmakedepends="pkg-config" +makedepends="python-devel python3.4-devel python-sip-devel python3.4-sip-devel + qt5-tools-devel qt5-declarative-devel qt5-enginio-devel qt5-location-devel + qt5-multimedia-devel qt5-sensors-devel qt5-serialport-devel qt5-svg-devel + qt5-webkit-devel qt5-websockets-devel qt5-x11extras-devel qt5-xmlpatterns-devel + python-dbus-devel" +depends="python-sip" +short_desc="Python2 bindings for the Qt5 toolkit" +_short_desc="${short_desc/Python2/Python3.4}" +maintainer="Alessio Sergi " +homepage="http://www.riverbankcomputing.co.uk/software/pyqt/intro" +update_pkgname="PyQt-gpl" +license="GPL-3" +distfiles="${SOURCEFORGE_SITE}/pyqt/PyQt-gpl-${version}.tar.gz" +checksum=bdc06613caa718977fcee43ce3bc4e959ea1efd02d86268d8c478b48c259448e + +_pysitedir="usr/lib/python2.7/site-packages" +_py34sitedir="usr/lib/python3.4/site-packages" + +_do_pyqt5_build() { + local pyver=${1:-2.7} tools= + + if [ "$pyver" != "2.7" ]; then + tools="--no-tools" + fi + + python${pyver} configure.py --confirm-license --assume-shared ${tools} \ + CC="${CC}" CFLAGS="${CFLAGS}" CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ + LINK="${CXX}" LINK_SHLIB="${CXX}" LFLAGS="${LDFLAGS}" STRIP="" + make ${makejobs} +} +pre_build() { + mkdir -p pyqt5 + mv * pyqt5 || true + cp -a pyqt5 pyqt5-3.4 + rm -rf ${wrksrc}/pyqt5/pyuic/uic/port_v3 + rm -rf ${wrksrc}/pyqt5-3.4/pyuic/uic/port_v2 +} +do_build() { + # build python-pyqt5 + cd ${wrksrc}/pyqt5 + _do_pyqt5_build + + # build python3.4-pyqt5 + cd ${wrksrc}/pyqt5-3.4 + _do_pyqt5_build 3.4 +} +do_install() { + # install python{,3.4}-pyqt5 + make -C pyqt5 DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install + make -C pyqt5-3.4 DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install + + cd ${wrksrc}/pyqt5 + # install python3-pyuic5 wrapper + sed -i 's,python2.7,python3.4,g' pyuic5 + vbin pyuic5 python3-pyuic5 + # install doc + vmkdir usr/share/doc/${pkgname} + vcopy "doc/html examples" usr/share/doc/${pkgname} +} + +python-PyQt5-devel-tools_package() { + short_desc+=" - development tools" + pkg_install() { + vmove usr/bin/pylupdate5 + vmove usr/bin/pyrcc5 + } +} +python-PyQt5-devel_package() { + depends="python-sip-devel python3.4-sip-devel + python-PyQt5>=${version}_${revision} python3.4-PyQt5>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/share/sip + } +} +python-PyQt5-doc_package() { + noarch=yes + short_desc+=" - documentation files" + pkg_install() { + vmove usr/share/doc + } +} +python-PyQt5-dbus_package() { + depends="${sourcepkg}>=${version}_${revision} python-dbus" + short_desc+=" - dbus support" + pkg_install() { + vmove ${_pysitedir}/dbus/mainloop/pyqt5.so + } +} +python-PyQt5-enginio_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - enginio module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/Enginio.so + } +} +python-PyQt5-multimedia_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - multimedia module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtMultimedia.so + vmove ${_pysitedir}/PyQt5/QtMultimediaWidgets.so + } +} +python-PyQt5-opengl_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - opengl module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtOpenGL.so + vmove ${_pysitedir}/PyQt5/_QOpenGLFunctions_2_0.so + } +} +python-PyQt5-location_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - location module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtPositioning.so + } +} +python-PyQt5-quick_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - quick module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtQml.so + vmove ${_pysitedir}/PyQt5/QtQuick.so + vmove ${_pysitedir}/PyQt5/QtQuickWidgets.so + } +} +python-PyQt5-sensors_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - sensors module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtSensors.so + } +} +python-PyQt5-serialport_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - serialport module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtSerialPort.so + } +} +python-PyQt5-sql_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - sql module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtSql.so + } +} +python-PyQt5-svg_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - svg module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtSvg.so + } +} +python-PyQt5-tools_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - designer, help modules" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtDesigner.so + vmove ${_pysitedir}/PyQt5/QtHelp.so + } +} +python-PyQt5-webkit_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - webkit module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtWebKit.so + vmove ${_pysitedir}/PyQt5/QtWebKitWidgets.so + } +} +python-PyQt5-websockets_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - websockets module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtWebSockets.so + } +} +python-PyQt5-x11extras_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - x11extras module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtX11Extras.so + } +} +python-PyQt5-xmlpatterns_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - xmlpatterns module" + pkg_install() { + vmove ${_pysitedir}/PyQt5/QtXmlPatterns.so + } +} +python3.4-PyQt5_package() { + depends="python3.4-sip" + short_desc="${_short_desc}" + pkg_install() { + vmove usr/bin/python3-pyuic5 + vmove usr/lib/python3.4 + } +} +python3.4-PyQt5-dbus_package() { + depends="python3.4-PyQt5>=${version}_${revision} python3.4-dbus" + short_desc="${_short_desc} - dbus support" + pkg_install() { + vmove ${_py34sitedir}/dbus/mainloop/pyqt5.so + } +} +python3.4-PyQt5-enginio_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - enginio module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/Enginio.so + } +} +python3.4-PyQt5-multimedia_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - multimedia module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtMultimedia.so + vmove ${_py34sitedir}/PyQt5/QtMultimediaWidgets.so + } +} +python3.4-PyQt5-opengl_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - opengl module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtOpenGL.so + vmove ${_py34sitedir}/PyQt5/_QOpenGLFunctions_2_0.so + } +} +python3.4-PyQt5-location_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - location module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtPositioning.so + } +} +python3.4-PyQt5-quick_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - quick module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtQml.so + vmove ${_py34sitedir}/PyQt5/QtQuick.so + vmove ${_py34sitedir}/PyQt5/QtQuickWidgets.so + vmove usr/lib/qt5/plugins/PyQt5/libpyqt5qmlplugin.so + } +} +python3.4-PyQt5-sensors_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - sensors module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtSensors.so + } +} +python3.4-PyQt5-serialport_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - serialport module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtSerialPort.so + } +} +python3.4-PyQt5-sql_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - sql module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtSql.so + } +} +python3.4-PyQt5-svg_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - svg module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtSvg.so + } +} +python3.4-PyQt5-tools_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - designer, help modules" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtDesigner.so + vmove ${_py34sitedir}/PyQt5/QtHelp.so + vmove usr/lib/qt5/plugins/designer/libpyqt5.so + } +} +python3.4-PyQt5-webkit_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - webkit module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtWebKit.so + vmove ${_py34sitedir}/PyQt5/QtWebKitWidgets.so + } +} +python3.4-PyQt5-websockets_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - websockets module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtWebSockets.so + } +} +python3.4-PyQt5-x11extras_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - x11extras module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtX11Extras.so + } +} +python3.4-PyQt5-xmlpatterns_package() { + depends="python3.4-PyQt5>=${version}_${revision}" + short_desc="${_short_desc} - xmlpatterns module" + pkg_install() { + vmove ${_py34sitedir}/PyQt5/QtXmlPatterns.so + } +} diff --git a/srcpkgs/python3.4-PyQt5 b/srcpkgs/python3.4-PyQt5 new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5 @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-dbus b/srcpkgs/python3.4-PyQt5-dbus new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-dbus @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-enginio b/srcpkgs/python3.4-PyQt5-enginio new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-enginio @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-location b/srcpkgs/python3.4-PyQt5-location new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-location @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-multimedia b/srcpkgs/python3.4-PyQt5-multimedia new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-multimedia @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-opengl b/srcpkgs/python3.4-PyQt5-opengl new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-opengl @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-quick b/srcpkgs/python3.4-PyQt5-quick new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-quick @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-sensors b/srcpkgs/python3.4-PyQt5-sensors new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-sensors @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-serialport b/srcpkgs/python3.4-PyQt5-serialport new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-serialport @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-sql b/srcpkgs/python3.4-PyQt5-sql new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-sql @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-svg b/srcpkgs/python3.4-PyQt5-svg new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-svg @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-tools b/srcpkgs/python3.4-PyQt5-tools new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-tools @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-webkit b/srcpkgs/python3.4-PyQt5-webkit new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-webkit @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-websockets b/srcpkgs/python3.4-PyQt5-websockets new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-websockets @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-x11extras b/srcpkgs/python3.4-PyQt5-x11extras new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-x11extras @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file diff --git a/srcpkgs/python3.4-PyQt5-xmlpatterns b/srcpkgs/python3.4-PyQt5-xmlpatterns new file mode 120000 index 00000000000..7e24798936c --- /dev/null +++ b/srcpkgs/python3.4-PyQt5-xmlpatterns @@ -0,0 +1 @@ +python-PyQt5 \ No newline at end of file