From e9fec551cec0bb35bb93a1f94d26811a9b505fad Mon Sep 17 00:00:00 2001
From: thomas <kreitler@molgen.mpg.de>
Date: Tue, 22 Nov 2016 10:41:01 +0100
Subject: [PATCH] pyqt: Add PyQt for Qt4 and Qt5

PyQt is a set of Python v2 and v3 bindings for the Qt application
framework. Naming is a bit inconsistent:
- PyQt-x11-gpl-4.11.4 -> Qt4
- PyQt5_gpl-5.7 -> Qt5

Homepage:
https://www.riverbankcomputing.com/software/pyqt/intro
---
 PyQt.be0  | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 PyQt5.be0 | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)
 create mode 100755 PyQt.be0
 create mode 100755 PyQt5.be0

diff --git a/PyQt.be0 b/PyQt.be0
new file mode 100755
index 000000000..c78b7924e
--- /dev/null
+++ b/PyQt.be0
@@ -0,0 +1,49 @@
+#!/usr/bin/env beesh
+
+# BEE_VERSION PyQt-x11-gpl-4.11.4-0
+
+export QTDIR=/usr/local/qt4
+
+## The source URL(s) array
+SRCURL[0]="file:///src/mariux/beeroot/downloads/PyQt-x11-gpl-${PKGVERSION}.tar.gz"
+
+## Add URLs/pathes to patch files
+# Fix phonon detection
+PATCHURL+=(file:///src/mariux/patches/PyQt.phonon.diff.gz)
+
+## files that should not be added from the image directory.
+# EXCLUDE+=()
+
+
+## uncomment to change default
+build_in_sourcedir
+
+## specify different source directory
+# sourcesubdir_append src
+
+
+#mee_extract() {
+#    bee_extract "${@}"
+#}
+
+#mee_patch() {
+#    bee_patch "${@}"
+#}
+
+mee_configure() {
+    python configure.py \
+      --confirm-license \
+      --verbose \
+      -q /usr/local/qt4/bin/qmake
+}
+
+mee_build() {
+    make ${BEE_MAKEFLAGS}
+}
+
+## mee_install() should install into "${D}"
+## default: 'make install DESTDIR="${D}"'
+
+mee_install() {
+    make install DESTDIR="${D}" INSTALL_ROOT="${D}"
+}
diff --git a/PyQt5.be0 b/PyQt5.be0
new file mode 100755
index 000000000..59d051f19
--- /dev/null
+++ b/PyQt5.be0
@@ -0,0 +1,48 @@
+#!/usr/bin/env beesh
+
+# BEE_VERSION PyQt5_gpl-5.7-0
+
+export QTDIR=/usr/local/qt5
+
+## The source URL(s) array
+SRCURL[0]="file:///src/mariux/beeroot/downloads/PyQt5_gpl-${PKGVERSION}.tar.gz"
+
+## Add URLs/pathes to patch files
+# PATCHURL+=()
+
+## files that should not be added from the image directory.
+# EXCLUDE+=()
+
+
+## uncomment to change default
+build_in_sourcedir
+
+## specify different source directory
+# sourcesubdir_append src
+
+
+#mee_extract() {
+#    bee_extract "${@}"
+#}
+
+#mee_patch() {
+#    bee_patch "${@}"
+#}
+
+mee_configure() {
+    python configure.py \
+      --confirm-license \
+      --verbose \
+      -q /usr/local/qt5/bin/qmake
+}
+
+mee_build() {
+    make ${BEE_MAKEFLAGS}
+}
+
+## mee_install() should install into "${D}"
+## default: 'make install DESTDIR="${D}"'
+
+mee_install() {
+    make install DESTDIR="${D}" INSTALL_ROOT="${D}"
+}