summaryrefslogtreecommitdiff
path: root/dev-qt
diff options
context:
space:
mode:
Diffstat (limited to 'dev-qt')
-rw-r--r--dev-qt/assistant/Manifest15
-rw-r--r--dev-qt/assistant/assistant-4.8.6-r1.ebuild56
-rw-r--r--dev-qt/assistant/assistant-4.8.7.ebuild53
-rw-r--r--dev-qt/assistant/assistant-5.6.2.ebuild37
-rw-r--r--dev-qt/assistant/assistant-5.7.1.ebuild37
-rw-r--r--dev-qt/assistant/assistant-5.9.2.ebuild37
-rw-r--r--dev-qt/assistant/files/assistant-4.8.2+gcc-4.7.patch12
-rw-r--r--dev-qt/assistant/files/disable-webkit.patch26
-rw-r--r--dev-qt/assistant/metadata.xml21
-rw-r--r--dev-qt/designer/Manifest13
-rw-r--r--dev-qt/designer/designer-4.8.6-r1.ebuild59
-rw-r--r--dev-qt/designer/designer-4.8.7.ebuild56
-rw-r--r--dev-qt/designer/designer-5.6.2.ebuild40
-rw-r--r--dev-qt/designer/designer-5.7.1.ebuild40
-rw-r--r--dev-qt/designer/designer-5.9.2.ebuild40
-rw-r--r--dev-qt/designer/metadata.xml25
-rw-r--r--dev-qt/linguist-tools/Manifest9
-rw-r--r--dev-qt/linguist-tools/linguist-tools-5.6.2.ebuild35
-rw-r--r--dev-qt/linguist-tools/linguist-tools-5.7.1.ebuild35
-rw-r--r--dev-qt/linguist-tools/linguist-tools-5.9.2.ebuild35
-rw-r--r--dev-qt/linguist-tools/metadata.xml20
-rw-r--r--dev-qt/linguist/Manifest13
-rw-r--r--dev-qt/linguist/linguist-4.8.6-r1.ebuild42
-rw-r--r--dev-qt/linguist/linguist-4.8.7.ebuild39
-rw-r--r--dev-qt/linguist/linguist-5.6.2.ebuild28
-rw-r--r--dev-qt/linguist/linguist-5.7.1.ebuild28
-rw-r--r--dev-qt/linguist/linguist-5.9.2.ebuild28
-rw-r--r--dev-qt/linguist/metadata.xml21
-rw-r--r--dev-qt/metadata.xml14
-rw-r--r--dev-qt/pixeltool/Manifest13
-rw-r--r--dev-qt/pixeltool/metadata.xml21
-rw-r--r--dev-qt/pixeltool/pixeltool-4.8.6-r1.ebuild35
-rw-r--r--dev-qt/pixeltool/pixeltool-4.8.7.ebuild32
-rw-r--r--dev-qt/pixeltool/pixeltool-5.6.2.ebuild26
-rw-r--r--dev-qt/pixeltool/pixeltool-5.7.1.ebuild26
-rw-r--r--dev-qt/pixeltool/pixeltool-5.9.2.ebuild25
-rw-r--r--dev-qt/qdbus/Manifest9
-rw-r--r--dev-qt/qdbus/metadata.xml17
-rw-r--r--dev-qt/qdbus/qdbus-5.6.2.ebuild25
-rw-r--r--dev-qt/qdbus/qdbus-5.7.1.ebuild25
-rw-r--r--dev-qt/qdbus/qdbus-5.9.2.ebuild25
-rw-r--r--dev-qt/qdbusviewer/Manifest13
-rw-r--r--dev-qt/qdbusviewer/metadata.xml21
-rw-r--r--dev-qt/qdbusviewer/qdbusviewer-4.8.6-r1.ebuild42
-rw-r--r--dev-qt/qdbusviewer/qdbusviewer-4.8.7.ebuild39
-rw-r--r--dev-qt/qdbusviewer/qdbusviewer-5.6.2.ebuild27
-rw-r--r--dev-qt/qdbusviewer/qdbusviewer-5.7.1.ebuild27
-rw-r--r--dev-qt/qdbusviewer/qdbusviewer-5.9.2.ebuild27
-rw-r--r--dev-qt/qdoc/Manifest9
-rw-r--r--dev-qt/qdoc/metadata.xml20
-rw-r--r--dev-qt/qdoc/qdoc-5.6.2.ebuild24
-rw-r--r--dev-qt/qdoc/qdoc-5.7.1.ebuild24
-rw-r--r--dev-qt/qdoc/qdoc-5.9.2.ebuild31
-rw-r--r--dev-qt/qt-creator/Manifest8
-rw-r--r--dev-qt/qt-creator/metadata.xml41
-rw-r--r--dev-qt/qt-creator/qt-creator-4.3.1.ebuild189
-rw-r--r--dev-qt/qt-creator/qt-creator-4.4.1.ebuild183
-rw-r--r--dev-qt/qt-creator/qt-creator-9999.ebuild183
-rw-r--r--dev-qt/qt-docs/Manifest9
-rw-r--r--dev-qt/qt-docs/metadata.xml12
-rw-r--r--dev-qt/qt-docs/qt-docs-5.6.2_p0-r1.ebuild33
-rw-r--r--dev-qt/qt-docs/qt-docs-5.7.1_p0.ebuild39
-rw-r--r--dev-qt/qt-docs/qt-docs-5.9.2_p201710050733.ebuild40
-rw-r--r--dev-qt/qt-meta/Manifest4
-rw-r--r--dev-qt/qt-meta/metadata.xml11
-rw-r--r--dev-qt/qt-meta/qt-meta-4.8.6.ebuild38
-rw-r--r--dev-qt/qt-mobility/Manifest5
-rw-r--r--dev-qt/qt-mobility/metadata.xml32
-rw-r--r--dev-qt/qt-mobility/qt-mobility-1.2.2_p20130703-r1.ebuild150
-rw-r--r--dev-qt/qt3d/Manifest6
-rw-r--r--dev-qt/qt3d/metadata.xml21
-rw-r--r--dev-qt/qt3d/qt3d-5.7.1-r1.ebuild32
-rw-r--r--dev-qt/qt3d/qt3d-5.9.2.ebuild32
-rw-r--r--dev-qt/qt3support/Manifest7
-rw-r--r--dev-qt/qt3support/metadata.xml16
-rw-r--r--dev-qt/qt3support/qt3support-4.8.6-r1.ebuild36
-rw-r--r--dev-qt/qt3support/qt3support-4.8.7.ebuild33
-rw-r--r--dev-qt/qtbearer/Manifest7
-rw-r--r--dev-qt/qtbearer/metadata.xml16
-rw-r--r--dev-qt/qtbearer/qtbearer-4.8.6-r1.ebuild46
-rw-r--r--dev-qt/qtbearer/qtbearer-4.8.7.ebuild43
-rw-r--r--dev-qt/qtbluetooth/Manifest8
-rw-r--r--dev-qt/qtbluetooth/metadata.xml20
-rw-r--r--dev-qt/qtbluetooth/qtbluetooth-5.6.2.ebuild33
-rw-r--r--dev-qt/qtbluetooth/qtbluetooth-5.7.1.ebuild33
-rw-r--r--dev-qt/qtbluetooth/qtbluetooth-5.9.2.ebuild33
-rw-r--r--dev-qt/qtcharts/Manifest6
-rw-r--r--dev-qt/qtcharts/metadata.xml20
-rw-r--r--dev-qt/qtcharts/qtcharts-5.7.1.ebuild29
-rw-r--r--dev-qt/qtcharts/qtcharts-5.9.2.ebuild29
-rw-r--r--dev-qt/qtchooser/Manifest7
-rw-r--r--dev-qt/qtchooser/metadata.xml8
-rw-r--r--dev-qt/qtchooser/qtchooser-0_p20151008.ebuild74
-rw-r--r--dev-qt/qtchooser/qtchooser-0_p20170803.ebuild74
-rw-r--r--dev-qt/qtconcurrent/Manifest9
-rw-r--r--dev-qt/qtconcurrent/metadata.xml17
-rw-r--r--dev-qt/qtconcurrent/qtconcurrent-5.6.2.ebuild23
-rw-r--r--dev-qt/qtconcurrent/qtconcurrent-5.7.1.ebuild23
-rw-r--r--dev-qt/qtconcurrent/qtconcurrent-5.9.2.ebuild23
-rw-r--r--dev-qt/qtcore/Manifest22
-rw-r--r--dev-qt/qtcore/files/qtcore-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch81
-rw-r--r--dev-qt/qtcore/files/qtcore-4.8.5-qeventdispatcher-recursive.patch94
-rw-r--r--dev-qt/qtcore/files/qtcore-4.8.6-QNAM-corruptions-fix.patch431
-rw-r--r--dev-qt/qtcore/files/qtcore-4.8.6-moc-boost-1.60.patch16
-rw-r--r--dev-qt/qtcore/files/qtcore-4.8.7-libressl.patch52
-rw-r--r--dev-qt/qtcore/files/qtcore-5.6.2-plugins.patch81
-rw-r--r--dev-qt/qtcore/files/qtcore-5.7.1-qipm.patch152
-rw-r--r--dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-1.patch252
-rw-r--r--dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-2.patch195
-rw-r--r--dev-qt/qtcore/metadata.xml25
-rw-r--r--dev-qt/qtcore/qtcore-4.8.6-r2.ebuild86
-rw-r--r--dev-qt/qtcore/qtcore-4.8.7-r2.ebuild92
-rw-r--r--dev-qt/qtcore/qtcore-5.6.2-r1.ebuild42
-rw-r--r--dev-qt/qtcore/qtcore-5.7.1-r3.ebuild48
-rw-r--r--dev-qt/qtcore/qtcore-5.9.2.ebuild66
-rw-r--r--dev-qt/qtdatavis3d/Manifest6
-rw-r--r--dev-qt/qtdatavis3d/metadata.xml21
-rw-r--r--dev-qt/qtdatavis3d/qtdatavis3d-5.7.1.ebuild31
-rw-r--r--dev-qt/qtdatavis3d/qtdatavis3d-5.9.2.ebuild31
-rw-r--r--dev-qt/qtdbus/Manifest15
-rw-r--r--dev-qt/qtdbus/files/qtdbus-4.7-qdbusintegrator-no-const.patch11
-rw-r--r--dev-qt/qtdbus/files/qtdbus-4.8.4-qdbusconnection-silence-warning.patch14
-rw-r--r--dev-qt/qtdbus/metadata.xml21
-rw-r--r--dev-qt/qtdbus/qtdbus-4.8.6-r1.ebuild43
-rw-r--r--dev-qt/qtdbus/qtdbus-4.8.7.ebuild40
-rw-r--r--dev-qt/qtdbus/qtdbus-5.6.2.ebuild38
-rw-r--r--dev-qt/qtdbus/qtdbus-5.7.1.ebuild38
-rw-r--r--dev-qt/qtdbus/qtdbus-5.9.2.ebuild38
-rw-r--r--dev-qt/qtdeclarative/Manifest15
-rw-r--r--dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch18
-rw-r--r--dev-qt/qtdeclarative/metadata.xml28
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-4.8.6-r1.ebuild54
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-4.8.7.ebuild51
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-5.6.2.ebuild53
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-5.7.1-r1.ebuild62
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-5.7.1.ebuild56
-rw-r--r--dev-qt/qtdeclarative/qtdeclarative-5.9.2.ebuild56
-rw-r--r--dev-qt/qtdemo/Manifest8
-rw-r--r--dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch13
-rw-r--r--dev-qt/qtdemo/metadata.xml23
-rw-r--r--dev-qt/qtdemo/qtdemo-4.8.6-r1.ebuild91
-rw-r--r--dev-qt/qtdemo/qtdemo-4.8.7.ebuild88
-rw-r--r--dev-qt/qtdiag/Manifest9
-rw-r--r--dev-qt/qtdiag/metadata.xml21
-rw-r--r--dev-qt/qtdiag/qtdiag-5.6.2.ebuild25
-rw-r--r--dev-qt/qtdiag/qtdiag-5.7.1.ebuild25
-rw-r--r--dev-qt/qtdiag/qtdiag-5.9.2.ebuild36
-rw-r--r--dev-qt/qtgraphicaleffects/Manifest9
-rw-r--r--dev-qt/qtgraphicaleffects/metadata.xml17
-rw-r--r--dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.6.2.ebuild21
-rw-r--r--dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.7.1.ebuild21
-rw-r--r--dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.9.2.ebuild21
-rw-r--r--dev-qt/qtgui/Manifest24
-rw-r--r--dev-qt/qtgui/files/qtgui-4.7.3-cups.patch84
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.5-CVE-2015-0295.patch40
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.5-cleanlooks-floating-point-exception.patch38
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.5-disable-gtk-theme-check.patch22
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.5-dont-crash-on-broken-GIF-images.patch43
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.5-qclipboard-delay.patch33
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1858.patch63
-rw-r--r--dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1860.patch31
-rw-r--r--dev-qt/qtgui/files/qtgui-5.7.1-qclipboard.patch39
-rw-r--r--dev-qt/qtgui/files/qtgui-5.7.1-x32.patch34
-rw-r--r--dev-qt/qtgui/metadata.xml37
-rw-r--r--dev-qt/qtgui/qtgui-4.8.6-r4.ebuild174
-rw-r--r--dev-qt/qtgui/qtgui-4.8.7.ebuild166
-rw-r--r--dev-qt/qtgui/qtgui-5.6.2.ebuild174
-rw-r--r--dev-qt/qtgui/qtgui-5.7.1-r1.ebuild179
-rw-r--r--dev-qt/qtgui/qtgui-5.9.2.ebuild164
-rw-r--r--dev-qt/qthelp/Manifest17
-rw-r--r--dev-qt/qthelp/files/qthelp-4.8.6-compat-install.patch35
-rw-r--r--dev-qt/qthelp/files/qthelp-4.8.6-compat-syncqt.patch25
-rw-r--r--dev-qt/qthelp/metadata.xml23
-rw-r--r--dev-qt/qthelp/qthelp-4.8.6-r3.ebuild114
-rw-r--r--dev-qt/qthelp/qthelp-4.8.7.ebuild111
-rw-r--r--dev-qt/qthelp/qthelp-5.6.2.ebuild31
-rw-r--r--dev-qt/qthelp/qthelp-5.7.1.ebuild31
-rw-r--r--dev-qt/qthelp/qthelp-5.9.2.ebuild30
-rw-r--r--dev-qt/qtimageformats/Manifest9
-rw-r--r--dev-qt/qtimageformats/metadata.xml17
-rw-r--r--dev-qt/qtimageformats/qtimageformats-5.6.2.ebuild23
-rw-r--r--dev-qt/qtimageformats/qtimageformats-5.7.1.ebuild23
-rw-r--r--dev-qt/qtimageformats/qtimageformats-5.9.2.ebuild23
-rw-r--r--dev-qt/qtlocation/Manifest8
-rw-r--r--dev-qt/qtlocation/metadata.xml17
-rw-r--r--dev-qt/qtlocation/qtlocation-5.6.2.ebuild29
-rw-r--r--dev-qt/qtlocation/qtlocation-5.7.1.ebuild29
-rw-r--r--dev-qt/qtlocation/qtlocation-5.9.2.ebuild36
-rw-r--r--dev-qt/qtlockedfile/Manifest6
-rw-r--r--dev-qt/qtlockedfile/files/qtlockedfile.prf6
-rw-r--r--dev-qt/qtlockedfile/metadata.xml8
-rw-r--r--dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild76
-rw-r--r--dev-qt/qtmultimedia/Manifest15
-rw-r--r--dev-qt/qtmultimedia/files/qtmultimedia-4.8.0-alsa.patch25
-rw-r--r--dev-qt/qtmultimedia/files/qtmultimedia-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch155
-rw-r--r--dev-qt/qtmultimedia/metadata.xml25
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-4.8.6-r1.ebuild47
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-4.8.7.ebuild44
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-5.6.2.ebuild68
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-5.7.1.ebuild68
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-5.9.2.ebuild65
-rw-r--r--dev-qt/qtnetwork/Manifest9
-rw-r--r--dev-qt/qtnetwork/metadata.xml25
-rw-r--r--dev-qt/qtnetwork/qtnetwork-5.6.2.ebuild53
-rw-r--r--dev-qt/qtnetwork/qtnetwork-5.7.1.ebuild53
-rw-r--r--dev-qt/qtnetwork/qtnetwork-5.9.2.ebuild53
-rw-r--r--dev-qt/qtnetworkauth/Manifest3
-rw-r--r--dev-qt/qtnetworkauth/metadata.xml17
-rw-r--r--dev-qt/qtnetworkauth/qtnetworkauth-5.9.2.ebuild20
-rw-r--r--dev-qt/qtopengl/Manifest13
-rw-r--r--dev-qt/qtopengl/metadata.xml24
-rw-r--r--dev-qt/qtopengl/qtopengl-4.8.6-r1.ebuild48
-rw-r--r--dev-qt/qtopengl/qtopengl-4.8.7.ebuild45
-rw-r--r--dev-qt/qtopengl/qtopengl-5.6.2.ebuild34
-rw-r--r--dev-qt/qtopengl/qtopengl-5.7.1.ebuild34
-rw-r--r--dev-qt/qtopengl/qtopengl-5.9.2.ebuild34
-rw-r--r--dev-qt/qtpaths/Manifest9
-rw-r--r--dev-qt/qtpaths/metadata.xml17
-rw-r--r--dev-qt/qtpaths/qtpaths-5.6.2.ebuild23
-rw-r--r--dev-qt/qtpaths/qtpaths-5.7.1.ebuild23
-rw-r--r--dev-qt/qtpaths/qtpaths-5.9.2.ebuild23
-rw-r--r--dev-qt/qtplugininfo/Manifest8
-rw-r--r--dev-qt/qtplugininfo/metadata.xml17
-rw-r--r--dev-qt/qtplugininfo/qtplugininfo-5.6.2.ebuild23
-rw-r--r--dev-qt/qtplugininfo/qtplugininfo-5.7.1.ebuild23
-rw-r--r--dev-qt/qtplugininfo/qtplugininfo-5.9.2.ebuild23
-rw-r--r--dev-qt/qtpositioning/Manifest9
-rw-r--r--dev-qt/qtpositioning/metadata.xml21
-rw-r--r--dev-qt/qtpositioning/qtpositioning-5.6.2.ebuild34
-rw-r--r--dev-qt/qtpositioning/qtpositioning-5.7.1.ebuild34
-rw-r--r--dev-qt/qtpositioning/qtpositioning-5.9.2.ebuild37
-rw-r--r--dev-qt/qtprintsupport/Manifest9
-rw-r--r--dev-qt/qtprintsupport/metadata.xml20
-rw-r--r--dev-qt/qtprintsupport/qtprintsupport-5.6.2.ebuild42
-rw-r--r--dev-qt/qtprintsupport/qtprintsupport-5.7.1.ebuild42
-rw-r--r--dev-qt/qtprintsupport/qtprintsupport-5.9.2.ebuild42
-rw-r--r--dev-qt/qtquickcontrols/Manifest9
-rw-r--r--dev-qt/qtquickcontrols/metadata.xml20
-rw-r--r--dev-qt/qtquickcontrols/qtquickcontrols-5.6.2.ebuild32
-rw-r--r--dev-qt/qtquickcontrols/qtquickcontrols-5.7.1.ebuild32
-rw-r--r--dev-qt/qtquickcontrols/qtquickcontrols-5.9.2.ebuild32
-rw-r--r--dev-qt/qtquickcontrols2/Manifest6
-rw-r--r--dev-qt/qtquickcontrols2/metadata.xml20
-rw-r--r--dev-qt/qtquickcontrols2/qtquickcontrols2-5.7.1.ebuild21
-rw-r--r--dev-qt/qtquickcontrols2/qtquickcontrols2-5.9.2.ebuild30
-rw-r--r--dev-qt/qtscript/Manifest14
-rw-r--r--dev-qt/qtscript/files/4.8.6-javascriptcore-x32.patch53
-rw-r--r--dev-qt/qtscript/metadata.xml22
-rw-r--r--dev-qt/qtscript/qtscript-4.8.6-r2.ebuild41
-rw-r--r--dev-qt/qtscript/qtscript-4.8.7.ebuild38
-rw-r--r--dev-qt/qtscript/qtscript-5.6.2.ebuild36
-rw-r--r--dev-qt/qtscript/qtscript-5.7.1.ebuild36
-rw-r--r--dev-qt/qtscript/qtscript-5.9.2.ebuild36
-rw-r--r--dev-qt/qtscxml/Manifest6
-rw-r--r--dev-qt/qtscxml/metadata.xml17
-rw-r--r--dev-qt/qtscxml/qtscxml-5.7.1.ebuild19
-rw-r--r--dev-qt/qtscxml/qtscxml-5.9.2.ebuild19
-rw-r--r--dev-qt/qtsensors/Manifest9
-rw-r--r--dev-qt/qtsensors/metadata.xml20
-rw-r--r--dev-qt/qtsensors/qtsensors-5.6.2.ebuild26
-rw-r--r--dev-qt/qtsensors/qtsensors-5.7.1.ebuild26
-rw-r--r--dev-qt/qtsensors/qtsensors-5.9.2.ebuild28
-rw-r--r--dev-qt/qtserialbus/Manifest3
-rw-r--r--dev-qt/qtserialbus/metadata.xml17
-rw-r--r--dev-qt/qtserialbus/qtserialbus-5.9.2.ebuild20
-rw-r--r--dev-qt/qtserialport/Manifest9
-rw-r--r--dev-qt/qtserialport/metadata.xml17
-rw-r--r--dev-qt/qtserialport/qtserialport-5.6.2.ebuild27
-rw-r--r--dev-qt/qtserialport/qtserialport-5.7.1.ebuild27
-rw-r--r--dev-qt/qtserialport/qtserialport-5.9.2.ebuild27
-rw-r--r--dev-qt/qtsingleapplication/Manifest9
-rw-r--r--dev-qt/qtsingleapplication/files/2.6.1_p20130904-no-gui.patch67
-rw-r--r--dev-qt/qtsingleapplication/files/2.6.1_p20130904-unbundle-qtlockedfile.patch81
-rw-r--r--dev-qt/qtsingleapplication/files/qtsingleapplication.prf9
-rw-r--r--dev-qt/qtsingleapplication/files/qtsinglecoreapplication.prf8
-rw-r--r--dev-qt/qtsingleapplication/metadata.xml8
-rw-r--r--dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20150629.ebuild95
-rw-r--r--dev-qt/qtspeech/Manifest3
-rw-r--r--dev-qt/qtspeech/metadata.xml17
-rw-r--r--dev-qt/qtspeech/qtspeech-5.9.2.ebuild20
-rw-r--r--dev-qt/qtsql/Manifest15
-rw-r--r--dev-qt/qtsql/files/qtsql-5.7.1-mariadb.patch56
-rw-r--r--dev-qt/qtsql/metadata.xml22
-rw-r--r--dev-qt/qtsql/qtsql-4.8.6-r1.ebuild62
-rw-r--r--dev-qt/qtsql/qtsql-4.8.7-r1.ebuild59
-rw-r--r--dev-qt/qtsql/qtsql-5.6.2.ebuild53
-rw-r--r--dev-qt/qtsql/qtsql-5.7.1-r1.ebuild55
-rw-r--r--dev-qt/qtsql/qtsql-5.7.1.ebuild53
-rw-r--r--dev-qt/qtsql/qtsql-5.9.2.ebuild53
-rw-r--r--dev-qt/qtsvg/Manifest13
-rw-r--r--dev-qt/qtsvg/metadata.xml21
-rw-r--r--dev-qt/qtsvg/qtsvg-4.8.6-r1.ebuild45
-rw-r--r--dev-qt/qtsvg/qtsvg-4.8.7.ebuild42
-rw-r--r--dev-qt/qtsvg/qtsvg-5.6.2.ebuild23
-rw-r--r--dev-qt/qtsvg/qtsvg-5.7.1.ebuild23
-rw-r--r--dev-qt/qtsvg/qtsvg-5.9.2.ebuild23
-rw-r--r--dev-qt/qttest/Manifest13
-rw-r--r--dev-qt/qttest/metadata.xml21
-rw-r--r--dev-qt/qttest/qttest-4.8.6-r1.ebuild35
-rw-r--r--dev-qt/qttest/qttest-4.8.7.ebuild32
-rw-r--r--dev-qt/qttest/qttest-5.6.2.ebuild29
-rw-r--r--dev-qt/qttest/qttest-5.7.1.ebuild29
-rw-r--r--dev-qt/qttest/qttest-5.9.2.ebuild29
-rw-r--r--dev-qt/qttranslations/Manifest13
-rw-r--r--dev-qt/qttranslations/metadata.xml17
-rw-r--r--dev-qt/qttranslations/qttranslations-4.8.6-r1.ebuild43
-rw-r--r--dev-qt/qttranslations/qttranslations-4.8.7.ebuild40
-rw-r--r--dev-qt/qttranslations/qttranslations-5.6.2.ebuild19
-rw-r--r--dev-qt/qttranslations/qttranslations-5.7.1.ebuild19
-rw-r--r--dev-qt/qttranslations/qttranslations-5.9.2.ebuild19
-rw-r--r--dev-qt/qtvirtualkeyboard/Manifest5
-rw-r--r--dev-qt/qtvirtualkeyboard/metadata.xml20
-rw-r--r--dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.7.1.ebuild38
-rw-r--r--dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.9.2.ebuild38
-rw-r--r--dev-qt/qtwayland/Manifest9
-rw-r--r--dev-qt/qtwayland/metadata.xml22
-rw-r--r--dev-qt/qtwayland/qtwayland-5.6.2.ebuild40
-rw-r--r--dev-qt/qtwayland/qtwayland-5.7.1.ebuild33
-rw-r--r--dev-qt/qtwayland/qtwayland-5.9.2.ebuild39
-rw-r--r--dev-qt/qtwebchannel/Manifest9
-rw-r--r--dev-qt/qtwebchannel/metadata.xml20
-rw-r--r--dev-qt/qtwebchannel/qtwebchannel-5.6.2.ebuild26
-rw-r--r--dev-qt/qtwebchannel/qtwebchannel-5.7.1.ebuild26
-rw-r--r--dev-qt/qtwebchannel/qtwebchannel-5.9.2.ebuild26
-rw-r--r--dev-qt/qtwebengine/Manifest15
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.7.0-fix-system-ffmpeg.patch13
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.7.0-icu58.patch51
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.7.0-undef-madv_free.patch33
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.7.1-fix-audio-detection.patch23
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.7.1-gcc-7.patch144
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-5.9.0-paxmark-mksnapshot.patch46
-rw-r--r--dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch46
-rw-r--r--dev-qt/qtwebengine/metadata.xml27
-rw-r--r--dev-qt/qtwebengine/qtwebengine-5.6.2-r1.ebuild105
-rw-r--r--dev-qt/qtwebengine/qtwebengine-5.7.1-r2.ebuild122
-rw-r--r--dev-qt/qtwebengine/qtwebengine-5.9.2.ebuild114
-rw-r--r--dev-qt/qtwebkit/Manifest24
-rw-r--r--dev-qt/qtwebkit/files/4.10.4-gcc5.patch35
-rw-r--r--dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch40
-rw-r--r--dev-qt/qtwebkit/files/4.8.2-javascriptcore-x32.patch11
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.2.1-disable-gstreamer.patch15
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.3.2-use-gstreamer010.patch18
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch25
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.5.1-disable-jit.patch15
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.6.2-icu-59.patch92
-rw-r--r--dev-qt/qtwebkit/files/qtwebkit-5.8.0-disable-gstreamer.patch15
-rw-r--r--dev-qt/qtwebkit/metadata.xml31
-rw-r--r--dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild125
-rw-r--r--dev-qt/qtwebkit/qtwebkit-4.8.6-r1.ebuild72
-rw-r--r--dev-qt/qtwebkit/qtwebkit-4.8.7.ebuild69
-rw-r--r--dev-qt/qtwebkit/qtwebkit-5.6.2.ebuild109
-rw-r--r--dev-qt/qtwebkit/qtwebkit-5.7.1.ebuild119
-rw-r--r--dev-qt/qtwebkit/qtwebkit-5.9.1.ebuild120
-rw-r--r--dev-qt/qtwebsockets/Manifest9
-rw-r--r--dev-qt/qtwebsockets/metadata.xml20
-rw-r--r--dev-qt/qtwebsockets/qtwebsockets-5.6.2.ebuild27
-rw-r--r--dev-qt/qtwebsockets/qtwebsockets-5.7.1.ebuild27
-rw-r--r--dev-qt/qtwebsockets/qtwebsockets-5.9.2.ebuild27
-rw-r--r--dev-qt/qtwebview/Manifest5
-rw-r--r--dev-qt/qtwebview/metadata.xml17
-rw-r--r--dev-qt/qtwebview/qtwebview-5.7.1.ebuild22
-rw-r--r--dev-qt/qtwebview/qtwebview-5.9.2.ebuild21
-rw-r--r--dev-qt/qtwidgets/Manifest9
-rw-r--r--dev-qt/qtwidgets/metadata.xml22
-rw-r--r--dev-qt/qtwidgets/qtwidgets-5.6.2.ebuild42
-rw-r--r--dev-qt/qtwidgets/qtwidgets-5.7.1.ebuild41
-rw-r--r--dev-qt/qtwidgets/qtwidgets-5.9.2.ebuild49
-rw-r--r--dev-qt/qtx11extras/Manifest9
-rw-r--r--dev-qt/qtx11extras/metadata.xml17
-rw-r--r--dev-qt/qtx11extras/qtx11extras-5.6.2.ebuild21
-rw-r--r--dev-qt/qtx11extras/qtx11extras-5.7.1.ebuild21
-rw-r--r--dev-qt/qtx11extras/qtx11extras-5.9.2.ebuild21
-rw-r--r--dev-qt/qtxml/Manifest9
-rw-r--r--dev-qt/qtxml/metadata.xml17
-rw-r--r--dev-qt/qtxml/qtxml-5.6.2.ebuild25
-rw-r--r--dev-qt/qtxml/qtxml-5.7.1.ebuild25
-rw-r--r--dev-qt/qtxml/qtxml-5.9.2.ebuild25
-rw-r--r--dev-qt/qtxmlpatterns/Manifest13
-rw-r--r--dev-qt/qtxmlpatterns/metadata.xml17
-rw-r--r--dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.6-r1.ebuild36
-rw-r--r--dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.7.ebuild33
-rw-r--r--dev-qt/qtxmlpatterns/qtxmlpatterns-5.6.2.ebuild19
-rw-r--r--dev-qt/qtxmlpatterns/qtxmlpatterns-5.7.1.ebuild19
-rw-r--r--dev-qt/qtxmlpatterns/qtxmlpatterns-5.9.2.ebuild19
384 files changed, 14466 insertions, 0 deletions
diff --git a/dev-qt/assistant/Manifest b/dev-qt/assistant/Manifest
new file mode 100644
index 000000000000..8144409836b9
--- /dev/null
+++ b/dev-qt/assistant/Manifest
@@ -0,0 +1,15 @@
+AUX assistant-4.8.2+gcc-4.7.patch 500 SHA256 1e28d6035fec1ea45feef2137f9f8ff7d4ecea0d8236750f974802fb98200c83 SHA512 1948a7b47e5e15da47408af18c518762818542b42f2768a73acba698f23fca837a690be9821974be01662b45b7b3823b314577fa79472cf3f96620c0a1155a18 WHIRLPOOL 6712b21ffa4d23786780768df470dd81e90de40b775417c9ce9f9ba3b30b398ce15c932a01678331d6c4819c71a99be22cf3442360bf440aea56dc943aa1dd1c
+AUX disable-webkit.patch 872 SHA256 b6fd53493f8f663d8d23a174d20fceb5a5258275ce77eb5d6a6115322e5beddc SHA512 9c05843197aab2a5e49aefb4aaa8e1ee73b4c410ec54ede9ca958672962713b1949493447a06bf7aaa1733bf22b3a67a77f94e4063b47bb30bade1522d29830b WHIRLPOOL 13848f7cc0f8df9b05da590cc61b7872f1eff7cc09d004d77c78b459ad5c0ae6623eb229484e256a3e582d43fd6573f06dbc01ccadd3cf6cb1f0d1d84e9bc92c
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD assistant-4.8.6-r1.ebuild 1523 SHA256 b331ba47dface64327ab06683d6f9a7887878e9d37fdeaa81e158b09e0482fff SHA512 2b3db35f37b03d819b96c893bad3e006df34a383a79201ee46e781bba4fc409ac9ca8b0a1698f37fd29fbdb7823cba6cda7c2ba52b648460d2b950d72528e272 WHIRLPOOL 78f7fd813026565d4f851e0db319dfc2b342d06aa22d5d62083bda4cfe207bc53096c5eb623fc131fc8d5ef8b41756f04ab04458f5b2ba2e415e33e9e5dab205
+EBUILD assistant-4.8.7.ebuild 1477 SHA256 0369c6acb540ed0f0a2d9efc5d78ff421945082c1d84317ce9e6bb6590d70370 SHA512 2f01f97502f9990a048b3dc974e6295cdb8f97f2804f0a20a9f515e7a8a04611718d680778ce35ddac45b6406dfb4fcf05a60a7f24acdcbfd3787c3e2961eb6b WHIRLPOOL be9557def5626d8c19e958395d38113c4247ba0337bd56b1947993f35effb184ceb841f7c5402becceb2336c735096093182fbcb185a55365c73e5f3bf27e43b
+EBUILD assistant-5.6.2.ebuild 748 SHA256 dae333616aa1b9b034e94257d96280bc7ff3eec827b44942e3bd9c2e3cd3e2fb SHA512 36325a00e731916018330262563088ab47182dd40a67182b86314cc191688a5ac66afd2432f076399ad64456294c93a341985ebf6ff7fdc9bacfbec723d9d0ff WHIRLPOOL e7ef6e340bb03a6c082ed0a01ed5fadca6815cdbbc981d1fe9942a024f79e4c25032d3e7a7ca4929843b237436edaea4bf28538790ffcf518ab412492d4b76a0
+EBUILD assistant-5.7.1.ebuild 749 SHA256 eb5ccf3d74ba113d0c57873a249d33d1a742b38a9d45bbc2a5d2dbaa934919d2 SHA512 a25bcd1d1737a0cc3368d38e0dc91a224bc37205547be3969b546a4ac6104157296e0b568a39056f1340a2c248a5867a74ec27ce3b9e965a75da89c7c3cc4f45 WHIRLPOOL fb3ed727a0b63dee08fc9ba4ad9d2acf3aa29bca25de1d43986b0a292c6c306c07d8177826f688e35db6ef3dcd0108b9a7445e4200d7f86df3c74f82cf6f08d3
+EBUILD assistant-5.9.2.ebuild 756 SHA256 944aac7c8b12cc1b15554209acb653a2813193d12fb27b9efbc38238727e3690 SHA512 1e48ce8cee9555fc85bc5775e960b7367c8e1a832bad1bfdefcfd7195caeb73b5d4c70397694f0464044e8031f557f9e7b8c6d53c6b9dad417408210efc88c2a WHIRLPOOL 0f4cdd43cc104a6c9368d4443276927c52f09d425b58e0caa271bef37880577c347f34099f85d2df73df08d30bebe18a481c308ba1f79db37546dbb5d39e8e85
+MISC ChangeLog 6933 SHA256 17ddd61d598f793a1150f1cf3733fc5cb112e568dfc06d1e6582e1a79a213035 SHA512 d345a274d69f0c2537bfb67660c86bd72b381fe4b1384b13a041ef5bfb6dec1799daff75925b8ed68c83c8141958f42e2e5aafceb26caa181391e2a50aeb1204 WHIRLPOOL baa799c3d82fae8387fb44cc1deabe7e0b491c30be4a63c8529e125cd717877b69e772627843ea59804bbda75accf3b6374c1fb90f020230033d62712ca9ba18
+MISC ChangeLog-2015 4177 SHA256 5ae1814df0f643b47b0a352127128d1dc7e1b03753fb7fbe7b9fc001a08cb2a5 SHA512 6ebea3143237cbb8bd07ca5dd61aca0d20e1b870ae838018697d1cad23095becd31690f4268e5679ca4b377c06ae68a2224c3cee954106769302da490584f68d WHIRLPOOL 886e891411e049ab11e4ed56f8638bcc7feb510f79e6389ecb0b153cd00e261a14db0e0c7a90acb862f57600abb43437365169a193e9c4862e2dd17c290ecaba
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/assistant/assistant-4.8.6-r1.ebuild b/dev-qt/assistant/assistant-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..2984aecba113
--- /dev/null
+++ b/dev-qt/assistant/assistant-4.8.6-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Tool for viewing on-line documentation in Qt help file format"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE="webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qthelp-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,sqlite,${MULTILIB_USEDEP}]
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.2+gcc-4.7.patch"
+)
+
+QT4_TARGET_DIRECTORIES="tools/assistant/tools/assistant"
+
+src_prepare() {
+ # bug 401173
+ use webkit || PATCHES+=("${FILESDIR}/disable-webkit.patch")
+
+ qt4-build-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-multimedia -no-opengl -no-phonon -no-svg -no-xmlpatterns
+ $(qt_use webkit)
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ doicon tools/assistant/tools/assistant/images/assistant.png
+ make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation'
+}
diff --git a/dev-qt/assistant/assistant-4.8.7.ebuild b/dev-qt/assistant/assistant-4.8.7.ebuild
new file mode 100644
index 000000000000..41eb312612bc
--- /dev/null
+++ b/dev-qt/assistant/assistant-4.8.7.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Tool for viewing on-line documentation in Qt help file format"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE="webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qthelp-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,sqlite,${MULTILIB_USEDEP}]
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.2+gcc-4.7.patch"
+)
+
+QT4_TARGET_DIRECTORIES="tools/assistant/tools/assistant"
+
+src_prepare() {
+ # bug 401173
+ use webkit || PATCHES+=("${FILESDIR}/disable-webkit.patch")
+
+ qt4-build-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-multimedia -no-opengl -no-phonon -no-svg -no-xmlpatterns
+ $(qt_use webkit)
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ doicon tools/assistant/tools/assistant/images/assistant.png
+ make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation'
+}
diff --git a/dev-qt/assistant/assistant-5.6.2.ebuild b/dev-qt/assistant/assistant-5.6.2.ebuild
new file mode 100644
index 000000000000..bce9b243bcd4
--- /dev/null
+++ b/dev-qt/assistant/assistant-5.6.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for viewing on-line documentation in Qt help file format"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE="webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qthelp-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+ webkit? ( ~dev-qt/qtwebkit-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/assistant
+)
+
+src_prepare() {
+ qt_use_disable_mod webkit webkitwidgets \
+ src/assistant/assistant/assistant.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/assistant/assistant-5.7.1.ebuild b/dev-qt/assistant/assistant-5.7.1.ebuild
new file mode 100644
index 000000000000..a584bed1d994
--- /dev/null
+++ b/dev-qt/assistant/assistant-5.7.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for viewing on-line documentation in Qt help file format"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE="webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qthelp-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+ webkit? ( ~dev-qt/qtwebkit-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/assistant
+)
+
+src_prepare() {
+ qt_use_disable_mod webkit webkitwidgets \
+ src/assistant/assistant/assistant.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/assistant/assistant-5.9.2.ebuild b/dev-qt/assistant/assistant-5.9.2.ebuild
new file mode 100644
index 000000000000..6342c0fd7069
--- /dev/null
+++ b/dev-qt/assistant/assistant-5.9.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for viewing on-line documentation in Qt help file format"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qthelp-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+ webkit? ( >=dev-qt/qtwebkit-5.9.1:5 )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/assistant
+)
+
+src_prepare() {
+ qt_use_disable_mod webkit webkitwidgets \
+ src/assistant/assistant/assistant.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/assistant/files/assistant-4.8.2+gcc-4.7.patch b/dev-qt/assistant/files/assistant-4.8.2+gcc-4.7.patch
new file mode 100644
index 000000000000..1cf70275f634
--- /dev/null
+++ b/dev-qt/assistant/files/assistant-4.8.2+gcc-4.7.patch
@@ -0,0 +1,12 @@
+--- tools/assistant/tools/assistant/mainwindow.cpp 2012-06-27 03:02:37.539564947 +0200
++++ tools/assistant/tools/assistant/mainwindow.cpp 2012-06-27 03:03:18.843561620 +0200
+@@ -944,8 +944,7 @@ void MainWindow::updateApplicationFont()
+ if (helpEngine.usesAppFont())
+ font = helpEngine.appFont();
+
+- const QWidgetList &widgets = qApp->allWidgets();
+- foreach (QWidget* widget, widgets)
++ foreach (QWidget* widget, QApplication::allWidgets())
+ widget->setFont(font);
+ }
+
diff --git a/dev-qt/assistant/files/disable-webkit.patch b/dev-qt/assistant/files/disable-webkit.patch
new file mode 100644
index 000000000000..61bca05148e5
--- /dev/null
+++ b/dev-qt/assistant/files/disable-webkit.patch
@@ -0,0 +1,26 @@
+Index: qt-everywhere-opensource-src-4.8.9999/tools/assistant/tools/assistant/assistant.pro
+===================================================================
+--- qt-everywhere-opensource-src-4.8.9999.orig/tools/assistant/tools/assistant/assistant.pro
++++ qt-everywhere-opensource-src-4.8.9999/tools/assistant/tools/assistant/assistant.pro
+@@ -2,7 +2,6 @@ include(../../../shared/fontpanel/fontpa
+ TEMPLATE = app
+ LANGUAGE = C++
+ TARGET = assistant
+-contains(QT_CONFIG, webkit):QT += webkit
+ CONFIG += qt \
+ warn_on \
+ help
+@@ -81,11 +80,8 @@ SOURCES += aboutdialog.cpp \
+ openpageswidget.cpp \
+ openpagesmanager.cpp \
+ openpagesswitcher.cpp
+-contains(QT_CONFIG, webkit) {
+- SOURCES += helpviewer_qwv.cpp
+-} else {
+- SOURCES += helpviewer_qtb.cpp
+-}
++
++SOURCES += helpviewer_qtb.cpp
+
+ FORMS += bookmarkdialog.ui \
+ bookmarkmanagerwidget.ui \ \ No newline at end of file
diff --git a/dev-qt/assistant/metadata.xml b/dev-qt/assistant/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/assistant/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/designer/Manifest b/dev-qt/designer/Manifest
new file mode 100644
index 000000000000..cb4c4d2a058f
--- /dev/null
+++ b/dev-qt/designer/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD designer-4.8.6-r1.ebuild 1792 SHA256 afc3ed7fcdbcbfd167b599c5ac0c94f8553b11293d47ce227fdb6cfcab3fd130 SHA512 41599c6b8429f4b404fc5b4527ada3743811ec0bb2f1cf70729e727fadbc5c458b3aa8370f3237dad3c75a4fed97c97a7abff6e2a8124069978100284dcc6365 WHIRLPOOL af43cea42d85e6b8640983ff63570e01c7b723fb11d3a3b687d5d6209be21135140b77a6cb30401596b284174eb5dd055f5b3c89603942f344093aed968086e3
+EBUILD designer-4.8.7.ebuild 1746 SHA256 d0ca9b81c7c399bfa0fcd851d4bc84f96b048abc6d1ceefea6c340952b2c85cc SHA512 69c7c89fde7f2bfb98ee87f0fa3af6bff2a815c0bf71436fc32a5d1d2e8dfa0184f2383b341be942c6581c0c218ad7d2ccef2ca2406da9b046180a7e79aba191 WHIRLPOOL d4fa8b93744c27b2013263cb7f85f09b8352e361d08a3f92533cb2baa952eab90454024ecccdb542cc7e4d7f45f1c4241fe605d32ff25e6665e142a470f8259f
+EBUILD designer-5.6.2.ebuild 856 SHA256 41ce2cf083f2d586470ee74bf8662ada92a0c97f723faf9837bb2fcefc9de182 SHA512 88f81305205949956af77d8eb6fac212e295f4d3de3397f8f62b1a98a718462dd581a6f9c36a68b21e084820f2d3f2cae7af1989b70cde65145a7e482982388e WHIRLPOOL 644e1cca8718b59b3f065e6d733327ea742f9fde54025a97a61f3f2cc9de23535fe425e45932bad3c843638f4d092d5b164a55b46bda297f74ff5cb036359249
+EBUILD designer-5.7.1.ebuild 864 SHA256 4d5c5f007accd14c153a2759023a74db2345e3f242e28fbdbbb91c1bc949fffb SHA512 83ff83ebc13fb2063ef779306a3739d2acac28447821601a1e2544288bb360803fd6e59a42c70fed5f3c99835122c56a9856542b5089a4b007feb87dd6f79fe8 WHIRLPOOL 56ce28c25e68851ea023ab918430fdf55b4f50b055ff20c13792f7df593c20214b156b99970088c5e5e4106f914e36c116c3e6da4b9d0fbf53c5f0fcff6f0586
+EBUILD designer-5.9.2.ebuild 872 SHA256 2b081e26e2bb4f71750216913058f4235aa2a0ae8cd882a102b38d947db15316 SHA512 b23acad0c04c06bba34906b1d6b0a9e9320b19f0d5542905feb78865f891952fa17cdfa1a45d805a257c2eb348123ccba7273e638c3148c382689203b25c942f WHIRLPOOL 01b516e2770ebbfc6d8a8b4e841490b45e432ed306ca2ff8764cc643ff3dbeb61b48cd0d5f8964636ced62cfafbfb0a1f7a90a06239bc15d9e4c408945c891c4
+MISC ChangeLog 7483 SHA256 1fda3fe7d320f80dd53b5c0161a0f0713265b134e2b68002c4732b37359165d1 SHA512 7696166b2cccb97a113e2865bd8867f69adbd63a08c3494838ff358c54751bfec73ef1d69fd8375a4af5f64f726a54300248e99ba92ccd1443f919b4908ab83b WHIRLPOOL 8fc87426292bd3d8cf5c4bdf449b8e7cc4d88f6deb235b421ae7d440d2c700a44544ffaeab7af7c0edc3bac814d695c5ef365bf4a60eaceee5b8c07aedd35618
+MISC ChangeLog-2015 4915 SHA256 1e0e8fb5e3b168064c53fe0175b6352628cd877c47bf99cf51c191dea35470af SHA512 3c8ddb578f6ee14cc4438a91ec2abab95a665c8b196244a54c0d9a3bd756e49cd3ea69e0cce7ab31b9a59d41682f3ec6199b3a7a92d3380a8d859f15bdadc861 WHIRLPOOL bb2f33c706a6128e4fa7571ad99f5b8f9b8008b1a40fa483d50b39efb82bdc546fdac3ed3b3d1834276a8929eab9d3334d0c1ff69bf5fcfd1587fcb831e1d1b5
+MISC metadata.xml 879 SHA256 fe6665a10ff7bb9766726fdfefb85f529c1451aed60ff798d264bc4deb25bf9c SHA512 fba36502504141e09462fb211dacbfe43db6cb6e750f699058c757c1fc24072eb5ed50bbbb20e2bbacb831f165a58c20cb9c012ccbe96665969e1fc8fc153489 WHIRLPOOL 3643332411cdddc2adeb3aa20283ff06d7403048a487ccb3e73c88b66f8351c0fc1bf687930cc0b17f8a2b02251dcd092673c8305741646978739f6f4e018f48
diff --git a/dev-qt/designer/designer-4.8.6-r1.ebuild b/dev-qt/designer/designer-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..9ae4d7cec21f
--- /dev/null
+++ b/dev-qt/designer/designer-4.8.6-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+DESIGNER_PLUGINS="declarative phonon qt3support webkit"
+IUSE="${DESIGNER_PLUGINS}"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+PDEPEND="phonon? ( media-libs/phonon[designer,qt4] )"
+
+QT4_TARGET_DIRECTORIES="tools/designer"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ local plugin
+ for plugin in ${DESIGNER_PLUGINS}; do
+ if ! use ${plugin} || [[ ${plugin} == phonon ]]; then
+ sed -i -e "/\<${plugin}\>/d" \
+ tools/designer/src/plugins/plugins.pro || die
+ fi
+ done
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ doicon tools/designer/src/designer/images/designer.png
+ make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner'
+}
diff --git a/dev-qt/designer/designer-4.8.7.ebuild b/dev-qt/designer/designer-4.8.7.ebuild
new file mode 100644
index 000000000000..7fbb1e9854ca
--- /dev/null
+++ b/dev-qt/designer/designer-4.8.7.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+DESIGNER_PLUGINS="declarative phonon qt3support webkit"
+IUSE="${DESIGNER_PLUGINS}"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+PDEPEND="phonon? ( media-libs/phonon[designer,qt4] )"
+
+QT4_TARGET_DIRECTORIES="tools/designer"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ local plugin
+ for plugin in ${DESIGNER_PLUGINS}; do
+ if ! use ${plugin} || [[ ${plugin} == phonon ]]; then
+ sed -i -e "/\<${plugin}\>/d" \
+ tools/designer/src/plugins/plugins.pro || die
+ fi
+ done
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ doicon tools/designer/src/designer/images/designer.png
+ make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner'
+}
diff --git a/dev-qt/designer/designer-5.6.2.ebuild b/dev-qt/designer/designer-5.6.2.ebuild
new file mode 100644
index 000000000000..b53dae3874ca
--- /dev/null
+++ b/dev-qt/designer/designer-5.6.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+fi
+
+IUSE="declarative webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[widgets] )
+ webkit? ( ~dev-qt/qtwebkit-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/designer
+)
+
+src_prepare() {
+ qt_use_disable_mod declarative quickwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt_use_disable_mod webkit webkitwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/designer/designer-5.7.1.ebuild b/dev-qt/designer/designer-5.7.1.ebuild
new file mode 100644
index 000000000000..d836a6ad68ea
--- /dev/null
+++ b/dev-qt/designer/designer-5.7.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="declarative webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[widgets] )
+ webkit? ( ~dev-qt/qtwebkit-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/designer
+)
+
+src_prepare() {
+ qt_use_disable_mod declarative quickwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt_use_disable_mod webkit webkitwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/designer/designer-5.9.2.ebuild b/dev-qt/designer/designer-5.9.2.ebuild
new file mode 100644
index 000000000000..d59ecd6964b9
--- /dev/null
+++ b/dev-qt/designer/designer-5.9.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="declarative webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[widgets] )
+ webkit? ( >=dev-qt/qtwebkit-5.9.1:5 )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/designer
+)
+
+src_prepare() {
+ qt_use_disable_mod declarative quickwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt_use_disable_mod webkit webkitwidgets \
+ src/designer/src/plugins/plugins.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/designer/metadata.xml b/dev-qt/designer/metadata.xml
new file mode 100644
index 000000000000..e72a70897a4f
--- /dev/null
+++ b/dev-qt/designer/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="declarative">Build the qdeclarativeview plugin</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="phonon">Build the phononwidgets plugin</flag>
+ <flag name="qt3support">Build the qt3supportwidgets plugin</flag>
+ <flag name="webkit">Build the qwebview plugin</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/linguist-tools/Manifest b/dev-qt/linguist-tools/Manifest
new file mode 100644
index 000000000000..9c7a5dcc6704
--- /dev/null
+++ b/dev-qt/linguist-tools/Manifest
@@ -0,0 +1,9 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD linguist-tools-5.6.2.ebuild 675 SHA256 e0ffd028580492f79f79ba9128939273c4795bd0a498e1524367c6e2eea8d59a SHA512 d72e63e19aaed94956b31c2679afe5c08d6bf13edd1c10c95398719ca6035d6681a169227b8b586be19be522625616c18e8a49aa5c46ab0010d4a770e4f6ef81 WHIRLPOOL 9b69c4060ff689e19d8abce91d55123712f7078a18a43e3010b298b7a5f1fa4873e0823b6189910f4bdccc3555c243010513444b2bced31f469cbff3bce43982
+EBUILD linguist-tools-5.7.1.ebuild 676 SHA256 386e45bfdb82f108fc84a38e856c5b410b92681439c178114b04355c6e05306c SHA512 cb62fb1f219d8ee064952132b4f208a4cd0be6d208564a26f60df53ce6f0d3f60f8b20ae626b9f1cc5edd1101d556b002589dec22052863ee37e0b9867edf64e WHIRLPOOL ed7dbe5e4bc70b086ad4ab49544dc499fc5084649d5a02a012b84681c12a205d42202947aa9b8768e40d9eacb6495b188aec8328d816f9016e4fc3901faf46e2
+EBUILD linguist-tools-5.9.2.ebuild 681 SHA256 176b2cd4165cc2f0c1fd90aa183742b9e0e83ebcc1cf10dc2630f5e815d2b15e SHA512 b7106e3943ff5c6a25419e58741a210efff46131a7da9497b16476bf514c8473b2813092f9161c5eb5a9da425f12fc549d69475b4367bac742aaab7799672769 WHIRLPOOL 37d24b35587bee3d7b5632f4ce0e5a7e7d8bd1a31657965fcab6c2cf54626733d836dfb081058ea9e0a7c9c3479b89cc9d2d6d5e498313d14490b05dc11a4eea
+MISC ChangeLog 7085 SHA256 dda453f51223fa0716a410c6cb9eea4a419b5cad77566c9fe6e023c720884a19 SHA512 a48a9aafc4854524f4a3fbee796b836a4fdeeab4d37cb906503f8aebeba4747304c74c786f3a715653ff2f05a1b79087fb7c2f8ec48e7f6a75464b445c0b55cb WHIRLPOOL 707ec8229bab823a1864aeac47ff128fd430ea3528fd33351d42cf086fd194bb198a6310cece1cb7321e7ecbdbcf575aeb809bee9dcdc68616c465c8bc0765c5
+MISC ChangeLog-2015 1777 SHA256 6b29095283d8e39323a1752f5801be81a25e680073f86455ded2de7a0e9e9c86 SHA512 0867639b8583e05b8a2f3b3dcbf6a9b039de4f20142fa26d50eb6b75e04ddda49c7f02bc28626204a49b01656e34f326857deab72333c8f4c6493da3f8cb232d WHIRLPOOL 8d75d3018904a9412e50a47a9fbb827d096e40e2e595bf6bcf1d3357a72a48d9136eb4e9759f266f70db1923c5c293127c93d72f2aed124ffdb258b4102f3e40
+MISC metadata.xml 552 SHA256 ba9ac6d41fb505cf28dcfe218adb1d777212a81b0bc6ce03cdd06e640bbda1cc SHA512 46972372e47619f16e45cee8623310fc3eb31d7490c9df58664e135d4b7be96140789655d7fcc42e472fb598de07c51b7286e0791f413f9b5271d90c9f89b36f WHIRLPOOL d654cffd76ae46dbbe3dd3b17d72f60142eefe27d71512cbea2eeb59b3491a56b3be760f3f052a0c8862146964bf28e579368da97f5974f94680359600524777
diff --git a/dev-qt/linguist-tools/linguist-tools-5.6.2.ebuild b/dev-qt/linguist-tools/linguist-tools-5.6.2.ebuild
new file mode 100644
index 000000000000..3bb4a706ec0a
--- /dev/null
+++ b/dev-qt/linguist-tools/linguist-tools-5.6.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tools for working with Qt translation data files"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtxml-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist
+)
+
+src_prepare() {
+ sed -i -e '/SUBDIRS += linguist/d' \
+ src/linguist/linguist.pro || die
+
+ qt_use_disable_mod qml qmldevtools-private \
+ src/linguist/lupdate/lupdate.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/linguist-tools/linguist-tools-5.7.1.ebuild b/dev-qt/linguist-tools/linguist-tools-5.7.1.ebuild
new file mode 100644
index 000000000000..f43b11c69bbd
--- /dev/null
+++ b/dev-qt/linguist-tools/linguist-tools-5.7.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tools for working with Qt translation data files"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtxml-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist
+)
+
+src_prepare() {
+ sed -i -e '/SUBDIRS += linguist/d' \
+ src/linguist/linguist.pro || die
+
+ qt_use_disable_mod qml qmldevtools-private \
+ src/linguist/lupdate/lupdate.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/linguist-tools/linguist-tools-5.9.2.ebuild b/dev-qt/linguist-tools/linguist-tools-5.9.2.ebuild
new file mode 100644
index 000000000000..b22c78fdb479
--- /dev/null
+++ b/dev-qt/linguist-tools/linguist-tools-5.9.2.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tools for working with Qt translation data files"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtxml-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist
+)
+
+src_prepare() {
+ sed -i -e '/SUBDIRS += linguist/d' \
+ src/linguist/linguist.pro || die
+
+ qt_use_disable_mod qml qmldevtools-private \
+ src/linguist/lupdate/lupdate.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/linguist-tools/metadata.xml b/dev-qt/linguist-tools/metadata.xml
new file mode 100644
index 000000000000..6577a64646a2
--- /dev/null
+++ b/dev-qt/linguist-tools/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="qml">Enable QML support in lupdate</flag>
+ </use>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/linguist/Manifest b/dev-qt/linguist/Manifest
new file mode 100644
index 000000000000..6d4890d12f44
--- /dev/null
+++ b/dev-qt/linguist/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD linguist-4.8.6-r1.ebuild 1202 SHA256 699d665ca777a45005df28df4326d9d2acab8548972d0f884813c91330c059ef SHA512 a18f82c9c921f17eaaed2f57092cbca3c88bc98722b1894e183d21490df5dfe31480787d22ec1df2342b75cd2b91b684ce6da3d1351238908847e99714e1d419 WHIRLPOOL c8d130ee04a6d3a7253e058a34c9768a7abd7215fe3afa3f2c9a8da39a97f6ecbb483852a456cba7972d8175821b72b7d8e39ab0b35d57ff0490b7915c7af800
+EBUILD linguist-4.8.7.ebuild 1156 SHA256 a0f995398ef39609d3218093530a48eb1454a1a3d168e3fdacf6e1d5433164c2 SHA512 c8468dc810ce46dcc6adbfb0d178b173299ec0bbc19936f6ff85df59759b4e710b6afe270d345653ca209e5c4d541ba03a20fafb596d3c1c83e74f46d152d9f6 WHIRLPOOL 9e27993deb64a6734092a3f64a88fd30ac94d3704bff8ac3cfd819fa9c3ec9c057b3553e3487232e58d38bdea9f51d1daf2f8dbe75a6978516daf59dfed45700
+EBUILD linguist-5.6.2.ebuild 532 SHA256 28422eeecdf6f12078f0c0311766649ddb03d75017f5b1312d06e1ed8a6dce85 SHA512 a60d50f62f1bb930cc41448566561d3202bff0cf5b6cb60c6df293bc44602424c4d3ed7e67d599ed2537acbd628eccb5a545b488380a66c986e3b90d595cbfee WHIRLPOOL d09c4c6e449fdac946d764c60ee723e0b8b6210c68aae5ddcbe2bb378b53e0388209f418339cf1e3ad255b35b7831456212463402d2ed9da1d830b8631d52ca2
+EBUILD linguist-5.7.1.ebuild 533 SHA256 8e973627f7693e74f4e3ab422c3cf472a7488279bfbbae389911effd69b238ef SHA512 e26d05555ead69ec45d7b748ce7cba2e303c3f133cbfb4c7af8d82be2fbad1fa2d756518658c20fc8beb671a377d351c2a499d1573f0db6c93aab96bec3317ae WHIRLPOOL c308ddc839fc63f9b80446a5e9c29f40da74d56e3a49668f6037541ac220a2395b543e12001c201f10f8ab2356875e265feb80dbb8e2a761f3002378433649ae
+EBUILD linguist-5.9.2.ebuild 537 SHA256 285078c3b04272174657e46d4df6d94e005adb375f7ddc5a1553f44512e30524 SHA512 b066ddf0be4a0adcba8df4e5c70e6f52eaba27cbd2b05a9f141fefd31b23e8781ee96d86610e7f8548c34c7efe08d814fe1248d46850cb913001cb9cc29b3635 WHIRLPOOL 7834d8b80157e9880fdb523899f9df03f2d37a8f5f1cc17b72d45e8a46d1f2754c2887dce38d811fab1b3708d9d1689b1dbc5e5202a613b84d0a5e09eaba376d
+MISC ChangeLog 6998 SHA256 7b49c4640367d196866544acdeba6c2709872555efca46d353e0a5f9038a39bd SHA512 56437fc6978a42d22b458cd50e603e8ec477c0f74c7c8c94cf5c99fc0ca46321e5768a76b34dafb88432d67b5a625b3db78e105f3649e043b4ebd9e1854ccd26 WHIRLPOOL 85160d419598858592adc4ae9fd023609f45c169e21b98c702c3466521a2cb381364554e2449ba51c867368d20316f878361a568013795922940a9931f866b74
+MISC ChangeLog-2015 4192 SHA256 fe96f1cf58015a950ec3fdf1a068c0cddf7813a53e287a374d8c34a3daa58b82 SHA512 9181acb9f19f8cabdf686979a315abeac8deca2997f39314dbcb0adbf3cea1b6859e72e1f4768b10870aabced84a64ede78305b5aa10a9831734e3be65db3974 WHIRLPOOL a961ac53f486e265e83554f8f5bc6b1a87d70b149182b42149dfea690536176c87ad69a0dfa5c380c34a2e5785632052644c7b4287e8029f770c8c147b756a92
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/linguist/linguist-4.8.6-r1.ebuild b/dev-qt/linguist/linguist-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..b62996ad1ad3
--- /dev/null
+++ b/dev-qt/linguist/linguist-4.8.6-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Graphical tool for translating Qt applications"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/designer-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/linguist/linguist"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ newicon tools/linguist/linguist/images/icons/linguist-128-32.png linguist.png
+ make_desktop_entry linguist Linguist linguist 'Qt;Development;Translation'
+}
diff --git a/dev-qt/linguist/linguist-4.8.7.ebuild b/dev-qt/linguist/linguist-4.8.7.ebuild
new file mode 100644
index 000000000000..0c0cce6d0fb6
--- /dev/null
+++ b/dev-qt/linguist/linguist-4.8.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Graphical tool for translating Qt applications"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/designer-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/linguist/linguist"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ newicon tools/linguist/linguist/images/icons/linguist-128-32.png linguist.png
+ make_desktop_entry linguist Linguist linguist 'Qt;Development;Translation'
+}
diff --git a/dev-qt/linguist/linguist-5.6.2.ebuild b/dev-qt/linguist/linguist-5.6.2.ebuild
new file mode 100644
index 000000000000..5d0a245275e1
--- /dev/null
+++ b/dev-qt/linguist/linguist-5.6.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool for translating Qt applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/designer-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist/linguist
+)
diff --git a/dev-qt/linguist/linguist-5.7.1.ebuild b/dev-qt/linguist/linguist-5.7.1.ebuild
new file mode 100644
index 000000000000..796aa4ae97b5
--- /dev/null
+++ b/dev-qt/linguist/linguist-5.7.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool for translating Qt applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/designer-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist/linguist
+)
diff --git a/dev-qt/linguist/linguist-5.9.2.ebuild b/dev-qt/linguist/linguist-5.9.2.ebuild
new file mode 100644
index 000000000000..163c6cf68e1d
--- /dev/null
+++ b/dev-qt/linguist/linguist-5.9.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool for translating Qt applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/designer-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtprintsupport-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/linguist/linguist
+)
diff --git a/dev-qt/linguist/metadata.xml b/dev-qt/linguist/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/linguist/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/metadata.xml b/dev-qt/metadata.xml
new file mode 100644
index 000000000000..798c9b87977f
--- /dev/null
+++ b/dev-qt/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The dev-qt category contains packages for the Qt framework modules and
+ directly related libraries and development applications from the upstream
+ Qt Project. Do not add other packages to this category.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría dev-qt contiene paquetes para los módulos del marco de trabajo
+ Qt y las librerías y aplicaciones de desarrollo directamente relacionadas
+ del proyecto Qt. No añadir otros paquetes a esta categoría.
+ </longdescription>
+</catmetadata>
diff --git a/dev-qt/pixeltool/Manifest b/dev-qt/pixeltool/Manifest
new file mode 100644
index 000000000000..2ea5da7f00f9
--- /dev/null
+++ b/dev-qt/pixeltool/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD pixeltool-4.8.6-r1.ebuild 882 SHA256 3e9c8124c3d1bb9e462574a6270a122dac99b1635bdf1d6324fbea425f6d3ebd SHA512 46c817919a9dee4ce13a52073375d1a32dafef1256e50e910ed41c52b609f9963c203331593310a595d4d72f236ff124b35c8fd6b102aa324a6c4f31293acd59 WHIRLPOOL 89814b72eae4cc21ae00acb1914ec58036c11467d3115cb708dcdbb2efb2044d6cca12abbdc1605dd412a54dc94cb7591146f3606e327f5b46c22327c7aaff42
+EBUILD pixeltool-4.8.7.ebuild 836 SHA256 bf7d5c832a83db5e8722bc12065c636533a00f3667304aa4d2840d4dd8b1008e SHA512 2ea3e1e6dc5a40b63108785c6e08e59f395194fcf247f8ed77ce8ab874eef04a76384444093a3878ea0d41949344a212a4fa25e84c4dde8e5a26b96a64b94fa8 WHIRLPOOL f3c8910511cede2ed6d328ad1622e47c493658d71d0fa6c223bbfbbb2eda146a7a6f32699792eea31a62e4039ca50595fcbf79f26341ef62d25e0320be1d1892
+EBUILD pixeltool-5.6.2.ebuild 447 SHA256 e280a691265c545152747a04b73ec1798d4023a2db380c27fece6139d7671f36 SHA512 050751e60f9307b35769a213710898ac65c23facfc830c48a22b5d521362c644b05acada9c071cbd1fcd9e2a4824c2281140209e63683d2619a819a0b4fa2cd0 WHIRLPOOL 63cb1b549bf818112613b333e04b376c5c864ba686ec5ad64f69e30fa74e7574a8b4a9d0885646e77cfb194aaae74d9ace8bcb0aacc624961f8039c69ef0dccb
+EBUILD pixeltool-5.7.1.ebuild 448 SHA256 1c65d4d989be39f7c9423aa9d31deaeaf6d75e87a864956a80ba3bac66db591c SHA512 04a7923d304f4f6b72e9a445938238c8ab75b4985003a33043e2c34925ebde30abfc8e58548b3d902eac7ae2619947a5b345bd8fa2fc4def8cc3db641df498a0 WHIRLPOOL 76f14f134648904ecd4ac08727bbbd8de83dc52ac6ae58b3427a2cc5bb354c58286bb7301d7cd873cc56eb86715a9e38670a12622b3da97472e1a7b7c5a0e8d4
+EBUILD pixeltool-5.9.2.ebuild 427 SHA256 1cb003d40b95c2e34cd8290c095cb5397fc5557749e6bae079e9ac62297dd325 SHA512 48da92aa47192de2eea885d84900c2434ff2396f5898c15b2af300c704efdc88e2f7f34f80db5d83cb48749334b7d01c7066c770308a9e100d101c2212862e8d WHIRLPOOL c7014dabca3b8336675c786ffe7f3531295a0e5d997d69d0011db738eeb890a2507a9dd1a7a10435d88ab9c960c35b2e26cef3f67aa0d03eee3a8a5f31f3de7c
+MISC ChangeLog 6874 SHA256 a2e839e73758dedb04273d863e6ce40d4cfa5938a96dc4355b59b532848fe6d6 SHA512 fb0964ba12cdd145025448c35aea6eaf235d46464e7095d1c487c83c48273f0f8d8db3e192d0cefdeb98ae467853005dfae2655df8d9ebc442d460fa08244bff WHIRLPOOL a992e3f4e305a925ce8730220293db6fff88b894994bec631d11a1cdf6a2152071bf4d1f3a3b84d8070aeb6f6122267652da2a981e49ebdc52e14cb89e1385ac
+MISC ChangeLog-2015 4317 SHA256 f7f5943cc3452e5b0128fad74325b1da321e3fe2c0a2eea13a1754d7472648b1 SHA512 f5296578e54dfe7774601f1572f3bafaaeabf89d5071d98b6f66a84dacc494ca38d0415ea18e2e61bf8285c687f38fd1ed7caa6b80ed60109248cfdd7682273b WHIRLPOOL c77ba23af9294995658fa63fdc557c87d1d5486ff7f15b9252135d55529807e8ad1caf152fce9f1527645c6fb213b6e4e441b6bb12603ce75dff279825d24e44
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/pixeltool/metadata.xml b/dev-qt/pixeltool/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/pixeltool/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/pixeltool/pixeltool-4.8.6-r1.ebuild b/dev-qt/pixeltool/pixeltool-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..24667775402a
--- /dev/null
+++ b/dev-qt/pixeltool/pixeltool-4.8.6-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="Qt screen magnifier"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ !<dev-qt/qthelp-4.8.5:4
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/pixeltool"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/pixeltool/pixeltool-4.8.7.ebuild b/dev-qt/pixeltool/pixeltool-4.8.7.ebuild
new file mode 100644
index 000000000000..9cf60ffbfbaa
--- /dev/null
+++ b/dev-qt/pixeltool/pixeltool-4.8.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="Qt screen magnifier"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ !<dev-qt/qthelp-4.8.5:4
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/pixeltool"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/pixeltool/pixeltool-5.6.2.ebuild b/dev-qt/pixeltool/pixeltool-5.6.2.ebuild
new file mode 100644
index 000000000000..850d216dc4ea
--- /dev/null
+++ b/dev-qt/pixeltool/pixeltool-5.6.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt screen magnifier"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/pixeltool
+)
diff --git a/dev-qt/pixeltool/pixeltool-5.7.1.ebuild b/dev-qt/pixeltool/pixeltool-5.7.1.ebuild
new file mode 100644
index 000000000000..03975563162f
--- /dev/null
+++ b/dev-qt/pixeltool/pixeltool-5.7.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt screen magnifier"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/pixeltool
+)
diff --git a/dev-qt/pixeltool/pixeltool-5.9.2.ebuild b/dev-qt/pixeltool/pixeltool-5.9.2.ebuild
new file mode 100644
index 000000000000..84c3091587bd
--- /dev/null
+++ b/dev-qt/pixeltool/pixeltool-5.9.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt screen magnifier"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/pixeltool
+)
diff --git a/dev-qt/qdbus/Manifest b/dev-qt/qdbus/Manifest
new file mode 100644
index 000000000000..0af2b5383a4c
--- /dev/null
+++ b/dev-qt/qdbus/Manifest
@@ -0,0 +1,9 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qdbus-5.6.2.ebuild 459 SHA256 6bf58008d4f5047933e5ca001d4cec2adf50d426846b3d120f207501b63d3062 SHA512 0189a2f98aa94e525d7dcac4e300cd69ecff1af3080bd981d12e436bc47b2e8d9c1b71a90e8c3472eae719de4ce18d3e2fa1ebf11e118dba029f9ddfb479d150 WHIRLPOOL d5adec5a9ededa5f2fe740cfbecf4d03c21add8ae3dee34998b7ccad8c2302859666aec2ebcdda4d9e41dab3b50ba9ed09a0c2eb89061633c8ef09b459628b4b
+EBUILD qdbus-5.7.1.ebuild 467 SHA256 c4818a3e414b413ef37385cbd0d4e67b2f926e6cad10525378250dd97ac99481 SHA512 539e4cc0ffa8ba1bdead79b03fab0aba1db8b1667b2b3a1472319a63db3fe6337e2e9335d33e18d247ef125dbec770eff3b8c05fc687d16dc436f3d41aecc137 WHIRLPOOL 14686723254198eab42b33a4be9c1ee348a1c89a9aeb876de4eefa86b6e3f6eaf0d037047f8c5e5c98b7483952517fd3ec095a2e329e5d8f984caf1d4eacbd93
+EBUILD qdbus-5.9.2.ebuild 472 SHA256 11e0b479aa46c5b2e5af103ab899d2d6baec3b538edac6a12f136d9e5b488ff1 SHA512 b2c4ffbb7a4eff8a4fbcc33c08b9bcf3fe3b3a44d6b493e3cf89042765c6699cba97df0060e864f5cd0c8aa3ae74ab11b0ea3eec1778b7ae043d647c7854846f WHIRLPOOL 799a007867ec7b7d93e4f24337463ccb27f499b66fee82f4035f52f8c8858d25748ecfd365a395c4d92e210a5d52edb452d8f57445a016f30fe89ac4d0812777
+MISC ChangeLog 6731 SHA256 f07ad897a3f00c2de77186d7c4e657f85655b720f5605c82a720a5b806e9dd4e SHA512 b575d92923a5476b6763cf07b2123c06b65189049b6fbd6a1df8d1f00943c4679b02a63b0a38b85c843ab9da415e020650c29c699094c65677383420628fc06b WHIRLPOOL cf4f82e49f3666c42cd59f7104a4adc4d89749641c46ad9d9fea1d0b30b2d5aff2d213590008870f9ede0f83852360a1e806f0694d63375dbb04e1c22355aa30
+MISC ChangeLog-2015 1473 SHA256 78ab5c009ad7adf3c6824de9100e928f675c7cce10493df844591159cbda9cf7 SHA512 855d8e756ab0fd601baf13005085a254d22a78363fd20c5816b61baedcd09bbc1f71c82fd3c4902c6c581d2e27f0b433896539817c6c660570cd1fc62ccff74d WHIRLPOOL a0f1f50e229b7aac9d573ec36f886f50c8b2a1a225fa9ede894642b9e73c6fb322557035796278663e1a2101deb8ecdf94ed878139a6233e4ed88c93d8b0257a
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qdbus/metadata.xml b/dev-qt/qdbus/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qdbus/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qdbus/qdbus-5.6.2.ebuild b/dev-qt/qdbus/qdbus-5.6.2.ebuild
new file mode 100644
index 000000000000..0f286db0212f
--- /dev/null
+++ b/dev-qt/qdbus/qdbus-5.6.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Interface to Qt applications communicating over D-Bus"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbus
+)
diff --git a/dev-qt/qdbus/qdbus-5.7.1.ebuild b/dev-qt/qdbus/qdbus-5.7.1.ebuild
new file mode 100644
index 000000000000..08547d397793
--- /dev/null
+++ b/dev-qt/qdbus/qdbus-5.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Interface to Qt applications communicating over D-Bus"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbus
+)
diff --git a/dev-qt/qdbus/qdbus-5.9.2.ebuild b/dev-qt/qdbus/qdbus-5.9.2.ebuild
new file mode 100644
index 000000000000..ebe1074372ad
--- /dev/null
+++ b/dev-qt/qdbus/qdbus-5.9.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Interface to Qt applications communicating over D-Bus"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbus
+)
diff --git a/dev-qt/qdbusviewer/Manifest b/dev-qt/qdbusviewer/Manifest
new file mode 100644
index 000000000000..edb45ed56224
--- /dev/null
+++ b/dev-qt/qdbusviewer/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qdbusviewer-4.8.6-r1.ebuild 1224 SHA256 f8b1cd7807810402858d458c4a4ae7f8c04a189c239f2d916b59008d80e2371a SHA512 55fdb665e5771270f96ee40bc7ba8c2c072e2797bf9c98564c225a76c274a8f4602b167a01b32354eb53a5930af7545c57ad65ce92a59f3af99c0492f1d298d0 WHIRLPOOL 46f302e710ad6995f48e9bf45391b6f5e753ca9e2d0c8ed8efa62ebf842a176414409600e57e66e4d5e16c4d77f6b5e74d3e52e0a7e0cb7045258809e9c593b4
+EBUILD qdbusviewer-4.8.7.ebuild 1173 SHA256 3daee357f0c458afb5a3b03dd8973d50918dac7e678d4404f8b218aef968d2b2 SHA512 5684e0dd6f686a1deb09fe34ebe4161463c519bd3f73a24bbfc0783b262801b55b576ea879e0e26e2e4bd47fb4bf45bd3c3cc14150d36b755f04dd0a529813ba WHIRLPOOL 6d1e278324a027b6028a891d4700485e147ce7a14c0232532fd962785d0e047cb13f6f850e4319b79c4c296f7ac6c24c7e00a1625450200dbec92c93d0a13fca
+EBUILD qdbusviewer-5.6.2.ebuild 520 SHA256 e4cab1666c505782dd2e3528ec898f4208a20139f8bf7c6e43780db434b4c044 SHA512 9e5d12e5cf35f68527c50f37dcbcc8d9b972a080cb8d36fdcf36df30e93360b3b8dc2c38dcac8e73127a127b423b5d2b23730d06eefad7716e73fdc7b7bca2b5 WHIRLPOOL 4051d970ef7d79a3887c46b49b8d38529c7f6d5c72a04e0bc499ab1fb27f0b14dda3238af1e0608308f8a459afa2390d00dd4af3aa345c0c9690a51d0d982c70
+EBUILD qdbusviewer-5.7.1.ebuild 521 SHA256 fde0aef38cfeb9bc9113659132ded64a0e9681d380e6a1f8c14f6c119b9a97f9 SHA512 2ca60a21301ca8f5db6a4a4e87f48edfed84a3de9eef980c73c5a6aaf00410783bbc25a8abe518bf7f1e68568664b174ce2764822f3f1c608da564435668d667 WHIRLPOOL ec40f9998b7aff027cf10a62a140e80072207b2ef0fe1cc15db308ce4e82c922a44da79b4796855701d269b3d4e811a449d65624191ef19909fa05122878d5b1
+EBUILD qdbusviewer-5.9.2.ebuild 525 SHA256 dcf648677ab7b54fc27f3c0d1597a6760ccde09760427f569dcca64ecdb856d9 SHA512 e33432316e553d54d5988626b72a88ffaa8622e992c59e5057419be3909486aa161c627e8682dd4b7e0cb0d83e2b525776d38b5ddd1bfedb64a81d7c47cfd1aa WHIRLPOOL 895ddafb88b6f9c49a56a9bf97b745fc0fd1e1eaf05ed39659185f617c2e47242f038c2fad732988555e1fd1ad77c3ad309d782df9f0ea81ebf94e6e5ef4bf7f
+MISC ChangeLog 7136 SHA256 59eaa4b98accfaf85124d68cfcfab501cfe5c438cdf2c5b8b3a92de0367ae8f6 SHA512 2658ef4142c572c2de1aa361668ff25a4317a6e2b0cd237864b5ddb9a07c5b65e10e6e8221df3daab1586b2f6e00d1e4225ce99b47674c40d84a9ee3004ebcb6 WHIRLPOOL bba8ef44b18a2839d2274beb69696e0faff22ae4dc1f6aef7de8a5ff6e452e35c0c0722e5a40d69b7b6555cf410d37ae536dd2d2c666167115ceecff165a1f15
+MISC ChangeLog-2015 4316 SHA256 0472242f018433be947541d64e83114b49f1dd89911bcca067e8ce290ba291df SHA512 35939eb0eecb94f9afc6b4bc2a1f76ae8677327045a62c7729ec8faf0145b8e75e1bac9b2e133bd48e495e4d955be2e351424ef2285cb5006730444a3cf4002e WHIRLPOOL 856c152a58348f9f1e343fbb645346bd68d26a7388e75ab7806e05550e0775bdc2be47b08b3190c329e03a8c114c20b26c2aa644b5696a08f8907aed8f211ba8
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/qdbusviewer/metadata.xml b/dev-qt/qdbusviewer/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/qdbusviewer/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qdbusviewer/qdbusviewer-4.8.6-r1.ebuild b/dev-qt/qdbusviewer/qdbusviewer-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..f4df9d2bf65f
--- /dev/null
+++ b/dev-qt/qdbusviewer/qdbusviewer-4.8.6-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Graphical tool that lets you introspect D-Bus objects and messages"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/qdbus/qdbusviewer"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ newicon tools/qdbus/qdbusviewer/images/qdbusviewer-128.png qdbusviewer.png
+ make_desktop_entry qdbusviewer QDBusViewer qdbusviewer 'Qt;Development'
+}
diff --git a/dev-qt/qdbusviewer/qdbusviewer-4.8.7.ebuild b/dev-qt/qdbusviewer/qdbusviewer-4.8.7.ebuild
new file mode 100644
index 000000000000..5a0ad0e6e7bc
--- /dev/null
+++ b/dev-qt/qdbusviewer/qdbusviewer-4.8.7.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="Graphical tool that lets you introspect D-Bus objects and messages"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="tools/qdbus/qdbusviewer"
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ newicon tools/qdbus/qdbusviewer/images/qdbusviewer-128.png qdbusviewer.png
+ make_desktop_entry qdbusviewer QDBusViewer qdbusviewer 'Qt;Development'
+}
diff --git a/dev-qt/qdbusviewer/qdbusviewer-5.6.2.ebuild b/dev-qt/qdbusviewer/qdbusviewer-5.6.2.ebuild
new file mode 100644
index 000000000000..b11f62f376d0
--- /dev/null
+++ b/dev-qt/qdbusviewer/qdbusviewer-5.6.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool that lets you introspect D-Bus objects and messages"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbusviewer
+)
diff --git a/dev-qt/qdbusviewer/qdbusviewer-5.7.1.ebuild b/dev-qt/qdbusviewer/qdbusviewer-5.7.1.ebuild
new file mode 100644
index 000000000000..df7e2925c889
--- /dev/null
+++ b/dev-qt/qdbusviewer/qdbusviewer-5.7.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool that lets you introspect D-Bus objects and messages"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbusviewer
+)
diff --git a/dev-qt/qdbusviewer/qdbusviewer-5.9.2.ebuild b/dev-qt/qdbusviewer/qdbusviewer-5.9.2.ebuild
new file mode 100644
index 000000000000..d1f5a5edc7c2
--- /dev/null
+++ b/dev-qt/qdbusviewer/qdbusviewer-5.9.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Graphical tool that lets you introspect D-Bus objects and messages"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdbus/qdbusviewer
+)
diff --git a/dev-qt/qdoc/Manifest b/dev-qt/qdoc/Manifest
new file mode 100644
index 000000000000..c6ae24b027a2
--- /dev/null
+++ b/dev-qt/qdoc/Manifest
@@ -0,0 +1,9 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qdoc-5.6.2.ebuild 403 SHA256 16d27a9015ae14495dec4586be5c58eabf760bb588aeafeab3366786bc085fff SHA512 59e9a5d722ee6d890b4824dcd28038203f92b9a88227b844d2b17118318c0cae45d9f499c55d495117b52beca576baf3b62db1d3cbeba26c2f1d16a9bd501a7d WHIRLPOOL 5095ade10a151883ee63a79bc95241258d612bf0fa8fc4effba521f60599fab6273368ce325dcae7f5105bda18b04980351b257aaad72e56998979f40dc00a16
+EBUILD qdoc-5.7.1.ebuild 404 SHA256 9738f07acf243ca85c5ce74749480c9cef0bd466fe2ea9d9f059a140ccddfe25 SHA512 64244aff93afc21ff69ce94032b6e722cb68e21842939acaf0971353889af1fa5a8d4854ed2f3cd3c93af5c054e8dcf56a73692be314668c70da1884d36949ed WHIRLPOOL de2ee77c6fad1129f5d2e669f4039898dc852b54de600f65beff67139e4edbe01560d0cd4d6a5c0f0de70e56c015e87516a26b282a1bca6465d9e576d3e298bd
+EBUILD qdoc-5.9.2.ebuild 538 SHA256 feef85ec1299f9aae861b84c67432f1faf42e4780d091d14892e1fba731ecfd3 SHA512 f043dcba825e6096eda1a61f4a2deb969b93b4d4369999524fe6a0ce2ac05142ae6cad9843f82dce931b3e91426cac5764629a53d5e07211baf7a99aa6397af2 WHIRLPOOL 98ad5337f6a1fd0220e5227b468163e5719e505f4e08632d0b5c5d9e1bd22cc5f23e798de9a0486c42ad839fb7e90601453ffa58bbf48747028a5aa3f554d823
+MISC ChangeLog 6323 SHA256 af2fedb821eb640d7c9f59174d35e7898e25f35203d3a43178806c77b10cdeb9 SHA512 fdc895a6cf043f616f8208b7208c466372beddf22868d70f6020473dd554724b84a78b02c46d98421406ed92bca2eebb2c494b9ffcf8f2ddc2830467df3f5be3 WHIRLPOOL fff61c6fcf31c63d73a0af9ef8c1abd51b5069de3c8ce32c925f7a503f6eabdd4dc638178059c926f32d1dee655a8a9118b5678cd218635e09139f11f617916b
+MISC ChangeLog-2015 1453 SHA256 8f27e4d9ebd2e7afce4fb50565a52e1cc3be3d3db8e4db24015065049e260c03 SHA512 614e2dd80ed96d61921df4540a6365783274c7f1e26f532075b628adc256c01e788debb7fe294756a45f33b100b1c1a7362f92c9ef31954fc2ee70620d26f112 WHIRLPOOL 378699f2ee17ed63828ff6bd48866faa3c10aad7692347021f6675d10be28f6184beb78d271400f2f66263756e5c992072372805841846a40bc5c5a6766b6ae1
+MISC metadata.xml 552 SHA256 cdaefa70302192d73254e2a24e34c56c6b969f025d409a4307c9262ff82aebba SHA512 61014159b2af5f277f1a7e9d7bc5881da2f04c152adc349de16c60a980f7c76858c1ec3ddfd5760ce1111c81a90482214b03da745cf291c155d4ad50eaa0acdf WHIRLPOOL 6fe187e8ae40dd046fe79bf1d48b0ba44a02d268e6f94f5b890fbd9bc2dc87cab7ed61f72fb83bdbf2c72f26bcc672aef90fbaf3a6e4e32223eaa27e21157cf4
diff --git a/dev-qt/qdoc/metadata.xml b/dev-qt/qdoc/metadata.xml
new file mode 100644
index 000000000000..2184bb18c0d0
--- /dev/null
+++ b/dev-qt/qdoc/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Enable QML/JS parsing support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qdoc/qdoc-5.6.2.ebuild b/dev-qt/qdoc/qdoc-5.6.2.ebuild
new file mode 100644
index 000000000000..6858ea5b4bb1
--- /dev/null
+++ b/dev-qt/qdoc/qdoc-5.6.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt documentation generator"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdoc
+)
diff --git a/dev-qt/qdoc/qdoc-5.7.1.ebuild b/dev-qt/qdoc/qdoc-5.7.1.ebuild
new file mode 100644
index 000000000000..4bcb43a00753
--- /dev/null
+++ b/dev-qt/qdoc/qdoc-5.7.1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt documentation generator"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtxml-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdoc
+)
diff --git a/dev-qt/qdoc/qdoc-5.9.2.ebuild b/dev-qt/qdoc/qdoc-5.9.2.ebuild
new file mode 100644
index 000000000000..fff12942dd12
--- /dev/null
+++ b/dev-qt/qdoc/qdoc-5.9.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt documentation generator"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qdoc
+)
+
+src_prepare() {
+ qt_use_disable_mod qml qmldevtools-private \
+ src/qdoc/qdoc.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qt-creator/Manifest b/dev-qt/qt-creator/Manifest
new file mode 100644
index 000000000000..a7b01be05b98
--- /dev/null
+++ b/dev-qt/qt-creator/Manifest
@@ -0,0 +1,8 @@
+DIST qt-creator-opensource-src-4.3.1.tar.xz 17298892 SHA256 060a8843f988c158ef01bd90221e390f0d4be3ccc8da95abaeb12c7477e7a4ad SHA512 9fd89cee4a3b17662ac83bd63065f66f6b446774eb28ab4e56b85b82dc8c6b9b7be512014e5096dd343d913688700c3297b49bf4abe920429ca72cc665c95226 WHIRLPOOL 86965524785f68836a7a55a2ce9ede109e3314b9778d68eb92588cd1d3844be5ad47ae4e484f285dc74844729e8c254a11fe705ed3600476ed1c8ef4000b4e24
+DIST qt-creator-opensource-src-4.4.1.tar.xz 20822304 SHA256 0664de3dea239f8be797d2745f3d06b2c4207ebc4edc36898d7d24b6bf98c14e SHA512 f0e836fd2106f909cb405f75457e0d4158ecdd134ec5cfa97b373e5818b5f715245ac8454a657801251302ef817c1de66580f2e45b12b3e23d3107ccf3985336 WHIRLPOOL bc202a42d7fb69f9a033448a456eb0d2d09d27f338f5555296c79ab40167ea3c917df40444d318818edcf87ab4fe5b2667b37a84c4e0590f52e15c6780e58ede
+EBUILD qt-creator-4.3.1.ebuild 5607 SHA256 a3f0c050645bc42910e8ac327c83b02dc77fa09cc8ecdc047129589de729c90d SHA512 aafadf415b1bb010069147f89d84e210ac67187bc3ef8c2e0c904322ca16530955497c3763cd02155e9dcaae42ae57285367f71d71bc6dd4a5a3c8e3f9d54aff WHIRLPOOL f195ca46c79430045c90ec501cd68f0b630377c5224ea19e2c23093ccd76fe9f1225ac1648c742e08b44aff7632e74ad012c270f6be280e68ba38120b589a26e
+EBUILD qt-creator-4.4.1.ebuild 5549 SHA256 87c3d975bb1cda9c2523f4c895bef3b4041fec2cfc4aa240bfabc299f500adee SHA512 ccb9a187bba3021dff34ab3275fdee5d311d38ecb7701549a3799c8bc41ec54c4dc5d5af531ed03913425ee6fdedc7f21b3b1bad113853da37610e7fe44b6f11 WHIRLPOOL f3004ffa1de2dc9b6778725c6704573ec12d0a9f4e34b5e4e84a53112a795fd7ff7a2cf95365e3645841b167f8caf483835553e2a6c2b98011f1d11d1a6eaaa5
+EBUILD qt-creator-9999.ebuild 5549 SHA256 87c3d975bb1cda9c2523f4c895bef3b4041fec2cfc4aa240bfabc299f500adee SHA512 ccb9a187bba3021dff34ab3275fdee5d311d38ecb7701549a3799c8bc41ec54c4dc5d5af531ed03913425ee6fdedc7f21b3b1bad113853da37610e7fe44b6f11 WHIRLPOOL f3004ffa1de2dc9b6778725c6704573ec12d0a9f4e34b5e4e84a53112a795fd7ff7a2cf95365e3645841b167f8caf483835553e2a6c2b98011f1d11d1a6eaaa5
+MISC ChangeLog 7762 SHA256 8e02e0069601b13cea36e3fad3da4f873d20a5d67ec246d2f208bdcc42c50a31 SHA512 6a0097d4ddf1256eab1c12f65cb86d849fc9372bc207ca797b4898fb12aa7b8ae949cfb8e9c1f6b9ac8e3fe70cb30c598697939dd49e77b1be5934b8cab39d93 WHIRLPOOL 875e8c51749d095cff69bc19b2e386bd1732370cf80df926f178935e7de79a1fdd92892d8c1d0cf425edfc3b6ad9d3d384b8b75d020d796ee5a940e3fc7b44e3
+MISC ChangeLog-2015 29790 SHA256 9a6c91651de05ee685c59c3923013c4e991964dd52ac92f824ba4827574b0f83 SHA512 1670e76a6c4d95a559efa78f80877b6f242c15a555097be268dd7834e453ec3c46bc5b6a661d1a28fee8267f68bf63f78f0353b5a2980b8d58384f36e45c2a46 WHIRLPOOL 7780c1217fe0e06c9e68df8ce1160779965741c596cd9d1f22d95bc548c46ab02e36a7ef92e8b192e4c37504c45b88e52d673cc6fbb20268bfd5dd3225d52c5e
+MISC metadata.xml 2247 SHA256 c42b04aed40f61a1fcd78804b1a406eb26ce0ea84bd8590423deb2dd2f7ba6ed SHA512 d3e92111e1ec61fc5ea8904066eaf205000de8a4e64ccb4b8d6ba349735466c4f851bec8154f30fc8ff21756d27ec07249892136ca56bdcc12ee4e3200616368 WHIRLPOOL 7382e86581b74a41f326cc87b5ccf27e44ac067f0140ac60b72f37177028aa72fdef65316f5ffccee0a13ae07904f867215fb86da64377dd26b67155c705df35
diff --git a/dev-qt/qt-creator/metadata.xml b/dev-qt/qt-creator/metadata.xml
new file mode 100644
index 000000000000..5cdf568ca748
--- /dev/null
+++ b/dev-qt/qt-creator/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pesa@gentoo.org</email>
+ <name>Davide Pesavento</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="android">Build plugin for Android devices</flag>
+ <flag name="autotools">Enable autotools project manager plugin</flag>
+ <flag name="baremetal">Build plugin for bare metal devices</flag>
+ <flag name="bazaar">Add support for <pkg>dev-vcs/bzr</pkg> version control system</flag>
+ <flag name="clangcodemodel">Build clang-based code model and refactoring plugins</flag>
+ <flag name="clangstaticanalyzer">Build clang-based static analyzer plugin</flag>
+ <flag name="clearcase">Add support for IBM ClearCase version control system (requires manual installation of ClearCase client)</flag>
+ <flag name="cmake">Enable cmake project manager plugin</flag>
+ <flag name="designer">Build widget designer plugin</flag>
+ <flag name="glsl">Enable GLSL source code editor</flag>
+ <flag name="ios">Build plugin for Apple iOS devices</flag>
+ <flag name="mercurial">Add support for <pkg>dev-vcs/mercurial</pkg> version control system</flag>
+ <flag name="modeling">Enable graphical model editor</flag>
+ <flag name="nim">Enable Nim source code editor</flag>
+ <flag name="perforce">Add support for Perforce version control system (requires manual installation of Perforce client)</flag>
+ <flag name="python">Enable Python source code editor</flag>
+ <flag name="qbs">Enable QBS project manager plugin</flag>
+ <flag name="qnx">Build plugin for QNX devices</flag>
+ <flag name="scxml">Enable graphical SCXML editor</flag>
+ <flag name="systemd">Add support for retrieving application output from journald</flag>
+ <flag name="valgrind">Add support for memory debugging using <pkg>dev-util/valgrind</pkg></flag>
+ <flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> to view documentation</flag>
+ <flag name="winrt">Build plugin for WinRT devices</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/qtcreator/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qt-creator/qt-creator-4.3.1.ebuild b/dev-qt/qt-creator/qt-creator-4.3.1.ebuild
new file mode 100644
index 000000000000..5be7d95dd51e
--- /dev/null
+++ b/dev-qt/qt-creator/qt-creator-4.3.1.ebuild
@@ -0,0 +1,189 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+LLVM_MAX_SLOT=4
+PLOCALES="cs de fr ja pl ru sl uk zh_CN zh_TW"
+
+inherit l10n llvm qmake-utils toolchain-funcs virtualx xdg
+
+DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
+HOMEPAGE="https://doc.qt.io/qtcreator/"
+LICENSE="GPL-3"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://code.qt.io/${PN}/${PN}.git"
+else
+ MY_PV=${PV/_/-}
+ MY_P=${PN}-opensource-src-${MY_PV}
+ [[ ${MY_PV} == ${PV} ]] && MY_REL=official || MY_REL=development
+ SRC_URI="https://download.qt.io/${MY_REL}_releases/${PN/-}/${PV%.*}/${MY_PV}/${MY_P}.tar.xz"
+ KEYWORDS="amd64 ~arm x86"
+ S=${WORKDIR}/${MY_P}
+fi
+
+# TODO: unbundle sqlite
+
+QTC_PLUGINS=('android:android|qmakeandroidsupport' autotools:autotoolsprojectmanager baremetal bazaar
+ 'clangcodemodel:clangcodemodel|clangrefactoring|clangpchmanager' clangstaticanalyzer clearcase
+ cmake:cmakeprojectmanager cvs designer git glsl:glsleditor ios mercurial modeling:modeleditor
+ nim perforce python:pythoneditor qbs:qbsprojectmanager qnx scxml:scxmleditor subversion valgrind
+ winrt)
+IUSE="doc systemd test +webengine ${QTC_PLUGINS[@]%:*}"
+
+# minimum Qt version required
+QT_PV="5.6.0:5"
+
+CDEPEND="
+ =dev-libs/botan-1.10*[-bindist,threads]
+ >=dev-qt/qtconcurrent-${QT_PV}
+ >=dev-qt/qtcore-${QT_PV}
+ >=dev-qt/qtdeclarative-${QT_PV}[widgets]
+ >=dev-qt/qtgui-${QT_PV}
+ >=dev-qt/qthelp-${QT_PV}
+ >=dev-qt/qtnetwork-${QT_PV}[ssl]
+ >=dev-qt/qtprintsupport-${QT_PV}
+ >=dev-qt/qtquickcontrols-${QT_PV}
+ >=dev-qt/qtscript-${QT_PV}
+ >=dev-qt/qtsql-${QT_PV}[sqlite]
+ >=dev-qt/qtsvg-${QT_PV}
+ >=dev-qt/qtwidgets-${QT_PV}
+ >=dev-qt/qtx11extras-${QT_PV}
+ >=dev-qt/qtxml-${QT_PV}
+ clangcodemodel? (
+ <sys-devel/clang-5:=
+ || ( sys-devel/clang:4 >=sys-devel/clang-3.9:0 )
+ )
+ designer? ( >=dev-qt/designer-${QT_PV} )
+ qbs? ( >=dev-util/qbs-1.8.1-r1 )
+ systemd? ( sys-apps/systemd:= )
+ webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets] )
+"
+DEPEND="${CDEPEND}
+ >=dev-qt/linguist-tools-${QT_PV}
+ virtual/pkgconfig
+ doc? ( >=dev-qt/qdoc-${QT_PV} )
+ test? (
+ >=dev-qt/qtdeclarative-${QT_PV}[localstorage,xml]
+ >=dev-qt/qtquickcontrols2-${QT_PV}
+ >=dev-qt/qttest-${QT_PV}
+ )
+"
+RDEPEND="${CDEPEND}
+ sys-devel/gdb[client,python]
+ autotools? ( sys-devel/autoconf )
+ bazaar? ( dev-vcs/bzr )
+ clangstaticanalyzer? (
+ <sys-devel/clang-5:*
+ || ( sys-devel/clang:4 >=sys-devel/clang-3.9:0 )
+ )
+ cmake? ( dev-util/cmake[server(+)] )
+ cvs? ( dev-vcs/cvs )
+ git? ( dev-vcs/git )
+ mercurial? ( dev-vcs/mercurial )
+ subversion? ( dev-vcs/subversion )
+ valgrind? ( dev-util/valgrind )
+"
+# qt translations must also be installed or qt-creator translations won't be loaded
+for x in ${PLOCALES}; do
+ RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} )"
+done
+unset x
+
+pkg_setup() {
+ use clangcodemodel && llvm_pkg_setup
+}
+
+src_unpack() {
+ if tc-is-gcc; then
+ if [[ $(gcc-major-version) -lt 4 ]] || \
+ [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 9 ]]; then
+ eerror "GCC version 4.9 or later is required to build Qt Creator ${PV}"
+ die "GCC >= 4.9 required"
+ fi
+ fi
+
+ if [[ ${PV} == *9999 ]]; then
+ git-r3_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ # disable unwanted plugins
+ for plugin in "${QTC_PLUGINS[@]#[+-]}"; do
+ if ! use ${plugin%:*}; then
+ einfo "Disabling ${plugin%:*} plugin"
+ sed -i -re "/(^\s+|SUBDIRS\s*\+=\s*)(${plugin#*:})\>/d" \
+ src/plugins/plugins.pro || die "failed to disable ${plugin%:*} plugin"
+ fi
+ done
+
+ # avoid building unused support libraries
+ if ! use clangcodemodel; then
+ sed -i -e '/clangbackendipc/d' src/libs/libs.pro || die
+ fi
+ if ! use glsl; then
+ sed -i -e '/glsl/d' src/libs/libs.pro || die
+ fi
+ if ! use modeling; then
+ sed -i -e '/modelinglib/d' src/libs/libs.pro || die
+ fi
+
+ # automagic dep on qtwebengine
+ if ! use webengine; then
+ sed -i -e 's/isEmpty(QT\.webenginewidgets\.name)/true/' src/plugins/help/help.pro || die
+ fi
+
+ # disable broken or unreliable tests
+ sed -i -e '/sdktool/ d' tests/auto/auto.pro || die
+ sed -i -e '/dumpers\.pro/ d' tests/auto/debugger/debugger.pro || die
+ sed -i -e '/CONFIG -=/ s/$/ testcase/' tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin?/plugin?.pro || die
+ sed -i -e '/timeline\(items\|notes\|selection\)renderpass/ d' tests/auto/timeline/timeline.pro || die
+ sed -i -e 's/\<memcheck\>//' tests/auto/valgrind/valgrind.pro || die
+
+ # fix path to some clang headers
+ sed -i -e "/^CLANG_RESOURCE_DIR\s*=/ s:\$\${LLVM_LIBDIR}:${EPREFIX}/usr/lib:" src/shared/clang/clang_defines.pri || die
+
+ # fix translations
+ sed -i -e "/^LANGUAGES\s*=/ s:=.*:= $(l10n_get_locales):" share/qtcreator/translations/translations.pro || die
+
+ # remove bundled qbs
+ rm -rf src/shared/qbs || die
+}
+
+src_configure() {
+ eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)" \
+ IDE_PACKAGE_MODE=1 \
+ $(use clangcodemodel && echo LLVM_INSTALL_DIR="$(get_llvm_prefix ${LLVM_MAX_SLOT})") \
+ $(use qbs && echo QBS_INSTALL_DIR="${EPREFIX}/usr") \
+ CONFIG+=qbs_disable_rpath \
+ CONFIG+=qbs_enable_project_file_updates \
+ $(use systemd && echo CONFIG+=journald) \
+ $(use test && echo BUILD_TESTS=1) \
+ USE_SYSTEM_BOTAN=1
+}
+
+src_test() {
+ cd tests/auto && virtx default
+}
+
+src_install() {
+ emake INSTALL_ROOT="${ED}usr" install
+
+ dodoc dist/{changes-*,known-issues}
+
+ # install documentation
+ if use doc; then
+ emake docs
+ # don't use ${PF} or the doc will not be found
+ insinto /usr/share/doc/qtcreator
+ doins share/doc/qtcreator/qtcreator{,-dev}.qch
+ docompress -x /usr/share/doc/qtcreator/qtcreator{,-dev}.qch
+ fi
+}
diff --git a/dev-qt/qt-creator/qt-creator-4.4.1.ebuild b/dev-qt/qt-creator/qt-creator-4.4.1.ebuild
new file mode 100644
index 000000000000..322f20850b87
--- /dev/null
+++ b/dev-qt/qt-creator/qt-creator-4.4.1.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PLOCALES="cs de fr ja pl ru sl uk zh_CN zh_TW"
+
+inherit l10n llvm qmake-utils toolchain-funcs virtualx xdg
+
+DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
+HOMEPAGE="https://doc.qt.io/qtcreator/"
+LICENSE="GPL-3"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://code.qt.io/${PN}/${PN}.git"
+else
+ MY_PV=${PV/_/-}
+ MY_P=${PN}-opensource-src-${MY_PV}
+ [[ ${MY_PV} == ${PV} ]] && MY_REL=official || MY_REL=development
+ SRC_URI="https://download.qt.io/${MY_REL}_releases/${PN/-}/${PV%.*}/${MY_PV}/${MY_P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~x86"
+ S=${WORKDIR}/${MY_P}
+fi
+
+# TODO: unbundle sqlite
+
+QTC_PLUGINS=('android:android|qmakeandroidsupport' autotools:autotoolsprojectmanager baremetal bazaar
+ 'clangcodemodel:clangcodemodel|clangrefactoring|clangpchmanager' clangstaticanalyzer clearcase
+ cmake:cmakeprojectmanager cvs designer git glsl:glsleditor ios mercurial modeling:modeleditor
+ nim perforce python:pythoneditor qbs:qbsprojectmanager qnx scxml:scxmleditor subversion valgrind
+ winrt)
+IUSE="doc systemd test +webengine ${QTC_PLUGINS[@]%:*}"
+
+# minimum Qt version required
+QT_PV="5.6.2:5"
+
+CDEPEND="
+ =dev-libs/botan-1.10*[-bindist,threads]
+ >=dev-qt/qtconcurrent-${QT_PV}
+ >=dev-qt/qtcore-${QT_PV}
+ >=dev-qt/qtdeclarative-${QT_PV}[widgets]
+ >=dev-qt/qtgui-${QT_PV}
+ >=dev-qt/qthelp-${QT_PV}
+ >=dev-qt/qtnetwork-${QT_PV}[ssl]
+ >=dev-qt/qtprintsupport-${QT_PV}
+ >=dev-qt/qtquickcontrols-${QT_PV}
+ >=dev-qt/qtscript-${QT_PV}
+ >=dev-qt/qtsql-${QT_PV}[sqlite]
+ >=dev-qt/qtsvg-${QT_PV}
+ >=dev-qt/qtwidgets-${QT_PV}
+ >=dev-qt/qtx11extras-${QT_PV}
+ >=dev-qt/qtxml-${QT_PV}
+ clangcodemodel? ( >=sys-devel/clang-3.9:= )
+ designer? ( >=dev-qt/designer-${QT_PV} )
+ qbs? ( >=dev-util/qbs-1.9.1 )
+ systemd? ( sys-apps/systemd:= )
+ webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets] )
+"
+DEPEND="${CDEPEND}
+ >=dev-qt/linguist-tools-${QT_PV}
+ virtual/pkgconfig
+ doc? ( >=dev-qt/qdoc-${QT_PV} )
+ test? (
+ >=dev-qt/qtdeclarative-${QT_PV}[localstorage,xml]
+ >=dev-qt/qtquickcontrols2-${QT_PV}
+ >=dev-qt/qttest-${QT_PV}
+ )
+"
+RDEPEND="${CDEPEND}
+ sys-devel/gdb[client,python]
+ autotools? ( sys-devel/autoconf )
+ bazaar? ( dev-vcs/bzr )
+ clangstaticanalyzer? ( >=sys-devel/clang-3.9:* )
+ cmake? ( dev-util/cmake[server(+)] )
+ cvs? ( dev-vcs/cvs )
+ git? ( dev-vcs/git )
+ mercurial? ( dev-vcs/mercurial )
+ subversion? ( dev-vcs/subversion )
+ valgrind? ( dev-util/valgrind )
+"
+# qt translations must also be installed or qt-creator translations won't be loaded
+for x in ${PLOCALES}; do
+ RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} )"
+done
+unset x
+
+pkg_setup() {
+ use clangcodemodel && llvm_pkg_setup
+}
+
+src_unpack() {
+ if tc-is-gcc; then
+ if [[ $(gcc-major-version) -lt 4 ]] || \
+ [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 9 ]]; then
+ eerror "GCC version 4.9 or later is required to build Qt Creator ${PV}"
+ die "GCC >= 4.9 required"
+ fi
+ fi
+
+ if [[ ${PV} == *9999 ]]; then
+ git-r3_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ # disable unwanted plugins
+ for plugin in "${QTC_PLUGINS[@]#[+-]}"; do
+ if ! use ${plugin%:*}; then
+ einfo "Disabling ${plugin%:*} plugin"
+ sed -i -re "/(^\s+|SUBDIRS\s*\+=\s*)(${plugin#*:})\>/d" \
+ src/plugins/plugins.pro || die "failed to disable ${plugin%:*} plugin"
+ fi
+ done
+
+ # avoid building unused support libraries
+ if ! use clangcodemodel; then
+ sed -i -e '/clangbackendipc/d' src/libs/libs.pro || die
+ fi
+ if ! use glsl; then
+ sed -i -e '/glsl/d' src/libs/libs.pro || die
+ fi
+ if ! use modeling; then
+ sed -i -e '/modelinglib/d' src/libs/libs.pro || die
+ fi
+
+ # automagic dep on qtwebengine
+ if ! use webengine; then
+ sed -i -e 's/isEmpty(QT\.webenginewidgets\.name)/true/' src/plugins/help/help.pro || die
+ fi
+
+ # disable broken or unreliable tests
+ sed -i -e 's/\(manual\|tools\|unit\)//g' tests/tests.pro || die
+ sed -i -e '/sdktool/ d' tests/auto/auto.pro || die
+ sed -i -e '/\(dumpers\|offsets\)\.pro/ d' tests/auto/debugger/debugger.pro || die
+ sed -i -e '/CONFIG -=/ s/$/ testcase/' tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin?/plugin?.pro || die
+ sed -i -e '/timeline\(items\|notes\|selection\)renderpass/ d' tests/auto/timeline/timeline.pro || die
+ sed -i -e 's/\<memcheck\>//' tests/auto/valgrind/valgrind.pro || die
+
+ # fix path to some clang headers
+ sed -i -e "/^CLANG_RESOURCE_DIR\s*=/ s:\$\${LLVM_LIBDIR}:${EPREFIX}/usr/lib:" src/shared/clang/clang_defines.pri || die
+
+ # fix translations
+ sed -i -e "/^LANGUAGES\s*=/ s:=.*:= $(l10n_get_locales):" share/qtcreator/translations/translations.pro || die
+
+ # remove bundled qbs
+ rm -rf src/shared/qbs || die
+}
+
+src_configure() {
+ eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)" \
+ IDE_PACKAGE_MODE=1 \
+ $(use clangcodemodel && echo LLVM_INSTALL_DIR="$(get_llvm_prefix)") \
+ $(use qbs && echo QBS_INSTALL_DIR="${EPREFIX}/usr") \
+ CONFIG+=qbs_disable_rpath \
+ CONFIG+=qbs_enable_project_file_updates \
+ $(use systemd && echo CONFIG+=journald) \
+ $(use test && echo BUILD_TESTS=1) \
+ USE_SYSTEM_BOTAN=1
+}
+
+src_test() {
+ cd tests/auto && virtx default
+}
+
+src_install() {
+ emake INSTALL_ROOT="${ED}usr" install
+
+ dodoc dist/{changes-*,known-issues}
+
+ # install documentation
+ if use doc; then
+ emake docs
+ # don't use ${PF} or the doc will not be found
+ insinto /usr/share/doc/qtcreator
+ doins share/doc/qtcreator/qtcreator{,-dev}.qch
+ docompress -x /usr/share/doc/qtcreator/qtcreator{,-dev}.qch
+ fi
+}
diff --git a/dev-qt/qt-creator/qt-creator-9999.ebuild b/dev-qt/qt-creator/qt-creator-9999.ebuild
new file mode 100644
index 000000000000..322f20850b87
--- /dev/null
+++ b/dev-qt/qt-creator/qt-creator-9999.ebuild
@@ -0,0 +1,183 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PLOCALES="cs de fr ja pl ru sl uk zh_CN zh_TW"
+
+inherit l10n llvm qmake-utils toolchain-funcs virtualx xdg
+
+DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
+HOMEPAGE="https://doc.qt.io/qtcreator/"
+LICENSE="GPL-3"
+SLOT="0"
+
+if [[ ${PV} == *9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://code.qt.io/${PN}/${PN}.git"
+else
+ MY_PV=${PV/_/-}
+ MY_P=${PN}-opensource-src-${MY_PV}
+ [[ ${MY_PV} == ${PV} ]] && MY_REL=official || MY_REL=development
+ SRC_URI="https://download.qt.io/${MY_REL}_releases/${PN/-}/${PV%.*}/${MY_PV}/${MY_P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~x86"
+ S=${WORKDIR}/${MY_P}
+fi
+
+# TODO: unbundle sqlite
+
+QTC_PLUGINS=('android:android|qmakeandroidsupport' autotools:autotoolsprojectmanager baremetal bazaar
+ 'clangcodemodel:clangcodemodel|clangrefactoring|clangpchmanager' clangstaticanalyzer clearcase
+ cmake:cmakeprojectmanager cvs designer git glsl:glsleditor ios mercurial modeling:modeleditor
+ nim perforce python:pythoneditor qbs:qbsprojectmanager qnx scxml:scxmleditor subversion valgrind
+ winrt)
+IUSE="doc systemd test +webengine ${QTC_PLUGINS[@]%:*}"
+
+# minimum Qt version required
+QT_PV="5.6.2:5"
+
+CDEPEND="
+ =dev-libs/botan-1.10*[-bindist,threads]
+ >=dev-qt/qtconcurrent-${QT_PV}
+ >=dev-qt/qtcore-${QT_PV}
+ >=dev-qt/qtdeclarative-${QT_PV}[widgets]
+ >=dev-qt/qtgui-${QT_PV}
+ >=dev-qt/qthelp-${QT_PV}
+ >=dev-qt/qtnetwork-${QT_PV}[ssl]
+ >=dev-qt/qtprintsupport-${QT_PV}
+ >=dev-qt/qtquickcontrols-${QT_PV}
+ >=dev-qt/qtscript-${QT_PV}
+ >=dev-qt/qtsql-${QT_PV}[sqlite]
+ >=dev-qt/qtsvg-${QT_PV}
+ >=dev-qt/qtwidgets-${QT_PV}
+ >=dev-qt/qtx11extras-${QT_PV}
+ >=dev-qt/qtxml-${QT_PV}
+ clangcodemodel? ( >=sys-devel/clang-3.9:= )
+ designer? ( >=dev-qt/designer-${QT_PV} )
+ qbs? ( >=dev-util/qbs-1.9.1 )
+ systemd? ( sys-apps/systemd:= )
+ webengine? ( >=dev-qt/qtwebengine-${QT_PV}[widgets] )
+"
+DEPEND="${CDEPEND}
+ >=dev-qt/linguist-tools-${QT_PV}
+ virtual/pkgconfig
+ doc? ( >=dev-qt/qdoc-${QT_PV} )
+ test? (
+ >=dev-qt/qtdeclarative-${QT_PV}[localstorage,xml]
+ >=dev-qt/qtquickcontrols2-${QT_PV}
+ >=dev-qt/qttest-${QT_PV}
+ )
+"
+RDEPEND="${CDEPEND}
+ sys-devel/gdb[client,python]
+ autotools? ( sys-devel/autoconf )
+ bazaar? ( dev-vcs/bzr )
+ clangstaticanalyzer? ( >=sys-devel/clang-3.9:* )
+ cmake? ( dev-util/cmake[server(+)] )
+ cvs? ( dev-vcs/cvs )
+ git? ( dev-vcs/git )
+ mercurial? ( dev-vcs/mercurial )
+ subversion? ( dev-vcs/subversion )
+ valgrind? ( dev-util/valgrind )
+"
+# qt translations must also be installed or qt-creator translations won't be loaded
+for x in ${PLOCALES}; do
+ RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} )"
+done
+unset x
+
+pkg_setup() {
+ use clangcodemodel && llvm_pkg_setup
+}
+
+src_unpack() {
+ if tc-is-gcc; then
+ if [[ $(gcc-major-version) -lt 4 ]] || \
+ [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 9 ]]; then
+ eerror "GCC version 4.9 or later is required to build Qt Creator ${PV}"
+ die "GCC >= 4.9 required"
+ fi
+ fi
+
+ if [[ ${PV} == *9999 ]]; then
+ git-r3_src_unpack
+ else
+ default
+ fi
+}
+
+src_prepare() {
+ default
+
+ # disable unwanted plugins
+ for plugin in "${QTC_PLUGINS[@]#[+-]}"; do
+ if ! use ${plugin%:*}; then
+ einfo "Disabling ${plugin%:*} plugin"
+ sed -i -re "/(^\s+|SUBDIRS\s*\+=\s*)(${plugin#*:})\>/d" \
+ src/plugins/plugins.pro || die "failed to disable ${plugin%:*} plugin"
+ fi
+ done
+
+ # avoid building unused support libraries
+ if ! use clangcodemodel; then
+ sed -i -e '/clangbackendipc/d' src/libs/libs.pro || die
+ fi
+ if ! use glsl; then
+ sed -i -e '/glsl/d' src/libs/libs.pro || die
+ fi
+ if ! use modeling; then
+ sed -i -e '/modelinglib/d' src/libs/libs.pro || die
+ fi
+
+ # automagic dep on qtwebengine
+ if ! use webengine; then
+ sed -i -e 's/isEmpty(QT\.webenginewidgets\.name)/true/' src/plugins/help/help.pro || die
+ fi
+
+ # disable broken or unreliable tests
+ sed -i -e 's/\(manual\|tools\|unit\)//g' tests/tests.pro || die
+ sed -i -e '/sdktool/ d' tests/auto/auto.pro || die
+ sed -i -e '/\(dumpers\|offsets\)\.pro/ d' tests/auto/debugger/debugger.pro || die
+ sed -i -e '/CONFIG -=/ s/$/ testcase/' tests/auto/extensionsystem/pluginmanager/correctplugins1/plugin?/plugin?.pro || die
+ sed -i -e '/timeline\(items\|notes\|selection\)renderpass/ d' tests/auto/timeline/timeline.pro || die
+ sed -i -e 's/\<memcheck\>//' tests/auto/valgrind/valgrind.pro || die
+
+ # fix path to some clang headers
+ sed -i -e "/^CLANG_RESOURCE_DIR\s*=/ s:\$\${LLVM_LIBDIR}:${EPREFIX}/usr/lib:" src/shared/clang/clang_defines.pri || die
+
+ # fix translations
+ sed -i -e "/^LANGUAGES\s*=/ s:=.*:= $(l10n_get_locales):" share/qtcreator/translations/translations.pro || die
+
+ # remove bundled qbs
+ rm -rf src/shared/qbs || die
+}
+
+src_configure() {
+ eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)" \
+ IDE_PACKAGE_MODE=1 \
+ $(use clangcodemodel && echo LLVM_INSTALL_DIR="$(get_llvm_prefix)") \
+ $(use qbs && echo QBS_INSTALL_DIR="${EPREFIX}/usr") \
+ CONFIG+=qbs_disable_rpath \
+ CONFIG+=qbs_enable_project_file_updates \
+ $(use systemd && echo CONFIG+=journald) \
+ $(use test && echo BUILD_TESTS=1) \
+ USE_SYSTEM_BOTAN=1
+}
+
+src_test() {
+ cd tests/auto && virtx default
+}
+
+src_install() {
+ emake INSTALL_ROOT="${ED}usr" install
+
+ dodoc dist/{changes-*,known-issues}
+
+ # install documentation
+ if use doc; then
+ emake docs
+ # don't use ${PF} or the doc will not be found
+ insinto /usr/share/doc/qtcreator
+ doins share/doc/qtcreator/qtcreator{,-dev}.qch
+ docompress -x /usr/share/doc/qtcreator/qtcreator{,-dev}.qch
+ fi
+}
diff --git a/dev-qt/qt-docs/Manifest b/dev-qt/qt-docs/Manifest
new file mode 100644
index 000000000000..cadb78bf3823
--- /dev/null
+++ b/dev-qt/qt-docs/Manifest
@@ -0,0 +1,9 @@
+DIST 5.6.2-0qt-everywhere-documentation-5.6.2.7z 125390155 SHA256 3421b5a2fba1f6e134137e4c9f747303bc2218c46b314dae858499aab850931c SHA512 40026c69e6b2de8f84fc974bc307519016982cafe4006ef3663839c9bcf74f7c28679cf8f4ca5a82bfafc3cb455433fe3360c11a60192d8c6b75a8b1b56e7141 WHIRLPOOL edd591be964208467700c91a02eb345f73f4104820b3f605b8e2d4c2704faccc681320bcfef5bfa70cc084b10cf2ada09d5771b0ac578193fd7eaafe0ee86477
+DIST 5.7.1-0qt-everywhere-documentation-5.7.1.7z 173336041 SHA256 44eb231b5f961a9f11d05648431121bbdaa32ac65e6b563543d147c3b88eec41 SHA512 4fcbfcd29aa48937229d01d47569a5fcd81459b9444058c725bdbac14dd2b9c67c9e04944c74d351f4bca7d972e23c3832ba2dd8e979cc4e9fe677e2d51561e0 WHIRLPOOL 8a6e1857866e43f7f40ed4382e0d5b4f27520404a77f3a014834045117f207bb40a0a81aaa00afa39a4684584499f6957bf739a1f25d06c04019ef21dac1adfd
+DIST 5.9.2-0-201710050733qt-everywhere-documentation.7z 200249125 SHA256 eb6c5ad1cc12c6a921acb458725ae06f0b078857ec72b10c498833ea59f2fac0 SHA512 3cc73bec1a1310923206cbecfe95fe80d28195ae38251d04f07881dbd42ff1223f1353ac34787065ac3e09c4aceca76d2be407558204b8920fba65c04ee0594e WHIRLPOOL 4e1f4c7d0cee30e339aca5795e15af33762850b06bfa7a4da0259bac0425bf631bf622fba6557a77741db160b268f89a18c998020b4c9b4a720e879f5cc9ab7b
+EBUILD qt-docs-5.6.2_p0-r1.ebuild 928 SHA256 011f83203128c165c83803bb9c004f7b93745f5e09beff0011eb96295eda7eaf SHA512 b536c93ea769603d6cfff3bace32bb817fb0258710719a92f0303843eb08594ed3133079ed9852ebd3d4056193228f2c8e72ad8c6e50c972b02a5bc6cd238a63 WHIRLPOOL e18e019362ee696379e35d79f6032755dcc9bca3a8f6e1ad5f24f7222a79ea5d58fd2ef821fc003fdd91ee1f717090f3f6f3b09238351165a7e78fe071e72ce2
+EBUILD qt-docs-5.7.1_p0.ebuild 900 SHA256 d91416d2e7644cac99dacd1287bb32368f3b358c035c5dd0d90cb120ba2ce1ae SHA512 960e35f696593acdb0a2db5ee840b3cb276abf25d92a2ca66d17a161529170ccf2240d82ec102c6a43a0a8ae424d3c49f385aa4ce762e5989a6d31494366a90a WHIRLPOOL 83461247f7f7393b42f27051c25c9b5126b5dc7b31e3003052d81f627249113ec8987055c122e12786c06713d90ee9b6120423246d8d41e767bd294c3672f116
+EBUILD qt-docs-5.9.2_p201710050733.ebuild 1002 SHA256 46b88024e30c6c33586e5af06d7dd00148000433783129fd932813e0bdc068ca SHA512 1dbfe414719aa10eaef345a4e7290b6a921fa28163250aac42e8c705b26e1a46b5c6f6a7456d76a10e0c2eaf5260e0701a5d99c3412e10cd808b2c4f801b90b3 WHIRLPOOL e7523a53c584fc8fe0b188a75d34be2d04be59947a3a27445ecff68248570fdd4bf46e6b80b753297869e89ae644cacb73b4ddf9fbe3100367d6f125398fea40
+MISC ChangeLog 5587 SHA256 085635e390b98e7289b267f86d17a4e7b7e55ef98e9afe303e70d8fda4949573 SHA512 c10ddcca154568a00d972be7d63a3211cca091502133425ee7f1aad3dbbd951249d29a20926e23c6e2c0433188cf1efc68e095e76fde1fd63644848ceefcead5 WHIRLPOOL 809932c0d6f599b06fd2ad52b6a0020127201b2c806fb3ba012021793dbb8d67e6fe1a8c99cd9b0bc47f64e570529a88d162e17f4540bbb6cc9bcb84a66da46b
+MISC ChangeLog-2015 1009 SHA256 ff21c94b431379ab557d22a27ef77a299dc24cb4125611cdfaedcb09465ee848 SHA512 87251f69187de4b720820f8e3be8fe6dd73ee5c036df74432ae95b6b50757abb1e58203421308b21e1395b72fb17db3b01124d0c4df51ded24dae7b4a0333440 WHIRLPOOL 4fd357af6f3db1bdb2bca6996567ffb107446c5773be3dec6ce33183ea190425998448cf34efb4df6a0af911f729245a2ade8370cf64a0eab9669425959b9632
+MISC metadata.xml 351 SHA256 a546d8f371483625e15a8356f159b8c1847cfad1835e58f65b86eee6b30bd990 SHA512 9f2984e444ca89ed6d32db172f36c1722aceff532fb284dd71a22fd59587d59c9ea59f2e0e7fbb17080a6a8e796f203b57c857773f10be02c3df64b6faf1cbfa WHIRLPOOL ac6f60d9be1cdd1ca463a4b52c1505233748c09aebbde361b983377a386153843e8c28f252f600f0f66cd33396cebe3a9b6df95adcb9fe3b9e4df7ca3ed1db33
diff --git a/dev-qt/qt-docs/metadata.xml b/dev-qt/qt-docs/metadata.xml
new file mode 100644
index 000000000000..9f196273d492
--- /dev/null
+++ b/dev-qt/qt-docs/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qt-docs/qt-docs-5.6.2_p0-r1.ebuild b/dev-qt/qt-docs/qt-docs-5.6.2_p0-r1.ebuild
new file mode 100644
index 000000000000..1a8267444c98
--- /dev/null
+++ b/dev-qt/qt-docs/qt-docs-5.6.2_p0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_PV=$(get_version_component_range 1)$(get_version_component_range 2)
+MY_P=${PV/_p/-}qt-everywhere-documentation-${PV%%_p*}
+
+DESCRIPTION="Documentation for Qt5, for use with Qt Creator and other tools"
+HOMEPAGE="https://www.qt.io/"
+SRC_URI="https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_${MY_PV}_src_doc_examples/qt.${MY_PV}.doc/${MY_P}.7z"
+
+LICENSE="FDL-1.3"
+SLOT="5"
+KEYWORDS="amd64 x86"
+
+DEPEND="app-arch/p7zip"
+
+S=${WORKDIR}/Docs/Qt-$(get_version_component_range 1-2)
+
+src_install() {
+ # ${PV} instead of ${PF} is intentional
+ local dest=/usr/share/doc/qt-${PV%%_p*}
+ insinto "${dest}"
+ doins -r *
+ docompress -x "${dest}"
+
+ # these files are not shipped in any other version of qt-docs and collide with qtcore
+ # bug 597026
+ rm -rf "${ED}${dest}"/global || die
+}
diff --git a/dev-qt/qt-docs/qt-docs-5.7.1_p0.ebuild b/dev-qt/qt-docs/qt-docs-5.7.1_p0.ebuild
new file mode 100644
index 000000000000..20bbf21fb6ab
--- /dev/null
+++ b/dev-qt/qt-docs/qt-docs-5.7.1_p0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_PV=$(get_version_component_range 1)$(get_version_component_range 2)
+MY_P=${PV/_p/-}qt-everywhere-documentation-${PV%%_p*}
+
+DESCRIPTION="Documentation for Qt5, for use with Qt Creator and other tools"
+HOMEPAGE="https://www.qt.io/"
+SRC_URI="https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_${MY_PV}_src_doc_examples/qt.${MY_PV}.doc/${MY_P}.7z"
+
+LICENSE="FDL-1.3"
+SLOT="5"
+KEYWORDS="amd64 ~arm ~arm64 x86"
+
+DEPEND="app-arch/p7zip"
+
+S=${WORKDIR}/Docs/Qt-$(get_version_component_range 1-2)
+
+src_prepare() {
+ default
+
+ # bug 597026
+ rm -r global || die
+
+ # bug 602750
+ rm Makefile || die
+}
+
+src_install() {
+ # ${PV} instead of ${PF} is intentional
+ local dest=/usr/share/doc/qt-${PV%%_p*}
+ insinto "${dest}"
+ doins -r *
+ docompress -x "${dest}"
+}
diff --git a/dev-qt/qt-docs/qt-docs-5.9.2_p201710050733.ebuild b/dev-qt/qt-docs/qt-docs-5.9.2_p201710050733.ebuild
new file mode 100644
index 000000000000..cdaa734e952b
--- /dev/null
+++ b/dev-qt/qt-docs/qt-docs-5.9.2_p201710050733.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator
+
+MY_PV=$(get_version_component_range 1)$(get_version_component_range 2)$(get_version_component_range 3)
+MY_REV=0$(get_version_component_range 4)
+MY_P=$(get_version_component_range 1-3)-${MY_REV/p/-}qt-everywhere-documentation
+
+DESCRIPTION="Documentation for Qt5, for use with Qt Creator and other tools"
+HOMEPAGE="https://www.qt.io/"
+SRC_URI="https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_${MY_PV}_src_doc_examples/qt.${MY_PV}.doc/${MY_P}.7z"
+
+LICENSE="FDL-1.3"
+SLOT="5"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+DEPEND="app-arch/p7zip"
+
+S=${WORKDIR}/Docs/Qt-$(get_version_component_range 1-3)
+
+src_prepare() {
+ default
+
+ # bug 597026
+ rm -r global || die
+
+ # bug 602750
+ rm Makefile || die
+}
+
+src_install() {
+ # ${PV} instead of ${PF} is intentional
+ local dest=/usr/share/doc/qt-${PV%%_p*}
+ insinto "${dest}"
+ doins -r *
+ docompress -x "${dest}"
+}
diff --git a/dev-qt/qt-meta/Manifest b/dev-qt/qt-meta/Manifest
new file mode 100644
index 000000000000..1936e2b05c17
--- /dev/null
+++ b/dev-qt/qt-meta/Manifest
@@ -0,0 +1,4 @@
+EBUILD qt-meta-4.8.6.ebuild 1048 SHA256 8637d1c43d684655b563fd00ba29809ea1e05f9e4b686cda2b1282ebf66d2689 SHA512 399068c82960014728bb087da9a0816a8617f283b3452b0c070223277731e1375c4c4f2a4006932296fc51073fbfc1a0f6213fbe2d6238c588f5ee7addfe8d69 WHIRLPOOL a5c2980f192a9485cea8cd1c98ba759ff63387e58e06796caacb8cf697cc7398a4eaa7938ad0d0ce60af76f6448d00d42bdada8ce81e5bae361dc34e2935dd00
+MISC ChangeLog 2693 SHA256 686b8ce98d9006825b940e72422b8585f0006814b6152b917791130b1a685b88 SHA512 d6f5793702a1575bf1dee25da35cab87dea50d2afb6192c0a1dc44dcd816826f0c6ec525c47814386db5bb6df603443fbbe4c48b035fff248382abf837bece9e WHIRLPOOL a686119d55e122be01266eb4502a65461d4279dec97ec6ca84d927c69b2291f8f6f68d9267906f9ab9d5dccc7c41704c63211d6006b92da572e90fa69098fc74
+MISC ChangeLog-2015 2642 SHA256 0ecf7bda5a480dc63b6c48f69afbb4e1a71f594832e4f697a6cc789c643af9f2 SHA512 37675b5f21a6e6e8f000999966ee0afa73acbc40ef98ff8c0066598bdbb05eeed65b270f01ce31a8af1c48393d8b3134ec10d0b4cd00857552640cf799f98ad4 WHIRLPOOL 87436e81c6c19e95ff84fb36f60252fe4312892a41a44f055f20f7648ae06b3884acfad792b274417a2cec9d755c71b56b7281cccaf00c0fa7c9b2950cc8a8e3
+MISC metadata.xml 333 SHA256 48c76e7dc40362d9f9e1ba20dd9b919ade3c06ba8a69348a210e2269cded3752 SHA512 83cc5fe637917ffcd5563c225f9fadb82e0a5bb7e105f83d7357f915fcc128a6d9b4c9bf80f65fb3cc7d69da3071cc13ec9ad48ee3d303bc1f06340a5fdf4d3d WHIRLPOOL 9fea7635f4f1ec575d421cf89ce329dea33f244821716f31c5e6ec82cf7176316b493d9df7269d51a86f9e5a61823af3f87be992b2d5378326ff6d2475d1eec8
diff --git a/dev-qt/qt-meta/metadata.xml b/dev-qt/qt-meta/metadata.xml
new file mode 100644
index 000000000000..202b54f3e094
--- /dev/null
+++ b/dev-qt/qt-meta/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qt3support">Enable the Qt3Support library for Qt4</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-qt/qt-meta/qt-meta-4.8.6.ebuild b/dev-qt/qt-meta/qt-meta-4.8.6.ebuild
new file mode 100644
index 000000000000..2e381a854040
--- /dev/null
+++ b/dev-qt/qt-meta/qt-meta-4.8.6.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Cross-platform application development framework (metapackage)"
+HOMEPAGE="https://www.qt.io/"
+
+LICENSE="metapackage"
+SLOT="4"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="+dbus examples +qt3support +webkit"
+
+DEPEND=""
+RDEPEND="
+ >=dev-qt/assistant-${PV}:4
+ >=dev-qt/designer-${PV}:4
+ >=dev-qt/linguist-${PV}:4
+ >=dev-qt/pixeltool-${PV}:4
+ dbus? ( >=dev-qt/qdbusviewer-${PV}:4 )
+ qt3support? ( >=dev-qt/qt3support-${PV}:4 )
+ >=dev-qt/qtbearer-${PV}:4
+ >=dev-qt/qtcore-${PV}:4
+ dbus? ( >=dev-qt/qtdbus-${PV}:4 )
+ >=dev-qt/qtdeclarative-${PV}:4
+ examples? ( >=dev-qt/qtdemo-${PV}:4 )
+ >=dev-qt/qtgui-${PV}:4
+ >=dev-qt/qthelp-${PV}:4
+ >=dev-qt/qtmultimedia-${PV}:4
+ >=dev-qt/qtopengl-${PV}:4
+ >=dev-qt/qtscript-${PV}:4
+ >=dev-qt/qtsql-${PV}:4
+ >=dev-qt/qtsvg-${PV}:4
+ >=dev-qt/qttest-${PV}:4
+ webkit? ( >=dev-qt/qtwebkit-${PV}:4 )
+ >=dev-qt/qtxmlpatterns-${PV}:4
+ media-libs/phonon[qt4]
+"
diff --git a/dev-qt/qt-mobility/Manifest b/dev-qt/qt-mobility/Manifest
new file mode 100644
index 000000000000..77e5d3a1aae3
--- /dev/null
+++ b/dev-qt/qt-mobility/Manifest
@@ -0,0 +1,5 @@
+DIST qt-mobility-1.2.2_p20130703.tar.xz 16748672 SHA256 c4f1578a8384a520744ece9c19639600029d1fac2b55e0f110ec5700911aad44 SHA512 51e960dbcab3641906043c0e3dc6c44da2a66d11a15f5ec255776cef299d1403eeb0df55ee953567fdafd4c2a88a6514dcf1e2f8ba0af574c44e02e809f42287 WHIRLPOOL 4e7ee4039fbb4e8f8cfd7f720d232ddf79d61c3cd62ad5851e490c9284badf3431852eb56dfea18e3caf350e2e0ccd50f3244abc04bd68ffc6f6de67e644d3c4
+EBUILD qt-mobility-1.2.2_p20130703-r1.ebuild 3654 SHA256 9d174e9b37c7c9986b21cc7f332939997d5a61f963cba3848509b970e0e96995 SHA512 e4f112027abee5df6f83f0894e7ac347d6caab8174bc434a0d1120a533dd61b293a7b67efa2f6d8710216cefbc0e7819a7bd88f6c25854e8f9c2d98f8c91ffe4 WHIRLPOOL 509e4dda064597802399ca4fd5e69bbd9f9e41c9b5fe456f3175845400266958b8be2d95090691f6576842a10401b68c0a8a3627979d8b7f4f235aed0be56c8c
+MISC ChangeLog 2629 SHA256 669c6b5729c9a2b5b43c2b9cb9f0dd9a440c076f376d612999e5249fa9aea0cb SHA512 77c86c042e9be240452397d1228fb5c9ec27e9378f8e361e2d8e0687758a49afd0d05f216d984bfe6c26c9d726911c61a15339ffdfe4a888c16a5e8eb4ff7d68 WHIRLPOOL 2ccea650115e316d59a0d8edb192e3a42d327e42799e74cea6da839165263ba208eee877784540b7b72cc315c91e84a3bf2228dd986153ff803287acc90b973c
+MISC ChangeLog-2015 4011 SHA256 b9afc97f6f39956a3d556af8a973132a981be6054549fc020405fd1ccc6fd7ba SHA512 02a25b8fd6e32d63503d53b4e3c3eae3ea9cecc765c540632cd6a78116ebb1e9c1c9c097e8bdfdce7f0e03647ad928e5fc677151d4ccc25c0506b0553107fd35 WHIRLPOOL 03c0068a008b03c5313504d94d0a7a50c2d5f5da363306381125ff297722de2ae3d1c9686fa6c1a0f305d4d7a0ca0a1252d7c676efb7a481153692e36d8cd463
+MISC metadata.xml 1649 SHA256 344e22779f0e9ebb966350cfa9a52e8a026ad6fff4be60e016b4e8db5153e10b SHA512 bf8cfa55950b9c4c62f61324ae5df5fe2906526c032af2c5b1e81d4afbcf21d41d928ecb4ee3fa9939628fb1b76f7cb61a8f441d6bd10e093c561325f71efaaf WHIRLPOOL 7ab720e6e5f57553d553e5e7eeef655cf9701094961933eb73d8aa221db9ea8bbb67f7a9d687bf91c4b32c7661c1716d28ccdbcbae2aa04ec8c12afad5efe47d
diff --git a/dev-qt/qt-mobility/metadata.xml b/dev-qt/qt-mobility/metadata.xml
new file mode 100644
index 000000000000..60dc4cc36106
--- /dev/null
+++ b/dev-qt/qt-mobility/metadata.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="bluetooth">Enable Bluetooth support in QtConnectivity and QtSystemInfo modules</flag>
+ <flag name="connectivity">Build the QtConnectivity module</flag>
+ <flag name="contacts">Build the QtContacts module</flag>
+ <flag name="feedback">Build the QtFeedback module</flag>
+ <flag name="gallery">Build the QtGallery module</flag>
+ <flag name="location">Build the QtLocation module</flag>
+ <flag name="messaging">Build the QtMessaging module</flag>
+ <flag name="multimedia">Build the QtMultimediaKit module</flag>
+ <flag name="networkmanager">Enable NetworkManager support in QtBearer and QtSystemInfo modules</flag>
+ <flag name="organizer">Build the QtOrganizer module</flag>
+ <flag name="publishsubscribe">Build the QtPublishSubscribe module</flag>
+ <flag name="pulseaudio">Enable PulseAudio support in QtMultimediaKit module</flag>
+ <flag name="qml">Build QML bindings</flag>
+ <flag name="sensors">Build the QtSensors module</flag>
+ <flag name="serviceframework">Build the QtServiceFramework module</flag>
+ <flag name="systeminfo">Build the QtSystemInfo module</flag>
+ <flag name="tools">Build various useful tools (e.g.: qcrmlgen, servicexmlgen, vsexplorer, ...)</flag>
+ <flag name="versit">Build the QtVersit module</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>http://doc-snapshots.qt.io/qt-mobility/index.html</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qt-mobility/qt-mobility-1.2.2_p20130703-r1.ebuild b/dev-qt/qt-mobility/qt-mobility-1.2.2_p20130703-r1.ebuild
new file mode 100644
index 000000000000..5f684b64444c
--- /dev/null
+++ b/dev-qt/qt-mobility/qt-mobility-1.2.2_p20130703-r1.ebuild
@@ -0,0 +1,150 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib qt4-r2
+
+DESCRIPTION="Additional Qt APIs for mobile devices and desktop platforms"
+HOMEPAGE="http://doc-snapshots.qt.io/qt-mobility/index.html"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${P}.tar.xz"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86"
+
+QT_MOBILITY_MODULES=(connectivity +contacts feedback gallery location
+ messaging multimedia organizer publishsubscribe
+ sensors serviceframework systeminfo versit)
+IUSE="bluetooth debug doc networkmanager pulseaudio qml +tools
+ ${QT_MOBILITY_MODULES[@]}"
+
+REQUIRED_USE="
+ || ( ${QT_MOBILITY_MODULES[@]#[+-]} )
+ versit? ( contacts )
+"
+
+RDEPEND="
+ >=dev-qt/qtcore-4.8.0:4
+ connectivity? (
+ >=dev-qt/qtdbus-4.8.0:4
+ bluetooth? ( net-wireless/bluez )
+ )
+ contacts? ( >=dev-qt/qtgui-4.8.0:4 )
+ gallery? ( >=dev-qt/qtdbus-4.8.0:4 )
+ location? (
+ >=dev-qt/qtdeclarative-4.8.0:4
+ >=dev-qt/qtgui-4.8.0:4
+ >=dev-qt/qtsql-4.8.0:4[sqlite]
+ )
+ messaging? ( >=net-libs/qmf-4.0 )
+ multimedia? (
+ >=dev-qt/qtgui-4.8.0-r4:4[xv]
+ >=dev-qt/qtopengl-4.8.0:4
+ media-libs/alsa-lib
+ media-libs/gstreamer:0.10
+ media-libs/gst-plugins-bad:0.10
+ media-libs/gst-plugins-base:0.10
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXv
+ pulseaudio? ( media-sound/pulseaudio[alsa] )
+ )
+ publishsubscribe? (
+ tools? ( >=dev-qt/qtgui-4.8.0:4 )
+ )
+ qml? ( >=dev-qt/qtdeclarative-4.8.0:4 )
+ serviceframework? (
+ >=dev-qt/qtdbus-4.8.0:4
+ >=dev-qt/qtsql-4.8.0:4[sqlite]
+ tools? ( >=dev-qt/qtgui-4.8.0:4 )
+ )
+ systeminfo? (
+ >=dev-qt/qtdbus-4.8.0:4
+ >=dev-qt/qtgui-4.8.0:4
+ sys-apps/util-linux
+ virtual/libudev:=
+ x11-libs/libX11
+ x11-libs/libXrandr
+ bluetooth? ( net-wireless/bluez )
+ networkmanager? ( net-misc/networkmanager )
+ )
+ versit? ( >=dev-qt/qtgui-4.8.0:4 )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( >=dev-qt/qthelp-4.8.0:4 )
+ multimedia? (
+ sys-kernel/linux-headers
+ x11-proto/videoproto
+ )
+ systeminfo? ( sys-kernel/linux-headers )
+"
+
+src_prepare() {
+ qt4-r2_src_prepare
+
+ # disable building of code snippets in doc/
+ # and translations (they aren't actually translated)
+ sed -i -re '/SUBDIRS \+= (doc|translations)/d' qtmobility.pro || die
+
+ # fix automagic dependency on qt-declarative
+ if ! use qml; then
+ sed -i -e '/SUBDIRS += declarative/d' plugins/plugins.pro || die
+ fi
+}
+
+src_configure() {
+ # figure out which modules to build
+ local modules=
+ for mod in "${QT_MOBILITY_MODULES[@]#[+-]}"; do
+ use ${mod} && modules+="${mod} "
+ done
+
+ # custom configure script
+ local myconf=(
+ ./configure
+ -prefix "${EPREFIX}/usr"
+ -headerdir "${EPREFIX}/usr/include/qt4"
+ -libdir "${EPREFIX}/usr/$(get_libdir)/qt4"
+ -plugindir "${EPREFIX}/usr/$(get_libdir)/qt4/plugins"
+ $(use debug && echo -debug || echo -release)
+ $(use doc || echo -no-docs)
+ $(use tools || echo -no-tools)
+ -modules "${modules}"
+ )
+ echo "${myconf[@]}"
+ "${myconf[@]}" || die "configure failed"
+
+ # fix automagic dependency on bluez
+ if ! use bluetooth; then
+ sed -i -e '/^bluez_enabled =/s:yes:no:' config.pri || die
+ fi
+
+ # fix automagic dependency on networkmanager
+ if ! use networkmanager; then
+ sed -i -e '/^networkmanager_enabled =/s:yes:no:' config.pri || die
+ fi
+
+ # fix automagic dependency on pulseaudio
+ if ! use pulseaudio; then
+ sed -i -e '/^pulseaudio_enabled =/s:yes:no:' config.pri || die
+ fi
+
+ eqmake4 -recursive
+}
+
+src_compile() {
+ qt4-r2_src_compile
+
+ use doc && emake docs
+}
+
+src_install() {
+ qt4-r2_src_install
+
+ if use doc; then
+ dodoc -r doc/html
+ dodoc doc/qch/qtmobility.qch
+ docompress -x /usr/share/doc/${PF}/qtmobility.qch
+ fi
+}
diff --git a/dev-qt/qt3d/Manifest b/dev-qt/qt3d/Manifest
new file mode 100644
index 000000000000..d166a8776ae0
--- /dev/null
+++ b/dev-qt/qt3d/Manifest
@@ -0,0 +1,6 @@
+DIST qt3d-opensource-src-5.7.1.tar.xz 19474848 SHA256 1d74cf431777b8086d771ab0d4d2c01f9c28eb14cc2d73d7f838a665d1f707ea SHA512 fe124b939709185d9ac755d017f850a3f3d97f7f58c863a3da3df5dcac25391ca79e97830142fb263618e7afcb4bf43f363511539d508ec2a45a8a99f0e1a8a7 WHIRLPOOL 8d9a60a36917095fe95be5d6d96cb84ec6cc33a275ea80375a7c8acb29caff0935715aaef83b56e860b73669475d325c6ac849fafdc863fd3cf17b0f87e29c5f
+DIST qt3d-opensource-src-5.9.2.tar.xz 28007160 SHA256 c955a92fe2f3f2f03493ae0e9d973ebe1c4b1e037b58f18092fa2040f5b50783 SHA512 1c7dbd4e557cdd183ec6e929aae5727ce2ffcb519517942b588594bb81a78cb3d732cde4dae58085a70ec2968a8c2443eae96536125c25938222ff7c89f4f9a2 WHIRLPOOL 644c3074cbbafbbcd5d9d81f1fa8909e5dfb5fffe50b2eb3c624d39610f13f0aa0859c1ae38610b5658e7cafe9c3bafe49c472475efbdd84fafa5603435faadd
+EBUILD qt3d-5.7.1-r1.ebuild 598 SHA256 2af8dee389e35fd7f82fa8e2361252c052eba51ce39aece5f1173f6c5460628d SHA512 cc06b602224b4f7bc375de93765419ee2a211ce8713e35d81e50482f3ee0a5702b357d6a20872a852de8f1dba753da1e5e4955ac7975b727854d806082ab8040 WHIRLPOOL 9a11400f2d3aaadaad068233ac1cfdc52bee8a1bbcf801f7bbe8bea74295d4a1ce63828dedfb767ee84b2a522bb1db1cea316f7a2da4fe0f06a56e2fab179b8f
+EBUILD qt3d-5.9.2.ebuild 641 SHA256 90e4c71bae02ad6a0b150444973c6314cd1b3867944370e9f55a619d45b5721f SHA512 41c24cfd97ad7ff7b91c0b395e7f7cb83b84ca70d6344b8f5cec86c643f137e00e1208abb356b08f8c182e92a33c0ae2f8a610fa23afcf2bd3104e65b56aca29 WHIRLPOOL f8b1844141b4d8c4cdb46e59a1ecfa43a1a35da3064ccc93d341dbb9a7b3e7d0e19bf89a64b0e2d239c20c9eb0bb31637d8171c8f47b56502332b966dfc09b8d
+MISC ChangeLog 616 SHA256 c44e6496fac8ba5a60814f24befdec5799aaa1994ad12029111daffc5c9e5027 SHA512 062ac8bc5fefd6d67c7c1d832865e5b11d6167413b9a69798ce57f6d73b3c2691248581c74313efa26076989486d3f6a3b1f5ec11d44710f161910ba6eb5d9bd WHIRLPOOL a041b8ea0a35c7ef63da6f666ba588592a12523fb777fafe12db9de2d69437fa2205e678bd1a9d0f97930426d282dc2250258e25eb9cadcb7d3a1905c557345a
+MISC metadata.xml 622 SHA256 1c80c05b98c299cd76f41924521288de667e738c34bed8d53f6ff5f1216b4efd SHA512 3edf4c4db2c08652dbc1b62aa216f62b887190e2e0bbfd0cde7410911ddf1e0ea8cc9a27e91db07a78dd6078fd4b1ad23b27f0dba37607771d3b6c2497552607 WHIRLPOOL b9bed1675cea459adecd8c7930e2a217053e89ac73ae538786c850fadff0ffd667b9893451b57e1b2043922c191c954575c0b0f27ed257330bf4264d0b6e2965
diff --git a/dev-qt/qt3d/metadata.xml b/dev-qt/qt3d/metadata.xml
new file mode 100644
index 000000000000..987a6dc29cad
--- /dev/null
+++ b/dev-qt/qt3d/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="qml">Build QML/QtQuick bindings</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qt3d/qt3d-5.7.1-r1.ebuild b/dev-qt/qt3d/qt3d-5.7.1-r1.ebuild
new file mode 100644
index 000000000000..17152f1a0586
--- /dev/null
+++ b/dev-qt/qt3d/qt3d-5.7.1-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="The 3D module for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# TODO: egl, tools
+IUSE="gles2 qml"
+
+DEPEND="
+ ~dev-qt/qtconcurrent-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ sys-libs/zlib
+ qml? ( ~dev-qt/qtdeclarative-${PV}[gles2=] )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt5-build_src_prepare
+
+ if ! use qml; then
+ sed -i -e "/quick3d/s/^/#/" src/src.pro || die
+ fi
+}
diff --git a/dev-qt/qt3d/qt3d-5.9.2.ebuild b/dev-qt/qt3d/qt3d-5.9.2.ebuild
new file mode 100644
index 000000000000..02ffa8ef61d7
--- /dev/null
+++ b/dev-qt/qt3d/qt3d-5.9.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="The 3D module for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# TODO: gamepad, tools
+IUSE="gles2 qml"
+
+DEPEND="
+ ~dev-qt/qtconcurrent-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ >=media-libs/assimp-4.0.0
+ qml? ( ~dev-qt/qtdeclarative-${PV}[gles2=] )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ rm -r src/3rdparty/assimp/{code,contrib,include} || die
+
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qt3support/Manifest b/dev-qt/qt3support/Manifest
new file mode 100644
index 000000000000..a7ef11e44303
--- /dev/null
+++ b/dev-qt/qt3support/Manifest
@@ -0,0 +1,7 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+EBUILD qt3support-4.8.6-r1.ebuild 847 SHA256 2cf6a52e621819fc69db97821886f418b5a2239df06d52d1687711365118cb83 SHA512 6f1b78ef12498c88689c39ba424547d88e569b1ea64114112ba2a7c0411e3f0951401dcad07c982b55701a4dc9de4809c921af341f9eca8590e145f22e104e3e WHIRLPOOL 4dfcf147cf200376188fa9aa9b9e3be21437d26a22c925f382d406f48059656163bff49cde99fce72b800701f5e6a504fea95de6b80e8d544f90d811e32fa40d
+EBUILD qt3support-4.8.7.ebuild 796 SHA256 2ff3482776b5e7d27e9f0a652e8da85b0418556b5a85f4a39f25e489b007b377 SHA512 afa488c3c7bc9e9d28638aac91c8b0830b5ee565af506e07f9d59e211ec30de2ad70de3cf61c46c9c71ff6fc91d89329bfd50e772b1d394874226c35642e35d6 WHIRLPOOL 4bfc811ef5ed960c8f18a739b6360e53184346cf91815167225f2eb39aeb3458d8eb68e177ae9e04aa706a3a629a5cc56d66e04ea06db0960f10658566b9c443
+MISC ChangeLog 3006 SHA256 cecd7d65cdd3a7a2583f1c98003f0500865ca8596064e0a48bca357b3b0724e4 SHA512 ff970e87d6441c335fe01e0ecaf31e8ba8b0c3103a1eef7ffeba7db2798c582480af4bb302674e5c90f3a21a96fe8c593b785c6f535bbceccc5862431a3bfe12 WHIRLPOOL a619d3966c93cd83c212ec0d5e8b1d825f08fe8cae23e9a7abbe239a50a260741a13c7932dbeae43a3113fd7589103878d8af4ca9c5e67f65f20780147d15bfe
+MISC ChangeLog-2015 20804 SHA256 51396904bebab68828ea54796da6f63ca49143c726e3f12b960f0d5ab520d7ec SHA512 069d3514b93fd76d3e568be1c7209553d911e3e59347e1ede13f2fc96215f19e7125725a10478ea924130c6c8b2c695df5fc9d569814e43933552e20a5314d6e WHIRLPOOL 09d6308b5e0298d8ce9562c57444d166f98508160d98603f3246e1b88cf599bb27eff4eeae76ec3cafc8b1cee475ed8e9fdf4e7fa4de7d69af155cf5ceab14ba
+MISC metadata.xml 498 SHA256 a6e7ad05200f205e05e05aa0e56ef87541f0d7390f69bce63223fdbc37b4cdb9 SHA512 c3a9a09447e5cce7d251073785f0692096497a10ba01ae6ba8769d0ac07b829ed6d5dc97daf83da128569346fd1bd679031aafe0f4644d33361e22403f47310a WHIRLPOOL eda950bc76526a7c719f1be6e380a27d184fe202716e200ea457e3ae6635394e1f60848e9d690c2f094dfd095deccc734073271ca03ba7dc982f3d7a7b909a6f
diff --git a/dev-qt/qt3support/metadata.xml b/dev-qt/qt3support/metadata.xml
new file mode 100644
index 000000000000..b92d7448ee41
--- /dev/null
+++ b/dev-qt/qt3support/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qt3support/qt3support-4.8.6-r1.ebuild b/dev-qt/qt3support/qt3support-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..f3881522d17d
--- /dev/null
+++ b/dev-qt/qt3support/qt3support-4.8.6-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The Qt3Support module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/qt3support
+ src/tools/uic3
+ tools/porting"
+
+multilib_src_configure() {
+ local myconf=(
+ -qt3support
+ $(qt_use accessibility)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qt3support/qt3support-4.8.7.ebuild b/dev-qt/qt3support/qt3support-4.8.7.ebuild
new file mode 100644
index 000000000000..6dc258487e99
--- /dev/null
+++ b/dev-qt/qt3support/qt3support-4.8.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The Qt3Support module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,qt3support,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/qt3support
+ src/tools/uic3
+ tools/porting"
+
+multilib_src_configure() {
+ local myconf=(
+ -qt3support
+ $(qt_use accessibility)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtbearer/Manifest b/dev-qt/qtbearer/Manifest
new file mode 100644
index 000000000000..29ca1a995bf5
--- /dev/null
+++ b/dev-qt/qtbearer/Manifest
@@ -0,0 +1,7 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+EBUILD qtbearer-4.8.6-r1.ebuild 1498 SHA256 7d8e9bcb55ad3126b605cef9f3db9177fa3315748dfac41658d4596bbb6457f2 SHA512 ffaea0dd23597b46a248a20fbdd9889d0e0624610ee19737aa091eb48beeecab6b715b4a7ed09f4de5a8f285ad557ba303506e470e9c31e787384399cf0c1def WHIRLPOOL 886db118d9a610ae977543d37330d10c058c8d14f0aee621b3e8a0b8ca0fed4ce60a6a5331f9fe2618ead4ace86779777f335b6d9a70104500c1e79ac9be5570
+EBUILD qtbearer-4.8.7.ebuild 1447 SHA256 c21edcc9ebdc7ab29c7177586495d98700ee1d3935f072f2d258040053051757 SHA512 ae6e8fef15b92d247992627d7ced0e2b19dc3c2ccc1ffca27d35c9e98839940f9d3312d8437072504bf910e26859a204a3c85151989beda7761c08d5e8681279 WHIRLPOOL 9106b32c551058b5025ab1aa7fa233f7c3a12a8c5cceb9b52d0105cdeff2eeb704a38a8b66a7979bdac51a854d8ed123ea7134c3d714d4a9f0d22e24e2aa1f8e
+MISC ChangeLog 2793 SHA256 66fa6f54c4efe6e6f97a13302ebe8afd847494ca26616b3577de3a2b8d023eeb SHA512 f4ac01bbc4c771b6579ac9f5ac75682a355f35a743c520cbb1c0f6f1917b891f3280799ea5f31b91cb5c9d429a9f6a3964699f5879f1e9398a98e2a5e7860823 WHIRLPOOL 4c96b70e3372fcda629ef1dcc2f0367ca198f1c7d7b8e4106e72d42a5ab659012517c6cf2788d1f949a0885e7b0f61fdd17280ccdfd8fb83bad94648e132c892
+MISC ChangeLog-2015 6316 SHA256 c36e53054a29343d402d1ad0e9f48952be2ad364edf8cf5277ce2d61934fc3af SHA512 9c79ad561fde6d80a07ce43395e5d48391da1526a481be30f3eddf70e64c222b399f140d87865a31eaca1b7b4ebda18f34fca6276941601f2b4b985bfac572a7 WHIRLPOOL f3e30f00095b515f244b4abe4e81393b95d7fccb64cc9f21beedec03c75af4901d4fc41b48ddcb33e838cde63ccf23a9783eb3d948200681a89831d930b27a6b
+MISC metadata.xml 498 SHA256 a6e7ad05200f205e05e05aa0e56ef87541f0d7390f69bce63223fdbc37b4cdb9 SHA512 c3a9a09447e5cce7d251073785f0692096497a10ba01ae6ba8769d0ac07b829ed6d5dc97daf83da128569346fd1bd679031aafe0f4644d33361e22403f47310a WHIRLPOOL eda950bc76526a7c719f1be6e380a27d184fe202716e200ea457e3ae6635394e1f60848e9d690c2f094dfd095deccc734073271ca03ba7dc982f3d7a7b909a6f
diff --git a/dev-qt/qtbearer/metadata.xml b/dev-qt/qtbearer/metadata.xml
new file mode 100644
index 000000000000..b92d7448ee41
--- /dev/null
+++ b/dev-qt/qtbearer/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qtbearer/qtbearer-4.8.6-r1.ebuild b/dev-qt/qtbearer/qtbearer-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..785995366ca5
--- /dev/null
+++ b/dev-qt/qtbearer/qtbearer-4.8.6-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The network bearer plugins for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="connman networkmanager"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ connman? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ networkmanager? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}
+ connman? ( net-misc/connman )
+ networkmanager? ( net-misc/networkmanager )
+"
+
+pkg_setup() {
+ QT4_TARGET_DIRECTORIES="
+ src/plugins/bearer/generic
+ $(use connman && echo src/plugins/bearer/connman)
+ $(use networkmanager && echo src/plugins/bearer/networkmanager)"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(use connman || use networkmanager || echo -no-dbus)
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg
+ -no-cups -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtbearer/qtbearer-4.8.7.ebuild b/dev-qt/qtbearer/qtbearer-4.8.7.ebuild
new file mode 100644
index 000000000000..bde97360a22b
--- /dev/null
+++ b/dev-qt/qtbearer/qtbearer-4.8.7.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The network bearer plugins for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="connman networkmanager"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ connman? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ networkmanager? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}
+ connman? ( net-misc/connman )
+ networkmanager? ( net-misc/networkmanager )
+"
+
+pkg_setup() {
+ QT4_TARGET_DIRECTORIES="
+ src/plugins/bearer/generic
+ $(use connman && echo src/plugins/bearer/connman)
+ $(use networkmanager && echo src/plugins/bearer/networkmanager)"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(use connman || use networkmanager || echo -no-dbus)
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg
+ -no-cups -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtbluetooth/Manifest b/dev-qt/qtbluetooth/Manifest
new file mode 100644
index 000000000000..5dc9b79f3549
--- /dev/null
+++ b/dev-qt/qtbluetooth/Manifest
@@ -0,0 +1,8 @@
+DIST qtconnectivity-opensource-src-5.6.2.tar.xz 2639772 SHA256 1b672923e0703d62f605ccec97b454b1a04c1f0db47f54b687d009e84eabedf9 SHA512 4cef0afa38679ca11550693ae9bb9ca70835ed129ba7aa3db868a06743d406cdf473173cc55bda7b1171499b58bdc860bc64838ae8d1f2a171c85a2b64756ff1 WHIRLPOOL 62b97e947af738ff80aa62ae1eb954968b520073e126dc8b33d84a105bf3d51397fc8e7f1d4ca3a4c1efa7f090d1105d1fe6abbd4e8a85c0382ef8bda0c4c310
+DIST qtconnectivity-opensource-src-5.7.1.tar.xz 2690688 SHA256 b3e8b9068304dc5605a8fdf0695102032fd1a216f2c2d4d53a7e4d4dda3ab966 SHA512 3550be2ce365c7eea2adb41b6db63d0867ff1eaae15d6f4d22345bfdd8e4ac9c2f3983e5d3e897d5c4d7d32e466929c2cfdfac0921c0927c3955f021d37d9e61 WHIRLPOOL 18776531aa22a060c73f6b3534060e38a6d5b7acb14834d7a531a22a246389753ce44e8de3dc3be476a21e2ddd6ca38746eee8a7e1e96c6a817f339fe9966051
+DIST qtconnectivity-opensource-src-5.9.2.tar.xz 2723028 SHA256 2c759597ec959d54f29a3f628896d9208cf1f4e2269d8e01a9d3036f6995f3cc SHA512 c7a32ca45464670bb461139e48721c80859d2ef2eb5e30b61062578c07dfe1cf9cceb0bfe01304f4661a6b80cc7c2769399e0745a165596440a896bd1e1d0893 WHIRLPOOL 85d1f7313f2721796c2afbc96d185fcbd051ac71edc686bde34feed1c24da8c785958c56bb651f01bd168cf5da6ee7b0a781c637b26bf449043f4369e3e28e87
+EBUILD qtbluetooth-5.6.2.ebuild 629 SHA256 4551e4a3422523a8192b2760c37c172701330fe987b7c5990446383fdd272558 SHA512 dae506288f755382be108d837ab0f28edb7c90627eff009f3bc908e3ad076e26da924321184a907598bd3196a4969e4c395d201407e1b8eefdde72ef5c2c5123 WHIRLPOOL ec10619498b26721d532933311a6a8bed10085b62d39e17cdfe817453512623e0fad3abcaa6b032366b9e67c02d0eaf3ebfd8ae02d8f3cff2646471225aca743
+EBUILD qtbluetooth-5.7.1.ebuild 636 SHA256 144b2fb3bbfc4f1003b2c032391ac7076bde918fa8e1619384bfdb7f0937260a SHA512 ec143dc4467c7d38946d360622bfbb94c23e22ec35d990985c45fdff6c06c1cf509784833bd126b71da73bc0eb095e9a3dcceca9a8a1dca81e1f61aa27e17d37 WHIRLPOOL 4a8b890bd309de6c4fd631d203075539ea46ecb6627df36b19749fe2d0082eb65bb069af1a13d5918609883bf2dec4ba8c90993b37c75aae759447e3ec0fa455
+EBUILD qtbluetooth-5.9.2.ebuild 641 SHA256 a0e0de7c799206f4cd6c410b507acd57e1c29f3ee0183150764bd905e22d3ed5 SHA512 9c93e43ecd45455c09d311f6f4778bd177edf71e179b2b35cb0f005c9e4e7eb04d010d339eaf05ded16d80e4663b47b61628cff2842470f5694f245faf800f9c WHIRLPOOL 80bcf5395fef674f37e6fc5fd567bd40b02ddd7a3c27bdde191fb3880bf2b03b194e60893ac2f3b82676983ad28bcbbe8a2e7f7e4bac5fd4516999c008ee6a38
+MISC ChangeLog 3365 SHA256 1e314007048e3c8bf862f133efc8bac46b54bb6487a481f5e2c39f7acfdc6efd SHA512 30e30869723d5533581b64e40151791af79f2b553d290900a510380d3999340fce6c6fa3b5006282aa71d66a514a7ff444ea47bb06fc0812571852ce963ef4b4 WHIRLPOOL 8c92dcd1fcd310bd93a44ed7f7f1574caa8fa1f4e9e01450ed4ed0bdb9e11ad23681ad23487f44dfee3e640b8603b729b0d8f925d6aa88fcb61f8b403ff94872
+MISC metadata.xml 561 SHA256 6aa31826187afe31aeaaf36be2619f1a68eb075526d806e3287d333b25c55f0a SHA512 73d78a296a643dafb989554225cefd7b4c0a00431f2d65c3705207ca5282d0b73d56625426c5b029f76f7eb27b3c84272c9da64a05100a7cc84cad22bbed191a WHIRLPOOL df0251229b677520bcec04b006bc2522b26d91897507554629074df5177744947d05e754e979b66096ce736db732101dd06e60b828dc2609e0558ed77ce66fae
diff --git a/dev-qt/qtbluetooth/metadata.xml b/dev-qt/qtbluetooth/metadata.xml
new file mode 100644
index 000000000000..d437181335d4
--- /dev/null
+++ b/dev-qt/qtbluetooth/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtbluetooth/qtbluetooth-5.6.2.ebuild b/dev-qt/qtbluetooth/qtbluetooth-5.6.2.ebuild
new file mode 100644
index 000000000000..b4f231364ba3
--- /dev/null
+++ b/dev-qt/qtbluetooth/qtbluetooth-5.6.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtconnectivity"
+inherit qt5-build
+
+DESCRIPTION="Bluetooth support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm x86"
+fi
+
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtconcurrent-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ >=net-wireless/bluez-5
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}
+ ~dev-qt/qtnetwork-${PV}
+"
+
+src_prepare() {
+ sed -i -e 's/nfc//' src/src.pro || die
+
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtbluetooth/qtbluetooth-5.7.1.ebuild b/dev-qt/qtbluetooth/qtbluetooth-5.7.1.ebuild
new file mode 100644
index 000000000000..74513ea573c0
--- /dev/null
+++ b/dev-qt/qtbluetooth/qtbluetooth-5.7.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtconnectivity"
+inherit qt5-build
+
+DESCRIPTION="Bluetooth support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 x86"
+fi
+
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtconcurrent-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ >=net-wireless/bluez-5
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}
+ ~dev-qt/qtnetwork-${PV}
+"
+
+src_prepare() {
+ sed -i -e 's/nfc//' src/src.pro || die
+
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtbluetooth/qtbluetooth-5.9.2.ebuild b/dev-qt/qtbluetooth/qtbluetooth-5.9.2.ebuild
new file mode 100644
index 000000000000..e7665bb6b262
--- /dev/null
+++ b/dev-qt/qtbluetooth/qtbluetooth-5.9.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtconnectivity"
+inherit qt5-build
+
+DESCRIPTION="Bluetooth support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtconcurrent-${PV}
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ >=net-wireless/bluez-5:=
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}
+ ~dev-qt/qtnetwork-${PV}
+"
+
+src_prepare() {
+ sed -i -e 's/nfc//' src/src.pro || die
+
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtcharts/Manifest b/dev-qt/qtcharts/Manifest
new file mode 100644
index 000000000000..714f2d89dbbe
--- /dev/null
+++ b/dev-qt/qtcharts/Manifest
@@ -0,0 +1,6 @@
+DIST qtcharts-opensource-src-5.7.1.tar.xz 4086256 SHA256 85feee6992cdef1ab42947a83cbf806a29224d704ee5dc97ee5038c75b633fe3 SHA512 2db2c5a956e84b4e080df71f6ba8bdf48ad3a456d334f59d50525a10cb7358129d7cf7855a11342192d03c10ab1cb84d94faaf94ce02f6786d32fe655bc8558c WHIRLPOOL e793229b4483c41cfcd86c59402635caf2f40566147e09b28e75f60c30ad6540a15f7d28903f5551eb785931a8097d2d9ef3312d34c5f6455d102f778ad24c10
+DIST qtcharts-opensource-src-5.9.2.tar.xz 4157644 SHA256 4e7af70a73828ee1eb9606bd2c071cc7347c5f928aaf07b420dce7376b1c6aa4 SHA512 297547b565dd71b05237bb05ecc1abf1a774a4909668417e78bd65e805c1e47a456a5a06898fe06d4c4614118e4129e19893d4c77598667a9354ab969307a293 WHIRLPOOL c2b423484e8335bb1140233e68d13f94b4bac114d8256efaa5e87a8a1dabcf704714f6d8f35b23d0c6f51b095b87dd87064aeab77ea7095e48e737870b95185e
+EBUILD qtcharts-5.7.1.ebuild 521 SHA256 e513cd618a0eb74112cc7ee1fa8cb61fde7c1a7c4c34f7d26be4c6704cb8ea77 SHA512 5dbc46795ec80a1dfd98d3aeae5e54e37582a1e26fcfb7d3b48531e1652fbfcc25872677a61683458c733e4dbb376f4262a3a186f460e5e453b93afdd0f39c10 WHIRLPOOL b8bd1bdf4d300f7bfb4db94449c78c09cd5de143b1ed22940a3b648d5068838e665c65d3991134c8ad2408d8074d09ea5a6d9cd63214844874ee99386372af6c
+EBUILD qtcharts-5.9.2.ebuild 521 SHA256 2b280316ac18bd8785a66d3baee278228be3f42e79f19dcab343d4cfc6521a17 SHA512 e43774aee68235c06734967248ad655ffa5657fd6fe1e89691999037f76cbb8ff0e782d4b14fa45fcd39400bdc006411dba1d4d69667cb0c11764abe4bd4ee13 WHIRLPOOL 7ee9e0195b6d10e76cefac8d2f51bc26620613711d0fceeeab5c1b432e1ae5ba581c2f111a319ffdf96504c8d2f954329a81335055848ffb8d692c19c2d2295f
+MISC ChangeLog 644 SHA256 9d605a2a9074b3f9fc4f401dae8d7449e1286aa8f6ce2ba30b21886f91b76677 SHA512 a3e5eb6945369978e995eb755719727a976e52c64c1cb053c302067d9f135adf238f8dab1eca67701b14d3309253e2ac283f6b08cf66d239146948a7efdabe12 WHIRLPOOL 0403ce4da8193eb367ebca1c33947ed93e04389490bbd4b4662e5c9ea63b2abf25ba3b8de0f167f5e85f182df9227b38091bdac236901b5e8df5e92f7f7a33e3
+MISC metadata.xml 561 SHA256 6aa31826187afe31aeaaf36be2619f1a68eb075526d806e3287d333b25c55f0a SHA512 73d78a296a643dafb989554225cefd7b4c0a00431f2d65c3705207ca5282d0b73d56625426c5b029f76f7eb27b3c84272c9da64a05100a7cc84cad22bbed191a WHIRLPOOL df0251229b677520bcec04b006bc2522b26d91897507554629074df5177744947d05e754e979b66096ce736db732101dd06e60b828dc2609e0558ed77ce66fae
diff --git a/dev-qt/qtcharts/metadata.xml b/dev-qt/qtcharts/metadata.xml
new file mode 100644
index 000000000000..d437181335d4
--- /dev/null
+++ b/dev-qt/qtcharts/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtcharts/qtcharts-5.7.1.ebuild b/dev-qt/qtcharts/qtcharts-5.7.1.ebuild
new file mode 100644
index 000000000000..02c51ca2242e
--- /dev/null
+++ b/dev-qt/qtcharts/qtcharts-5.7.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Chart component library for the Qt5 framework"
+LICENSE="GPL-3"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtcharts/qtcharts-5.9.2.ebuild b/dev-qt/qtcharts/qtcharts-5.9.2.ebuild
new file mode 100644
index 000000000000..87959af467ec
--- /dev/null
+++ b/dev-qt/qtcharts/qtcharts-5.9.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Chart component library for the Qt5 framework"
+LICENSE="GPL-3"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtchooser/Manifest b/dev-qt/qtchooser/Manifest
new file mode 100644
index 000000000000..08035e0bfb56
--- /dev/null
+++ b/dev-qt/qtchooser/Manifest
@@ -0,0 +1,7 @@
+DIST qtchooser-0_p20151008.tar.xz 31308 SHA256 121e90dd70054701c52b0d555ffa2a55192439afded88197f17d7b2ca28fa2e8 SHA512 d6fd56e839b7ce7abbd42300d76d06d67fabb5ca36a6f6a39493b7770599372c4795a90cafeea8cceff8da7ea7f6639d74f76a8241a808364a41905fa3d084c6 WHIRLPOOL 8e5fc7d1b30d06990af87737e7d5a4b210f0f30ef2d8d7a17b7ef91e02afdb9bce7240c7f291d557855a277c4d5c4c3f452c416ea29a9f1f9a23c9aeface4ae3
+DIST qtchooser-0_p20170803.tar.xz 32012 SHA256 b8cb86c69351fa1acbb96dac6b5e76c6cde73c1a259d56a64c7891726aefde88 SHA512 320d898617ad52392fe24834e99ace685dac84e3a7edb1f6e6358baadb6658a51b02ae1af465ef5e081485a002c787c6884b6e1637ffd0406767fe7555fc32a7 WHIRLPOOL 5d8efa42b4f864bf3b3660f8adaa0ca65c20b9d94d682cb45a623c4b53fd81c366d268c417a586a22348448fb76cb67bcf8acd472dc4f101d07efc975ad23131
+EBUILD qtchooser-0_p20151008.ebuild 1568 SHA256 40c8e615bf07399076aa243213d5776f05b86012aca9bd83a001daa9ff545e03 SHA512 ec2a7c1441707107c374ca47fb8fef6f6635b022fe0fbf918de104d70b26d965d9db24b38aa1b67a0203f67fbe3dfedb1040dff42127b852e404ed9678a22f81 WHIRLPOOL 75cbb16131822f7c9260b725e4305492d97df650df60494ca5e327f5070bc80a589daeba6a76767e6d26aa756120c7a955864f8801d1aa2c8d8c48ead09f1bb3
+EBUILD qtchooser-0_p20170803.ebuild 1577 SHA256 d4ec22e8ce6135d977b119e597b3076c0e473d1433236897e4815ea4115a864e SHA512 c03a50bcaf3ac8301dbed6c013969d84940886d797773ca4732939fce2819580dce49e266ea9d3ac551b24dc998201293a004a3d67a3701c89860ada09ed6843 WHIRLPOOL 5ed608b7b4f96caa5d6b008af306cc38093fb067d1688bfc22b9eca522d6a50c771aece7b6fd7630958ee6e83e8b616f3183cc9afd4e57d95ec20a6ad42504b6
+MISC ChangeLog 5257 SHA256 4d7098b3f750a09ca902912eaa900832e167dae7baf22d66f2d17bcadb2a34ed SHA512 0b982d66e3e12488038a8dbc72b697aa5f74813c5773a36e993e32e647413aa8b7bf0e370d45b35fcaa67366b5f21bf623ecb3403b1bf392647cac39f5d00e1f WHIRLPOOL f34466b6b08b5e2af5873a72187e38dbc277c11e29612caf32f45912c02a6235adf0a9b589936d919e36929ee493a87252a8f6fd683da89f0438f27de0d1d585
+MISC ChangeLog-2015 2013 SHA256 c9fe43a3fc3ed04f3ddc9769bad71c427535f039b06e30b8c71b8fd6707abb13 SHA512 265d58f6b5472f148478bdd2d290006c4ac0db2adfb00ca35f05a7ce0a9f9506a05eb6ac16fc8d23fff883fb59e07ef057d15942700dd53b3b3f7ad4a8985a64 WHIRLPOOL 2c23003c4011b60abae55f1343f5b8169bdcabe597323a12cbd8e44fdd3137d7b203afd3d51d84a2521e95180de5c73e8b904ecb416eaec2c0223db274951596
+MISC metadata.xml 247 SHA256 690d3e08cdd71b405f5361dfa3f33007ce9ec9d0ae7628e9271891da9e2bda92 SHA512 b43c8e84c3c753b49b203921a5aca792639a36d6efdbe16c069ff9abfbce0585718bb3824c03abdd7bd19ada13fb0a98a378c85ed369ac5fdc53ad3b3d5465d2 WHIRLPOOL dffc398d6bdbe8a8afc8863675a819a7bd69ae4d098ffbddad4c21ab8f1a850ab8ede71f98e34999b0605ad01ea93c8864cd681b50d3e153aa3d0901ddb10743
diff --git a/dev-qt/qtchooser/metadata.xml b/dev-qt/qtchooser/metadata.xml
new file mode 100644
index 000000000000..17237689dcfd
--- /dev/null
+++ b/dev-qt/qtchooser/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-qt/qtchooser/qtchooser-0_p20151008.ebuild b/dev-qt/qtchooser/qtchooser-0_p20151008.ebuild
new file mode 100644
index 000000000000..d7a5bc9f9af3
--- /dev/null
+++ b/dev-qt/qtchooser/qtchooser-0_p20151008.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qmake-utils toolchain-funcs
+
+DESCRIPTION="Qt4/Qt5 version chooser"
+HOMEPAGE="https://code.qt.io/cgit/qtsdk/qtchooser.git/"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? (
+ dev-qt/qtcore:5
+ dev-qt/qttest:5
+ )"
+RDEPEND="
+ !<dev-qt/assistant-4.8.6:4
+ !<dev-qt/designer-4.8.6:4
+ !<dev-qt/linguist-4.8.6:4
+ !<dev-qt/pixeltool-4.8.6:4
+ !<dev-qt/qdbusviewer-4.8.6:4
+ !<dev-qt/qt3support-4.8.6:4
+ !<dev-qt/qtbearer-4.8.6:4
+ !<dev-qt/qtcore-4.8.6:4
+ !<dev-qt/qtdbus-4.8.6:4
+ !<dev-qt/qtdeclarative-4.8.6:4
+ !<dev-qt/qtdemo-4.8.6:4
+ !<dev-qt/qtgui-4.8.6:4
+ !<dev-qt/qthelp-4.8.6:4
+ !<dev-qt/qtmultimedia-4.8.6:4
+ !<dev-qt/qtopengl-4.8.6:4
+ !<dev-qt/qtopenvg-4.8.6:4
+ !<dev-qt/qtphonon-4.8.6:4
+ !<dev-qt/qtscript-4.8.6:4
+ !<dev-qt/qtsql-4.8.6:4
+ !<dev-qt/qtsvg-4.8.6:4
+ !<dev-qt/qttest-4.8.6:4
+ !<dev-qt/qtwebkit-4.8.6:4
+ !<dev-qt/qtxmlpatterns-4.8.6:4
+"
+
+qtchooser_make() {
+ emake \
+ CXX="$(tc-getCXX)" \
+ LFLAGS="${LDFLAGS}" \
+ prefix="${EPREFIX}/usr" \
+ "$@"
+}
+
+src_compile() {
+ qtchooser_make
+}
+
+src_test() {
+ pushd tests/auto >/dev/null || die
+ eqmake5
+ popd >/dev/null || die
+
+ qtchooser_make check
+}
+
+src_install() {
+ qtchooser_make INSTALL_ROOT="${D}" install
+
+ keepdir /etc/xdg/qtchooser
+
+ # TODO: bash and zsh completion
+ # newbashcomp scripts/${PN}.bash ${PN}
+}
diff --git a/dev-qt/qtchooser/qtchooser-0_p20170803.ebuild b/dev-qt/qtchooser/qtchooser-0_p20170803.ebuild
new file mode 100644
index 000000000000..417de66722f4
--- /dev/null
+++ b/dev-qt/qtchooser/qtchooser-0_p20170803.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit qmake-utils toolchain-funcs
+
+DESCRIPTION="Qt4/Qt5 version chooser"
+HOMEPAGE="https://code.qt.io/cgit/qtsdk/qtchooser.git/"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="test"
+
+DEPEND="test? (
+ dev-qt/qtcore:5
+ dev-qt/qttest:5
+ )"
+RDEPEND="
+ !<dev-qt/assistant-4.8.6:4
+ !<dev-qt/designer-4.8.6:4
+ !<dev-qt/linguist-4.8.6:4
+ !<dev-qt/pixeltool-4.8.6:4
+ !<dev-qt/qdbusviewer-4.8.6:4
+ !<dev-qt/qt3support-4.8.6:4
+ !<dev-qt/qtbearer-4.8.6:4
+ !<dev-qt/qtcore-4.8.6:4
+ !<dev-qt/qtdbus-4.8.6:4
+ !<dev-qt/qtdeclarative-4.8.6:4
+ !<dev-qt/qtdemo-4.8.6:4
+ !<dev-qt/qtgui-4.8.6:4
+ !<dev-qt/qthelp-4.8.6:4
+ !<dev-qt/qtmultimedia-4.8.6:4
+ !<dev-qt/qtopengl-4.8.6:4
+ !<dev-qt/qtopenvg-4.8.6:4
+ !<dev-qt/qtphonon-4.8.6:4
+ !<dev-qt/qtscript-4.8.6:4
+ !<dev-qt/qtsql-4.8.6:4
+ !<dev-qt/qtsvg-4.8.6:4
+ !<dev-qt/qttest-4.8.6:4
+ !<dev-qt/qtwebkit-4.8.6:4
+ !<dev-qt/qtxmlpatterns-4.8.6:4
+"
+
+qtchooser_make() {
+ emake \
+ CXX="$(tc-getCXX)" \
+ LFLAGS="${LDFLAGS}" \
+ prefix="${EPREFIX}/usr" \
+ "$@"
+}
+
+src_compile() {
+ qtchooser_make
+}
+
+src_test() {
+ pushd tests/auto >/dev/null || die
+ eqmake5
+ popd >/dev/null || die
+
+ qtchooser_make check
+}
+
+src_install() {
+ qtchooser_make INSTALL_ROOT="${D}" install
+
+ keepdir /etc/xdg/qtchooser
+
+ # TODO: bash and zsh completion
+ # newbashcomp scripts/${PN}.bash ${PN}
+}
diff --git a/dev-qt/qtconcurrent/Manifest b/dev-qt/qtconcurrent/Manifest
new file mode 100644
index 000000000000..bf08620675f5
--- /dev/null
+++ b/dev-qt/qtconcurrent/Manifest
@@ -0,0 +1,9 @@
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtconcurrent-5.6.2.ebuild 433 SHA256 575c8ca4ea59ceecbfd82243ad9baf1dd66d15a5e22347e4929a46c6fc91efd9 SHA512 ac440484c320ea1dd0ca4e81ea041a4943a1724314dd2512bf84490dc1e62acaa94509a4c82132a848086cecc01ba2372a117bc0f05e1720217be33bc60618ec WHIRLPOOL a7a097927a333c3f02fe29616d812f510cb0f46864fcf2bc495b4fa6bce7cc9b4b2d5b53d23dbe447edae0234c7927fef6c182b677102297241e4740762f361c
+EBUILD qtconcurrent-5.7.1.ebuild 434 SHA256 1e47b234f711dac3f3d12991c4164d0244b4f254cd67535d3543f7091016ff9e SHA512 a426a48a5c65b76fc2acd8d02a8f3efb14663b476ffcfe5474bb2079245d564b8881f017dea0b3a7b3437b673e66e9dbd57ab28ad4ce7f85ccc88271b41b5fbc WHIRLPOOL 47e7dcc70ab129161e9b3d78b4ab62e0a5b81bba4158f7f7fa0dcf1b6f9634efffc1d1468069e4b1cc8f302df15d007128c10332204caab7b4f10c1f550e2a71
+EBUILD qtconcurrent-5.9.2.ebuild 439 SHA256 f2a07c26bd3f1f92065c3cd04f8872c245640d5911770a187b89f4152de09c89 SHA512 ad76fe37bf7289c57a1415fde23402c394e6c5733ae18096aa57e4dabc8fe17ff12f0c52288ba9d97efdf1d32ff7ecf2224e41f2b491922bc9b6260338f6d09c WHIRLPOOL ffd454fdf4b29b791a09a9e5fbe9f4b0bf3867a29f2829d997132e200ceec12a2556f9181a1c934269b5a814435ca800c4022d995f9e1483a1b25380ebdd92da
+MISC ChangeLog 6601 SHA256 e948dd026d239f9b89384e344b1c957e59372402ceafce9a92968af3fefb3408 SHA512 8494ad3b304b2367caccf80d7ee45de81273b10342b00b43eb7bb17cfd618d98fa0e3b46a1a190efe989940e0878244a2cb92fabd535e2bea44d1061b9992681 WHIRLPOOL 0f6c60287b666c1596653dab094d923a0bef90d7f3f167528fa8a241eee5b0b26d40938e381d2f02642a9ec3653069adf16f02d6930c7d5d00a805bdaac468d6
+MISC ChangeLog-2015 1735 SHA256 fab68427316588fe5b6059c47a22890c7fc90db961eff65a613cf826705b975f SHA512 ad6f5b7f51cc5663fac34c11a6d0d29ab2806a9b201d8200dc9db37913d659c43f651325ddb972db08e76db76ebe1d9e6145fc835849fa928f44d9c082dcbfb4 WHIRLPOOL b4bf500900f46c68407506a14fedcc00018c2bfddde1f767d62a5c74ee4448a7d23abac9239a4e85fcd0acc472062190554b67d198305d46055ea5004b667987
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtconcurrent/metadata.xml b/dev-qt/qtconcurrent/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtconcurrent/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtconcurrent/qtconcurrent-5.6.2.ebuild b/dev-qt/qtconcurrent/qtconcurrent-5.6.2.ebuild
new file mode 100644
index 000000000000..bce5d29743bb
--- /dev/null
+++ b/dev-qt/qtconcurrent/qtconcurrent-5.6.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Multi-threading concurrence support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/concurrent
+)
diff --git a/dev-qt/qtconcurrent/qtconcurrent-5.7.1.ebuild b/dev-qt/qtconcurrent/qtconcurrent-5.7.1.ebuild
new file mode 100644
index 000000000000..bcecd17cde13
--- /dev/null
+++ b/dev-qt/qtconcurrent/qtconcurrent-5.7.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Multi-threading concurrence support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/concurrent
+)
diff --git a/dev-qt/qtconcurrent/qtconcurrent-5.9.2.ebuild b/dev-qt/qtconcurrent/qtconcurrent-5.9.2.ebuild
new file mode 100644
index 000000000000..2886524bfa18
--- /dev/null
+++ b/dev-qt/qtconcurrent/qtconcurrent-5.9.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Multi-threading concurrence support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/concurrent
+)
diff --git a/dev-qt/qtcore/Manifest b/dev-qt/qtcore/Manifest
new file mode 100644
index 000000000000..e5cd4e1c0476
--- /dev/null
+++ b/dev-qt/qtcore/Manifest
@@ -0,0 +1,22 @@
+AUX qtcore-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch 3410 SHA256 9dbb9be4dfefc00711058b99fe2425bb43c811a1b36a6f046336e13c666d40ea SHA512 6770959ba01756d6a3fa9e03edd5f6c1df0d8625f4add65f7fef55a93b7b52c555a0ce749984938fb7ab905c2e0875cec0cb5d07f45c1b447fbc9e2d0ec678bb WHIRLPOOL d06e33e4d6545b99d930212f6ad767a6c59cb241cb0b28fe3401853700c26c9fd9a5dc0eb5cfaef62ed8f7874eccf906c7c39c469c6725e9db3836c8982422d8
+AUX qtcore-4.8.5-qeventdispatcher-recursive.patch 4017 SHA256 5db36cbb0686b8a503941779c821febc4a0330dc260e51d603f7aa1e4d8860ad SHA512 bd63961bcb695beebe8686142b84bff7702db4d85d737f5c2da927252b931700d03602f80048223cbbb05d85a5ddb9cb818321d756577f84843690b318f0c413 WHIRLPOOL f981bf3c3d1a62b486788433cabb2880b7f361ccdf99e502fb595608195168d72ba14018c93273f2726c60bae61a44cba3244026009823e832109a1f7418e773
+AUX qtcore-4.8.6-QNAM-corruptions-fix.patch 17586 SHA256 5309c0f1ed0fc54799537b6d0a51b9682f52b4b40cc76e6fa71afc7273120e40 SHA512 4367974513b230d0395d0d0ebff5007255c257126309b614c37e8297981b833b397792fe9dede1960e0027a87d3fbc5eb252253a7ed73f4f9383531ea39cc874 WHIRLPOOL 8eded4f95d00f2ce572cf1956745d5a06e07f54a6ed6e67578914c0d2c9be63994cbf9177212d25c3c2678bf7328b2364b5977ebb8e8d7b8e4ad79009be6a7ae
+AUX qtcore-4.8.6-moc-boost-1.60.patch 884 SHA256 cf7417eb14641c0e4f65148f67cab2af74ef2f20cb245ef9e21b8a0b2d8f0c0d SHA512 f7375b444291cd0abf5324aa9150e3eb49e110713826e2aa03d8a149d6727c1ff2fe6f6b2e159f3a9e41c628a6d5f3e6ea161050722f58ca0e9ad269a27c052d WHIRLPOOL 7d86baf0ceeb2259fc319d7908f47d2c64f98e490e9bda3930137db5808c9cd0fb2877ac3731bfaaba7ed19a8c014904054b08545642588650b58504ec52e378
+AUX qtcore-4.8.7-libressl.patch 2161 SHA256 c01d0225d593a87d5764993be9a53b0adbf9493487ad7c5583ef3abcb35b1c4d SHA512 c84b827fd5f0c504c9ab95352677dc2cfe926c81aa012b454d8260385215b510835ba693830b3a3a6fa374b299995ec14cbb07711f41031788fc6c3bec396021 WHIRLPOOL 26274cc870721bcbb364a3e41aa95af0d7d5561b0882ca4bf058c036a063fe3fa77072f09a0d84ffb1f0a6dab2201d03c8602a2d5f7815752cfdb9180e2689a1
+AUX qtcore-5.6.2-plugins.patch 3264 SHA256 2e0e863830f457d597e608815e92c25e4e0924a7c13c80649547e8a9be6bb420 SHA512 0d50ba6cd94fc29158931e2e09ec21c48780ecfaa75443efd842cce05cc3030f81a02385714b42d5cede3b0cbf8efc24d3c660ac4438cdd428a24bf8a624bb2d WHIRLPOOL 9ea062360162c636f43d7b490a3ee3931496b05001f9f0c99d588494d344f0a7a9d0e989b5695e468ec754e7bc789b2c2961db221701d8adf984efd691ee2a92
+AUX qtcore-5.7.1-qipm.patch 5915 SHA256 a5fb3bee98d797ac5e34bec02bcc1b5b0834fa1092fa6d1e1ea3d490975ae42f SHA512 807c030c2059cddcd159cb537ba2e4be68d6f612f45e1e7b844fc045f661739aea7bc35743735cee364d692d51774e17edced1aac8d444abaa4e4435117a5b3d WHIRLPOOL e13e1a24b750fe7729b1d86214491358937344b7a39c6c2941d372f5ce9077ecc1c320a0be2e5a9c772e1b01d786e55176cdad252c317bc62215c9c7acfe0d6b
+AUX qtcore-5.7.1-qsfpm-1.patch 8922 SHA256 3376b4564d793e0bf3770a8ebcc474a03e7aa49a8a578c136bbcb1fa6e9e136a SHA512 3854fffa1181cebe4683c54d5e774301a8710bf784dcc18367d04d193a7ce76fc6f634096b6986af41c3f5e4432b702873181a8900fd18e7617ea472d23d6d92 WHIRLPOOL 0ae27f2596e8601a4717bf76d06a2c452f4a0f087355766e7ca9483c8959ddd2c0765a6154ee1dde612347fb69ddc28581121c64cfa6f97a3067b1112bdb86c3
+AUX qtcore-5.7.1-qsfpm-2.patch 7812 SHA256 a2bb1a42df644906cacb084e579166e8229c774e2f678b8b523215d4bbffe1e7 SHA512 38b141aa7d30011d71ed9044c69f79b56698320600a64ed3cc37e8dd9d22bb9ec2f33f8348d074552a5046c2855e948e325d5421384cb4c66c0bbd566500174d WHIRLPOOL 3e65f1413ce3b3800d694b731d74026ac5d5f08f9af20b257c2b7424ec954cb1fa28067496b028c3e66680ae88e59d8ccf8c080b049fa05f31162705db1a0898
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtcore-4.8.6-r2.ebuild 2744 SHA256 968b23f5c563cd96ff65a62da9632e40dc64d1b6f44a8918109ff3be1fac2ff3 SHA512 d5ef3b214ea1c8569d56383b6c0400435f3244a5e22792cbdfaba5147c7b746f96b83dd8fb035c01e8dfe09474f414f516e8f80e8aea489184d9bf01d02f4949 WHIRLPOOL c96e51c2e79ee21b4c286a08ae21364b1a03cdc4b8efad290b8d7160a1f57f0d8ffe5760dcb2693c6ac55fdb8d70f452f42b8602e2d26c20614aac1e2247260c
+EBUILD qtcore-4.8.7-r2.ebuild 2864 SHA256 7461eb354f481eb54958681f620ffb3280ee77e032c7b458f942f44693092a47 SHA512 9d17ecbdc61d4a32313b57939b2791852a0e041bcf21ca3a2d1b1e64c2111d63085c161a50ecdf94cb2dafe3a724f2ef9e259a0f85e85ff43cd12d26a8527d51 WHIRLPOOL c2e11e085b11cd47da1e7925c3337f27b4ad5174e4333ad06cc7b7877fe18eb63953c8422b3b2f11600a0e2dbc7e813902afc4fb10beb364a73818c079e491bb
+EBUILD qtcore-5.6.2-r1.ebuild 783 SHA256 15cb9ff991a709c55bbd21215937034b519c8ff22bbdb05052ce8db3f914cb30 SHA512 3f3ff0c9abb107de70d9b4e2b0319652e58f5aeac2a91554fa92edcd71137e295075c456bfdaa5901c6ddfc18fbdd7a94412e27fc537f042d78d83426b72eecd WHIRLPOOL 476519404c4485b589442af4e12c7288f4f65a5e7b8e635fd3e7456744970691955a5851fe0cb96e5900c837e1e39deb85e10402a4bd643a6646866daac6815d
+EBUILD qtcore-5.7.1-r3.ebuild 896 SHA256 5e5147a1845598ad8ca5dd3adc0a48e0f75c2a83ba4ed55f4ea688005babf53d SHA512 bd5fd8e6a9a189773f4c5473d0073709f034b661a28296a8f4d3cac4d26eaf63f04e4b0d08028810b77ca10bfe8c67aaf6c4cf2da7a436e2b29f9b04024cb158 WHIRLPOOL 142ea4799f6d8d9795f2f63b3acf7c38bb6c2b879e03589df1cc4ee5f1adb8146054a66f92cef22adfeaf7ed72f213cab4fdea5f98f58c3661476a95599c13f2
+EBUILD qtcore-5.9.2.ebuild 1389 SHA256 2a348b867a9f2698d76dfbc29fe88f869a7376498c4a329d76da7891ec4a7b03 SHA512 b51328052f28e8cb5f48ae59834553fb995099245a0e6b3390fa0006b89620a889c45b36baf5f028ef1111b87597380c940c6df0a69a14aac07ca6824d795fc0 WHIRLPOOL 62325390101aeeb78c53da2113be3b461558f062fabfbc676d480927bcd98941f36ff69b98de52fd0a3586cfc802e1c6c35a13f5ffe1f7ffb3aad6f9ac01c34c
+MISC ChangeLog 9693 SHA256 f4aca4d960a27efc5b05da84e8bb5e12114d1298585c1781667b9609448ef945 SHA512 95ffb29b0a99815353e2ed5fb9d4588b563aa0c291daad187b48c4d1875836bf107dd95bc0b373754c33ca6208491b89066038969f63a736551122721d823a1c WHIRLPOOL c4a321c22421fe056e69a33a157cb5f74c1be70efb0d3eaa560076e945653fc7bae4468a8867892ee9e3ce7ce4697730881dec9a3be2b45f4fd866b0c3b19f6e
+MISC ChangeLog-2015 39675 SHA256 e20442daca27ffcf2af416d96c297e97d2fa134c9f44f6367ee9a382053a98ae SHA512 8e7f5e0641cb28af92e41b6d12a9fb2b122a6d9d9b50de53cad3044e57cf856af6e801881e5ba4649b0e45de2446274d7d0d91c4db6f5e9577f05275dc743184 WHIRLPOOL 6863180f16ad0b8da781561940366ab9558e8ad7c12d6ab10b194e1ac959d8ed30171fb21b5a35c87e5f7f06e231d7e848b4a5dabeb6a3902602a62c86c5f34f
+MISC metadata.xml 924 SHA256 7369ebbc573d8559ca650bd6a9a48f84f7a1537371cf6b70ff5c8db61143fbf9 SHA512 c9786a997109a6156ed4879cd94e3e368b7ce095fc43fced168bdc5fbc846411c145318020d0eab7024aa64003403435a6cad222ab3569d838b9450c526c8ddb WHIRLPOOL 8bdbd40a2656f0b2442956a026636a0c5f3a3efb0d6f1628b23d5a3eb541f4bfa4546b1fafa77f173cc1871138fba8e52d67943edce19be10f47e686ac4c16b0
diff --git a/dev-qt/qtcore/files/qtcore-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch b/dev-qt/qtcore/files/qtcore-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch
new file mode 100644
index 000000000000..0fcc1fa6561d
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch
@@ -0,0 +1,81 @@
+From 267feb2de49eed0823ca0c29f1cd5238537c7116 Mon Sep 17 00:00:00 2001
+From: Jan-Marek Glogowski <glogow@fbihome.de>
+Date: Thu, 6 Mar 2014 18:44:43 +0100
+Subject: Honor ExcludeSocketNotifiers in glib event loop
+
+Implements QEventLoop::ExcludeSocketNotifiers in the same way
+QEventLoop::X11ExcludeTimers is already implemented for the glib
+event loop.
+
+This prevents crashes when QClipboard checks for clipboard events
+and
+ qApp->clipboard()->setProperty( "useEventLoopWhenWaiting", true );
+is set.
+
+Task-number: QTBUG-34614
+Task-number: QTBUG-37380
+
+Change-Id: Id4e2a74c6bdf8c3b439a4e3813d24d11368b607d
+---
+ src/corelib/kernel/qeventdispatcher_glib.cpp | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/corelib/kernel/qeventdispatcher_glib.cpp b/src/corelib/kernel/qeventdispatcher_glib.cpp
+index 0b0e308..ba522fa 100644
+--- a/src/corelib/kernel/qeventdispatcher_glib.cpp
++++ b/src/corelib/kernel/qeventdispatcher_glib.cpp
+@@ -65,6 +65,7 @@ struct GPollFDWithQSocketNotifier
+ struct GSocketNotifierSource
+ {
+ GSource source;
++ QEventLoop::ProcessEventsFlags processEventsFlags;
+ QList<GPollFDWithQSocketNotifier *> pollfds;
+ };
+
+@@ -80,6 +81,9 @@ static gboolean socketNotifierSourceCheck(GSource *source)
+ GSocketNotifierSource *src = reinterpret_cast<GSocketNotifierSource *>(source);
+
+ bool pending = false;
++ if (src->processEventsFlags & QEventLoop::ExcludeSocketNotifiers)
++ return pending;
++
+ for (int i = 0; !pending && i < src->pollfds.count(); ++i) {
+ GPollFDWithQSocketNotifier *p = src->pollfds.at(i);
+
+@@ -103,6 +107,9 @@ static gboolean socketNotifierSourceDispatch(GSource *source, GSourceFunc, gpoin
+ QEvent event(QEvent::SockAct);
+
+ GSocketNotifierSource *src = reinterpret_cast<GSocketNotifierSource *>(source);
++ if (src->processEventsFlags & QEventLoop::ExcludeSocketNotifiers)
++ return true;
++
+ for (int i = 0; i < src->pollfds.count(); ++i) {
+ GPollFDWithQSocketNotifier *p = src->pollfds.at(i);
+
+@@ -331,6 +338,7 @@ QEventDispatcherGlibPrivate::QEventDispatcherGlibPrivate(GMainContext *context)
+ reinterpret_cast<GSocketNotifierSource *>(g_source_new(&socketNotifierSourceFuncs,
+ sizeof(GSocketNotifierSource)));
+ (void) new (&socketNotifierSource->pollfds) QList<GPollFDWithQSocketNotifier *>();
++ socketNotifierSource->processEventsFlags = QEventLoop::AllEvents;
+ g_source_set_can_recurse(&socketNotifierSource->source, true);
+ g_source_attach(&socketNotifierSource->source, mainContext);
+
+@@ -416,6 +424,7 @@ bool QEventDispatcherGlib::processEvents(QEventLoop::ProcessEventsFlags flags)
+ // tell postEventSourcePrepare() and timerSource about any new flags
+ QEventLoop::ProcessEventsFlags savedFlags = d->timerSource->processEventsFlags;
+ d->timerSource->processEventsFlags = flags;
++ d->socketNotifierSource->processEventsFlags = flags;
+
+ if (!(flags & QEventLoop::EventLoopExec)) {
+ // force timers to be sent at normal priority
+@@ -427,6 +436,7 @@ bool QEventDispatcherGlib::processEvents(QEventLoop::ProcessEventsFlags flags)
+ result = g_main_context_iteration(d->mainContext, canWait);
+
+ d->timerSource->processEventsFlags = savedFlags;
++ d->socketNotifierSource->processEventsFlags = savedFlags;
+
+ if (canWait)
+ emit awake();
+--
+2.0.0
+
diff --git a/dev-qt/qtcore/files/qtcore-4.8.5-qeventdispatcher-recursive.patch b/dev-qt/qtcore/files/qtcore-4.8.5-qeventdispatcher-recursive.patch
new file mode 100644
index 000000000000..6d3bf2f2cde2
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-4.8.5-qeventdispatcher-recursive.patch
@@ -0,0 +1,94 @@
+--- src/corelib/kernel/qeventdispatcher_glib.cpp.sav 2014-03-28 15:26:37.000000000 +0100
++++ src/corelib/kernel/qeventdispatcher_glib.cpp 2014-04-24 09:44:09.358659204 +0200
+@@ -255,22 +255,30 @@ struct GPostEventSource
+ GSource source;
+ QAtomicInt serialNumber;
+ int lastSerialNumber;
++ QEventLoop::ProcessEventsFlags processEventsFlags;
+ QEventDispatcherGlibPrivate *d;
+ };
+
+ static gboolean postEventSourcePrepare(GSource *s, gint *timeout)
+ {
++ GPostEventSource *source = reinterpret_cast<GPostEventSource *>(s);
+ QThreadData *data = QThreadData::current();
+ if (!data)
+ return false;
+
++ QEventLoop::ProcessEventsFlags excludeAllFlags
++ = QEventLoop::ExcludeUserInputEvents
++ | QEventLoop::ExcludeSocketNotifiers
++ | QEventLoop::X11ExcludeTimers;
++ if ((source->processEventsFlags & excludeAllFlags) == excludeAllFlags)
++ return false;
++
+ gint dummy;
+ if (!timeout)
+ timeout = &dummy;
+ const bool canWait = data->canWaitLocked();
+ *timeout = canWait ? -1 : 0;
+
+- GPostEventSource *source = reinterpret_cast<GPostEventSource *>(s);
+ return (!canWait
+ || (source->serialNumber != source->lastSerialNumber));
+ }
+@@ -284,8 +292,14 @@ static gboolean postEventSourceDispatch(
+ {
+ GPostEventSource *source = reinterpret_cast<GPostEventSource *>(s);
+ source->lastSerialNumber = source->serialNumber;
+- QCoreApplication::sendPostedEvents();
+- source->d->runTimersOnceWithNormalPriority();
++ QEventLoop::ProcessEventsFlags excludeAllFlags
++ = QEventLoop::ExcludeUserInputEvents
++ | QEventLoop::ExcludeSocketNotifiers
++ | QEventLoop::X11ExcludeTimers;
++ if ((source->processEventsFlags & excludeAllFlags) != excludeAllFlags) {
++ QCoreApplication::sendPostedEvents();
++ source->d->runTimersOnceWithNormalPriority();
++ }
+ return true; // i dunno, george...
+ }
+
+@@ -329,6 +343,7 @@ QEventDispatcherGlibPrivate::QEventDispa
+ postEventSource = reinterpret_cast<GPostEventSource *>(g_source_new(&postEventSourceFuncs,
+ sizeof(GPostEventSource)));
+ postEventSource->serialNumber = 1;
++ postEventSource->processEventsFlags = QEventLoop::AllEvents;
+ postEventSource->d = this;
+ g_source_set_can_recurse(&postEventSource->source, true);
+ g_source_attach(&postEventSource->source, mainContext);
+@@ -423,6 +438,7 @@ bool QEventDispatcherGlib::processEvents
+
+ // tell postEventSourcePrepare() and timerSource about any new flags
+ QEventLoop::ProcessEventsFlags savedFlags = d->timerSource->processEventsFlags;
++ d->postEventSource->processEventsFlags = flags;
+ d->timerSource->processEventsFlags = flags;
+ d->socketNotifierSource->processEventsFlags = flags;
+
+@@ -435,6 +451,7 @@ bool QEventDispatcherGlib::processEvents
+ while (!result && canWait)
+ result = g_main_context_iteration(d->mainContext, canWait);
+
++ d->postEventSource->processEventsFlags = savedFlags;
+ d->timerSource->processEventsFlags = savedFlags;
+ d->socketNotifierSource->processEventsFlags = savedFlags;
+
+--- src/corelib/kernel/qeventdispatcher_unix.cpp.sav 2013-06-07 07:16:52.000000000 +0200
++++ src/corelib/kernel/qeventdispatcher_unix.cpp 2014-04-24 09:43:06.927589535 +0200
+@@ -905,7 +905,15 @@ bool QEventDispatcherUNIX::processEvents
+
+ // we are awake, broadcast it
+ emit awake();
+- QCoreApplicationPrivate::sendPostedEvents(0, 0, d->threadData);
++
++ QEventLoop::ProcessEventsFlags excludeAllFlags
++ = QEventLoop::ExcludeUserInputEvents
++ | QEventLoop::ExcludeSocketNotifiers
++ | QEventLoop::X11ExcludeTimers;
++ if ((flags & excludeAllFlags) == excludeAllFlags)
++ return false;
++ if(( flags & excludeAllFlags ) != excludeAllFlags )
++ QCoreApplicationPrivate::sendPostedEvents(0, 0, d->threadData);
+
+ int nevents = 0;
+ const bool canWait = (d->threadData->canWaitLocked()
diff --git a/dev-qt/qtcore/files/qtcore-4.8.6-QNAM-corruptions-fix.patch b/dev-qt/qtcore/files/qtcore-4.8.6-QNAM-corruptions-fix.patch
new file mode 100644
index 000000000000..1d83caa3a260
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-4.8.6-QNAM-corruptions-fix.patch
@@ -0,0 +1,431 @@
+From fa81aa6d027049e855b76f5408586a288f160575 Mon Sep 17 00:00:00 2001
+From: Markus Goetz <markus@woboq.com>
+Date: Tue, 28 Apr 2015 11:57:36 +0200
+Subject: QNAM: Fix upload corruptions when server closes connection
+
+This patch fixes several upload corruptions if the server closes the connection
+while/before we send data into it. They happen inside multiple places in the HTTP
+layer and are explained in the comments.
+Corruptions are:
+* The upload byte device has an in-flight signal with pending upload data, if
+it gets reset (because server closes the connection) then the re-send of the
+request was sometimes taking this stale in-flight pending upload data.
+* Because some signals were DirectConnection and some were QueuedConnection, there
+was a chance that a direct signal overtakes a queued signal. The state machine
+then sent data down the socket which was buffered there (and sent later) although
+it did not match the current state of the state machine when it was actually sent.
+* A socket was seen as being able to have requests sent even though it was not
+encrypted yet. This relates to the previous corruption where data is stored inside
+the socket's buffer and then sent later.
+
+The included auto test produces all fixed corruptions, I detected no regressions
+via the other tests.
+This code also adds a bit of sanity checking to protect from possible further
+problems.
+
+[ChangeLog][QtNetwork] Fix HTTP(s) upload corruption when server closes connection
+
+(cherry picked from commit qtbase/cff39fba10ffc10ee4dcfdc66ff6528eb26462d3)
+Change-Id: I9793297be6cf3edfb75b65ba03b65f7a133ef194
+Reviewed-by: Richard J. Moore <rich@kde.org>
+---
+ src/corelib/io/qnoncontiguousbytedevice.cpp | 19 +++
+ src/corelib/io/qnoncontiguousbytedevice_p.h | 4 +
+ .../access/qhttpnetworkconnectionchannel.cpp | 47 +++++-
+ src/network/access/qhttpthreaddelegate_p.h | 36 ++++-
+ src/network/access/qnetworkaccesshttpbackend.cpp | 24 ++-
+ src/network/access/qnetworkaccesshttpbackend_p.h | 5 +-
+ tests/auto/qnetworkreply/tst_qnetworkreply.cpp | 174 ++++++++++++++++++++-
+ 7 files changed, 280 insertions(+), 29 deletions(-)
+
+diff --git a/src/corelib/io/qnoncontiguousbytedevice.cpp b/src/corelib/io/qnoncontiguousbytedevice.cpp
+index bf58eee..1a0591e 100644
+--- a/src/corelib/io/qnoncontiguousbytedevice.cpp
++++ b/src/corelib/io/qnoncontiguousbytedevice.cpp
+@@ -245,6 +245,12 @@ qint64 QNonContiguousByteDeviceByteArrayImpl::size()
+ return byteArray->size();
+ }
+
++qint64 QNonContiguousByteDeviceByteArrayImpl::pos()
++{
++ return currentPosition;
++}
++
++
+ QNonContiguousByteDeviceRingBufferImpl::QNonContiguousByteDeviceRingBufferImpl(QSharedPointer<QRingBuffer> rb)
+ : QNonContiguousByteDevice(), currentPosition(0)
+ {
+@@ -296,6 +302,11 @@ qint64 QNonContiguousByteDeviceRingBufferImpl::size()
+ return ringBuffer->size();
+ }
+
++qint64 QNonContiguousByteDeviceRingBufferImpl::pos()
++{
++ return currentPosition;
++}
++
+ QNonContiguousByteDeviceIoDeviceImpl::QNonContiguousByteDeviceIoDeviceImpl(QIODevice *d)
+ : QNonContiguousByteDevice(),
+ currentReadBuffer(0), currentReadBufferSize(16*1024),
+@@ -415,6 +426,14 @@ qint64 QNonContiguousByteDeviceIoDeviceImpl::size()
+ return device->size() - initialPosition;
+ }
+
++qint64 QNonContiguousByteDeviceIoDeviceImpl::pos()
++{
++ if (device->isSequential())
++ return -1;
++
++ return device->pos();
++}
++
+ QByteDeviceWrappingIoDevice::QByteDeviceWrappingIoDevice(QNonContiguousByteDevice *bd) : QIODevice((QObject*)0)
+ {
+ byteDevice = bd;
+diff --git a/src/corelib/io/qnoncontiguousbytedevice_p.h b/src/corelib/io/qnoncontiguousbytedevice_p.h
+index b6966eb..d1a99a1 100644
+--- a/src/corelib/io/qnoncontiguousbytedevice_p.h
++++ b/src/corelib/io/qnoncontiguousbytedevice_p.h
+@@ -69,6 +69,7 @@ public:
+ virtual const char* readPointer(qint64 maximumLength, qint64 &len) = 0;
+ virtual bool advanceReadPointer(qint64 amount) = 0;
+ virtual bool atEnd() = 0;
++ virtual qint64 pos() { return -1; }
+ virtual bool reset() = 0;
+ void disableReset();
+ bool isResetDisabled() { return resetDisabled; }
+@@ -108,6 +109,7 @@ public:
+ bool atEnd();
+ bool reset();
+ qint64 size();
++ qint64 pos();
+ protected:
+ QByteArray* byteArray;
+ qint64 currentPosition;
+@@ -123,6 +125,7 @@ public:
+ bool atEnd();
+ bool reset();
+ qint64 size();
++ qint64 pos();
+ protected:
+ QSharedPointer<QRingBuffer> ringBuffer;
+ qint64 currentPosition;
+@@ -140,6 +143,7 @@ public:
+ bool atEnd();
+ bool reset();
+ qint64 size();
++ qint64 pos();
+ protected:
+ QIODevice* device;
+ QByteArray* currentReadBuffer;
+diff --git a/src/network/access/qhttpnetworkconnectionchannel.cpp b/src/network/access/qhttpnetworkconnectionchannel.cpp
+index 550e090..db2f712 100644
+--- a/src/network/access/qhttpnetworkconnectionchannel.cpp
++++ b/src/network/access/qhttpnetworkconnectionchannel.cpp
+@@ -107,15 +107,19 @@ void QHttpNetworkConnectionChannel::init()
+ socket->setProxy(QNetworkProxy::NoProxy);
+ #endif
+
++ // We want all signals (except the interactive ones) be connected as QueuedConnection
++ // because else we're falling into cases where we recurse back into the socket code
++ // and mess up the state. Always going to the event loop (and expecting that when reading/writing)
++ // is safer.
+ QObject::connect(socket, SIGNAL(bytesWritten(qint64)),
+ this, SLOT(_q_bytesWritten(qint64)),
+- Qt::DirectConnection);
++ Qt::QueuedConnection);
+ QObject::connect(socket, SIGNAL(connected()),
+ this, SLOT(_q_connected()),
+- Qt::DirectConnection);
++ Qt::QueuedConnection);
+ QObject::connect(socket, SIGNAL(readyRead()),
+ this, SLOT(_q_readyRead()),
+- Qt::DirectConnection);
++ Qt::QueuedConnection);
+
+ // The disconnected() and error() signals may already come
+ // while calling connectToHost().
+@@ -144,13 +148,13 @@ void QHttpNetworkConnectionChannel::init()
+ // won't be a sslSocket if encrypt is false
+ QObject::connect(sslSocket, SIGNAL(encrypted()),
+ this, SLOT(_q_encrypted()),
+- Qt::DirectConnection);
++ Qt::QueuedConnection);
+ QObject::connect(sslSocket, SIGNAL(sslErrors(QList<QSslError>)),
+ this, SLOT(_q_sslErrors(QList<QSslError>)),
+ Qt::DirectConnection);
+ QObject::connect(sslSocket, SIGNAL(encryptedBytesWritten(qint64)),
+ this, SLOT(_q_encryptedBytesWritten(qint64)),
+- Qt::DirectConnection);
++ Qt::QueuedConnection);
+ }
+ #endif
+ }
+@@ -163,7 +167,8 @@ void QHttpNetworkConnectionChannel::close()
+ else
+ state = QHttpNetworkConnectionChannel::ClosingState;
+
+- socket->close();
++ if (socket)
++ socket->close();
+ }
+
+
+@@ -280,6 +285,14 @@ bool QHttpNetworkConnectionChannel::sendRequest()
+ // nothing to read currently, break the loop
+ break;
+ } else {
++ if (written != uploadByteDevice->pos()) {
++ // Sanity check. This was useful in tracking down an upload corruption.
++ qWarning() << "QHttpProtocolHandler: Internal error in sendRequest. Expected to write at position" << written << "but read device is at" << uploadByteDevice->pos();
++ Q_ASSERT(written == uploadByteDevice->pos());
++ connection->d_func()->emitReplyError(socket, reply, QNetworkReply::ProtocolFailure);
++ return false;
++ }
++
+ qint64 currentWriteSize = socket->write(readPointer, currentReadSize);
+ if (currentWriteSize == -1 || currentWriteSize != currentReadSize) {
+ // socket broke down
+@@ -639,6 +652,14 @@ bool QHttpNetworkConnectionChannel::ensureConnection()
+ }
+ return false;
+ }
++
++ // This code path for ConnectedState
++ if (pendingEncrypt) {
++ // Let's only be really connected when we have received the encrypted() signal. Else the state machine seems to mess up
++ // and corrupt the things sent to the server.
++ return false;
++ }
++
+ return true;
+ }
+
+@@ -980,6 +1001,13 @@ void QHttpNetworkConnectionChannel::_q_readyRead()
+ void QHttpNetworkConnectionChannel::_q_bytesWritten(qint64 bytes)
+ {
+ Q_UNUSED(bytes);
++
++ if (ssl) {
++ // In the SSL case we want to send data from encryptedBytesWritten signal since that one
++ // is the one going down to the actual network, not only into some SSL buffer.
++ return;
++ }
++
+ // bytes have been written to the socket. write even more of them :)
+ if (isSocketWriting())
+ sendRequest();
+@@ -1029,7 +1057,7 @@ void QHttpNetworkConnectionChannel::_q_connected()
+
+ // ### FIXME: if the server closes the connection unexpectedly, we shouldn't send the same broken request again!
+ //channels[i].reconnectAttempts = 2;
+- if (!pendingEncrypt) {
++ if (!pendingEncrypt && !ssl) { // FIXME: Didn't work properly with pendingEncrypt only, we should refactor this into an EncrypingState
+ state = QHttpNetworkConnectionChannel::IdleState;
+ if (!reply)
+ connection->d_func()->dequeueRequest(socket);
+@@ -1157,7 +1185,10 @@ void QHttpNetworkConnectionChannel::_q_proxyAuthenticationRequired(const QNetwor
+
+ void QHttpNetworkConnectionChannel::_q_uploadDataReadyRead()
+ {
+- sendRequest();
++ if (reply && state == QHttpNetworkConnectionChannel::WritingState) {
++ // There might be timing issues, make sure to only send upload data if really in that state
++ sendRequest();
++ }
+ }
+
+ #ifndef QT_NO_OPENSSL
+diff --git a/src/network/access/qhttpthreaddelegate_p.h b/src/network/access/qhttpthreaddelegate_p.h
+index 7648325..9dd0deb 100644
+--- a/src/network/access/qhttpthreaddelegate_p.h
++++ b/src/network/access/qhttpthreaddelegate_p.h
+@@ -190,6 +190,7 @@ protected:
+ QByteArray m_dataArray;
+ bool m_atEnd;
+ qint64 m_size;
++ qint64 m_pos; // to match calls of haveDataSlot with the expected position
+ public:
+ QNonContiguousByteDeviceThreadForwardImpl(bool aE, qint64 s)
+ : QNonContiguousByteDevice(),
+@@ -197,7 +198,8 @@ public:
+ m_amount(0),
+ m_data(0),
+ m_atEnd(aE),
+- m_size(s)
++ m_size(s),
++ m_pos(0)
+ {
+ }
+
+@@ -205,6 +207,11 @@ public:
+ {
+ }
+
++ qint64 pos()
++ {
++ return m_pos;
++ }
++
+ const char* readPointer(qint64 maximumLength, qint64 &len)
+ {
+ if (m_amount > 0) {
+@@ -232,11 +239,10 @@ public:
+
+ m_amount -= a;
+ m_data += a;
++ m_pos += a;
+
+- // To main thread to inform about our state
+- emit processedData(a);
+-
+- // FIXME possible optimization, already ask user thread for some data
++ // To main thread to inform about our state. The m_pos will be sent as a sanity check.
++ emit processedData(m_pos, a);
+
+ return true;
+ }
+@@ -253,10 +259,21 @@ public:
+ {
+ m_amount = 0;
+ m_data = 0;
++ m_dataArray.clear();
++
++ if (wantDataPending) {
++ // had requested the user thread to send some data (only 1 in-flight at any moment)
++ wantDataPending = false;
++ }
+
+ // Communicate as BlockingQueuedConnection
+ bool b = false;
+ emit resetData(&b);
++ if (b) {
++ // the reset succeeded, we're at pos 0 again
++ m_pos = 0;
++ // the HTTP code will anyway abort the request if !b.
++ }
+ return b;
+ }
+
+@@ -267,8 +284,13 @@ public:
+
+ public slots:
+ // From user thread:
+- void haveDataSlot(QByteArray dataArray, bool dataAtEnd, qint64 dataSize)
++ void haveDataSlot(qint64 pos, QByteArray dataArray, bool dataAtEnd, qint64 dataSize)
+ {
++ if (pos != m_pos) {
++ // Sometimes when re-sending a request in the qhttpnetwork* layer there is a pending haveData from the
++ // user thread on the way to us. We need to ignore it since it is the data for the wrong(later) chunk.
++ return;
++ }
+ wantDataPending = false;
+
+ m_dataArray = dataArray;
+@@ -288,7 +310,7 @@ signals:
+
+ // to main thread:
+ void wantData(qint64);
+- void processedData(qint64);
++ void processedData(qint64 pos, qint64 amount);
+ void resetData(bool *b);
+ };
+
+diff --git a/src/network/access/qnetworkaccesshttpbackend.cpp b/src/network/access/qnetworkaccesshttpbackend.cpp
+index cc67258..fe2f627 100644
+--- a/src/network/access/qnetworkaccesshttpbackend.cpp
++++ b/src/network/access/qnetworkaccesshttpbackend.cpp
+@@ -193,6 +193,7 @@ QNetworkAccessHttpBackendFactory::create(QNetworkAccessManager::Operation op,
+ QNetworkAccessHttpBackend::QNetworkAccessHttpBackend()
+ : QNetworkAccessBackend()
+ , statusCode(0)
++ , uploadByteDevicePosition(false)
+ , pendingDownloadDataEmissions(new QAtomicInt())
+ , pendingDownloadProgressEmissions(new QAtomicInt())
+ , loadingFromCache(false)
+@@ -610,9 +611,9 @@ void QNetworkAccessHttpBackend::postRequest()
+ forwardUploadDevice->setParent(delegate); // needed to make sure it is moved on moveToThread()
+ delegate->httpRequest.setUploadByteDevice(forwardUploadDevice);
+
+- // From main thread to user thread:
+- QObject::connect(this, SIGNAL(haveUploadData(QByteArray, bool, qint64)),
+- forwardUploadDevice, SLOT(haveDataSlot(QByteArray, bool, qint64)), Qt::QueuedConnection);
++ // From user thread to http thread:
++ QObject::connect(this, SIGNAL(haveUploadData(qint64,QByteArray,bool,qint64)),
++ forwardUploadDevice, SLOT(haveDataSlot(qint64,QByteArray,bool,qint64)), Qt::QueuedConnection);
+ QObject::connect(uploadByteDevice.data(), SIGNAL(readyRead()),
+ forwardUploadDevice, SIGNAL(readyRead()),
+ Qt::QueuedConnection);
+@@ -620,8 +621,8 @@ void QNetworkAccessHttpBackend::postRequest()
+ // From http thread to user thread:
+ QObject::connect(forwardUploadDevice, SIGNAL(wantData(qint64)),
+ this, SLOT(wantUploadDataSlot(qint64)));
+- QObject::connect(forwardUploadDevice, SIGNAL(processedData(qint64)),
+- this, SLOT(sentUploadDataSlot(qint64)));
++ QObject::connect(forwardUploadDevice,SIGNAL(processedData(qint64, qint64)),
++ this, SLOT(sentUploadDataSlot(qint64,qint64)));
+ connect(forwardUploadDevice, SIGNAL(resetData(bool*)),
+ this, SLOT(resetUploadDataSlot(bool*)),
+ Qt::BlockingQueuedConnection); // this is the only one with BlockingQueued!
+@@ -915,12 +916,21 @@ void QNetworkAccessHttpBackend::replySslConfigurationChanged(const QSslConfigura
+ void QNetworkAccessHttpBackend::resetUploadDataSlot(bool *r)
+ {
+ *r = uploadByteDevice->reset();
++ if (*r) {
++ // reset our own position which is used for the inter-thread communication
++ uploadByteDevicePosition = 0;
++ }
+ }
+
+ // Coming from QNonContiguousByteDeviceThreadForwardImpl in HTTP thread
+-void QNetworkAccessHttpBackend::sentUploadDataSlot(qint64 amount)
++void QNetworkAccessHttpBackend::sentUploadDataSlot(qint64 pos, qint64 amount)
+ {
++ if (uploadByteDevicePosition + amount != pos) {
++ // Sanity check, should not happen.
++ error(QNetworkReply::UnknownNetworkError, "");
++ }
+ uploadByteDevice->advanceReadPointer(amount);
++ uploadByteDevicePosition += amount;
+ }
+
+ // Coming from QNonContiguousByteDeviceThreadForwardImpl in HTTP thread
+@@ -933,7 +943,7 @@ void QNetworkAccessHttpBackend::wantUploadDataSlot(qint64 maxSize)
+ QByteArray dataArray(data, currentUploadDataLength);
+
+ // Communicate back to HTTP thread
+- emit haveUploadData(dataArray, uploadByteDevice->atEnd(), uploadByteDevice->size());
++ emit haveUploadData(uploadByteDevicePosition, dataArray, uploadByteDevice->atEnd(), uploadByteDevice->size());
+ }
+
+ /*
+diff --git a/src/network/access/qnetworkaccesshttpbackend_p.h b/src/network/access/qnetworkaccesshttpbackend_p.h
+index 13519c6..b4ed67c 100644
+--- a/src/network/access/qnetworkaccesshttpbackend_p.h
++++ b/src/network/access/qnetworkaccesshttpbackend_p.h
+@@ -112,7 +112,7 @@ signals:
+
+ void startHttpRequestSynchronously();
+
+- void haveUploadData(QByteArray dataArray, bool dataAtEnd, qint64 dataSize);
++ void haveUploadData(const qint64 pos, QByteArray dataArray, bool dataAtEnd, qint64 dataSize);
+ private slots:
+ // From HTTP thread:
+ void replyDownloadData(QByteArray);
+@@ -129,13 +129,14 @@ private slots:
+ // From QNonContiguousByteDeviceThreadForwardImpl in HTTP thread:
+ void resetUploadDataSlot(bool *r);
+ void wantUploadDataSlot(qint64);
+- void sentUploadDataSlot(qint64);
++ void sentUploadDataSlot(qint64, qint64);
+
+ bool sendCacheContents(const QNetworkCacheMetaData &metaData);
+
+ private:
+ QHttpNetworkRequest httpRequest; // There is also a copy in the HTTP thread
+ int statusCode;
++ qint64 uploadByteDevicePosition;
+ QString reasonPhrase;
+ // Will be increased by HTTP thread:
+ QSharedPointer<QAtomicInt> pendingDownloadDataEmissions;
+
diff --git a/dev-qt/qtcore/files/qtcore-4.8.6-moc-boost-1.60.patch b/dev-qt/qtcore/files/qtcore-4.8.6-moc-boost-1.60.patch
new file mode 100644
index 000000000000..91a5526ad833
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-4.8.6-moc-boost-1.60.patch
@@ -0,0 +1,16 @@
+diff -up qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829 qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp
+--- qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp.QTBUG-22829 2015-05-07 09:14:44.000000000 -0500
++++ qt-everywhere-opensource-src-4.8.7/src/tools/moc/main.cpp 2016-03-16 13:20:43.145899869 -0500
+@@ -188,8 +188,11 @@ int runMoc(int _argc, char **_argv)
+ pp.macros["Q_MOC_RUN"];
+ pp.macros["__cplusplus"];
+
+- // Workaround a bug while parsing the boost/type_traits/has_operator.hpp header. See QTBUG-22829
++ // Workaround a bug while parsing some boost headers. See QTBUG-22829
+ pp.macros["BOOST_TT_HAS_OPERATOR_HPP_INCLUDED"];
++ pp.macros["BOOST_LEXICAL_CAST_INCLUDED"];
++ pp.macros["BOOST_NEXT_PRIOR_HPP_INCLUDED"];
++ pp.macros["BOOST_TYPE_TRAITS_HPP"];
+
+ QByteArray filename;
+ QByteArray output;
diff --git a/dev-qt/qtcore/files/qtcore-4.8.7-libressl.patch b/dev-qt/qtcore/files/qtcore-4.8.7-libressl.patch
new file mode 100644
index 000000000000..b838c7a687b6
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-4.8.7-libressl.patch
@@ -0,0 +1,52 @@
+--- src/network/ssl/qsslsocket_openssl_symbols.cpp.orig 2015-11-25 01:38:42.103898399 -0500
++++ src/network/ssl/qsslsocket_openssl_symbols.cpp 2015-11-25 01:40:50.146247648 -0500
+@@ -224,13 +224,17 @@
+ #ifndef OPENSSL_NO_SSL2
+ DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
+ #endif
++#ifndef OPENSSL_NO_SSL3
+ DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
++#endif
+ DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
+ DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
+ #ifndef OPENSSL_NO_SSL2
+ DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
+ #endif
++#ifndef OPENSSL_NO_SSL3
+ DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
++#endif
+ DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
+ DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
+ #else
+@@ -818,13 +822,17 @@
+ #ifndef OPENSSL_NO_SSL2
+ RESOLVEFUNC(SSLv2_client_method)
+ #endif
++#ifndef OPENSSL_NO_SSL3
+ RESOLVEFUNC(SSLv3_client_method)
++#endif
+ RESOLVEFUNC(SSLv23_client_method)
+ RESOLVEFUNC(TLSv1_client_method)
+ #ifndef OPENSSL_NO_SSL2
+ RESOLVEFUNC(SSLv2_server_method)
+ #endif
++#ifndef OPENSSL_NO_SSL3
+ RESOLVEFUNC(SSLv3_server_method)
++#endif
+ RESOLVEFUNC(SSLv23_server_method)
+ RESOLVEFUNC(TLSv1_server_method)
+ RESOLVEFUNC(X509_NAME_entry_count)
+--- src/network/ssl/qsslsocket_openssl.cpp.orig 2015-11-25 01:44:55.235087906 -0500
++++ src/network/ssl/qsslsocket_openssl.cpp 2015-11-25 01:45:45.194443818 -0500
+@@ -263,7 +263,11 @@
+ #endif
+ break;
+ case QSsl::SslV3:
++#ifndef OPENSSL_NO_SSL3
+ ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method());
++#else
++ ctx = 0; // SSL 3 not supported by the system, but chosen deliberately -> error
++#endif
+ break;
+ case QSsl::SecureProtocols: // SslV2 will be disabled below
+ case QSsl::TlsV1SslV3: // SslV2 will be disabled below
diff --git a/dev-qt/qtcore/files/qtcore-5.6.2-plugins.patch b/dev-qt/qtcore/files/qtcore-5.6.2-plugins.patch
new file mode 100644
index 000000000000..d969869c0855
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-5.6.2-plugins.patch
@@ -0,0 +1,81 @@
+From ca4d93d85ee446c5e30ec8e7814651e45cbf1218 Mon Sep 17 00:00:00 2001
+From: Thiago Macieira <thiago.macieira@intel.com>
+Date: Thu, 12 Nov 2015 10:14:51 -0800
+Subject: Stop unloading plugins in QPluginLoader and QFactoryLoader
+
+QPluginLoader hasn't unloaded in its destructor since Qt 5.0, but we
+missed the equivalent code in QFactoryLoader (which bypasses
+QPluginLoader). Besides, QPluginLoader::unload() was still doing
+unloading, which it won't anymore.
+
+Not unloading plugins is Qt's policy, as decided during the 5.0
+development process and reaffirmed now in 5.6. This is due to static
+data in plugins leaking out and remaining in use past the unloading of
+the plugin, causing crashes.
+
+This does not affect QLibrary and QLibrary::unload(). Those are meant
+for non-Qt loadable modules, so unloading them may be safe.
+
+Task-number: QTBUG-49061
+Discussed-on: http://lists.qt-project.org/pipermail/development/2015-November/023681.html
+Change-Id: I461e9fc7199748faa187ffff1416070f138df8db
+(cherry picked from commit 494376f980e96339b6f1eff7c41336ca4d853065)
+Discussed-again-on: http://lists.qt-project.org/pipermail/development/2016-October/027476.html
+Reviewed-by: Lars Knoll <lars.knoll@qt.io>
+---
+ src/corelib/plugin/qfactoryloader.cpp | 6 ++++--
+ src/corelib/plugin/qpluginloader.cpp | 5 +++--
+ 2 files changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/src/corelib/plugin/qfactoryloader.cpp b/src/corelib/plugin/qfactoryloader.cpp
+index dcf1b1a..b6558f5 100644
+--- a/src/corelib/plugin/qfactoryloader.cpp
++++ b/src/corelib/plugin/qfactoryloader.cpp
+@@ -208,10 +208,12 @@ void QFactoryLoader::update()
+ ++keyUsageCount;
+ }
+ }
+- if (keyUsageCount || keys.isEmpty())
++ if (keyUsageCount || keys.isEmpty()) {
++ library->setLoadHints(QLibrary::PreventUnloadHint); // once loaded, don't unload
+ d->libraryList += library;
+- else
++ } else {
+ library->release();
++ }
+ }
+ }
+ #else
+diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp
+index 37f2368..0ea8280 100644
+--- a/src/corelib/plugin/qpluginloader.cpp
++++ b/src/corelib/plugin/qpluginloader.cpp
+@@ -148,6 +148,7 @@ QPluginLoader::QPluginLoader(const QString &fileName, QObject *parent)
+ : QObject(parent), d(0), did_load(false)
+ {
+ setFileName(fileName);
++ setLoadHints(QLibrary::PreventUnloadHint);
+ }
+
+ /*!
+@@ -342,7 +343,7 @@ static QString locatePlugin(const QString& fileName)
+ void QPluginLoader::setFileName(const QString &fileName)
+ {
+ #if defined(QT_SHARED)
+- QLibrary::LoadHints lh;
++ QLibrary::LoadHints lh = QLibrary::PreventUnloadHint;
+ if (d) {
+ lh = d->loadHints();
+ d->release();
+@@ -391,7 +392,7 @@ Q_GLOBAL_STATIC(StaticPluginList, staticPluginList)
+ \brief Give the load() function some hints on how it should behave.
+
+ You can give hints on how the symbols in the plugin are
+- resolved. By default, none of the hints are set.
++ resolved. By default since Qt 5.7, QLibrary::PreventUnloadHint is set.
+
+ See the documentation of QLibrary::loadHints for a complete
+ description of how this property works.
+--
+cgit v1.0-4-g1e03
+
diff --git a/dev-qt/qtcore/files/qtcore-5.7.1-qipm.patch b/dev-qt/qtcore/files/qtcore-5.7.1-qipm.patch
new file mode 100644
index 000000000000..abea14588075
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-5.7.1-qipm.patch
@@ -0,0 +1,152 @@
+From baad82d242a4d8c1af6c87faaa7f25584183fd53 Mon Sep 17 00:00:00 2001
+From: Stephen Kelly <steveire@gmail.com>
+Date: Tue, 20 Dec 2016 00:44:12 +0000
+Subject: [PATCH] QIPM: Persist model indexes after emitting layoutChange, not
+ before
+
+Callers can persist a QModelIndex which was not persisted before in a
+slot connected to the signal, and such a persisted index must be updated
+in the course of the layoutChange.
+
+Store the indexes to persist after emitting the signal.
+
+Task-number: QTBUG-32981
+Change-Id: Ibee4c0d84817d72603a03fe5b22fdeefeac0695e
+Reviewed-by: David Faure <david.faure@kdab.com>
+---
+ src/corelib/itemmodels/qidentityproxymodel.cpp | 18 ++---
+ .../tst_qidentityproxymodel.cpp | 76 ++++++++++++++++++++++
+ 2 files changed, 85 insertions(+), 9 deletions(-)
+
+diff --git a/src/corelib/itemmodels/qidentityproxymodel.cpp b/src/corelib/itemmodels/qidentityproxymodel.cpp
+index e537793..7c30679 100644
+--- a/src/corelib/itemmodels/qidentityproxymodel.cpp
++++ b/src/corelib/itemmodels/qidentityproxymodel.cpp
+@@ -496,15 +496,6 @@ void QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(const QList<QPe
+ {
+ Q_Q(QIdentityProxyModel);
+
+- const auto proxyPersistentIndexes = q->persistentIndexList();
+- for (const QPersistentModelIndex &proxyPersistentIndex : proxyPersistentIndexes) {
+- proxyIndexes << proxyPersistentIndex;
+- Q_ASSERT(proxyPersistentIndex.isValid());
+- const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
+- Q_ASSERT(srcPersistentIndex.isValid());
+- layoutChangePersistentIndexes << srcPersistentIndex;
+- }
+-
+ QList<QPersistentModelIndex> parents;
+ parents.reserve(sourceParents.size());
+ for (const QPersistentModelIndex &parent : sourceParents) {
+@@ -518,6 +509,15 @@ void QIdentityProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(const QList<QPe
+ }
+
+ q->layoutAboutToBeChanged(parents, hint);
++
++ const auto proxyPersistentIndexes = q->persistentIndexList();
++ for (const QPersistentModelIndex &proxyPersistentIndex : proxyPersistentIndexes) {
++ proxyIndexes << proxyPersistentIndex;
++ Q_ASSERT(proxyPersistentIndex.isValid());
++ const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
++ Q_ASSERT(srcPersistentIndex.isValid());
++ layoutChangePersistentIndexes << srcPersistentIndex;
++ }
+ }
+
+ void QIdentityProxyModelPrivate::_q_sourceLayoutChanged(const QList<QPersistentModelIndex> &sourceParents, QAbstractItemModel::LayoutChangeHint hint)
+diff --git a/tests/auto/corelib/itemmodels/qidentityproxymodel/tst_qidentityproxymodel.cpp b/tests/auto/corelib/itemmodels/qidentityproxymodel/tst_qidentityproxymodel.cpp
+index e946f31..564b854 100644
+--- a/tests/auto/corelib/itemmodels/qidentityproxymodel/tst_qidentityproxymodel.cpp
++++ b/tests/auto/corelib/itemmodels/qidentityproxymodel/tst_qidentityproxymodel.cpp
+@@ -68,6 +68,8 @@ private slots:
+
+ void itemData();
+
++ void persistIndexOnLayoutChange();
++
+ protected:
+ void verifyIdentity(QAbstractItemModel *model, const QModelIndex &parent = QModelIndex());
+
+@@ -377,5 +379,79 @@ void tst_QIdentityProxyModel::itemData()
+ QCOMPARE(proxy.itemData(topIndex).value(Qt::DisplayRole).toString(), QStringLiteral("Monday_appended"));
+ }
+
++void dump(QAbstractItemModel* model, QString const& indent = " - ", QModelIndex const& parent = {})
++{
++ for (auto row = 0; row < model->rowCount(parent); ++row)
++ {
++ auto idx = model->index(row, 0, parent);
++ qDebug() << (indent + idx.data().toString());
++ dump(model, indent + "- ", idx);
++ }
++}
++
++void tst_QIdentityProxyModel::persistIndexOnLayoutChange()
++{
++ DynamicTreeModel model;
++
++ QList<int> ancestors;
++ for (auto i = 0; i < 3; ++i)
++ {
++ Q_UNUSED(i);
++ ModelInsertCommand insertCommand(&model);
++ insertCommand.setAncestorRowNumbers(ancestors);
++ insertCommand.setStartRow(0);
++ insertCommand.setEndRow(0);
++ insertCommand.doCommand();
++ ancestors.push_back(0);
++ }
++ ModelInsertCommand insertCommand(&model);
++ insertCommand.setAncestorRowNumbers(ancestors);
++ insertCommand.setStartRow(0);
++ insertCommand.setEndRow(1);
++ insertCommand.doCommand();
++
++ // dump(&model);
++ // " - 1"
++ // " - - 2"
++ // " - - - 3"
++ // " - - - - 4"
++ // " - - - - 5"
++
++ QIdentityProxyModel proxy;
++ proxy.setSourceModel(&model);
++
++ QPersistentModelIndex persistentIndex;
++
++ QPersistentModelIndex sourcePersistentIndex = model.match(model.index(0, 0), Qt::DisplayRole, "5", 1, Qt::MatchRecursive).first();
++
++ QCOMPARE(sourcePersistentIndex.data().toString(), QStringLiteral("5"));
++
++ bool gotLayoutAboutToBeChanged = false;
++ bool gotLayoutChanged = false;
++
++ QObject::connect(&proxy, &QAbstractItemModel::layoutAboutToBeChanged, &proxy, [&proxy, &persistentIndex, &gotLayoutAboutToBeChanged]
++ {
++ gotLayoutAboutToBeChanged = true;
++ persistentIndex = proxy.match(proxy.index(0, 0), Qt::DisplayRole, "5", 1, Qt::MatchRecursive).first();
++ });
++
++ QObject::connect(&proxy, &QAbstractItemModel::layoutChanged, &proxy, [&proxy, &persistentIndex, &sourcePersistentIndex, &gotLayoutChanged]
++ {
++ gotLayoutChanged = true;
++ QCOMPARE(QModelIndex(persistentIndex), proxy.mapFromSource(sourcePersistentIndex));
++ });
++
++ ModelChangeChildrenLayoutsCommand layoutChangeCommand(&model, 0);
++
++ layoutChangeCommand.setAncestorRowNumbers(QList<int>{0, 0, 0});
++ layoutChangeCommand.setSecondAncestorRowNumbers(QList<int>{0, 0});
++
++ layoutChangeCommand.doCommand();
++
++ QVERIFY(gotLayoutAboutToBeChanged);
++ QVERIFY(gotLayoutChanged);
++ QVERIFY(persistentIndex.isValid());
++}
++
+ QTEST_MAIN(tst_QIdentityProxyModel)
+ #include "tst_qidentityproxymodel.moc"
+--
+2.7.4
+
diff --git a/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-1.patch b/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-1.patch
new file mode 100644
index 000000000000..9edbe18617a2
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-1.patch
@@ -0,0 +1,252 @@
+From 3bd0fd8f97e7a33a874929a383a42e6c710bfff3 Mon Sep 17 00:00:00 2001
+From: Stephen Kelly <steveire@gmail.com>
+Date: Sat, 17 Dec 2016 06:20:06 +0000
+Subject: [PATCH] QSFPM: Fix handling of source model layout change
+
+In sourceLayoutAboutToBeChanged the source model update is ignored if
+the affected parents are filtered out anyway. The same logic is
+attempted in the sourceLayoutChanged slot, but there the early-return
+logic is applied too late - the mapping is cleared before performing the
+early-return. Because pointers into the mapping are used in the
+internalPointer of QModelIndexes in this class, persistent indexes used
+later will segfault when attempting to dereference it.
+
+Additionally, if a parent becomes invalid as a result of the
+layoutChange, it would be filtered out by the condition in the loop,
+resulting in a different result in the comparison of emptiness of the
+parents container.
+
+Fix that by persisting the parent's container, and performing the test
+for early-return before clearing the mapping.
+
+Task-number: QTBUG-47711
+Task-number: QTBUG-32981
+Change-Id: If45e8a1c97d39454160f52041bc9ae7e337dce97
+Reviewed-by: David Faure <david.faure@kdab.com>
+---
+ src/corelib/itemmodels/qsortfilterproxymodel.cpp | 31 ++---
+ .../tst_qsortfilterproxymodel.cpp | 126 +++++++++++++++++++++
+ 2 files changed, 137 insertions(+), 20 deletions(-)
+
+diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+index b0ddfa8..3331521 100644
+--- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp
++++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+@@ -171,6 +171,7 @@ public:
+ QRowsRemoval itemsBeingRemoved;
+
+ QModelIndexPairList saved_persistent_indexes;
++ QList<QPersistentModelIndex> saved_layoutChange_parents;
+
+ QHash<QModelIndex, Mapping *>::const_iterator create_mapping(
+ const QModelIndex &source_parent) const;
+@@ -1331,23 +1332,23 @@ void QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged(const QList<Q
+ Q_UNUSED(hint); // We can't forward Hint because we might filter additional rows or columns
+ saved_persistent_indexes.clear();
+
+- QList<QPersistentModelIndex> parents;
++ saved_layoutChange_parents.clear();
+ for (const QPersistentModelIndex &parent : sourceParents) {
+ if (!parent.isValid()) {
+- parents << QPersistentModelIndex();
++ saved_layoutChange_parents << QPersistentModelIndex();
+ continue;
+ }
+ const QModelIndex mappedParent = q->mapFromSource(parent);
+ // Might be filtered out.
+ if (mappedParent.isValid())
+- parents << mappedParent;
++ saved_layoutChange_parents << mappedParent;
+ }
+
+ // All parents filtered out.
+- if (!sourceParents.isEmpty() && parents.isEmpty())
++ if (!sourceParents.isEmpty() && saved_layoutChange_parents.isEmpty())
+ return;
+
+- emit q->layoutAboutToBeChanged(parents);
++ emit q->layoutAboutToBeChanged(saved_layoutChange_parents);
+ if (persistent.indexes.isEmpty())
+ return;
+
+@@ -1359,6 +1360,9 @@ void QSortFilterProxyModelPrivate::_q_sourceLayoutChanged(const QList<QPersisten
+ Q_Q(QSortFilterProxyModel);
+ Q_UNUSED(hint); // We can't forward Hint because we might filter additional rows or columns
+
++ if (!sourceParents.isEmpty() && saved_layoutChange_parents.isEmpty())
++ return;
++
+ // Optimize: We only actually have to clear the mapping related to the contents of
+ // sourceParents, not everything.
+ qDeleteAll(source_index_mapping);
+@@ -1373,21 +1377,8 @@ void QSortFilterProxyModelPrivate::_q_sourceLayoutChanged(const QList<QPersisten
+ source_index_mapping.clear();
+ }
+
+- QList<QPersistentModelIndex> parents;
+- for (const QPersistentModelIndex &parent : sourceParents) {
+- if (!parent.isValid()) {
+- parents << QPersistentModelIndex();
+- continue;
+- }
+- const QModelIndex mappedParent = q->mapFromSource(parent);
+- if (mappedParent.isValid())
+- parents << mappedParent;
+- }
+-
+- if (!sourceParents.isEmpty() && parents.isEmpty())
+- return;
+-
+- emit q->layoutChanged(parents);
++ emit q->layoutChanged(saved_layoutChange_parents);
++ saved_layoutChange_parents.clear();
+ }
+
+ void QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeInserted(
+diff --git a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
+index 38e3c68..6b98d9f 100644
+--- a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
++++ b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
+@@ -145,6 +145,8 @@ private slots:
+ void canDropMimeData();
+ void filterHint();
+
++ void sourceLayoutChangeLeavesValidPersistentIndexes();
++
+ protected:
+ void buildHierarchy(const QStringList &data, QAbstractItemModel *model);
+ void checkHierarchy(const QStringList &data, const QAbstractItemModel *model);
+@@ -4181,5 +4183,129 @@ void tst_QSortFilterProxyModel::filterHint()
+ QAbstractItemModel::NoLayoutChangeHint);
+ }
+
++/**
++
++ Creates a model where each item has one child, to a set depth,
++ and the last item has no children. For a model created with
++ setDepth(4):
++
++ - 1
++ - - 2
++ - - - 3
++ - - - - 4
++*/
++class StepTreeModel : public QAbstractItemModel
++{
++ Q_OBJECT
++public:
++ StepTreeModel(QObject * parent = 0)
++ : QAbstractItemModel(parent), m_depth(0) {}
++
++ int columnCount(const QModelIndex& = QModelIndex()) const override { return 1; }
++
++ int rowCount(const QModelIndex& parent = QModelIndex()) const override
++ {
++ quintptr parentId = (parent.isValid()) ? parent.internalId() : 0;
++ return (parentId < m_depth) ? 1 : 0;
++ }
++
++ QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override
++ {
++ if (role != Qt::DisplayRole)
++ return QVariant();
++
++ return QString::number(index.internalId());
++ }
++
++ QModelIndex index(int, int, const QModelIndex& parent = QModelIndex()) const override
++ {
++ quintptr parentId = (parent.isValid()) ? parent.internalId() : 0;
++ if (parentId >= m_depth)
++ return QModelIndex();
++
++ return createIndex(0, 0, parentId + 1);
++ }
++
++ QModelIndex parent(const QModelIndex& index) const override
++ {
++ if (index.internalId() == 0)
++ return QModelIndex();
++
++ return createIndex(0, 0, index.internalId() - 1);
++ }
++
++ void setDepth(quintptr depth)
++ {
++ int parentIdWithLayoutChange = (m_depth < depth) ? m_depth : depth;
++
++ QList<QPersistentModelIndex> parentsOfLayoutChange;
++ parentsOfLayoutChange.push_back(createIndex(0, 0, parentIdWithLayoutChange));
++
++ layoutAboutToBeChanged(parentsOfLayoutChange);
++
++ auto existing = persistentIndexList();
++
++ QList<QModelIndex> updated;
++
++ for (auto idx : existing) {
++ if (indexDepth(idx) <= depth)
++ updated.push_back(idx);
++ else
++ updated.push_back({});
++ }
++
++ m_depth = depth;
++
++ changePersistentIndexList(existing, updated);
++
++ layoutChanged(parentsOfLayoutChange);
++ }
++
++private:
++ static quintptr indexDepth(QModelIndex const& index)
++ {
++ return (index.isValid()) ? 1 + indexDepth(index.parent()) : 0;
++ }
++
++private:
++ quintptr m_depth;
++};
++
++void tst_QSortFilterProxyModel::sourceLayoutChangeLeavesValidPersistentIndexes()
++{
++ StepTreeModel model;
++ Q_SET_OBJECT_NAME(model);
++ model.setDepth(4);
++
++ QSortFilterProxyModel proxy1;
++ proxy1.setSourceModel(&model);
++ Q_SET_OBJECT_NAME(proxy1);
++
++ proxy1.setFilterRegExp("1|2");
++
++ // The current state of things:
++ // model proxy
++ // - 1 - 1
++ // - - 2 - - 2
++ // - - - 3
++ // - - - - 4
++
++ // The setDepth call below removes '4' with a layoutChanged call.
++ // Because the proxy filters that out anyway, the proxy doesn't need
++ // to emit any signals or update persistent indexes.
++
++ QPersistentModelIndex persistentIndex = proxy1.index(0, 0, proxy1.index(0, 0));
++
++ model.setDepth(3);
++
++ // Calling parent() causes the internalPointer to be used.
++ // Before fixing QTBUG-47711, that could be a dangling pointer.
++ // The use of qDebug here makes sufficient use of the heap to
++ // cause corruption at runtime with normal use on linux (before
++ // the fix). valgrind confirms the fix.
++ qDebug() << persistentIndex.parent();
++ QVERIFY(persistentIndex.parent().isValid());
++}
++
+ QTEST_MAIN(tst_QSortFilterProxyModel)
+ #include "tst_qsortfilterproxymodel.moc"
+--
+2.7.4
+
+
diff --git a/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-2.patch b/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-2.patch
new file mode 100644
index 000000000000..973649637e66
--- /dev/null
+++ b/dev-qt/qtcore/files/qtcore-5.7.1-qsfpm-2.patch
@@ -0,0 +1,195 @@
+From 0874861bcc70313c343aba5e5566ed30b69eed1c Mon Sep 17 00:00:00 2001
+From: Stephen Kelly <steveire@gmail.com>
+Date: Mon, 19 Dec 2016 21:13:57 +0000
+Subject: [PATCH] QSFPM: Remove data manipulation from move handlers
+
+Similar to the fix in the parent commit, incorrect updating of the
+internal data structures during layout changes can lead to dangling
+pointers being dereferenced later. Moves are treated as layoutChanges
+by this proxy by forwarding to the appropriate method. However, data is
+incorrectly cleared prior to that forwarding. Remove that, and let the
+layoutChange handling take appropriate action.
+
+Change-Id: Iee951e37152328a4e6a5fb8e5385c32a2fe4c0bd
+Reviewed-by: David Faure <david.faure@kdab.com>
+---
+ src/corelib/itemmodels/qsortfilterproxymodel.cpp | 67 ++++------------------
+ .../tst_qsortfilterproxymodel.cpp | 46 +++++++++++++++
+ 2 files changed, 58 insertions(+), 55 deletions(-)
+
+diff --git a/src/corelib/itemmodels/qsortfilterproxymodel.cpp b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+index 3331521..226a240 100644
+--- a/src/corelib/itemmodels/qsortfilterproxymodel.cpp
++++ b/src/corelib/itemmodels/qsortfilterproxymodel.cpp
+@@ -1418,49 +1418,27 @@ void QSortFilterProxyModelPrivate::_q_sourceRowsRemoved(
+ void QSortFilterProxyModelPrivate::_q_sourceRowsAboutToBeMoved(
+ const QModelIndex &sourceParent, int /* sourceStart */, int /* sourceEnd */, const QModelIndex &destParent, int /* dest */)
+ {
+- Q_Q(QSortFilterProxyModel);
+ // Because rows which are contiguous in the source model might not be contiguous
+ // in the proxy due to sorting, the best thing we can do here is be specific about what
+ // parents are having their children changed.
+ // Optimize: Emit move signals if the proxy is not sorted. Will need to account for rows
+ // being filtered out though.
+
+- saved_persistent_indexes.clear();
+-
+ QList<QPersistentModelIndex> parents;
+- parents << q->mapFromSource(sourceParent);
++ parents << sourceParent;
+ if (sourceParent != destParent)
+- parents << q->mapFromSource(destParent);
+- emit q->layoutAboutToBeChanged(parents);
+- if (persistent.indexes.isEmpty())
+- return;
+- saved_persistent_indexes = store_persistent_indexes();
++ parents << destParent;
++ _q_sourceLayoutAboutToBeChanged(parents, QAbstractItemModel::NoLayoutChangeHint);
+ }
+
+ void QSortFilterProxyModelPrivate::_q_sourceRowsMoved(
+ const QModelIndex &sourceParent, int /* sourceStart */, int /* sourceEnd */, const QModelIndex &destParent, int /* dest */)
+ {
+- Q_Q(QSortFilterProxyModel);
+-
+- // Optimize: We only need to clear and update the persistent indexes which are children of
+- // sourceParent or destParent
+- qDeleteAll(source_index_mapping);
+- source_index_mapping.clear();
+-
+- update_persistent_indexes(saved_persistent_indexes);
+- saved_persistent_indexes.clear();
+-
+- if (dynamic_sortfilter && update_source_sort_column()) {
+- //update_source_sort_column might have created wrong mapping so we have to clear it again
+- qDeleteAll(source_index_mapping);
+- source_index_mapping.clear();
+- }
+-
+ QList<QPersistentModelIndex> parents;
+- parents << q->mapFromSource(sourceParent);
++ parents << sourceParent;
+ if (sourceParent != destParent)
+- parents << q->mapFromSource(destParent);
+- emit q->layoutChanged(parents);
++ parents << destParent;
++ _q_sourceLayoutChanged(parents, QAbstractItemModel::NoLayoutChangeHint);
+ }
+
+ void QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeInserted(
+@@ -1522,42 +1500,21 @@ void QSortFilterProxyModelPrivate::_q_sourceColumnsRemoved(
+ void QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeMoved(
+ const QModelIndex &sourceParent, int /* sourceStart */, int /* sourceEnd */, const QModelIndex &destParent, int /* dest */)
+ {
+- Q_Q(QSortFilterProxyModel);
+-
+- saved_persistent_indexes.clear();
+-
+ QList<QPersistentModelIndex> parents;
+- parents << q->mapFromSource(sourceParent);
++ parents << sourceParent;
+ if (sourceParent != destParent)
+- parents << q->mapFromSource(destParent);
+- emit q->layoutAboutToBeChanged(parents);
+-
+- if (persistent.indexes.isEmpty())
+- return;
+- saved_persistent_indexes = store_persistent_indexes();
++ parents << destParent;
++ _q_sourceLayoutAboutToBeChanged(parents, QAbstractItemModel::NoLayoutChangeHint);
+ }
+
+ void QSortFilterProxyModelPrivate::_q_sourceColumnsMoved(
+ const QModelIndex &sourceParent, int /* sourceStart */, int /* sourceEnd */, const QModelIndex &destParent, int /* dest */)
+ {
+- Q_Q(QSortFilterProxyModel);
+-
+- qDeleteAll(source_index_mapping);
+- source_index_mapping.clear();
+-
+- update_persistent_indexes(saved_persistent_indexes);
+- saved_persistent_indexes.clear();
+-
+- if (dynamic_sortfilter && update_source_sort_column()) {
+- qDeleteAll(source_index_mapping);
+- source_index_mapping.clear();
+- }
+-
+ QList<QPersistentModelIndex> parents;
+- parents << q->mapFromSource(sourceParent);
++ parents << sourceParent;
+ if (sourceParent != destParent)
+- parents << q->mapFromSource(destParent);
+- emit q->layoutChanged(parents);
++ parents << destParent;
++ _q_sourceLayoutChanged(parents, QAbstractItemModel::NoLayoutChangeHint);
+ }
+
+ /*!
+diff --git a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
+index 6b98d9f..7b6c470 100644
+--- a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
++++ b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp
+@@ -146,6 +146,7 @@ private slots:
+ void filterHint();
+
+ void sourceLayoutChangeLeavesValidPersistentIndexes();
++ void rowMoveLeavesValidPersistentIndexes();
+
+ protected:
+ void buildHierarchy(const QStringList &data, QAbstractItemModel *model);
+@@ -4307,5 +4308,50 @@ void tst_QSortFilterProxyModel::sourceLayoutChangeLeavesValidPersistentIndexes()
+ QVERIFY(persistentIndex.parent().isValid());
+ }
+
++void tst_QSortFilterProxyModel::rowMoveLeavesValidPersistentIndexes()
++{
++ DynamicTreeModel model;
++ Q_SET_OBJECT_NAME(model);
++
++ QList<int> ancestors;
++ for (auto i = 0; i < 5; ++i)
++ {
++ Q_UNUSED(i);
++ ModelInsertCommand insertCommand(&model);
++ insertCommand.setAncestorRowNumbers(ancestors);
++ insertCommand.setStartRow(0);
++ insertCommand.setEndRow(0);
++ insertCommand.doCommand();
++ ancestors.push_back(0);
++ }
++
++ QSortFilterProxyModel proxy1;
++ proxy1.setSourceModel(&model);
++ Q_SET_OBJECT_NAME(proxy1);
++
++ proxy1.setFilterRegExp("1|2");
++
++ auto item5 = model.match(model.index(0, 0), Qt::DisplayRole, "5", 1, Qt::MatchRecursive).first();
++ auto item3 = model.match(model.index(0, 0), Qt::DisplayRole, "3", 1, Qt::MatchRecursive).first();
++
++ Q_ASSERT(item5.isValid());
++ Q_ASSERT(item3.isValid());
++
++ QPersistentModelIndex persistentIndex = proxy1.match(proxy1.index(0, 0), Qt::DisplayRole, "2", 1, Qt::MatchRecursive).first();
++
++ ModelMoveCommand moveCommand(&model, 0);
++ moveCommand.setAncestorRowNumbers(QList<int>{0, 0, 0, 0});
++ moveCommand.setStartRow(0);
++ moveCommand.setEndRow(0);
++ moveCommand.setDestRow(0);
++ moveCommand.setDestAncestors(QList<int>{0, 0, 0});
++ moveCommand.doCommand();
++
++ // Calling parent() causes the internalPointer to be used.
++ // Before fixing QTBUG-47711 (moveRows case), that could be
++ // a dangling pointer.
++ QVERIFY(persistentIndex.parent().isValid());
++}
++
+ QTEST_MAIN(tst_QSortFilterProxyModel)
+ #include "tst_qsortfilterproxymodel.moc"
+--
+2.7.4
+
+
diff --git a/dev-qt/qtcore/metadata.xml b/dev-qt/qtcore/metadata.xml
new file mode 100644
index 000000000000..668f6ab4564e
--- /dev/null
+++ b/dev-qt/qtcore/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="glib">Enable <pkg>dev-libs/glib</pkg> eventloop support</flag>
+ <flag name="qt3support">Enable the Qt3Support libraries for Qt4. Note that
+ this does not mean you can compile pure Qt3 programs with Qt4.</flag>
+ <flag name="systemd">Enable native journald logging support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtcore/qtcore-4.8.6-r2.ebuild b/dev-qt/qtcore/qtcore-4.8.6-r2.ebuild
new file mode 100644
index 000000000000..c9a3c5e433bf
--- /dev/null
+++ b/dev-qt/qtcore/qtcore-4.8.6-r2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="Cross-platform application development framework"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+IUSE="+glib iconv icu qt3support ssl"
+
+DEPEND="
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
+ iconv? ( >=virtual/libiconv-0-r2[${MULTILIB_USEDEP}] )
+ icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
+ ssl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+PDEPEND="
+ ~dev-qt/qttranslations-${PV}
+ qt3support? ( ~dev-qt/qtgui-${PV}[aqua=,debug=,glib=,qt3support,${MULTILIB_USEDEP}] )
+"
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/qt4/Qt/qconfig.h
+ /usr/include/qt4/QtCore/qconfig.h
+)
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch" # bug 514968
+ "${FILESDIR}/${PN}-4.8.5-qeventdispatcher-recursive.patch" # bug 514968
+ "${FILESDIR}/${PN}-4.8.6-QNAM-corruptions-fix.patch" # bug 548622
+ "${FILESDIR}/${PN}-4.8.6-moc-boost-1.60.patch" # bug 556104
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/tools/bootstrap
+ src/tools/moc
+ src/tools/rcc
+ src/tools/uic
+ src/corelib
+ src/network
+ src/xml
+ src/plugins/codecs/cn
+ src/plugins/codecs/jp
+ src/plugins/codecs/kr
+ src/plugins/codecs/tw
+ tools/linguist/lconvert
+ tools/linguist/lrelease
+ tools/linguist/lupdate"
+
+QCONFIG_DEFINE="QT_ZLIB"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # bug 172219
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ qmake/Makefile.unix || die "sed qmake/Makefile.unix failed"
+
+ # bug 427782
+ sed -i -e '/^CPPFLAGS\s*=/ s/-g //' \
+ qmake/Makefile.unix || die "sed CPPFLAGS in qmake/Makefile.unix failed"
+ sed -i -e 's/setBootstrapVariable QMAKE_CFLAGS_RELEASE/QMakeVar set QMAKE_CFLAGS_RELEASE/' \
+ -e 's/setBootstrapVariable QMAKE_CXXFLAGS_RELEASE/QMakeVar set QMAKE_CXXFLAGS_RELEASE/' \
+ configure || die "sed configure setBootstrapVariable failed"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl -no-openvg
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ $(qt_use glib)
+ $(qt_use iconv)
+ $(qt_use icu)
+ $(use ssl && echo -openssl-linked || echo -no-openssl)
+ $(qt_use qt3support)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtcore/qtcore-4.8.7-r2.ebuild b/dev-qt/qtcore/qtcore-4.8.7-r2.ebuild
new file mode 100644
index 000000000000..19f8832d3108
--- /dev/null
+++ b/dev-qt/qtcore/qtcore-4.8.7-r2.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="Cross-platform application development framework"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+glib iconv icu libressl qt3support ssl"
+
+DEPEND="
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
+ iconv? ( >=virtual/libiconv-0-r2[${MULTILIB_USEDEP}] )
+ icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
+ ssl? (
+ !libressl? ( >=dev-libs/openssl-1.0.1h-r2:0[${MULTILIB_USEDEP}] )
+ libressl? ( dev-libs/libressl:=[${MULTILIB_USEDEP}] )
+ )
+"
+RDEPEND="${DEPEND}"
+PDEPEND="
+ ~dev-qt/qttranslations-${PV}
+ qt3support? ( ~dev-qt/qtgui-${PV}[aqua=,debug=,glib=,qt3support,${MULTILIB_USEDEP}] )
+"
+
+MULTILIB_WRAPPED_HEADERS=(
+ /usr/include/qt4/Qt/qconfig.h
+ /usr/include/qt4/QtCore/qconfig.h
+)
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.5-honor-ExcludeSocketNotifiers-in-glib-event-loop.patch" # bug 514968
+ "${FILESDIR}/${PN}-4.8.5-qeventdispatcher-recursive.patch" # bug 514968
+ "${FILESDIR}/${PN}-4.8.6-moc-boost-1.60.patch" # bug 556104
+ "${FILESDIR}/${PN}-4.8.7-libressl.patch" # bug 584796
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/tools/bootstrap
+ src/tools/moc
+ src/tools/rcc
+ src/tools/uic
+ src/corelib
+ src/network
+ src/xml
+ src/plugins/codecs/cn
+ src/plugins/codecs/jp
+ src/plugins/codecs/kr
+ src/plugins/codecs/tw
+ tools/linguist/lconvert
+ tools/linguist/lrelease
+ tools/linguist/lupdate"
+
+QCONFIG_DEFINE="QT_ZLIB"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # bug 172219
+ sed -i -e "s:CXXFLAGS.*=:CXXFLAGS=${CXXFLAGS} :" \
+ -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
+ qmake/Makefile.unix || die "sed qmake/Makefile.unix failed"
+
+ # bug 427782
+ sed -i -e '/^CPPFLAGS\s*=/ s/-g //' \
+ qmake/Makefile.unix || die "sed CPPFLAGS in qmake/Makefile.unix failed"
+ sed -i -e 's/setBootstrapVariable QMAKE_CFLAGS_RELEASE/QMakeVar set QMAKE_CFLAGS_RELEASE/' \
+ -e 's/setBootstrapVariable QMAKE_CXXFLAGS_RELEASE/QMakeVar set QMAKE_CXXFLAGS_RELEASE/' \
+ configure || die "sed configure setBootstrapVariable failed"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl -no-openvg
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ $(qt_use glib)
+ $(qt_use iconv)
+ $(qt_use icu)
+ $(use ssl && echo -openssl-linked || echo -no-openssl)
+ $(qt_use qt3support)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtcore/qtcore-5.6.2-r1.ebuild b/dev-qt/qtcore/qtcore-5.6.2-r1.ebuild
new file mode 100644
index 000000000000..8993a7d4bbf7
--- /dev/null
+++ b/dev-qt/qtcore/qtcore-5.6.2-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Cross-platform application development framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="icu systemd"
+
+DEPEND="
+ dev-libs/glib:2
+ >=dev-libs/libpcre-8.38[pcre16,unicode]
+ >=sys-libs/zlib-1.2.5
+ virtual/libiconv
+ icu? ( dev-libs/icu:= )
+ systemd? ( sys-apps/systemd:= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-plugins.patch" )
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/bootstrap
+ src/tools/moc
+ src/tools/rcc
+ src/corelib
+ src/tools/qlalr
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use icu)
+ $(qt_use systemd journald)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtcore/qtcore-5.7.1-r3.ebuild b/dev-qt/qtcore/qtcore-5.7.1-r3.ebuild
new file mode 100644
index 000000000000..f68f4635ff7b
--- /dev/null
+++ b/dev-qt/qtcore/qtcore-5.7.1-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Cross-platform application development framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="icu systemd"
+
+DEPEND="
+ dev-libs/double-conversion:=
+ dev-libs/glib:2
+ >=dev-libs/libpcre-8.38[pcre16,unicode]
+ >=sys-libs/zlib-1.2.5
+ virtual/libiconv
+ icu? ( dev-libs/icu:= )
+ systemd? ( sys-apps/systemd:= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.6.2-plugins.patch
+ "${FILESDIR}"/${P}-qipm.patch
+ "${FILESDIR}"/${P}-qsfpm-{1,2}.patch
+)
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/bootstrap
+ src/tools/moc
+ src/tools/rcc
+ src/corelib
+ src/tools/qlalr
+ doc
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use icu)
+ $(qt_use systemd journald)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtcore/qtcore-5.9.2.ebuild b/dev-qt/qtcore/qtcore-5.9.2.ebuild
new file mode 100644
index 000000000000..779bc30c7b90
--- /dev/null
+++ b/dev-qt/qtcore/qtcore-5.9.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Cross-platform application development framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="icu systemd"
+
+DEPEND="
+ dev-libs/double-conversion:=
+ dev-libs/glib:2
+ dev-libs/libpcre2[pcre16,unicode]
+ sys-libs/zlib
+ icu? ( dev-libs/icu:= )
+ !icu? ( virtual/libiconv )
+ systemd? ( sys-apps/systemd:= )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/bootstrap
+ src/tools/moc
+ src/tools/rcc
+ src/tools/qfloat16-tables
+ src/corelib
+ src/tools/qlalr
+ doc
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use icu)
+ $(qt_use !icu iconv)
+ $(qt_use systemd journald)
+ )
+ qt5-build_src_configure
+}
+
+src_install() {
+ qt5-build_src_install
+
+ local flags=(
+ ALSA CUPS DBUS EGL EGLFS EGL_X11 EVDEV FONTCONFIG FREETYPE
+ HARFBUZZ IMAGEFORMAT_JPEG IMAGEFORMAT_PNG LIBPROXY MITSHM
+ OPENGL OPENSSL OPENVG PULSEAUDIO SHAPE SSL TSLIB XCURSOR
+ XFIXES XKB XRANDR XRENDER XSYNC ZLIB
+ )
+
+ for flag in ${flags[@]}; do
+ cat >> "${D%/}"/${QT5_HEADERDIR}/QtCore/qconfig.h <<- _EOF_ || die
+
+ #if defined(QT_NO_${flag}) && defined(QT_${flag})
+ # undef QT_NO_${flag}
+ #elif !defined(QT_NO_${flag}) && !defined(QT_${flag})
+ # define QT_NO_${flag}
+ #endif
+ _EOF_
+ done
+}
diff --git a/dev-qt/qtdatavis3d/Manifest b/dev-qt/qtdatavis3d/Manifest
new file mode 100644
index 000000000000..7a3b21aeb80d
--- /dev/null
+++ b/dev-qt/qtdatavis3d/Manifest
@@ -0,0 +1,6 @@
+DIST qtdatavis3d-opensource-src-5.7.1.tar.xz 5155740 SHA256 1bff85dcdeed98ad8f0e191f77e7c0e9d57af719c51791044b9c15e939b800f8 SHA512 2739f7ddcf81fa53a2673e7073c1dac54ea15b70175e19697c7711d652101f0f9a41dc5f89ea33bc5675605ba760667ead8cfde10940dbad8ec75f6897c67b5a WHIRLPOOL 4bc4d7bd5ccf4dcdc74a9ad6d953b0c236c0d3bc0b23bc238b24a600d34e5d5de4b39ba22541b65084fe33a511a97c907c5c6e0e5c62f65440f4f59928238727
+DIST qtdatavis3d-opensource-src-5.9.2.tar.xz 5163316 SHA256 06ae5699872d048e8bb99464c420db3749c8b7601e9f855ce8b1e156d792b2b2 SHA512 5f173401ba2f0ebb4bbb1ff65053f1ece44a97a8bf1d9fc8d81540709c588e140c533d5f317d6a9109d538e38aa742d42bf00906f63d433811bc1c8526788dc3 WHIRLPOOL 308cb9573bb57b9597e048401dcdebbd28ac6b93fad16098b558f39fa594b5e155b1ee6764bb9f525cf7e5344d4252a6abebb8f56045116386e50ec728c5c26c
+EBUILD qtdatavis3d-5.7.1.ebuild 625 SHA256 328a0aae202abd02f5c40611f8e2988e3ffec39012f4b79d45d0b9a341bd2edf SHA512 6498e8bc0b6baaf227a22c047e9e2587d08b632d3bd9ed747af513b8ef607e2bc7faa420a0147cc67be744ef8468696488863282c4ab23824bad42375a0b56eb WHIRLPOOL 1c125b4b008a29f5f0443af6219f1a9b3e300228df988ac0d6b7f3272f53b03ce269096c85b49820d72e484c74ebc5e945ff2a120b0f774845e218381406b56c
+EBUILD qtdatavis3d-5.9.2.ebuild 625 SHA256 116589ccdd09c3b0f217ffb5617ca4eca8c799c54542fbb1418477548cc9beae SHA512 971fe6b40e1f7beeea40feb2b2234c5d6727f1cd1e4abbcaf1b67a713adc88ff0b117564677d86cf1c7fc7b03d341ebad326f79490c28552de6d858aab82fe67 WHIRLPOOL d62626cd36396a3742abcc43cf21c24adad1c7df93222ff0b88b3f3221d5cc15c2f46513b1d52ddad00823af02cb2c8cbe0ea5d73f41d1de6ebe32c877a442dc
+MISC ChangeLog 662 SHA256 25e12b450ec647401a3dc36bb1ded9244454691a1085cd07355ce57d672be75c SHA512 e1e138d23eb79fc1844a7591b89efa4abf8b3bb4cfa6fa9c057f810a35c530d20fe1fe50eb3a3c2a27cde0f5f12c9c9d1aab65b9bf8928a028e8289767a288ea WHIRLPOOL c745c9e18d022e22211f9278dec10660c3d5e55d0afbeddfd0d300c420942afe512aeb5ae51fa4f759cdf3c12826f37d68d57e425d6d2126f60b8c47eb6f13fe
+MISC metadata.xml 634 SHA256 fd133bb098445326223c673a48464d435f69eab229d67078a7b697efb4200cf4 SHA512 cf0c7257d0c332cdb2dd6295c26afc38f40eb2710e197c3767c7d828cafbd545faa1926f4cff3500a1b0cee1630399690ad107278a2da129cd682c771599bf32 WHIRLPOOL 43273287b9b5357376ddb64bf777deed3930180d625da85217c5b4913a6c8b2158a42a8d7cf1322e635528b8540198c50c06e850e6980b24db9542c622245c7d
diff --git a/dev-qt/qtdatavis3d/metadata.xml b/dev-qt/qtdatavis3d/metadata.xml
new file mode 100644
index 000000000000..16d338334284
--- /dev/null
+++ b/dev-qt/qtdatavis3d/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtdatavis3d/qtdatavis3d-5.7.1.ebuild b/dev-qt/qtdatavis3d/qtdatavis3d-5.7.1.ebuild
new file mode 100644
index 000000000000..e097dd607326
--- /dev/null
+++ b/dev-qt/qtdatavis3d/qtdatavis3d-5.7.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="3D data visualization library for the Qt5 framework"
+LICENSE="GPL-3"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="gles2 qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ qml? ( ~dev-qt/qtdeclarative-${PV}[gles2=] )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # eliminate bogus dependency on qtwidgets
+ sed -i -e '/requires.*widgets/d' qtdatavis3d.pro || die
+
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdatavis3d/qtdatavis3d-5.9.2.ebuild b/dev-qt/qtdatavis3d/qtdatavis3d-5.9.2.ebuild
new file mode 100644
index 000000000000..4ce3a82a3a95
--- /dev/null
+++ b/dev-qt/qtdatavis3d/qtdatavis3d-5.9.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="3D data visualization library for the Qt5 framework"
+LICENSE="GPL-3"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE="gles2 qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ qml? ( ~dev-qt/qtdeclarative-${PV}[gles2=] )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # eliminate bogus dependency on qtwidgets
+ sed -i -e '/requires.*widgets/d' qtdatavis3d.pro || die
+
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdbus/Manifest b/dev-qt/qtdbus/Manifest
new file mode 100644
index 000000000000..2f697ecf62b6
--- /dev/null
+++ b/dev-qt/qtdbus/Manifest
@@ -0,0 +1,15 @@
+AUX qtdbus-4.7-qdbusintegrator-no-const.patch 543 SHA256 a05de8d906be14160e5c951856fae2796b6f6eed91ed4781e8197433e94ce922 SHA512 1967f1b3f1a834eecf140df39c6e4826acf80fc2f8de85770252949910de357a4303d1c1b3202e2df164e8b1cd74b0ab4928a3b333df0a222bdf21e71696824f WHIRLPOOL c5d72b6fc8a9e55cfdacdd2a514e1acbd1c4f864f92596b3c3b9d013a24425619c04048063afb9aef267ade2b5fcf6b3921b90cddb2f9a3ee7d8721ae7d8eeeb
+AUX qtdbus-4.8.4-qdbusconnection-silence-warning.patch 997 SHA256 648a06278bd4cbe98c61543475cf75b0251722d0f562e9ff8a3b8a89d3838811 SHA512 b3135450bcd7ab50e5b559b0e8619606053845852159853498756e50777cfbe8b5871bd7b0c178b3de038dc9229f3564c4827b35fcb67b354f0814ca1b2c58e3 WHIRLPOOL c28d79d56c284dc17489c31449b20d774021a0a9dac385c327e6b42997dabc0d92aeca4f5fae3020926f6c16053b30f82913800019e5419e3a82f58481fa30db
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtdbus-4.8.6-r1.ebuild 906 SHA256 82bc9ccc16a52a302a30d01eba4d680c50b01ed245cf4bc6a865ff574f04a2a9 SHA512 14bc3236a80e4f6cb9947c7414df10884c79ad3c8f96835a402f8e1c57dafc17007bf9ba2f81673c5cc67230fe9066cf9663290f7d7dc46198a420dbb14e0390 WHIRLPOOL 8d4f213420019956d4d3fcbd48119f59d1c8b2cd3807599303e4f336e9b12f78f636b37944eb87c9cbff830eb073d64073ff1a4ba75cb1f727c32ae6e4db7c70
+EBUILD qtdbus-4.8.7.ebuild 855 SHA256 ff8b4a055acf76064de57f548244d772ded3526f92d2682406711fea2675c8ba SHA512 caa35f76257429a367447fb3d77d304a5beabfc5cc995b593621f52b713d92ea8dfc5859c108a24993fcf318438a8bc55ca8ecc0f735a6eb96ab17fe5a63138d WHIRLPOOL ccd8191fb8751744b799166c6c07aa216249eec3620d79fca3ceec2c8c524c0f5df97372778f8070ebcd373b2b3e9d7d08c44ae1f820ca54258a6d77a3736473
+EBUILD qtdbus-5.6.2.ebuild 625 SHA256 1d561f1578ff9feef4111cd81a6e160dd58cd496e54bd9fd6632d6332b86e50b SHA512 c67fb94e7d9a7a207c17fa1cbeb243d48bacb87cefa5c9f01f8594dfbb848660d42fd004ee9ad4f7cc8bfac3349ef48cc31ed3094d695db499122be675fe5879 WHIRLPOOL 7fe0bb9cd276489ad61a2d7257e51f33229a37eed2933c51102b280b6ad4813ef4aa2465db26dd42c5c67597ab8fa9d8320de40c60d1f433df2e3ee983a0dfab
+EBUILD qtdbus-5.7.1.ebuild 626 SHA256 eb5a60b23d5695ee3add922e7f4cfb77c75d33d7ed3913cb2e2f0907d0a26794 SHA512 73b433dc98af92d58dd0aec68dbfa73afe1830068790120fe0e809562ef41fa413145d0d917e07d7c8861bfc7f4ca34e7db0b3c6947f19a32b86f089d23134d7 WHIRLPOOL c172f8971990c8171a02677e516a3741794098dbc9c093e78d15e527cda179f72d8c3b44c6f0dce382b77edf07206f8914c8266dd283ee151c44d6304537b284
+EBUILD qtdbus-5.9.2.ebuild 631 SHA256 d1aecf65d62167ed072e96bc466e8f40df301aba0459c02060248677fe943496 SHA512 d70446d80b998541d703312c0dcb5db8957f8ca6e086f57754030745d1ea37b1fa69f277142fd6ee0c462976cc5c77b4d8e9573b5e2901ff041185869ec0b1c0 WHIRLPOOL 03e7c411df73b95f111ff2542bd20ce7c2028a7518bd17ca45dfc6c120ae9e8d40f09d08f262b6aadec303b46886207a89eed0329dc81d2d9e2c6bd5c3e5479b
+MISC ChangeLog 7164 SHA256 acba9684208c90be08ad51f6f871fdc0f433e3bf99c1a95a5de911d21fac7eac SHA512 80922a66ad1b2a81d114d498c91efea092cab1eb4271ac3edfdd5d9da7f7b6fff556c447a73b8d14f72beb80b49912899e5c68a7a5e0efe0304b97142a11bac0 WHIRLPOOL 3bd686494e5420f253297fb899b55db93dc2566c687de1ef53e04b3b8c5cc61e59051fd0d9b14a85196116d38d131a33e6be33880f5a46be005e0e2750dbb983
+MISC ChangeLog-2015 20866 SHA256 75fd4173e489ad3a6413d7bcc9d7d6eabcfe0949d38c6ee9bd32c9eea489e954 SHA512 9b843ce9dc3ad9acf61383be33cfa8ea76fcc3c34295a9a7cd848f298ecbb13a5429250ce5d13571ce795e4d4ec01243b8268c9338f3723747d39dabdb24c383 WHIRLPOOL 42e735ddd513f63b0577c0ddd5fe3ca372facffcb44ef524f2499733420880d5ab8bfb9e1ebfdc5eecdb395e7c4299848ff3e6277726d3611f50ce0bc2113ebc
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/qtdbus/files/qtdbus-4.7-qdbusintegrator-no-const.patch b/dev-qt/qtdbus/files/qtdbus-4.7-qdbusintegrator-no-const.patch
new file mode 100644
index 000000000000..086eb47a071c
--- /dev/null
+++ b/dev-qt/qtdbus/files/qtdbus-4.7-qdbusintegrator-no-const.patch
@@ -0,0 +1,11 @@
+--- src/dbus/qdbusintegrator.cpp.orig 2011-03-12 02:11:32.313467991 +0100
++++ src/dbus/qdbusintegrator.cpp 2011-03-12 02:11:03.795809176 +0100
+@@ -71,7 +71,7 @@
+ static bool isDebugging;
+ #define qDBusDebug if (!::isDebugging); else qDebug
+
+-Q_GLOBAL_STATIC_WITH_ARGS(const QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
++Q_GLOBAL_STATIC_WITH_ARGS(QString, orgFreedesktopDBusString, (QLatin1String(DBUS_SERVICE_DBUS)))
+
+ static inline QString dbusServiceString()
+ { return *orgFreedesktopDBusString(); }
diff --git a/dev-qt/qtdbus/files/qtdbus-4.8.4-qdbusconnection-silence-warning.patch b/dev-qt/qtdbus/files/qtdbus-4.8.4-qdbusconnection-silence-warning.patch
new file mode 100644
index 000000000000..dd3a5a02298e
--- /dev/null
+++ b/dev-qt/qtdbus/files/qtdbus-4.8.4-qdbusconnection-silence-warning.patch
@@ -0,0 +1,14 @@
+diff -up qt-everywhere-opensource-src-4.8.3/src/dbus/qdbusconnection.cpp.qdbusconnection_no_debug.patch qt-everywhere-opensource-src-4.8.3/src/dbus/qdbusconnection.cpp
+--- qt-everywhere-opensource-src-4.8.3/src/dbus/qdbusconnection.cpp.qdbusconnection_no_debug.patch 2012-09-06 02:33:44.000000000 -0500
++++ qt-everywhere-opensource-src-4.8.3/src/dbus/qdbusconnection.cpp 2012-09-11 08:55:29.854026815 -0500
+@@ -1109,8 +1109,10 @@ public:
+ // make sure this connection is running on the main thread
+ QCoreApplication *instance = QCoreApplication::instance();
+ if (!instance) {
++#ifndef QT_NO_DEBUG
+ qWarning("QDBusConnection: %s D-Bus connection created before QCoreApplication. Application may misbehave.",
+ type == SessionBus ? "session" : type == SystemBus ? "system" : "generic");
++#endif
+ } else if (QDBusConnectionPrivate::d(*this)) {
+ QDBusConnectionPrivate::d(*this)->moveToThread(instance->thread());
+ }
diff --git a/dev-qt/qtdbus/metadata.xml b/dev-qt/qtdbus/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/qtdbus/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtdbus/qtdbus-4.8.6-r1.ebuild b/dev-qt/qtdbus/qtdbus-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..9118a50333cc
--- /dev/null
+++ b/dev-qt/qtdbus/qtdbus-4.8.6-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The DBus module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ sys-apps/dbus[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.7-qdbusintegrator-no-const.patch"
+ "${FILESDIR}/${PN}-4.8.4-qdbusconnection-silence-warning.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/dbus
+ tools/qdbus/qdbus
+ tools/qdbus/qdbusxml2cpp
+ tools/qdbus/qdbuscpp2xml"
+
+QCONFIG_ADD="dbus dbus-linked"
+QCONFIG_DEFINE="QT_DBUS"
+
+multilib_src_configure() {
+ local myconf=(
+ -dbus-linked
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdbus/qtdbus-4.8.7.ebuild b/dev-qt/qtdbus/qtdbus-4.8.7.ebuild
new file mode 100644
index 000000000000..1272e6a85ac6
--- /dev/null
+++ b/dev-qt/qtdbus/qtdbus-4.8.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The DBus module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ sys-apps/dbus[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.7-qdbusintegrator-no-const.patch"
+ "${FILESDIR}/${PN}-4.8.4-qdbusconnection-silence-warning.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/dbus
+ tools/qdbus/qdbus
+ tools/qdbus/qdbusxml2cpp
+ tools/qdbus/qdbuscpp2xml"
+
+QCONFIG_ADD="dbus dbus-linked"
+QCONFIG_DEFINE="QT_DBUS"
+
+multilib_src_configure() {
+ local myconf=(
+ -dbus-linked
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdbus/qtdbus-5.6.2.ebuild b/dev-qt/qtdbus/qtdbus-5.6.2.ebuild
new file mode 100644
index 000000000000..cf4d351f398e
--- /dev/null
+++ b/dev-qt/qtdbus/qtdbus-5.6.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for inter-process communication over the D-Bus protocol"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-apps/dbus-1.4.20
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/dbus
+ src/tools/qdbusxml2cpp
+ src/tools/qdbuscpp2xml
+)
+
+QT5_GENTOO_CONFIG=(
+ :dbus
+ :dbus-linked:
+)
+
+src_configure() {
+ local myconf=(
+ -dbus-linked
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtdbus/qtdbus-5.7.1.ebuild b/dev-qt/qtdbus/qtdbus-5.7.1.ebuild
new file mode 100644
index 000000000000..e2958fec929f
--- /dev/null
+++ b/dev-qt/qtdbus/qtdbus-5.7.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for inter-process communication over the D-Bus protocol"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-apps/dbus-1.4.20
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/dbus
+ src/tools/qdbusxml2cpp
+ src/tools/qdbuscpp2xml
+)
+
+QT5_GENTOO_CONFIG=(
+ :dbus
+ :dbus-linked:
+)
+
+src_configure() {
+ local myconf=(
+ -dbus-linked
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtdbus/qtdbus-5.9.2.ebuild b/dev-qt/qtdbus/qtdbus-5.9.2.ebuild
new file mode 100644
index 000000000000..d7d8945c5257
--- /dev/null
+++ b/dev-qt/qtdbus/qtdbus-5.9.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for inter-process communication over the D-Bus protocol"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-apps/dbus-1.4.20
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/dbus
+ src/tools/qdbusxml2cpp
+ src/tools/qdbuscpp2xml
+)
+
+QT5_GENTOO_CONFIG=(
+ :dbus
+ :dbus-linked:
+)
+
+src_configure() {
+ local myconf=(
+ -dbus-linked
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtdeclarative/Manifest b/dev-qt/qtdeclarative/Manifest
new file mode 100644
index 000000000000..49f62e1b3d79
--- /dev/null
+++ b/dev-qt/qtdeclarative/Manifest
@@ -0,0 +1,15 @@
+AUX qtdeclarative-5.4.2-disable-jit.patch 547 SHA256 26856b8df7b43aba27ca38ac45c060d4b8e1046d9299fae6b64f1d013d0afe77 SHA512 cd410c0e731a1e096bd8a77b7ecc769a5e3503f7a2f12668f2f4f1c3099973eaa2060d97708962e422c580ee76ee3db3712834cd994b7e1aeeb57c0a4c3b0b3d WHIRLPOOL e09187b15a79e0f4ce5136eb3aec6ed425b6082b6b0331a0daffefc0ac4a6da4d5e7e7d28ddfcf8fe26ab485ce80ebd5550fed114d473a57b0edcd87e6f996d1
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtdeclarative-opensource-src-5.6.2.tar.xz 18813016 SHA256 0086a986bc36b398ba518c404d08cdff0a0d7978c30aa3fa2ab73d71654209da SHA512 30870f6c40b8c8ecd3b960ece8175f98a42aebc3f4fcada06b4dcc0f844c4acfd955d550d7014fb441f65d7010ced8a6ef394ec3887dc543306b5ef15570c88d WHIRLPOOL ef4ae3f6cebd44528917bd571b1eaa55d07b96f3b005e25eb201ef52477a6dff742fe85b30f491793ea8256489349780adb79a93ccb7d64e1787a7d5d388041e
+DIST qtdeclarative-opensource-src-5.7.1.tar.xz 18976920 SHA256 fd13dd3059d20694a857ed30ee56a2ade908c0cb93246f9804a65f7a2d775d56 SHA512 8c56099a13103f4831a7ceb29223722c1f8efb0e9a87a4c1fdf0b55a3c5b4cedfdac6e06960ea5d03df4184b3d1c6bc3f21bdcdbd2400591143930aa8e32a2ab WHIRLPOOL 36fdf7de44aaef1b5f6a6b7719705422cc4593da1a79e156a797bc86389f96b0bd5658b00ebc7177ecb2e5e17c3beead4205ccb7fb0d0eb2ec8679c5a58ae6fa
+DIST qtdeclarative-opensource-src-5.9.2.tar.xz 21435732 SHA256 0d40fd4de9c73b9173d8308c0dc37952bf5c747d87ff221962dd2f848d820b08 SHA512 49b8b50932b73ea39da14ac3425044193dfd64eabceadba379aa01cf2fc141177f9870c387caf1cf93ce09e8b197828a54b8d9fcefc4d9cdf400a6c6dd9a9e90 WHIRLPOOL 64b9f7d8c1c7930c3695d7cf24c2f6d61556fd9fb69347e04b5c47c8542fbefce385a436e7c68b0a3ee355c301ea8f5c9316256fbc0ac540a4c2e46acdd9012c
+EBUILD qtdeclarative-4.8.6-r1.ebuild 1543 SHA256 f2ae5c7ceb02b32aa6f6a30790a87251785ebc247a4ced5d21c172757ab2fbef SHA512 707580b8a99a2ccf2b064b7d4c5f450a95a746be92d7dafbf02a90c1d412b46dc850f817963784ae0f10f75cdf4e8257b3d943459ecdaf19039cf892c70b8742 WHIRLPOOL 23381efe1d73e3f67ba6817a9fb358c59ef7d25ed76b69be2d0af271d57ed7e497197dc4f9ad19e06e6715feb8c29eb0b5f855c212acf129b5e3975722965443
+EBUILD qtdeclarative-4.8.7.ebuild 1492 SHA256 db4d97fbc8f76e60f150836757805372fe2f98497066d41d32fb164fb78c72d7 SHA512 e711fdd4d476b3ded4b19a8a396504b94599eb957553faecbd9c168914118b58b22c2ba43cb23336b53c3c2a41e55f64c3e60908cc24f6f01c7e02c15c384ace WHIRLPOOL a6528d0fb82d5f21404d51d87f6b766208979ba3041b003c91c11007ce44c4babc80725cd18db6a443edab8b4781ca631b8a2f30645177c79a1bdd42e482fcb4
+EBUILD qtdeclarative-5.6.2.ebuild 1254 SHA256 7ee2cfcc66e5e8beb9d753e53fb69489227208c69e0e3d413a547f45648ecdcf SHA512 ee2ad45871d0223e03f6043a3183c8224cc255b5f33f4c6eb6501e23c45b84b53404b1a0433a7fcad381e1074e432da762947436cb5d528d9d97c2cf4990403b WHIRLPOOL ad81c9a35e4da74a3607fce7eb173845215e3c28efdf4fd278e22dc2abb81d68dd4fa911145e59d00e0f27ad262d959bf212f31760a4ce8f00ecb86bb24d1927
+EBUILD qtdeclarative-5.7.1-r1.ebuild 1603 SHA256 b3d896a4d1ae7bb76ac7ea457bc7c58830f4005984da3150a7eff57c6e06e7cf SHA512 a6bbecdf2e505a3ce906f6a84881747655ad44b122439ad7e95a9a61537f9a4360a271b3a8d74288aa498ddf3174b5e7f842f1e64d0c9eb29f9042896cd3add2 WHIRLPOOL a1b5f6cac8bff04681e831df1ce5e09ea0a36801fb31183f2b99edc2e96af520dd4d7e453fe753b68a7dbfd52f1d351c1d5ebc9562186d1773aff63ac7f9dba5
+EBUILD qtdeclarative-5.7.1.ebuild 1327 SHA256 7698e5beb203cd86095cac30ce6db015819adde0bf6eef6ae143de2d847e5184 SHA512 64f80c5f910c30dd09967e2b3dabfb21a4d7b4fb109bdc6512ded41ab6922f3a4034bb4567a7efd065ddd28eb2ca8a9763c283e82829d26e3e44600aa9880942 WHIRLPOOL b3ac40bcbb85375f2ca4fccb4781360eac694d86884876eb20dce946b330001e4a0381e528b2172761ceca9b711255fa3ebc8270fe983ffc5ddfd70d5f2f7987
+EBUILD qtdeclarative-5.9.2.ebuild 1313 SHA256 7186360234d5e3dee430fca782e09af3cc70de7b2fb813d0cc09257a65c4fa2b SHA512 c50d3a2fb7888b99e68d9d1ea379e923d3162a5c736db0bfc9f5c836f89f9f6d0da00859b8ac41a09f1499c339d6e3ed5fa7ca63d282633dc3d167bdf17c4190 WHIRLPOOL 9b01ccfc9af77cb5441fa23015d3e821a05b4cf29322699de142c5b088f431611a61bf1a1ff92eb483a2c6b02a23726770619caeeea0063faa23e50cda4025a2
+MISC ChangeLog 8724 SHA256 27f43aff241f22dff7849c15195398ac8a39176a5410e22751407e1fbb4c82a5 SHA512 6b10be21f2aae4a7262a56a0acf86a807794ca7b03db1e1be00b90124211740f85ec0455ebd85445c252fe50342a5fc6c4aedb41935ef976ee87204c1b8ab7a1 WHIRLPOOL e0bed2d44e927503d0910d8607888e4dc3dabf9dd4bb1f067a1a7a7e231aaefcb3de275ae118f35007e545ae5bc15ebf03416c7b22feb04fccbca48a0b83e347
+MISC ChangeLog-2015 13240 SHA256 1888d4bc02fb6ffbfb4a2163e1f851a2021d236e742df381ffe3185b7b25673a SHA512 841eb8a2e70adcbcd1a76ccbc835d64f9da3f4d005159d8d75d7d0b0749aa3ccfbccff0e1fa71c53eed9e0e91f4fb01272a6c46631e8b2767994e471e196e31a WHIRLPOOL 6fffa13c28dec8d0c64df1a6a86d5e6ee51bc304c119ef285f15dee446663f967c083b6e68a60eb45a56dccaff428acdee53969f730c666e7750f241c875fee2
+MISC metadata.xml 1154 SHA256 16145b1b0f3dafbf2c353173242b92d06325f2df5ff4646d280180fad9491a23 SHA512 fe0fdc462c9337726df24de8b8a13660da81a2cbd7cd3d122fadb3a6926e2cd6213d8eedc12185bf4dd1012ab1062ac59fa3cad3055b32e71012072aa31ef415 WHIRLPOOL eae81fd63d874280dc7aeb5fdb12a68196157abfe6c03177997f2e40cc2f809b55295987a4786ea1dc4037e60c18d04f4d45e6af1b2d9f4a004cbe073c9612df
diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch
new file mode 100644
index 000000000000..7799ef71b7e4
--- /dev/null
+++ b/dev-qt/qtdeclarative/files/qtdeclarative-5.4.2-disable-jit.patch
@@ -0,0 +1,18 @@
+diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h
+index 4b08194..224ddb1 100644
+--- a/src/qml/jsruntime/qv4global_p.h
++++ b/src/qml/jsruntime/qv4global_p.h
+@@ -96,8 +96,13 @@ inline double trunc(double d) { return d > 0 ? floor(d) : ceil(d); }
+ # undef V4_ENABLE_JIT
+ #endif
+ #endif
+
++// Gentoo note: disable the JIT due to USE="-jit"
++#ifdef V4_ENABLE_JIT
++#undef V4_ENABLE_JIT
++#endif
++
+ // Do certain things depending on whether the JIT is enabled or disabled
+
+ #ifdef V4_ENABLE_JIT
+ #define ENABLE_YARR_JIT 1
diff --git a/dev-qt/qtdeclarative/metadata.xml b/dev-qt/qtdeclarative/metadata.xml
new file mode 100644
index 000000000000..9afadffbfb11
--- /dev/null
+++ b/dev-qt/qtdeclarative/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="localstorage">Build the LocalStorage import for QtQuick (requires QtSql)</flag>
+ <flag name="qt3support">Enable the Qt3Support libraries for Qt4. Note that
+ this does not mean you can compile pure Qt3 programs with Qt4.</flag>
+ <flag name="webkit">Build the WebView QML component</flag>
+ <flag name="widgets">Enable QtWidgets support</flag>
+ <flag name="xml">Build the XmlListModel import for QtQuick (requires QtXmlPatterns)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtdeclarative/qtdeclarative-4.8.6-r1.ebuild b/dev-qt/qtdeclarative/qtdeclarative-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..fcc4f19abff3
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-4.8.6-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The Declarative module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility qt3support webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtopengl-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsvg-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ qt3support? ( ~dev-qt/qt3support-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/declarative
+ src/imports
+ src/plugins/qmltooling
+ tools/qml
+ tools/qmlplugindump"
+
+QCONFIG_ADD="declarative"
+QCONFIG_DEFINE="QT_DECLARATIVE"
+
+pkg_setup() {
+ use webkit && QT4_TARGET_DIRECTORIES+="
+ src/3rdparty/webkit/Source/WebKit/qt/declarative"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -declarative -no-gtkstyle
+ $(qt_use accessibility)
+ $(qt_use qt3support)
+ $(qt_use webkit)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdeclarative/qtdeclarative-4.8.7.ebuild b/dev-qt/qtdeclarative/qtdeclarative-4.8.7.ebuild
new file mode 100644
index 000000000000..98bdbce906d8
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-4.8.7.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The Declarative module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility qt3support webkit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtopengl-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsvg-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ qt3support? ( ~dev-qt/qt3support-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/declarative
+ src/imports
+ src/plugins/qmltooling
+ tools/qml
+ tools/qmlplugindump"
+
+QCONFIG_ADD="declarative"
+QCONFIG_DEFINE="QT_DECLARATIVE"
+
+pkg_setup() {
+ use webkit && QT4_TARGET_DIRECTORIES+="
+ src/3rdparty/webkit/Source/WebKit/qt/declarative"
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -declarative -no-gtkstyle
+ $(qt_use accessibility)
+ $(qt_use qt3support)
+ $(qt_use webkit)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.6.2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.6.2.ebuild
new file mode 100644
index 000000000000..7850c893d8bb
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-5.6.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="The QML and Quick modules for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="gles2 +jit localstorage +widgets xml"
+
+# qtgui[gles2=] is needed because of bug 504322
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qttest-${PV}
+ localstorage? ( ~dev-qt/qtsql-${PV} )
+ widgets? ( ~dev-qt/qtwidgets-${PV}[gles2=] )
+ xml? (
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtxmlpatterns-${PV}
+ )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+"
+
+src_prepare() {
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch")
+
+ use localstorage || sed -i -e '/localstorage/d' \
+ src/imports/imports.pro || die
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/qmltest/qmltest.pro \
+ tests/auto/auto.pro \
+ tools/tools.pro \
+ tools/qmlscene/qmlscene.pro \
+ tools/qml/qml.pro
+
+ qt_use_disable_mod xml xmlpatterns \
+ src/imports/imports.pro \
+ tests/auto/quick/quick.pro \
+ tests/auto/quick/examples/examples.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.7.1-r1.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.7.1-r1.ebuild
new file mode 100644
index 000000000000..fae6450312cd
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-5.7.1-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+inherit flag-o-matic python-any-r1 qt5-build
+
+DESCRIPTION="The QML and Quick modules for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="gles2 +jit localstorage +widgets xml"
+
+# qtgui[gles2=] is needed because of bug 504322
+COMMON_DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qttest-${PV}
+ localstorage? ( ~dev-qt/qtsql-${PV} )
+ widgets? ( ~dev-qt/qtwidgets-${PV}[gles2=] )
+ xml? (
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtxmlpatterns-${PV}
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ ${PYTHON_DEPS}
+"
+RDEPEND="${COMMON_DEPEND}
+ !<dev-qt/qtquickcontrols-5.7:5
+"
+
+src_prepare() {
+ # this is supposed to be handled by the build system (src/qml/qml.pro),
+ # fails because we override QMAKE_CXXFLAGS. bug 626070
+ if tc-is-gcc && [[ $(gcc-major-version) -ge 6 ]]; then
+ append-cxxflags -fno-delete-null-pointer-checks -fno-lifetime-dse
+ fi
+
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch")
+
+ use localstorage || sed -i -e '/localstorage/d' \
+ src/imports/imports.pro || die
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/qmltest/qmltest.pro \
+ tests/auto/auto.pro \
+ tools/tools.pro \
+ tools/qmlscene/qmlscene.pro \
+ tools/qml/qml.pro
+
+ qt_use_disable_mod xml xmlpatterns \
+ src/imports/imports.pro \
+ tests/auto/quick/quick.pro \
+ tests/auto/quick/examples/examples.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.7.1.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.7.1.ebuild
new file mode 100644
index 000000000000..054b0898f540
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-5.7.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="The QML and Quick modules for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="gles2 +jit localstorage +widgets xml"
+
+# qtgui[gles2=] is needed because of bug 504322
+COMMON_DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qttest-${PV}
+ localstorage? ( ~dev-qt/qtsql-${PV} )
+ widgets? ( ~dev-qt/qtwidgets-${PV}[gles2=] )
+ xml? (
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtxmlpatterns-${PV}
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ ${PYTHON_DEPS}
+"
+RDEPEND="${COMMON_DEPEND}
+ !<dev-qt/qtquickcontrols-5.7:5
+"
+
+src_prepare() {
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch")
+
+ use localstorage || sed -i -e '/localstorage/d' \
+ src/imports/imports.pro || die
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/qmltest/qmltest.pro \
+ tests/auto/auto.pro \
+ tools/tools.pro \
+ tools/qmlscene/qmlscene.pro \
+ tools/qml/qml.pro
+
+ qt_use_disable_mod xml xmlpatterns \
+ src/imports/imports.pro \
+ tests/auto/quick/quick.pro \
+ tests/auto/quick/examples/examples.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.9.2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.9.2.ebuild
new file mode 100644
index 000000000000..23c47148b11e
--- /dev/null
+++ b/dev-qt/qtdeclarative/qtdeclarative-5.9.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="The QML and Quick modules for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="gles2 +jit localstorage +widgets xml"
+
+# qtgui[gles2=] is needed because of bug 504322
+COMMON_DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qttest-${PV}
+ localstorage? ( ~dev-qt/qtsql-${PV} )
+ widgets? ( ~dev-qt/qtwidgets-${PV}[gles2=] )
+ xml? (
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtxmlpatterns-${PV}
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ ${PYTHON_DEPS}
+"
+RDEPEND="${COMMON_DEPEND}
+ !<dev-qt/qtquickcontrols-5.7:5
+"
+
+src_prepare() {
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.4.2-disable-jit.patch")
+
+ qt_use_disable_mod localstorage sql \
+ src/imports/imports.pro
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/qmltest/qmltest.pro \
+ tests/auto/auto.pro \
+ tools/tools.pro \
+ tools/qmlscene/qmlscene.pro \
+ tools/qml/qml.pro
+
+ qt_use_disable_mod xml xmlpatterns \
+ src/imports/imports.pro \
+ tests/auto/quick/quick.pro \
+ tests/auto/quick/examples/examples.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtdemo/Manifest b/dev-qt/qtdemo/Manifest
new file mode 100644
index 000000000000..6870e2cf4b3d
--- /dev/null
+++ b/dev-qt/qtdemo/Manifest
@@ -0,0 +1,8 @@
+AUX qtdemo-4.6-plugandpaint.patch 609 SHA256 e7c8fccf933dfee061b2960b5754e4835e7cb87c0e36166d3b11d69632732215 SHA512 e547e34d501bf29e0c5f17765f7355b330ab7533fef25ae97e55469d700ee929b36f885e5596b34e2406e63d7fb9fa200e509d4e517473597d3ceffccb7b94b2 WHIRLPOOL 4ea022a82d5580613fdf47b4eb3f0a174c7ce542e79df5b191403c6120195018f136bcd1c325a7718f810d847b40b14b511eb718e8902528fb5694177385ddff
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+EBUILD qtdemo-4.8.6-r1.ebuild 2545 SHA256 72810fe1fdfc2e3abed9e7734946520445244f3b67970da51651f235c4b9896f SHA512 e68f33d50aba1ffccc54faba7dfd4dea5c07a8770b8cf0e347a018c627376ce1b0040a84e91d3619820aa274d954a86cb30815eb4e6c782b3aae013dfa52da4f WHIRLPOOL 02881d8d6327ff806c018ef399ec3f3a411c118e0a8938788b48cd71693a5f9c9d54abd12612142c96a34ec863ac1e8e366a5d0aed9f92ebcc13a300d1f0692e
+EBUILD qtdemo-4.8.7.ebuild 2539 SHA256 90ee84e270e4c4f531dee42d84e8e2bccf627bccf1e9098e038547c07a183c45 SHA512 cd0c4c7a142189168a21a475d2333d4c95e5ef9e94777380a413d9dc289fbe0808d216307cca689653aaf95be4a4fdd3f5bc5dbdf4e1afc5fe08f7ef186bb2bb WHIRLPOOL c9df3f652fc70e8d6e2a525929af73f358bf3b2848d5c96d0485809a14eb8db8e5faad0833e219686b5da5591cb4bb63c8266a13067a721160577ebc1826169c
+MISC ChangeLog 3017 SHA256 f9f1a66f8102cc258956794e33a72a4bedbc6be6eb375ad7fc4757c0fc7abf64 SHA512 d347e82ad891783798c49c15ad99b90302c6d50b6321a23b45441a29de318a43e29452de28318694a2ae7578618b5cbab0a868b07b346e4cd0cbf597963fad08 WHIRLPOOL 5e49379cdb80c5960cb85c6e6f25036b8b2ee7d017f9f1b001ae4a54830400d671f1d6f3f2296d5c16c0d7792fccdd457242107c62c9ba86742ab735f30eee3b
+MISC ChangeLog-2015 15723 SHA256 12e6c8f97c928f18d0c6818b83c4648908a18db44c5e64eaccaf9550fea3c131 SHA512 ffbb2c4eccbe6661211bc64896bd4dc36c034f126818ee97337e1639a7b34e91f84c45930ca0751a95984f2a68747d5a10f049622eafc24f56f07d1feb3b5041 WHIRLPOOL 5611b1823523d224df0e941869ea174f34218d61918eb0f8cad2e4168f4dee6c7eec0f5d60dc97f3d41c8b01b99fe4249d661b808fab8a72c44ebeffa0f74a86
+MISC metadata.xml 961 SHA256 aafdebcf94609a8dfdbd031e754149ffc9cf5dde23b7e0d3c463307fb193a1b0 SHA512 f84f3400e4b556cc7eef2c1f21c3b443fd4e7eebe2c7733cb2bdede1d4ce5bc025c9a7bc8087ee731daa02a96c5cd4e96deb9e108962b4c731338db80891210e WHIRLPOOL 4331ee76ef7538f767ad383f0a7fe5d1cc405b8c202d4e679e0a71ed29c348aec407e2b7aab5ede02b47aa72f8a8d31fb27e3a85be7ee92198cacadab6e6580d
diff --git a/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch b/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch
new file mode 100644
index 000000000000..262996aa1068
--- /dev/null
+++ b/dev-qt/qtdemo/files/qtdemo-4.6-plugandpaint.patch
@@ -0,0 +1,13 @@
+diff --git a/examples/tools/plugandpaint/plugandpaint.pro b/examples/tools/plugandpaint/plugandpaint.pro
+index 9616eb8..e188bc1 100644
+--- a/examples/tools/plugandpaint/plugandpaint.pro
++++ b/examples/tools/plugandpaint/plugandpaint.pro
+@@ -10,7 +10,7 @@ SOURCES = main.cpp \
+ symbian {
+ LIBS = -lpnp_basictools.lib
+ } else {
+- LIBS = -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools
++ LIBS += -L$${QT_BUILD_TREE}/examples/tools/plugandpaint/plugins -lpnp_basictools
+ }
+
+ if(!debug_and_release|build_pass):CONFIG(debug, debug|release) {
diff --git a/dev-qt/qtdemo/metadata.xml b/dev-qt/qtdemo/metadata.xml
new file mode 100644
index 000000000000..288f9a8bd336
--- /dev/null
+++ b/dev-qt/qtdemo/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="dbus">Build QtDBus examples and demos</flag>
+ <flag name="declarative">Build QtDeclarative examples and demos</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="multimedia">Build QtMultimedia examples and demos</flag>
+ <flag name="opengl">Build QtOpenGL examples and demos</flag>
+ <flag name="phonon">Build Phonon examples and demos</flag>
+ <flag name="webkit">Build QtWebKit examples and demos</flag>
+ <flag name="xmlpatterns">Build QtXmlPatterns examples and demos</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-qt/qtdemo/qtdemo-4.8.6-r1.ebuild b/dev-qt/qtdemo/qtdemo-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..a49456b792d0
--- /dev/null
+++ b/dev-qt/qtdemo/qtdemo-4.8.6-r1.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="Demonstration module and examples for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="arm ppc ppc64"
+else
+ KEYWORDS="amd64 arm ppc ppc64 x86"
+fi
+
+IUSE="dbus declarative multimedia opengl phonon webkit xmlpatterns"
+
+DEPEND="
+ ~dev-qt/designer-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qthelp-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsvg-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qttest-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ dbus? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[aqua=,debug=,webkit?,${MULTILIB_USEDEP}] )
+ multimedia? ( ~dev-qt/qtmultimedia-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ opengl? ( ~dev-qt/qtopengl-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ phonon? ( media-libs/phonon[qt4] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ xmlpatterns? ( ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.6-plugandpaint.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ demos
+ examples"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # Array mapping USE flags to subdirs
+ local flags_subdirs_map=(
+ 'dbus'
+ 'declarative:declarative'
+ 'multimedia:spectrum'
+ 'opengl:boxes|glhypnotizer'
+ 'phonon:mediaplayer'
+ 'webkit:browser'
+ 'xmlpatterns'
+ )
+
+ # Disable unwanted examples/demos
+ for flag in "${flags_subdirs_map[@]}"; do
+ if ! use ${flag%:*}; then
+ einfo "Disabling ${flag%:*} examples"
+ sed -i -e "/SUBDIRS += ${flag%:*}/d" \
+ examples/examples.pro || die
+
+ if [[ ${flag} == *:* ]]; then
+ einfo "Disabling ${flag%:*} demos"
+ sed -i -re "/SUBDIRS \+= demos_(${flag#*:})/d" \
+ demos/demos.pro || die
+ fi
+ fi
+ done
+
+ # Remove bogus dependency on qt3support (bug 510042)
+ sed -i -e 's/contains(QT_CONFIG, qt3support)://' \
+ examples/graphicsview/graphicsview.pro || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use dbus)
+ $(qt_use declarative)
+ $(qt_use multimedia) -no-audio-backend
+ $(qt_use opengl)
+ -no-openvg
+ $(qt_native_use phonon) -no-phonon-backend
+ $(qt_use webkit)
+ $(qt_use xmlpatterns)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdemo/qtdemo-4.8.7.ebuild b/dev-qt/qtdemo/qtdemo-4.8.7.ebuild
new file mode 100644
index 000000000000..e8c4d393d6e1
--- /dev/null
+++ b/dev-qt/qtdemo/qtdemo-4.8.7.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="Demonstration module and examples for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ppc ppc64 x86"
+fi
+
+IUSE="dbus declarative multimedia opengl phonon webkit xmlpatterns"
+
+DEPEND="
+ ~dev-qt/designer-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qthelp-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsvg-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qttest-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ dbus? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[aqua=,debug=,webkit?,${MULTILIB_USEDEP}] )
+ multimedia? ( ~dev-qt/qtmultimedia-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ opengl? ( ~dev-qt/qtopengl-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ phonon? ( >=media-libs/phonon-4.8.3-r1[qt4,${MULTILIB_USEDEP}] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+ xmlpatterns? ( ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.6-plugandpaint.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ demos
+ examples"
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # Array mapping USE flags to subdirs
+ local flags_subdirs_map=(
+ 'dbus'
+ 'declarative:declarative'
+ 'multimedia:spectrum'
+ 'opengl:boxes|glhypnotizer'
+ 'phonon:mediaplayer'
+ 'webkit:browser'
+ 'xmlpatterns'
+ )
+
+ # Disable unwanted examples/demos
+ for flag in "${flags_subdirs_map[@]}"; do
+ if ! use ${flag%:*}; then
+ einfo "Disabling ${flag%:*} examples"
+ sed -i -e "/SUBDIRS += ${flag%:*}/d" \
+ examples/examples.pro || die
+
+ if [[ ${flag} == *:* ]]; then
+ einfo "Disabling ${flag%:*} demos"
+ sed -i -re "/SUBDIRS \+= demos_(${flag#*:})/d" \
+ demos/demos.pro || die
+ fi
+ fi
+ done
+
+ # Remove bogus dependency on qt3support (bug 510042)
+ sed -i -e 's/contains(QT_CONFIG, qt3support)://' \
+ examples/graphicsview/graphicsview.pro || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use dbus)
+ $(qt_use declarative)
+ $(qt_use multimedia) -no-audio-backend
+ $(qt_use opengl)
+ -no-openvg
+ $(qt_use phonon) -no-phonon-backend
+ $(qt_use webkit)
+ $(qt_use xmlpatterns)
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtdiag/Manifest b/dev-qt/qtdiag/Manifest
new file mode 100644
index 000000000000..b5c14690a984
--- /dev/null
+++ b/dev-qt/qtdiag/Manifest
@@ -0,0 +1,9 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qtdiag-5.6.2.ebuild 485 SHA256 883e8d2469a1fea6cb6454876ff5f03fe4b6a66ffb8b1b931a92d367ae16bc0c SHA512 42d93ab515ab238de2bced22e53d32087a878617bac64357748ca727d8f83d99c7a585bc8cd17633592762c676cf65bc86417250902725c768c62ca8bf67f283 WHIRLPOOL 939b8a04449f8fa230e1517a83ea783abc51cb521ad3d8bca609ad42f1efc067ed7818c036da046821abfac6126c3a4d100a0977eff7acbe5ecaed6b58cf5d0e
+EBUILD qtdiag-5.7.1.ebuild 485 SHA256 883e8d2469a1fea6cb6454876ff5f03fe4b6a66ffb8b1b931a92d367ae16bc0c SHA512 42d93ab515ab238de2bced22e53d32087a878617bac64357748ca727d8f83d99c7a585bc8cd17633592762c676cf65bc86417250902725c768c62ca8bf67f283 WHIRLPOOL 939b8a04449f8fa230e1517a83ea783abc51cb521ad3d8bca609ad42f1efc067ed7818c036da046821abfac6126c3a4d100a0977eff7acbe5ecaed6b58cf5d0e
+EBUILD qtdiag-5.9.2.ebuild 716 SHA256 2bdb0b36b18985c9e4d99a28d4719b7a65f0c67dc9574965976bb263422161f6 SHA512 9cb162951d86e733622162630d6258458a7053f4ba7a3dd2fbd63feffb3e0a361091d45c10c0bf182c4aefcd7e17815f84908ca98b291c6331adf18902a9c74a WHIRLPOOL 3fd88dc5da624f55b488a0bfbaf5b75acf219ad608416a4e552f27c550473f6ffd7e615124d6e1ffe963ef8c8b4a86759f027c87ad829e2b816a21fdb589993e
+MISC ChangeLog 4333 SHA256 194b0ea654fac0ea0ec77ac93fca9c4615029e7c4480f3e1b64f273df8d6b3a0 SHA512 c96687c9038f4a28dc673fdab67ec0f3f1ce7340f917e8e04aafc0fef55d68bca39bbcfd92b7c82fd0a8f887335585e3ad1dc425ee1da4e668a3647aa6805204 WHIRLPOOL a4a896e515afb1c5aaf7849ef793636427bbb9481b1db018c1d292aa875ecb23cbd2d2a6658bd97b8c6b95d0901a8ad4d1962008b62a2f91ad6ffce34c9cd89a
+MISC ChangeLog-2015 1493 SHA256 bf9481c3451279c8202c0b55b21be254bc2371515bc7d1a7532908225f1f2a4f SHA512 9de4543852efa09fa2d05bc546e22f00210ec5319b0eece6072545cd97d92edd29a902c8e8cf4a7477d05988266e3df140aa3c1e82f12bbba2d82e26c0562c26 WHIRLPOOL 25ed1e5f3fc8e529f12d4286ba7908025de3d521727f6deef2d6789b374b16c78adcc0e481a7cebaa6eff09889a21621408671a3444ec618fd918d7a85f99881
+MISC metadata.xml 615 SHA256 f9508f422bfdbb9e13b912245b05453a2dcdf1c262db4dce2d903bc31082e612 SHA512 c80d22c8b91b519af2864a9fe55a027951f9f8c743767445bb315fd68ac2a6ea8302abac88ed854477659e911e0d7ecc24ff872da4198ab04aaf5e4d5a4e8587 WHIRLPOOL 12badb718cb323b256ef47d83a96447cc93815898f1a8fe6c4fd9518e128857206c86c77fa306f9f565695b21b04427d5dc68573164648e0f0683932df6dafb5
diff --git a/dev-qt/qtdiag/metadata.xml b/dev-qt/qtdiag/metadata.xml
new file mode 100644
index 000000000000..ca160995c703
--- /dev/null
+++ b/dev-qt/qtdiag/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="network">Report network information</flag>
+ <flag name="widgets">Report widget style information</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtdiag/qtdiag-5.6.2.ebuild b/dev-qt/qtdiag/qtdiag-5.6.2.ebuild
new file mode 100644
index 000000000000..b1d4835c3258
--- /dev/null
+++ b/dev-qt/qtdiag/qtdiag-5.6.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for reporting diagnostic information about Qt and its environment"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="+ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl=]
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtdiag
+)
diff --git a/dev-qt/qtdiag/qtdiag-5.7.1.ebuild b/dev-qt/qtdiag/qtdiag-5.7.1.ebuild
new file mode 100644
index 000000000000..b1d4835c3258
--- /dev/null
+++ b/dev-qt/qtdiag/qtdiag-5.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for reporting diagnostic information about Qt and its environment"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="+ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl=]
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtdiag
+)
diff --git a/dev-qt/qtdiag/qtdiag-5.9.2.ebuild b/dev-qt/qtdiag/qtdiag-5.9.2.ebuild
new file mode 100644
index 000000000000..18a8d907b609
--- /dev/null
+++ b/dev-qt/qtdiag/qtdiag-5.9.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Tool for reporting diagnostic information about Qt and its environment"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="+network +widgets"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ network? ( ~dev-qt/qtnetwork-${PV}[ssl] )
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtdiag
+)
+
+src_prepare() {
+ qt_use_disable_mod network network \
+ src/qtdiag/qtdiag.pro
+
+ qt_use_disable_mod widgets widgets \
+ src/qtdiag/qtdiag.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtgraphicaleffects/Manifest b/dev-qt/qtgraphicaleffects/Manifest
new file mode 100644
index 000000000000..0e2563219ad2
--- /dev/null
+++ b/dev-qt/qtgraphicaleffects/Manifest
@@ -0,0 +1,9 @@
+DIST qtgraphicaleffects-opensource-src-5.6.2.tar.xz 14751100 SHA256 1e9f0fac2c72a812d396db74b2d9d12f513d2ec9135d5982ca85aee7f00be75e SHA512 2d2e9e9c4895bed92d3751038371fe653f40878388956585d058e5a87a32f88a4a41f8cc696d11a661cc845c3224b6f1ffa93adabc5a3d8758acc7297cf09e96 WHIRLPOOL 5056c59c3459fae131e73a545be61544690b847fa6804da6b6885c0bf9dcd564c8bfd696a0dddcb3f6cf4f433123834444f4c88d43a3f6d732874e8ad3fd988a
+DIST qtgraphicaleffects-opensource-src-5.7.1.tar.xz 14486948 SHA256 2c68fabe599fa2f318562dc22003df6797e91d00761dbf1f337cdc7fbacd4dc8 SHA512 2eb5fa078be65fbf1b57aca7106cd77c840aea3f13671445552ea4a5e0c6ff1625e30f58ca4919ea6dd76229931a307a77f172b604a55fc115569c4e446b5a3d WHIRLPOOL 33d2579a11da46a6564f6859f36681aead50ec7b4515f73834076e9c830126025de82f12942854272006de99bd3a5ab57528e363ed5b3ee7d01dc81c39d7bb5c
+DIST qtgraphicaleffects-opensource-src-5.9.2.tar.xz 14480256 SHA256 14594e7eb4b704dd69bf336828306fe8e6537c321d49ee0b701b3b1cdd8bfb76 SHA512 66464c26c9cc78763fda18898cd9c424bc4c0a5cbffc83d68d388e53327aeb77ae0e3c2c4cea947c3b6b7ec5af7bf5124492fc9642ff3c4ba75b06b9fa3883a4 WHIRLPOOL 065c257cbf7ff22735b365bf53d102bf6437a48aeb3301d9af57dd8ba5e1d9b8bc3051b51b53775c55272d171e6f0ea44f8bcfde1a347245f5ccccfec9653615
+EBUILD qtgraphicaleffects-5.6.2.ebuild 439 SHA256 624c60311260b04b5728ef55d891fc5573ef0928c2b845f0acff0959af2a88c9 SHA512 ce6b7cb0d8e78e4cef6a9f96587550337dabcfeb0ce2aacba1528307ff5e8202f8aa43effe678de72aabc3f89f77981e53904d2befb5aea67f7c351cd2fdc2a9 WHIRLPOOL bdeabb531438c1fbdb3eab7b93aa9f50f1237ea0dc30d6241da0bd9e7c6047915fadb5daa6a53daef7b5d2e1a2e507edf546c71d8fd01b7e1ec054c1eec74d8d
+EBUILD qtgraphicaleffects-5.7.1.ebuild 446 SHA256 66bb9886e85bcf46e70f1dbc0279730f5c9accee86b03e0fc8d2ea791b70c750 SHA512 30184a13d86002cf18b3e9d5929021210134de9e08aee6e5a7c204ddb8a999fb5dfc936871f2d6720e69c19c03794a76678f6a49a80cedf4b520e4a2bdb7d210 WHIRLPOOL e6792449dab50f0b1415badc092f249412349720108d88309482548260488dd6f7b63695e39e89721a24dbf58874fc37b3dbec838d94fe6b9c94da9885422539
+EBUILD qtgraphicaleffects-5.9.2.ebuild 451 SHA256 af60ad27be31eb1c050ca9928db5d9e0ffb8a3ebf9a4f29008f9dc55969ca628 SHA512 edeaecf449d131818ae4b2a82cb6a0a8824d5562b32ccd13e4eae739a97e6627d1267b1543fade38dc8e5c5da8227c3c58d8159e0d7b4337873731e1c46ff470 WHIRLPOOL f8f6185267b1cd894b12aaa556a0b4b8f5dfb466925272c7be0512ddbfa283dfcc18032634344987b06acb4da62e33df15415e69696981fabc6f4f3a7e5ae31f
+MISC ChangeLog 6376 SHA256 3ea562495d42206e2774f4797316c89d9e8a43c2dc64e66ff9861b0c1c855de7 SHA512 515e2cbfbdf6cf1172173183dd15954b1732333bc61879349b3aab91aa8cc63acc7eebfc5bc01343b743f1a89743eed75ed1498a6b490c62d15dd27ee9e3ccb5 WHIRLPOOL 9965104400bf389dfc948952239c9b4707f20c6d46612d28ea76eae6643e5856bb5c9ad0770e508235101bedb30234aab3d861f15430574925722b1604af8651
+MISC ChangeLog-2015 1743 SHA256 4a1e8019454bd305c93ea5956b6744c69ee7609dc22d306aa6c19e8399d768a1 SHA512 b874d6656386ae006f4b5e1a1d0e736de762da662837c1b988708c93ecf623ed1c593d18e076692e4a34df044da4967081872d4258c7c956c59a528f7153d2ea WHIRLPOOL 79c7c225292618dd4c4ba4077a5a4f5313b06ef01fa9652409011887b130304cb89f2fdf4ee0170e337801188cc96d61f5eeec3cb726da97d02591fb0d015cc6
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtgraphicaleffects/metadata.xml b/dev-qt/qtgraphicaleffects/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtgraphicaleffects/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.6.2.ebuild b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.6.2.ebuild
new file mode 100644
index 000000000000..c871d4ef8656
--- /dev/null
+++ b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.6.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Set of QML types for adding visual effects to user interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ~ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.7.1.ebuild b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.7.1.ebuild
new file mode 100644
index 000000000000..916da510e991
--- /dev/null
+++ b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.7.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Set of QML types for adding visual effects to user interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.9.2.ebuild b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.9.2.ebuild
new file mode 100644
index 000000000000..d98f845ccc99
--- /dev/null
+++ b/dev-qt/qtgraphicaleffects/qtgraphicaleffects-5.9.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Set of QML types for adding visual effects to user interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-qt/qtgui/Manifest b/dev-qt/qtgui/Manifest
new file mode 100644
index 000000000000..9314af205ccf
--- /dev/null
+++ b/dev-qt/qtgui/Manifest
@@ -0,0 +1,24 @@
+AUX qtgui-4.7.3-cups.patch 3297 SHA256 3ccfefb432015e4a4ea967b030c51b10dcdfb1f63445557908ddae5e75012d33 SHA512 4a8f828c79bde81ab1e39c9eaba4ef553582d85b62d6d182dda02820c4c8e046de6a25cc77d228955ed37fbc5b55f697a0a464af0bb3e171849851639e9ef4ee WHIRLPOOL 41d82843f91533a5cbb0c9945c9013d9c8f07be3f06fef1b52cf8d18483d9cdfd24fe1d53c18a2f1eebd7a504f1665f1859616ae460d6471dc1599cea63a7bda
+AUX qtgui-4.8.5-CVE-2015-0295.patch 1619 SHA256 07bbb715bcb6d0a75f9b77c95b536ac8c8b8a3c3fcbe59470a19e56f0a193424 SHA512 42fca5fade432dabe987dced28147aa46104bb89fd8e05b365ce2f7178e8788f7fbbcd05b12eebed2b63c7ce694a125150d5598f9d1dedf1531376a492864ebc WHIRLPOOL d2c56391b598bfc93e7f01f63a7e24246acc0adfb79f1bcbfeb7f82628be7ce1753376c0c43c8ecd73e37569eced4286834406c2bd65dc9db621c2b70158b197
+AUX qtgui-4.8.5-cleanlooks-floating-point-exception.patch 1699 SHA256 739e0eb48e1797c7b2b67705378d1a1abe993b0930b1c1ca4092bb49165a73f5 SHA512 e404e0f6203bfe53859fb3f3043f11103e5fa4c99b16c5c1cd5310e61c2cf15d3ae1ae5425013e686eaaf5991bfe6db32701155afbcd26691fe88d82813e7b21 WHIRLPOOL 2843c7b3cd7c3d586044455545211f289d71fe66b556ac3189cf67356ac43b761f173e91093c422f24397d31d6725e6aef3c43c7cb3a4076312f6844d4377081
+AUX qtgui-4.8.5-disable-gtk-theme-check.patch 1166 SHA256 9c0f263d4ebfefa1ee892badaed5a3640449863f0113884c9e1b19ba9ec5f324 SHA512 c0f8b0c5bfb83552edc92af94669b15c85171aef72418dfa37a237f34b49e3999c939afed8b6c90391104c9ea305152ea85b0b0ad0e2400f5c64d6301a2c8d14 WHIRLPOOL 0fb982a19e7a0acc5110aea534f8bab3509aaabe8a74ffa58f6b2d8f35a0eceb4ec9224d2acdcf03fc5291f065c89c860d10a6371c3022b7740f7416b9c5befa
+AUX qtgui-4.8.5-dont-crash-on-broken-GIF-images.patch 1440 SHA256 f76ec92367e32cbff23b7fd5064ca7da4fa1146f458630b8897862072cbca554 SHA512 ce1a06dbb52f200b21621a4b7febbd2938d9fb2fa9117c7e1fd2e24283784d645b36bb79ebf411f07ecff774f8c4cde1fa5d27956e4f95f28e0181e5953817b3 WHIRLPOOL a4ee9986ab5df6a6c85282b7367afb2f1708b1a1f8b52e940fe09669bf2e9c6db0fd2cb1fe0b98df9a95a22ad2a6f35f7901d1521ea7acb798327716f53a3817
+AUX qtgui-4.8.5-qclipboard-delay.patch 1135 SHA256 7119cdc3450e1e36e01ce3273c5131b89c6e4a03f08652f5fa4eb0919d3b4bd0 SHA512 00c901fc9b9bd5b8ce45e8bb4dd4eda8832df7eda104ae1614d7cdac681d23f0daad543d0480f1d9366e2644833db680e0526660472a6cf1a907b803acf76517 WHIRLPOOL a45f6cfda0fd6f137c091eb82039900ac6f39d2b277ab9125b74e0828e2bb809561f1ef11328af1c5c1c20f5ca06e39e66881219c6101b1134126ca482d2aac9
+AUX qtgui-4.8.6-CVE-2015-1858.patch 2849 SHA256 bf7b77a1b311d2b0f647c4efb72cf42edb66f3085750784388fc7ffaf6a73fb0 SHA512 b7be8cf6bc9706df4f491fb5134a76ade03e1fd1d127d5d9bf228a787ee0f32496da04c937a1d44adcb698eadfe969f0026d626e9c5d9ec623e24541184b8246 WHIRLPOOL 01da12595a31eb323d5c96d85b8d3315a17929f916661eda209f5e2d13b9f7c187423d2620fedac33856ca132a5ac66d22ffb52bc437490ebe55c6d8a4366cb1
+AUX qtgui-4.8.6-CVE-2015-1860.patch 1009 SHA256 4afd0b1ef272774dfa845c2dc1340ce7d468f159646e92d6669e9d8f38f14171 SHA512 e2da2a04ab4d1180f855571aa39356ed74d173e95e7c0561021709256c7cfc85d2b99fd485d724357a2947379de52fad4c9ac7d52c61dd04373b00494de58e15 WHIRLPOOL 821a7552963412cba0294bbe3a7c3d7604c09f466d3cb9b22c7eb10a359359fa32748ad5ae45f86972de7edb1cb676197e082bb715e08c9c0391bbc6ec8f78f0
+AUX qtgui-5.7.1-qclipboard.patch 1791 SHA256 328342cbeb29fa245054765f9e9c51cbf51b0dccba3c9f6330bdc202ac55f008 SHA512 c765e7f1cf2e10b4fa90b2c4e3a4a39c9001996d4837eb86c1d298531dd30fc1f6a215addfd1bec88526451d7b2ff3ba8a53a330776c94851e79b1964336759c WHIRLPOOL 7b977885bc5fcfe2ba0b1f66531a016fec839c2e9f622ac5f63583c4576229cbaa64ef9b97397362e4d1fedb722d8fa7c87363cba533e523b3ef91058c0ba54b
+AUX qtgui-5.7.1-x32.patch 1161 SHA256 2d15bef6ec2aedb36a952778fb9266c74a269cc5cfcf4b982004c2ca8590d4e6 SHA512 61f6cc40c2897e17c0a71cb1d79bf8e6c69cbacf6409ae0d96f485584bd6a930484ecff709c208ca78335418e022c68151d096505f5db2179cb6c4c8b065c116 WHIRLPOOL 12e09f5ad61375ac58cb579b436ba194d109e7a567860ecd15e92ecf4efbae75a72e01b67264b77533444ba34421f44335812014497cf57c1e9570b0766c867a
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+DIST qtgui-systemtrayicon-plugin-system.patch 51377 SHA256 e8582ebb2a5db99bf85789585516459ace42fc2b57fc7d5ff6156a2819bda282 SHA512 0d74b61e23af2e8ef0619ee616c4b775761514f53ba79bcb25b32b7e55beab3575c0d279ba1b016498804023bb78f8cff61964ce56f80642f648406f7c303679 WHIRLPOOL 03cc247a2a0e3b77fc541fa0b47abb125c8f7b304037f2067488861f12fdab25d3b3b3a7cf90626c229aa85a2d43ae4319c0f838b6eeb5ecdfe838a365ed8a58
+EBUILD qtgui-4.8.6-r4.ebuild 6074 SHA256 b5e2b8e1b50bc04d6eb7fbae4ce01dab4da4834ecd59a4027da68b61eba07db1 SHA512 7d1784458f63e2a0f38b80745d62af185049771d3e19e5dc4cb432882dd9ed3252326feb866dd75adf2756ce704d5b977f7f5cd9ca8d408eca227611556cad0a WHIRLPOOL 8f46a3f53fc53863537971eed920516b77a93c3ff94d6840c745c6aae0f95c26503bfd5f2f924a8ef11b9eecea9954ffbb5aa6e0212bebe3f8a56a6018d9885a
+EBUILD qtgui-4.8.7.ebuild 5655 SHA256 64741789904b335973a3bfe8db7091d0f977f5146dc33f28a36cb0dff677d56b SHA512 8d642f38263bb2902a183f78142919226f9cf3cc8009f1c4166f7c194adee4b1db2b7ee6e212f97f16aa8696f046cbb5c1c4b4c17638e7311e57cff636327427 WHIRLPOOL d8e504e12a6c3a39e4ffad26836dedeb2c9172def488063f6098b1a06b2b685587f0856f9cb32231cc47a2e10004ed8218231f6f3248599e7dbbd942a8d33342
+EBUILD qtgui-5.6.2.ebuild 3698 SHA256 3da8026e05b1053832d8ae562ecdb133a4dc7eb2d2291152e10838c139ab92a7 SHA512 7e89c312327ec880b1e080cc4e5a983faeb789c7625cc7ae3f16204b7309eb4386aa21b8d5c8710edd057b9ea290a4d8642d1551ae9e297dc7fdef7997e43fdc WHIRLPOOL 671896eb07c8f549ef765e5d51850deef8db1ebb18239c43fec13285a9e4d40ad34ba4164ce63db079e1a1e179a6d8495390018f6ae5b05add6decb8ad4a48f0
+EBUILD qtgui-5.7.1-r1.ebuild 3792 SHA256 861ddc0cc5ce6c32f3e22c116caed60d9844062d1709af38eb3f4b89320afcf5 SHA512 f8d57932f30b17ea72cdebe7aa268e022df15a29bc3c3e2789f8c68b54a29e89d8c9b9a489cd6d5492e88dbc6f35cd9872d02ce920ef7b8d17878bfbfee10a7e WHIRLPOOL 06b4afc767fe25998e201ebf0042834b03c4d2cb3f652b70123829a5a32e9e6efaf0959bee251d0e69c8dcf0f48f75c18a91900a37f0c49c4c36183d36deb788
+EBUILD qtgui-5.9.2.ebuild 3500 SHA256 e9f0ed7c1968b3fbec2c0851505af1a3d07e9dd7c0f4ea30301942f9ee38182f SHA512 e47f1940a22f8de23511a4b058ea6ed3907b0549f6598cd7bfe0de73529b4bf928ea8fbb6746b1833ebddd7e812acc06641170e962f35ed289dfa73e07a296de WHIRLPOOL 09774bc506162b78898517089f7624f879c320adcee8b876b492a2283bc1dc97358215210f23637906a7b72abb9269cf7b655c20f4a70e86230f8808b60a64ab
+MISC ChangeLog 8734 SHA256 849ee0697b95cbd927ac9e868d036e89f630a5715eafe47449f2582f5cf762f7 SHA512 53d70cf59fd8c58726d6dd0f8386167b45712c4a5ccc04464789734f2f825c2bf3a7f1f6b4a87141edf9f05224a58a5d5a79a4884bbcca8470da304a3c78740d WHIRLPOOL ee681261ad745adfd0e81575683d405af66b17a773d583c65d568b6c1fb797d69615aa28f97c96ff94587df663903861556bc74ab0829b4d6a870653ca86a950
+MISC ChangeLog-2015 45863 SHA256 1b4f8622a4a7eb6af91eefa9adb238f904bef34b399c1ac451b74778308c7534 SHA512 883d01c0cb53dca492d3e9daba2773eebfffea5e36193b98c4e7e1a032b1e1e331fab97c235ee4b4b5821d9d14f95dc47a656683e1c2ef2eb16e0c30bf8eab6f WHIRLPOOL 1236f303c57a4cafc978f482a9f90c18021a0121466603191a9feebc7a44751eda9a1a70a93d8fb6e06db289937861100464b29bbf80eb557acebe9815af4539
+MISC metadata.xml 1862 SHA256 3fc199f72c70282630b176b3f6ecf21a1ea47433cfa218d475ab874e2d4e5391 SHA512 cba45629873eba71f152885640e51ad324b0dbb702c45811b4a1785a0af3baa7ce39923dfd0dbf7748d604e9a053d6580defdad75ad5ae228d37424d9b54e530 WHIRLPOOL 884bf256ffb0dd63d10e498008954e53cf591a00c2d391eb230217c87ba1a04383f39eac0e65375ac2e6c0fd8aae10cb1bb8e5a1068dbde91e44c922399f329f
diff --git a/dev-qt/qtgui/files/qtgui-4.7.3-cups.patch b/dev-qt/qtgui/files/qtgui-4.7.3-cups.patch
new file mode 100644
index 000000000000..e0305e11b89a
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.7.3-cups.patch
@@ -0,0 +1,84 @@
+diff -ur qt-everywhere-opensource-src-4.6.2/src/gui/dialogs/qprintdialog_unix.cpp qt-everywhere-opensource-src-4.6.2-cups/src/gui/dialogs/qprintdialog_unix.cpp
+--- qt-everywhere-opensource-src-4.6.2/src/gui/dialogs/qprintdialog_unix.cpp 2010-02-11 16:55:22.000000000 +0100
++++ qt-everywhere-opensource-src-4.6.2-cups/src/gui/dialogs/qprintdialog_unix.cpp 2010-02-28 04:34:16.000000000 +0100
+@@ -569,6 +569,32 @@
+ void QPrintDialogPrivate::selectPrinter(QCUPSSupport *cups)
+ {
+ options.duplex->setEnabled(cups && cups->ppdOption("Duplex"));
++
++ if (cups) {
++ const ppd_option_t* duplex = cups->ppdOption("Duplex");
++ if (duplex) {
++ // copy default ppd duplex to qt dialog
++ if (qstrcmp(duplex->defchoice, "DuplexTumble") == 0)
++ options.duplexShort->setChecked(true);
++ else if (qstrcmp(duplex->defchoice, "DuplexNoTumble") == 0)
++ options.duplexLong->setChecked(true);
++ else
++ options.noDuplex->setChecked(true);
++ }
++
++ if (cups->currentPPD()) {
++ // set default color
++ if (cups->currentPPD()->color_device)
++ options.color->setChecked(true);
++ else
++ options.grayscale->setChecked(true);
++ }
++
++ // set collation
++ const ppd_option_t *collate = cups->ppdOption("Collate");
++ if (collate)
++ options.collate->setChecked(qstrcmp(collate->defchoice, "True")==0);
++ }
+ }
+ #endif
+
+diff -ur qt-everywhere-opensource-src-4.6.2/src/gui/painting/qprinter.cpp qt-everywhere-opensource-src-4.6.2-cups/src/gui/painting/qprinter.cpp
+--- qt-everywhere-opensource-src-4.6.2/src/gui/painting/qprinter.cpp 2010-02-11 16:55:22.000000000 +0100
++++ qt-everywhere-opensource-src-4.6.2-cups/src/gui/painting/qprinter.cpp 2010-02-28 04:55:15.000000000 +0100
+@@ -627,6 +627,44 @@
+ && d_ptr->paintEngine->type() != QPaintEngine::MacPrinter) {
+ setOutputFormat(QPrinter::PdfFormat);
+ }
++
++#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)
++ // fill in defaults from ppd file
++ QCUPSSupport cups;
++
++ int printernum = -1;
++ for (int i = 0; i < cups.availablePrintersCount(); i++) {
++ if (printerName().toLocal8Bit() == cups.availablePrinters()[i].name)
++ printernum = i;
++ }
++ if (printernum >= 0) {
++ cups.setCurrentPrinter(printernum);
++
++ const ppd_option_t* duplex = cups.ppdOption("Duplex");
++ if (duplex) {
++ // copy default ppd duplex to qt dialog
++ if (qstrcmp(duplex->defchoice, "DuplexTumble") == 0)
++ setDuplex(DuplexShortSide);
++ else if (qstrcmp(duplex->defchoice, "DuplexNoTumble") == 0)
++ setDuplex(DuplexLongSide);
++ else
++ setDuplex(DuplexNone);
++ }
++
++ if (cups.currentPPD()) {
++ // set default color
++ if (cups.currentPPD()->color_device)
++ setColorMode(Color);
++ else
++ setColorMode(GrayScale);
++ }
++
++ // set collation
++ const ppd_option_t *collate = cups.ppdOption("Collate");
++ if (collate)
++ setCollateCopies(qstrcmp(collate->defchoice, "True")==0);
++ }
++#endif
+ }
+
+ /*!
diff --git a/dev-qt/qtgui/files/qtgui-4.8.5-CVE-2015-0295.patch b/dev-qt/qtgui/files/qtgui-4.8.5-CVE-2015-0295.patch
new file mode 100644
index 000000000000..3ac87d8dc369
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.5-CVE-2015-0295.patch
@@ -0,0 +1,40 @@
+From e50aa2252cdd5cb53eef7d8c4503c7edff634f68 Mon Sep 17 00:00:00 2001
+From: "Richard J. Moore" <rich@kde.org>
+Date: Tue, 24 Feb 2015 19:02:35 +0000
+Subject: [PATCH] Fix a division by zero when processing malformed BMP files.
+
+This fixes a division by 0 when processing a maliciously crafted BMP
+file. No impact beyond DoS.
+
+Backport of 661f6bfd032dacc62841037732816a583640e187
+
+Task-number: QTBUG-44547
+Change-Id: I43f06e752b11cb50669101460902a82b885ae618
+Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
+---
+ src/gui/image/qbmphandler.cpp | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/gui/image/qbmphandler.cpp b/src/gui/image/qbmphandler.cpp
+index b22e842..30fa9e0 100644
+--- a/src/gui/image/qbmphandler.cpp
++++ b/src/gui/image/qbmphandler.cpp
+@@ -319,10 +319,16 @@ static bool read_dib_body(QDataStream &s, const BMP_INFOHDR &bi, int offset, int
+ }
+ } else if (comp == BMP_BITFIELDS && (nbits == 16 || nbits == 32)) {
+ red_shift = calc_shift(red_mask);
++ if (((red_mask >> red_shift) + 1) == 0)
++ return false;
+ red_scale = 256 / ((red_mask >> red_shift) + 1);
+ green_shift = calc_shift(green_mask);
++ if (((green_mask >> green_shift) + 1) == 0)
++ return false;
+ green_scale = 256 / ((green_mask >> green_shift) + 1);
+ blue_shift = calc_shift(blue_mask);
++ if (((blue_mask >> blue_shift) + 1) == 0)
++ return false;
+ blue_scale = 256 / ((blue_mask >> blue_shift) + 1);
+ } else if (comp == BMP_RGB && (nbits == 24 || nbits == 32)) {
+ blue_mask = 0x000000ff;
+--
+2.0.5 \ No newline at end of file
diff --git a/dev-qt/qtgui/files/qtgui-4.8.5-cleanlooks-floating-point-exception.patch b/dev-qt/qtgui/files/qtgui-4.8.5-cleanlooks-floating-point-exception.patch
new file mode 100644
index 000000000000..a54efef0d78b
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.5-cleanlooks-floating-point-exception.patch
@@ -0,0 +1,38 @@
+From 0db65e148dcb4d5e5b98475f207d41a287c401a1 Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Wed, 28 May 2014 00:22:55 -0400
+Subject: [PATCH] Cleanlooks style: Fix floating point exception
+
+In QCleanlooksStyle::drawControl, if indeterminate == true and
+rect.width() == 4, we will end up with slideWidth of zero, and
+take a mod by zero when calculating the value of step.
+
+This causes a crash in Quassel 0.10; see
+https://bugs.gentoo.org/show_bug.cgi?id=507124
+
+Instead, calculate slideWidth based on max(width, minWidth) where
+minWidth was already set as 4, ensuring that slideWidth >= 2.
+
+Change-Id: I6678789105e359fa26c99409f449cad0ba3bd0ae
+(cherry picked from qtstyleplugins/8ff2ac6035fb1d01f5c0054ba14afb949410e3a7)
+Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
+---
+ src/gui/styles/qcleanlooksstyle.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/gui/styles/qcleanlooksstyle.cpp b/src/gui/styles/qcleanlooksstyle.cpp
+index 504734a..3f665ca 100644
+--- a/src/gui/styles/qcleanlooksstyle.cpp
++++ b/src/gui/styles/qcleanlooksstyle.cpp
+@@ -1773,7 +1773,7 @@ void QCleanlooksStyle::drawControl(ControlElement element, const QStyleOption *o
+ }
+ } else {
+ Q_D(const QCleanlooksStyle);
+- int slideWidth = ((rect.width() - 4) * 2) / 3;
++ int slideWidth = (qMax(rect.width() - 4, minWidth) * 2) / 3;
+ int step = ((d->animateStep * slideWidth) / d->animationFps) % slideWidth;
+ if ((((d->animateStep * slideWidth) / d->animationFps) % (2 * slideWidth)) >= slideWidth)
+ step = slideWidth - step;
+--
+2.0.0
+
diff --git a/dev-qt/qtgui/files/qtgui-4.8.5-disable-gtk-theme-check.patch b/dev-qt/qtgui/files/qtgui-4.8.5-disable-gtk-theme-check.patch
new file mode 100644
index 000000000000..9a9f773537e4
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.5-disable-gtk-theme-check.patch
@@ -0,0 +1,22 @@
+diff -up qt-everywhere-opensource-src-4.8.5/src/gui/styles/qgtkstyle_p.cpp.qgtkstyle_disable_gtk_theme_check qt-everywhere-opensource-src-4.8.5/src/gui/styles/qgtkstyle_p.cpp
+--- qt-everywhere-opensource-src-4.8.5/src/gui/styles/qgtkstyle_p.cpp.qgtkstyle_disable_gtk_theme_check 2013-06-09 16:28:22.938840346 -0500
++++ qt-everywhere-opensource-src-4.8.5/src/gui/styles/qgtkstyle_p.cpp 2013-06-09 17:03:01.781125479 -0500
+@@ -503,18 +503,6 @@ void QGtkStylePrivate::initGtkWidgets()
+ return;
+ }
+
+- static QString themeName;
+- if (!gtkWidgetMap()->contains("GtkWindow") && themeName.isEmpty()) {
+- themeName = getThemeName();
+-
+- if (themeName == QLS("Qt") || themeName == QLS("Qt4")) {
+- // Due to namespace conflicts with Qt3 and obvious recursion with Qt4,
+- // we cannot support the GTK_Qt Gtk engine
+- qWarning("QGtkStyle cannot be used together with the GTK_Qt engine.");
+- return;
+- }
+- }
+-
+ if (QGtkStylePrivate::gtk_init) {
+ // Gtk will set the Qt error handler so we have to reset it afterwards
+ x11ErrorHandler qt_x_errhandler = XSetErrorHandler(0);
diff --git a/dev-qt/qtgui/files/qtgui-4.8.5-dont-crash-on-broken-GIF-images.patch b/dev-qt/qtgui/files/qtgui-4.8.5-dont-crash-on-broken-GIF-images.patch
new file mode 100644
index 000000000000..d800caf97421
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.5-dont-crash-on-broken-GIF-images.patch
@@ -0,0 +1,43 @@
+From f1b76c126c476c155af8c404b97c42cd1a709333 Mon Sep 17 00:00:00 2001
+From: Lars Knoll <lars.knoll@digia.com>
+Date: Thu, 24 Apr 2014 15:33:27 +0200
+Subject: Don't crash on broken GIF images
+
+Broken GIF images could set invalid width and height
+values inside the image, leading to Qt creating a null
+QImage for it. In that case we need to abort decoding
+the image and return an error.
+
+Initial patch by Rich Moore.
+
+Backport of Id82a4036f478bd6e49c402d6598f57e7e5bb5e1e from Qt 5
+
+Task-number: QTBUG-38367
+Change-Id: I0680740018aaa8356d267b7af3f01fac3697312a
+Security-advisory: CVE-2014-0190
+Reviewed-by: Richard J. Moore <rich@kde.org>
+---
+ src/gui/image/qgifhandler.cpp | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/src/gui/image/qgifhandler.cpp b/src/gui/image/qgifhandler.cpp
+index 3324f04..5199dd3 100644
+--- a/src/gui/image/qgifhandler.cpp
++++ b/src/gui/image/qgifhandler.cpp
+@@ -359,6 +359,13 @@ int QGIFFormat::decode(QImage *image, const uchar *buffer, int length,
+ memset(bits, 0, image->byteCount());
+ }
+
++ // Check if the previous attempt to create the image failed. If it
++ // did then the image is broken and we should give up.
++ if (image->isNull()) {
++ state = Error;
++ return -1;
++ }
++
+ disposePrevious(image);
+ disposed = false;
+
+--
+1.9.3
+
diff --git a/dev-qt/qtgui/files/qtgui-4.8.5-qclipboard-delay.patch b/dev-qt/qtgui/files/qtgui-4.8.5-qclipboard-delay.patch
new file mode 100644
index 000000000000..d46f8c541872
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.5-qclipboard-delay.patch
@@ -0,0 +1,33 @@
+From a83ddc5212736f89a0b94667c495494fe6861d63 Mon Sep 17 00:00:00 2001
+From: Michael Palimaka <kensington@gentoo.org>
+Date: Mon, 16 Jun 2014 23:52:24 +1000
+Subject: Fix delay with QClipboard and useEventLoop.
+
+This manifests when using LibreOffice with KDE integration. When KFileDialog is
+open, the clipboard is repeatedly polled causing a visible delay since using
+QClipboard in "useEventLoop" mode adds 50ms delay to every single clipboard
+fetch.
+
+Change-Id: Id30cda7b983ae7c949fa270d04f772fa44fc21cd
+Task-number: QTBUG-38585
+---
+ src/gui/kernel/qclipboard_x11.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/gui/kernel/qclipboard_x11.cpp b/src/gui/kernel/qclipboard_x11.cpp
+index 14bf088..5f442b9 100644
+--- a/src/gui/kernel/qclipboard_x11.cpp
++++ b/src/gui/kernel/qclipboard_x11.cpp
+@@ -548,7 +548,8 @@ bool QX11Data::clipboardWaitForEvent(Window win, int type, XEvent *event, int ti
+ return false;
+
+ XSync(X11->display, false);
+- usleep(50000);
++ if (!XPending(X11->display))
++ usleep(5000);
+
+ now.start();
+
+--
+2.0.0
+
diff --git a/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1858.patch b/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1858.patch
new file mode 100644
index 000000000000..c1aac444a644
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1858.patch
@@ -0,0 +1,63 @@
+From 3e55cd6dc467303a3c35312e9fcb255c2c048b32 Mon Sep 17 00:00:00 2001
+From: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
+Date: Wed, 11 Mar 2015 13:34:01 +0100
+Subject: Fixes crash in bmp and ico image decoding
+
+Fuzzing test revealed that for certain malformed bmp and ico files,
+the handler would segfault.
+
+Change-Id: I19d45145f31e7f808f7f6a1a1610270ea4159cbe
+(cherry picked from qtbase/2adbbae5432aa9d8cc41c6fcf55c2e310d2d4078)
+Reviewed-by: Richard J. Moore <rich@kde.org>
+---
+ src/gui/image/qbmphandler.cpp | 13 +++++++------
+ src/plugins/imageformats/ico/qicohandler.cpp | 2 +-
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+diff --git a/src/gui/image/qbmphandler.cpp b/src/gui/image/qbmphandler.cpp
+index 30fa9e0..17a880b 100644
+--- a/src/gui/image/qbmphandler.cpp
++++ b/src/gui/image/qbmphandler.cpp
+@@ -478,12 +478,6 @@ static bool read_dib_body(QDataStream &s, const BMP_INFOHDR &bi, int offset, int
+ p = data + (h-y-1)*bpl;
+ break;
+ case 2: // delta (jump)
+- // Protection
+- if ((uint)x >= (uint)w)
+- x = w-1;
+- if ((uint)y >= (uint)h)
+- y = h-1;
+-
+ {
+ quint8 tmp;
+ d->getChar((char *)&tmp);
+@@ -491,6 +485,13 @@ static bool read_dib_body(QDataStream &s, const BMP_INFOHDR &bi, int offset, int
+ d->getChar((char *)&tmp);
+ y += tmp;
+ }
++
++ // Protection
++ if ((uint)x >= (uint)w)
++ x = w-1;
++ if ((uint)y >= (uint)h)
++ y = h-1;
++
+ p = data + (h-y-1)*bpl + x;
+ break;
+ default: // absolute mode
+diff --git a/src/plugins/imageformats/ico/qicohandler.cpp b/src/plugins/imageformats/ico/qicohandler.cpp
+index 1a88605..3c34765 100644
+--- a/src/plugins/imageformats/ico/qicohandler.cpp
++++ b/src/plugins/imageformats/ico/qicohandler.cpp
+@@ -571,7 +571,7 @@ QImage ICOReader::iconAt(int index)
+ QImage::Format format = QImage::Format_ARGB32;
+ if (icoAttrib.nbits == 24)
+ format = QImage::Format_RGB32;
+- else if (icoAttrib.ncolors == 2)
++ else if (icoAttrib.ncolors == 2 && icoAttrib.depth == 1)
+ format = QImage::Format_Mono;
+ else if (icoAttrib.ncolors > 0)
+ format = QImage::Format_Indexed8;
+--
+cgit v0.11.0
+
diff --git a/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1860.patch b/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1860.patch
new file mode 100644
index 000000000000..d881db8d5b86
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-4.8.6-CVE-2015-1860.patch
@@ -0,0 +1,31 @@
+From a1cf194c54be57d6ab55dfd26b9562a60532208e Mon Sep 17 00:00:00 2001
+From: Eirik Aavitsland <eirik.aavitsland@theqtcompany.com>
+Date: Wed, 11 Mar 2015 09:00:41 +0100
+Subject: Fixes crash in gif image decoder
+
+Fuzzing test revealed that for certain malformed gif files,
+qgifhandler would segfault.
+
+Change-Id: I5bb6f60e1c61849e0d8c735edc3869945e5331c1
+(cherry picked from qtbase/ea2c5417fcd374302f5019e67f72af5facbd29f6)
+Reviewed-by: Richard J. Moore <rich@kde.org>
+---
+ src/gui/image/qgifhandler.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/gui/image/qgifhandler.cpp b/src/gui/image/qgifhandler.cpp
+index 5199dd3..49aa2a6 100644
+--- a/src/gui/image/qgifhandler.cpp
++++ b/src/gui/image/qgifhandler.cpp
+@@ -944,6 +944,8 @@ void QGIFFormat::fillRect(QImage *image, int col, int row, int w, int h, QRgb co
+
+ void QGIFFormat::nextY(unsigned char *bits, int bpl)
+ {
++ if (out_of_bounds)
++ return;
+ int my;
+ switch (interlace) {
+ case 0: // Non-interlaced
+--
+cgit v0.11.0
+
diff --git a/dev-qt/qtgui/files/qtgui-5.7.1-qclipboard.patch b/dev-qt/qtgui/files/qtgui-5.7.1-qclipboard.patch
new file mode 100644
index 000000000000..42ee58b611fe
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-5.7.1-qclipboard.patch
@@ -0,0 +1,39 @@
+From 291eba6f8099a0fec8fbd9cf8a1fb67e5c9f4f8d Mon Sep 17 00:00:00 2001
+From: Palo Kisa <palo.kisa@gmail.com>
+Date: Mon, 7 Nov 2016 18:27:17 +0100
+Subject: QClipboard: Fix emitting changed() in XCB
+
+In XCB environment the QClipboard::changed() was not delivered if the
+QClipboard::clear() was issued by other Qt app/process.
+
+If the QClipboard::clear() is used, then the owner in
+xcb_xfixes_selection_notify_event_t is XCB_NONE, so we need make the
+decission to handle this event by the selection_timestamp and our
+m_timestamp[mode].
+
+Task-number: QTBUG-56972
+Change-Id: If4c486ac02223eac506465cac7ff1a07bd02a187
+Reviewed-by: Lars Knoll <lars.knoll@qt.io>
+---
+ src/plugins/platforms/xcb/qxcbclipboard.cpp | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/plugins/platforms/xcb/qxcbclipboard.cpp b/src/plugins/platforms/xcb/qxcbclipboard.cpp
+index d44ebae..40abef4 100644
+--- a/src/plugins/platforms/xcb/qxcbclipboard.cpp
++++ b/src/plugins/platforms/xcb/qxcbclipboard.cpp
+@@ -723,8 +723,10 @@ void QXcbClipboard::handleXFixesSelectionRequest(xcb_xfixes_selection_notify_eve
+ if (mode > QClipboard::Selection)
+ return;
+
+- // here we care only about the xfixes events that come from non Qt processes
+- if (event->owner != XCB_NONE && event->owner != owner()) {
++ // Note1: Here we care only about the xfixes events that come from other processes.
++ // Note2: If the QClipboard::clear() is issued, event->owner is XCB_NONE,
++ // so we check selection_timestamp to not handle our own QClipboard::clear().
++ if (event->owner != owner() && event->selection_timestamp > m_timestamp[mode]) {
+ if (!m_xClipboard[mode]) {
+ m_xClipboard[mode].reset(new QXcbClipboardMime(mode, this));
+ } else {
+--
+cgit v1.0-4-g1e03
diff --git a/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch b/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch
new file mode 100644
index 000000000000..9cfc29d1d088
--- /dev/null
+++ b/dev-qt/qtgui/files/qtgui-5.7.1-x32.patch
@@ -0,0 +1,34 @@
+From 92805a0e9c488e47280e93f65e5378818e340ad1 Mon Sep 17 00:00:00 2001
+From: Laszlo Agocs <laszlo.agocs@qt.io>
+Date: Mon, 7 Nov 2016 11:23:21 +0100
+Subject: Fix EGL break on Debian X32
+
+Change to QT_POINTER_SIZE instead of Q_PROCESSOR_WORDSIZE. The latter
+is 8 due to targeting 64-bit, but pointers are 32-bit still in such
+builds. For the condition in question it is the pointer size that
+matters.
+
+Task-number: QTBUG-56686
+Change-Id: I96c203cae91ceb8404606de605c4fdb1a02a9d5f
+Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
+Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
+---
+ src/platformsupport/eglconvenience/qt_egl_p.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/platformsupport/eglconvenience/qt_egl_p.h b/src/platformsupport/eglconvenience/qt_egl_p.h
+index 615ee4b80a..b1495c9f9d 100644
+--- a/src/platformsupport/eglconvenience/qt_egl_p.h
++++ b/src/platformsupport/eglconvenience/qt_egl_p.h
+@@ -83,7 +83,7 @@ struct QtEglConverter<uint32_t, uintptr_t>
+ { return v; }
+ };
+
+-#if Q_PROCESSOR_WORDSIZE > 4
++#if QT_POINTER_SIZE > 4
+ template <>
+ struct QtEglConverter<uintptr_t, uint32_t>
+ {
+--
+cgit v1.1-6-g87c4
+
diff --git a/dev-qt/qtgui/metadata.xml b/dev-qt/qtgui/metadata.xml
new file mode 100644
index 000000000000..ef12478e668a
--- /dev/null
+++ b/dev-qt/qtgui/metadata.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="egl">Enable EGL integration</flag>
+ <flag name="eglfs">Build the EGL Full Screen/Single Surface platform plugin</flag>
+ <flag name="evdev">Enable support for input devices via evdev</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="glib">Enable integration with the <pkg>dev-libs/glib</pkg> event loop</flag>
+ <flag name="gtkstyle">Build a widgets style that mimics the active GTK+ theme</flag>
+ <flag name="ibus">Build the IBus input method plugin</flag>
+ <flag name="libinput">Enable support for input devices via <pkg>dev-libs/libinput</pkg></flag>
+ <flag name="qt3support">Enable the Qt3Support libraries for Qt4. Note that
+ this does not mean you can compile pure Qt3 programs with Qt4.</flag>
+ <flag name="trace">Build the 'trace' graphicssystem engine which allows to record
+ all drawing operations into a trace buffer. The trace can be replayed
+ later with the qttracereplay tool.</flag>
+ <flag name="tslib">Enable support for touchscreen devices via <pkg>x11-libs/tslib</pkg></flag>
+ <flag name="tuio">Build plugin to receive touch events over the TUIO protocol</flag>
+ <flag name="xcb">Build the XCB platform plugin and enable X11 integration</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtgui/qtgui-4.8.6-r4.ebuild b/dev-qt/qtgui/qtgui-4.8.6-r4.ebuild
new file mode 100644
index 000000000000..2eccb9dcdeb4
--- /dev/null
+++ b/dev-qt/qtgui/qtgui-4.8.6-r4.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="The GUI module for the Qt toolkit"
+SRC_URI+=" https://dev.gentoo.org/~pesa/patches/${PN}-systemtrayicon-plugin-system.patch"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility cups egl +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv"
+
+REQUIRED_USE="
+ gtkstyle? ( glib )
+"
+
+# cairo[-qt4] is needed because of bug 454066
+RDEPEND="
+ app-eselect/eselect-qtgraphicssystem
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,glib=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=media-libs/fontconfig-2.10.2-r1[${MULTILIB_USEDEP}]
+ >=media-libs/freetype-2.4.11-r1:2[${MULTILIB_USEDEP}]
+ media-libs/libpng:0=[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ virtual/jpeg:0[${MULTILIB_USEDEP}]
+ !aqua? (
+ >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXcursor-1.1.13-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXfixes-5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.6.2-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrandr-1.4.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ xinerama? ( >=x11-libs/libXinerama-1.1.2-r1[${MULTILIB_USEDEP}] )
+ xv? ( >=x11-libs/libXv-1.0.7-r1[${MULTILIB_USEDEP}] )
+ )
+ cups? ( net-print/cups[${MULTILIB_USEDEP}] )
+ egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )
+ glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
+ gtkstyle? (
+ >=x11-libs/cairo-1.12[-qt4(-),${MULTILIB_USEDEP}]
+ >=x11-libs/gtk+-2.24.23-r1:2[aqua=,${MULTILIB_USEDEP}]
+ )
+ mng? ( >=media-libs/libmng-1.0.10-r2:=[${MULTILIB_USEDEP}] )
+ nas? ( >=media-libs/nas-1.9.3-r1[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-4.0.3-r2:0[${MULTILIB_USEDEP}] )
+ !<dev-qt/qthelp-4.8.5:4
+"
+DEPEND="${RDEPEND}
+ !aqua? (
+ >=x11-proto/inputproto-2.2-r1[${MULTILIB_USEDEP}]
+ >=x11-proto/xextproto-7.2.1-r1[${MULTILIB_USEDEP}]
+ xinerama? ( >=x11-proto/xineramaproto-1.2.1-r1[${MULTILIB_USEDEP}] )
+ xv? ( >=x11-proto/videoproto-2.3.1-r1[${MULTILIB_USEDEP}] )
+ )
+"
+PDEPEND="
+ qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+
+PATCHES=(
+ "${DISTDIR}/${PN}-systemtrayicon-plugin-system.patch" # bug 503880
+ "${FILESDIR}/${PN}-4.7.3-cups.patch" # bug 323257
+ "${FILESDIR}/${PN}-4.8.5-cleanlooks-floating-point-exception.patch" # bug 507124
+ "${FILESDIR}/${PN}-4.8.5-disable-gtk-theme-check.patch" # bug 491226
+ "${FILESDIR}/${PN}-4.8.5-dont-crash-on-broken-GIF-images.patch" # bug 508984
+ "${FILESDIR}/${PN}-4.8.5-qclipboard-delay.patch" # bug 514968
+ "${FILESDIR}/${PN}-4.8.5-CVE-2015-0295.patch" # bug 541972
+ "${FILESDIR}/${PN}-4.8.6-CVE-2015-1858.patch" # bug 546174 - also covers CVE-2015-1859
+ "${FILESDIR}/${PN}-4.8.6-CVE-2015-1860.patch" # bug 546174
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/gui
+ src/scripttools
+ src/plugins/imageformats/gif
+ src/plugins/imageformats/ico
+ src/plugins/imageformats/jpeg
+ src/plugins/imageformats/tga
+ src/plugins/inputmethods"
+
+pkg_setup() {
+ use accessibility && QT4_TARGET_DIRECTORIES+=" src/plugins/accessible/widgets"
+ use mng && QT4_TARGET_DIRECTORIES+=" src/plugins/imageformats/mng"
+ use tiff && QT4_TARGET_DIRECTORIES+=" src/plugins/imageformats/tiff"
+ use trace && QT4_TARGET_DIRECTORIES+=" src/plugins/graphicssystems/trace tools/qttracereplay"
+
+ [[ ${CHOST} != *-darwin* ]] && QT4_TARGET_DIRECTORIES+=" tools/qtconfig"
+
+ QCONFIG_ADD="
+ mitshm tablet x11sm xcursor xfixes xinput xkb xrandr xrender xshape xsync
+ fontconfig system-freetype gif png system-png jpeg system-jpeg
+ $(usev accessibility)
+ $(usev cups)
+ $(use mng && echo system-mng)
+ $(usev nas)
+ $(usev nis)
+ $(use tiff && echo system-tiff)
+ $(usev xinerama)
+ $(use xv && echo xvideo)"
+ QCONFIG_REMOVE="no-freetype no-gif no-jpeg no-png no-gui"
+ QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY)
+ $(use cups && echo QT_CUPS)
+ $(use egl && echo QT_EGL)
+ QT_FONTCONFIG QT_FREETYPE
+ $(use gtkstyle && echo QT_STYLE_GTK)
+ QT_IMAGEFORMAT_JPEG QT_IMAGEFORMAT_PNG
+ $(use mng && echo QT_IMAGEFORMAT_MNG)
+ $(use nas && echo QT_NAS)
+ $(use nis && echo QT_NIS)
+ $(use tiff && echo QT_IMAGEFORMAT_TIFF)
+ QT_SESSIONMANAGER QT_SHAPE QT_TABLET QT_XCURSOR QT_XFIXES
+ $(use xinerama && echo QT_XINERAMA)
+ QT_XINPUT QT_XKB QT_XRANDR QT_XRENDER QT_XSYNC
+ $(use xv && echo QT_XVIDEO)"
+}
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # Add -xvideo to the list of accepted configure options
+ sed -i -e 's:|-xinerama|:&-xvideo|:' configure || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use accessibility)
+ $(qt_use cups)
+ $(qt_use glib)
+ $(qt_use mng libmng system)
+ $(qt_use nas nas-sound system)
+ $(qt_use nis)
+ $(qt_use tiff libtiff system)
+ $(qt_use egl)
+ $(qt_use qt3support)
+ $(qt_use gtkstyle)
+ $(qt_use xinerama)
+ $(qt_use xv xvideo)
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ dodir /usr/share/qt4/graphicssystems
+ echo "default" > "${ED}"/usr/share/qt4/graphicssystems/raster || die
+ echo "" > "${ED}"/usr/share/qt4/graphicssystems/native || die
+
+ if has tools/qtconfig ${QT4_TARGET_DIRECTORIES}; then
+ newicon tools/qtconfig/images/appicon.png qtconfig.png
+ make_desktop_entry qtconfig 'Qt Configuration Tool' qtconfig 'Qt;Settings;DesktopSettings'
+ fi
+}
+
+pkg_postinst() {
+ qt4-build-multilib_pkg_postinst
+
+ # raster is the default graphicssystem, set it on first install
+ eselect qtgraphicssystem set raster --use-old
+}
diff --git a/dev-qt/qtgui/qtgui-4.8.7.ebuild b/dev-qt/qtgui/qtgui-4.8.7.ebuild
new file mode 100644
index 000000000000..dda69ac8593d
--- /dev/null
+++ b/dev-qt/qtgui/qtgui-4.8.7.ebuild
@@ -0,0 +1,166 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils qt4-build-multilib
+
+DESCRIPTION="The GUI module for the Qt toolkit"
+SRC_URI+=" https://dev.gentoo.org/~pesa/patches/${PN}-systemtrayicon-plugin-system.patch"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility cups egl +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv"
+
+REQUIRED_USE="
+ gtkstyle? ( glib )
+"
+
+# cairo[-qt4] is needed because of bug 454066
+RDEPEND="
+ app-eselect/eselect-qtgraphicssystem
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,glib=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=media-libs/fontconfig-2.10.2-r1[${MULTILIB_USEDEP}]
+ >=media-libs/freetype-2.4.11-r1:2[${MULTILIB_USEDEP}]
+ media-libs/libpng:0=[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ virtual/jpeg:0[${MULTILIB_USEDEP}]
+ !aqua? (
+ >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXcursor-1.1.13-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXext-1.3.1-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXfixes-5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXi-1.6.2-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrandr-1.4.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ xinerama? ( >=x11-libs/libXinerama-1.1.2-r1[${MULTILIB_USEDEP}] )
+ xv? ( >=x11-libs/libXv-1.0.7-r1[${MULTILIB_USEDEP}] )
+ )
+ cups? ( net-print/cups[${MULTILIB_USEDEP}] )
+ egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )
+ glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )
+ gtkstyle? (
+ >=x11-libs/cairo-1.12[-qt4(-),${MULTILIB_USEDEP}]
+ >=x11-libs/gtk+-2.24.23-r1:2[aqua=,${MULTILIB_USEDEP}]
+ )
+ mng? ( >=media-libs/libmng-1.0.10-r2:=[${MULTILIB_USEDEP}] )
+ nas? ( >=media-libs/nas-1.9.3-r1[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-4.0.3-r2:0[${MULTILIB_USEDEP}] )
+ !<dev-qt/qthelp-4.8.5:4
+"
+DEPEND="${RDEPEND}
+ !aqua? (
+ >=x11-proto/inputproto-2.2-r1[${MULTILIB_USEDEP}]
+ >=x11-proto/xextproto-7.2.1-r1[${MULTILIB_USEDEP}]
+ xinerama? ( >=x11-proto/xineramaproto-1.2.1-r1[${MULTILIB_USEDEP}] )
+ xv? ( >=x11-proto/videoproto-2.3.1-r1[${MULTILIB_USEDEP}] )
+ )
+"
+PDEPEND="
+ qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
+"
+
+PATCHES=(
+ "${DISTDIR}/${PN}-systemtrayicon-plugin-system.patch" # bug 503880
+ "${FILESDIR}/${PN}-4.7.3-cups.patch" # bug 323257
+ "${FILESDIR}/${PN}-4.8.5-disable-gtk-theme-check.patch" # bug 491226
+ "${FILESDIR}/${PN}-4.8.5-qclipboard-delay.patch" # bug 514968
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/gui
+ src/scripttools
+ src/plugins/imageformats/gif
+ src/plugins/imageformats/ico
+ src/plugins/imageformats/jpeg
+ src/plugins/imageformats/tga
+ src/plugins/inputmethods"
+
+pkg_setup() {
+ use accessibility && QT4_TARGET_DIRECTORIES+=" src/plugins/accessible/widgets"
+ use mng && QT4_TARGET_DIRECTORIES+=" src/plugins/imageformats/mng"
+ use tiff && QT4_TARGET_DIRECTORIES+=" src/plugins/imageformats/tiff"
+ use trace && QT4_TARGET_DIRECTORIES+=" src/plugins/graphicssystems/trace tools/qttracereplay"
+
+ [[ ${CHOST} != *-darwin* ]] && QT4_TARGET_DIRECTORIES+=" tools/qtconfig"
+
+ QCONFIG_ADD="
+ mitshm tablet x11sm xcursor xfixes xinput xkb xrandr xrender xshape xsync
+ fontconfig system-freetype gif png system-png jpeg system-jpeg
+ $(usev accessibility)
+ $(usev cups)
+ $(use mng && echo system-mng)
+ $(usev nas)
+ $(usev nis)
+ $(use tiff && echo system-tiff)
+ $(usev xinerama)
+ $(use xv && echo xvideo)"
+ QCONFIG_REMOVE="no-freetype no-gif no-jpeg no-png no-gui"
+ QCONFIG_DEFINE="$(use accessibility && echo QT_ACCESSIBILITY)
+ $(use cups && echo QT_CUPS)
+ $(use egl && echo QT_EGL)
+ QT_FONTCONFIG QT_FREETYPE
+ $(use gtkstyle && echo QT_STYLE_GTK)
+ QT_IMAGEFORMAT_JPEG QT_IMAGEFORMAT_PNG
+ $(use mng && echo QT_IMAGEFORMAT_MNG)
+ $(use nas && echo QT_NAS)
+ $(use nis && echo QT_NIS)
+ $(use tiff && echo QT_IMAGEFORMAT_TIFF)
+ QT_SESSIONMANAGER QT_SHAPE QT_TABLET QT_XCURSOR QT_XFIXES
+ $(use xinerama && echo QT_XINERAMA)
+ QT_XINPUT QT_XKB QT_XRANDR QT_XRENDER QT_XSYNC
+ $(use xv && echo QT_XVIDEO)"
+}
+
+src_prepare() {
+ qt4-build-multilib_src_prepare
+
+ # Add -xvideo to the list of accepted configure options
+ sed -i -e 's:|-xinerama|:&-xvideo|:' configure || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use accessibility)
+ $(qt_use cups)
+ $(qt_use glib)
+ $(qt_use mng libmng system)
+ $(qt_use nas nas-sound system)
+ $(qt_use nis)
+ $(qt_use tiff libtiff system)
+ $(qt_use egl)
+ $(qt_use qt3support)
+ $(qt_use gtkstyle)
+ $(qt_use xinerama)
+ $(qt_use xv xvideo)
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ dodir /usr/share/qt4/graphicssystems
+ echo "default" > "${ED}"/usr/share/qt4/graphicssystems/raster || die
+ echo "" > "${ED}"/usr/share/qt4/graphicssystems/native || die
+
+ if has tools/qtconfig ${QT4_TARGET_DIRECTORIES}; then
+ newicon tools/qtconfig/images/appicon.png qtconfig.png
+ make_desktop_entry qtconfig 'Qt Configuration Tool' qtconfig 'Qt;Settings;DesktopSettings'
+ fi
+}
+
+pkg_postinst() {
+ qt4-build-multilib_pkg_postinst
+
+ # raster is the default graphicssystem, set it on first install
+ eselect qtgraphicssystem set raster --use-old
+}
diff --git a/dev-qt/qtgui/qtgui-5.6.2.ebuild b/dev-qt/qtgui/qtgui-5.6.2.ebuild
new file mode 100644
index 000000000000..da1e04dd3df2
--- /dev/null
+++ b/dev-qt/qtgui/qtgui-5.6.2.ebuild
@@ -0,0 +1,174 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="The GUI module and platform plugins for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+# TODO: linuxfb
+
+IUSE="accessibility dbus egl eglfs evdev +gif gles2 gtkstyle
+ ibus jpeg libinput +png tslib tuio +udev +xcb"
+REQUIRED_USE="
+ || ( eglfs xcb )
+ accessibility? ( dbus xcb )
+ eglfs? ( egl )
+ ibus? ( dbus )
+ libinput? ( udev )
+ xcb? ( gles2? ( egl ) )
+"
+
+RDEPEND="
+ dev-libs/glib:2
+ ~dev-qt/qtcore-${PV}
+ media-libs/fontconfig
+ >=media-libs/freetype-2.6.1:2
+ >=media-libs/harfbuzz-1.0.6:=
+ >=sys-libs/zlib-1.2.5
+ virtual/opengl
+ dbus? ( ~dev-qt/qtdbus-${PV} )
+ egl? ( media-libs/mesa[egl] )
+ eglfs? (
+ media-libs/mesa[gbm]
+ x11-libs/libdrm
+ )
+ evdev? ( sys-libs/mtdev )
+ gtkstyle? (
+ x11-libs/gtk+:2
+ x11-libs/pango
+ !!x11-libs/cairo[qt4]
+ )
+ gles2? ( media-libs/mesa[gles2] )
+ jpeg? ( virtual/jpeg:0 )
+ libinput? (
+ dev-libs/libinput:=
+ x11-libs/libxkbcommon
+ )
+ png? ( media-libs/libpng:0= )
+ tslib? ( x11-libs/tslib )
+ tuio? ( ~dev-qt/qtnetwork-${PV} )
+ udev? ( virtual/libudev:= )
+ xcb? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ >=x11-libs/libXi-1.7.4
+ x11-libs/libXrender
+ >=x11-libs/libxcb-1.10:=[xkb]
+ >=x11-libs/libxkbcommon-0.4.1[X]
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-keysyms
+ x11-libs/xcb-util-renderutil
+ x11-libs/xcb-util-wm
+ )
+"
+DEPEND="${RDEPEND}
+ evdev? ( sys-kernel/linux-headers )
+ udev? ( sys-kernel/linux-headers )
+"
+PDEPEND="
+ ibus? ( app-i18n/ibus )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/gui
+ src/openglextensions
+ src/platformheaders
+ src/platformsupport
+ src/plugins/generic
+ src/plugins/imageformats
+ src/plugins/platforms
+ src/plugins/platforminputcontexts
+ src/plugins/platformthemes
+)
+
+QT5_GENTOO_CONFIG=(
+ accessibility:accessibility-atspi-bridge
+ egl
+ eglfs
+ eglfs:eglfs_egldevice:
+ eglfs:eglfs_gbm:
+ evdev
+ evdev:mtdev:
+ :fontconfig
+ :system-freetype:FREETYPE
+ !:no-freetype:
+ !gif:no-gif:
+ gles2::OPENGL_ES
+ gles2:opengles2:OPENGL_ES_2
+ gtkstyle:gtkstyle:
+ gtkstyle:gtk2:STYLE_GTK
+ !:no-gui:
+ :system-harfbuzz:HARFBUZZ
+ !:no-harfbuzz:
+ jpeg:system-jpeg:IMAGEFORMAT_JPEG
+ !jpeg:no-jpeg:
+ libinput
+ libinput:xkbcommon-evdev:
+ :opengl
+ png:png:
+ png:system-png:IMAGEFORMAT_PNG
+ !png:no-png:
+ tslib
+ udev:libudev:
+ xcb:xcb:
+ xcb:xcb-glx:
+ xcb:xcb-plugin:
+ xcb:xcb-render:
+ xcb:xcb-sm:
+ xcb:xcb-xlib:
+ xcb:xinput2:
+ xcb::XKB
+ xcb:xrender
+)
+
+src_prepare() {
+ # egl_x11 is activated when both egl and xcb are enabled
+ use egl && QT5_GENTOO_CONFIG+=(xcb:egl_x11) || QT5_GENTOO_CONFIG+=(egl:egl_x11)
+
+ # avoid automagic dep on qtdbus
+ use dbus || sed -i -e 's/contains(QT_CONFIG, dbus)/false/' \
+ src/platformsupport/platformsupport.pro || die
+
+ qt_use_disable_mod ibus dbus \
+ src/plugins/platforminputcontexts/platforminputcontexts.pro
+
+ # avoid automagic dep on qtnetwork
+ use tuio || sed -i -e '/SUBDIRS += tuiotouch/d' \
+ src/plugins/generic/generic.pro || die
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(usex dbus -dbus-linked '')
+ $(qt_use egl)
+ $(qt_use eglfs)
+ $(usex eglfs '-gbm -kms' '')
+ $(qt_use evdev)
+ $(qt_use evdev mtdev)
+ -fontconfig
+ -system-freetype
+ $(usex gif '' -no-gif)
+ $(qt_use gtkstyle)
+ -system-harfbuzz
+ $(qt_use jpeg libjpeg system)
+ $(qt_use libinput)
+ $(qt_use libinput xkbcommon-evdev)
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use png libpng system)
+ $(qt_use tslib)
+ $(qt_use udev libudev)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon-x11 system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb -xrender' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild b/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild
new file mode 100644
index 000000000000..fc48b79fe7bd
--- /dev/null
+++ b/dev-qt/qtgui/qtgui-5.7.1-r1.ebuild
@@ -0,0 +1,179 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="The GUI module and platform plugins for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+# TODO: linuxfb
+
+IUSE="accessibility dbus egl eglfs evdev +gif gles2 gtk
+ ibus jpeg libinput +png tslib tuio +udev +xcb"
+REQUIRED_USE="
+ || ( eglfs xcb )
+ accessibility? ( dbus xcb )
+ eglfs? ( egl )
+ ibus? ( dbus )
+ libinput? ( udev )
+ xcb? ( gles2? ( egl ) )
+"
+
+RDEPEND="
+ dev-libs/glib:2
+ ~dev-qt/qtcore-${PV}
+ media-libs/fontconfig
+ >=media-libs/freetype-2.6.1:2
+ >=media-libs/harfbuzz-1.0.6:=
+ >=sys-libs/zlib-1.2.5
+ virtual/opengl
+ dbus? ( ~dev-qt/qtdbus-${PV} )
+ egl? ( media-libs/mesa[egl] )
+ eglfs? (
+ media-libs/mesa[gbm]
+ x11-libs/libdrm
+ )
+ evdev? ( sys-libs/mtdev )
+ gtk? (
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/pango
+ !!x11-libs/cairo[qt4]
+ )
+ gles2? ( media-libs/mesa[gles2] )
+ jpeg? ( virtual/jpeg:0 )
+ libinput? (
+ dev-libs/libinput:=
+ x11-libs/libxkbcommon
+ )
+ png? ( media-libs/libpng:0= )
+ tslib? ( x11-libs/tslib )
+ tuio? ( ~dev-qt/qtnetwork-${PV} )
+ udev? ( virtual/libudev:= )
+ xcb? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ >=x11-libs/libXi-1.7.4
+ x11-libs/libXrender
+ >=x11-libs/libxcb-1.10:=[xkb]
+ >=x11-libs/libxkbcommon-0.4.1[X]
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-keysyms
+ x11-libs/xcb-util-renderutil
+ x11-libs/xcb-util-wm
+ )
+"
+DEPEND="${RDEPEND}
+ evdev? ( sys-kernel/linux-headers )
+ udev? ( sys-kernel/linux-headers )
+"
+PDEPEND="
+ ibus? ( app-i18n/ibus )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-qclipboard.patch" # QTBUG-56972, KDE bug #348390
+ "${FILESDIR}/${P}-x32.patch" # bug 623882
+)
+
+QT5_TARGET_SUBDIRS=(
+ src/gui
+ src/openglextensions
+ src/platformheaders
+ src/platformsupport
+ src/plugins/generic
+ src/plugins/imageformats
+ src/plugins/platforms
+ src/plugins/platforminputcontexts
+ src/plugins/platformthemes
+)
+
+QT5_GENTOO_CONFIG=(
+ accessibility:accessibility-atspi-bridge
+ egl
+ eglfs
+ eglfs:eglfs_egldevice:
+ eglfs:eglfs_gbm:
+ evdev
+ evdev:mtdev:
+ :fontconfig
+ :system-freetype:FREETYPE
+ !:no-freetype:
+ !gif:no-gif:
+ gles2::OPENGL_ES
+ gles2:opengles2:OPENGL_ES_2
+ gtk:gtk3:
+ !:no-gui:
+ :system-harfbuzz:HARFBUZZ
+ !:no-harfbuzz:
+ jpeg:system-jpeg:IMAGEFORMAT_JPEG
+ !jpeg:no-jpeg:
+ libinput
+ libinput:xkbcommon-evdev:
+ :opengl
+ png:png:
+ png:system-png:IMAGEFORMAT_PNG
+ !png:no-png:
+ tslib
+ udev:libudev:
+ xcb:xcb:
+ xcb:xcb-glx:
+ xcb:xcb-plugin:
+ xcb:xcb-render:
+ xcb:xcb-sm:
+ xcb:xcb-xlib:
+ xcb:xinput2:
+ xcb::XKB
+ xcb:xrender
+)
+
+src_prepare() {
+ # egl_x11 is activated when both egl and xcb are enabled
+ use egl && QT5_GENTOO_CONFIG+=(xcb:egl_x11) || QT5_GENTOO_CONFIG+=(egl:egl_x11)
+
+ # avoid automagic dep on qtdbus
+ use dbus || sed -i -e 's/contains(QT_CONFIG, dbus)/false/' \
+ src/platformsupport/platformsupport.pro || die
+
+ qt_use_disable_mod ibus dbus \
+ src/plugins/platforminputcontexts/platforminputcontexts.pro
+
+ # avoid automagic dep on qtnetwork
+ use tuio || sed -i -e '/SUBDIRS += tuiotouch/d' \
+ src/plugins/generic/generic.pro || die
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(usex dbus -dbus-linked '')
+ $(qt_use egl)
+ $(qt_use eglfs)
+ $(usex eglfs '-gbm -kms' '')
+ $(qt_use evdev)
+ $(qt_use evdev mtdev)
+ -fontconfig
+ -system-freetype
+ $(usex gif '' -no-gif)
+ $(qt_use gtk)
+ -system-harfbuzz
+ $(qt_use jpeg libjpeg system)
+ $(qt_use libinput)
+ $(qt_use libinput xkbcommon-evdev)
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use png libpng system)
+ $(qt_use tslib)
+ $(qt_use udev libudev)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon-x11 system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb -xrender' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtgui/qtgui-5.9.2.ebuild b/dev-qt/qtgui/qtgui-5.9.2.ebuild
new file mode 100644
index 000000000000..53aa133b33be
--- /dev/null
+++ b/dev-qt/qtgui/qtgui-5.9.2.ebuild
@@ -0,0 +1,164 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="The GUI module and platform plugins for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+# TODO: linuxfb
+
+IUSE="accessibility dbus egl eglfs evdev +gif gles2 ibus
+ jpeg libinput +png tslib tuio +udev vnc +xcb"
+REQUIRED_USE="
+ || ( eglfs xcb )
+ accessibility? ( dbus xcb )
+ eglfs? ( egl )
+ ibus? ( dbus )
+ libinput? ( udev )
+ xcb? ( gles2? ( egl ) )
+"
+
+RDEPEND="
+ dev-libs/glib:2
+ ~dev-qt/qtcore-${PV}
+ media-libs/fontconfig
+ >=media-libs/freetype-2.6.1:2
+ >=media-libs/harfbuzz-1.0.6:=
+ >=sys-libs/zlib-1.2.5
+ virtual/opengl
+ dbus? ( ~dev-qt/qtdbus-${PV} )
+ egl? ( media-libs/mesa[egl] )
+ eglfs? (
+ media-libs/mesa[gbm]
+ x11-libs/libdrm
+ )
+ evdev? ( sys-libs/mtdev )
+ gles2? ( media-libs/mesa[gles2] )
+ jpeg? ( virtual/jpeg:0 )
+ libinput? (
+ dev-libs/libinput:=
+ x11-libs/libxkbcommon
+ )
+ png? ( media-libs/libpng:0= )
+ tslib? ( x11-libs/tslib )
+ tuio? ( ~dev-qt/qtnetwork-${PV} )
+ udev? ( virtual/libudev:= )
+ vnc? ( ~dev-qt/qtnetwork-${PV} )
+ xcb? (
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ >=x11-libs/libXi-1.7.4
+ >=x11-libs/libxcb-1.10:=[xkb]
+ >=x11-libs/libxkbcommon-0.4.1[X]
+ x11-libs/xcb-util-image
+ x11-libs/xcb-util-keysyms
+ x11-libs/xcb-util-renderutil
+ x11-libs/xcb-util-wm
+ )
+"
+DEPEND="${RDEPEND}
+ evdev? ( sys-kernel/linux-headers )
+ udev? ( sys-kernel/linux-headers )
+"
+PDEPEND="
+ ibus? ( app-i18n/ibus )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/gui
+ src/openglextensions
+ src/platformheaders
+ src/platformsupport
+ src/plugins/generic
+ src/plugins/imageformats
+ src/plugins/platforms
+ src/plugins/platforminputcontexts
+)
+
+QT5_GENTOO_CONFIG=(
+ accessibility:accessibility-atspi-bridge
+ egl
+ eglfs
+ eglfs:eglfs_egldevice:
+ eglfs:eglfs_gbm:
+ evdev
+ evdev:mtdev:
+ :fontconfig
+ :system-freetype:FREETYPE
+ !:no-freetype:
+ !gif:no-gif:
+ gles2::OPENGL_ES
+ gles2:opengles2:OPENGL_ES_2
+ !:no-gui:
+ :system-harfbuzz:HARFBUZZ
+ !:no-harfbuzz:
+ jpeg:system-jpeg:IMAGEFORMAT_JPEG
+ !jpeg:no-jpeg:
+ libinput
+ libinput:xkbcommon-evdev:
+ :opengl
+ png:png:
+ png:system-png:IMAGEFORMAT_PNG
+ !png:no-png:
+ tslib
+ udev:libudev:
+ xcb:xcb:
+ xcb:xcb-glx:
+ xcb:xcb-plugin:
+ xcb:xcb-render:
+ xcb:xcb-sm:
+ xcb:xcb-xlib:
+ xcb:xinput2:
+ xcb::XKB
+)
+
+src_prepare() {
+ # egl_x11 is activated when both egl and xcb are enabled
+ use egl && QT5_GENTOO_CONFIG+=(xcb:egl_x11) || QT5_GENTOO_CONFIG+=(egl:egl_x11)
+
+ qt_use_disable_config dbus dbus \
+ src/platformsupport/themes/genericunix/genericunix.pri
+
+ qt_use_disable_config tuio udpsocket src/plugins/generic/generic.pro
+
+ qt_use_disable_mod ibus dbus \
+ src/plugins/platforminputcontexts/platforminputcontexts.pro
+
+ use vnc || sed -i -e '/SUBDIRS += vnc/d' \
+ src/plugins/platforms/platforms.pro || die
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myconf=(
+ $(usex dbus -dbus-linked '')
+ $(qt_use egl)
+ $(qt_use eglfs)
+ $(usex eglfs '-gbm -kms' '')
+ $(qt_use evdev)
+ $(qt_use evdev mtdev)
+ -fontconfig
+ -system-freetype
+ $(usex gif '' -no-gif)
+ -system-harfbuzz
+ $(qt_use jpeg libjpeg system)
+ $(qt_use libinput)
+ $(qt_use libinput xkbcommon-evdev)
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use png libpng system)
+ $(qt_use tslib)
+ $(qt_use udev libudev)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon-x11 system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qthelp/Manifest b/dev-qt/qthelp/Manifest
new file mode 100644
index 000000000000..aec3940433c6
--- /dev/null
+++ b/dev-qt/qthelp/Manifest
@@ -0,0 +1,17 @@
+AUX qthelp-4.8.6-compat-install.patch 899 SHA256 23628bd66004fad412e60955fc68f23d2b7ee4e64653827e627c900a2a5c3fd9 SHA512 dc960f735a92a8bfa7a10e2c898eeb1dbdbf273cf342af3b0924240a1f3bc15694e86679b0f6cbd28f24246bfad3a5d799a6f383503deafa5b4adeb368a69158 WHIRLPOOL 5a08e3a6c47607de689d8ecc92fd202f4a02c2ac95171c12d2e52a489c8ee5ede9d2e6595ab7e77b7eb93c43150efca77dee974acc96b541f9cd9404ff141bf4
+AUX qthelp-4.8.6-compat-syncqt.patch 884 SHA256 bfdebf61b84520f38099f683023c315586f58398d95cbcf436ec0673c414d58d SHA512 ee18303ca95569a66b1680f10a65766d67caca33928eb5d4f7ae2a4ffa883caa32dcb4adf7f48536e5bf78dcc26d30521c1309e9dfb0226284322220895ec20a WHIRLPOOL 1c3342c741cd4731ed72aeaded1a48898dd0d1a13f1afc36a76a14744c96d703084a5ca507b6f6769795a59e339ebd7c312128e0246eb7f52aaf84b187c14838
+DIST qt-assistant-compat-headers-4.7.tar.gz 448 SHA256 73ae604834cc89d6c67bafc65bb5d3cadaec23076d02711fc0c30a85df3d8580 SHA512 da14cb9904591f4389862cf1e1c96f923e72b7b904d57787d68feae2c90d52bf713e930442aa3abd4b457c3cc66c88b94e23df5fc25e33e01f1ed4d3093460bb WHIRLPOOL 26c42c101aab36a8d0355f1243226f6b8bd5a477c5aafece7e036f18a9fcfe98ae016042befe494fca0c42b825e29539825466c1ddb720102fa6c65e9cbaec61
+DIST qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz 329896 SHA256 e698be8fc0d32c5f0b5b46cafcb8f615accaed524b864e58b99b64b7b5549c2d SHA512 a4050d93e448d29004d71d5ea670e60242f1272399f65db084dd928150f26404d37544d011d75bbb1c62f227752f92b86a4f4382dc54f0681a3df6da738af106 WHIRLPOOL 9c2822ae2f1ee7c4f63236cc95eb0cb025f088e1f13e0a154fabdad5af6209b0e4cdda86d23061bf35fe5919a1909ed162bbc4835da79fdf1b187461aa948a1b
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qthelp-4.8.6-r3.ebuild 3161 SHA256 268293f3016fecd18da4abbfddb329b06aad20a7ff180857d13dda54a90db7a7 SHA512 403b8409ebafa4deddd785234b3b6f19009831d9e5ad9caaf202a2e8a41eff88210431222ac1ac712d4764a71474d05e31e5eeed96620e7f22b7dae7f2a6c2bc WHIRLPOOL 7c278af8ee265c5d735d8ad382b0c156ced55469cfe119209477d6773999fb623182ae8c1b7c9e14734d2ce08950fc142afbf35052ff4e850523985af1a03ad7
+EBUILD qthelp-4.8.7.ebuild 3122 SHA256 b903b4a7595e26c47f84fb505d05ab68e3505f9edc334d2cb8eb4b48207481b2 SHA512 d06253208591e380d378db2e3496c42940581b781c1c4e82fdd3dba9d2bea6623161d4ada16b80bd6fcf503d78f0eb83972932e3ada501104539587857261d58 WHIRLPOOL 480305d4ef84a1b544588a49ed00a4b61d49b1e3298174ee359c66c08e64dff8317a66eb4bda03f56be329c2a883a7b2ad9043df4d57a01d0f27781cc4e07274
+EBUILD qthelp-5.6.2.ebuild 646 SHA256 6ff0155b5abfadb8b8b6954ca584b64695ba5783447024ad7fc4a2f0fedd30ad SHA512 f1500790d50b7b058d2709849bc43410f465d826fb90ca9d53c2b4ab0a46512a2bf1adec4433889b5bc2eabef5264a41ac139e23884b25e8c8409beca4e77b08 WHIRLPOOL 58417ac1b40ff52cf4d843bb08255a6b8ae08dab515c92a292edf2cb40f428efcebad06487789de5b4509d40753b2354d52fae4d16196d9ad79ac49eda0460ba
+EBUILD qthelp-5.7.1.ebuild 654 SHA256 46e6952b35c201eef39cb1206e1b272c2c0f811de83ab41d7738fff1ebbdfd5f SHA512 7f39755f978e4f800d0f2112fe3b21ff9afcdc214adadb0899360b793e4c3397f47e025921484947cbb5cc58e8ea902af20cc8ba59dd0bdafde750ae0e70fff9 WHIRLPOOL efd992ca2e36c40db259a6ead1f8aa017d41bf788e79abb7e3382869f51e30445f2b0e5a8e0ba8db1a8e5758c4e8fe47c277b24dd850cbfeb7767293df48c783
+EBUILD qthelp-5.9.2.ebuild 635 SHA256 93a760c5b009639aa40d8400c8b0e421a7e7331f02c31a14f268d282e229913d SHA512 b009033e600ec950857318aae331ba88b8efebeb9beb03a0668b50a89feb4fd0c580ae40957f1d71cd3d490675e33c268da4adf98416f8599ccab4dfa0b4a5d8 WHIRLPOOL 989af35a016da8adc88b4b23611ee2847d01b3d36fa5ec28a1606b988c2c0df48c9d2e435d33d37def0c61baa6d81aa91ac20e03d1b99339be373eeca4437393
+MISC ChangeLog 7125 SHA256 debc4eea88f544d10a406cea4f13c14fc31b0cbfc17d44429d137808d3763314 SHA512 5d4a6ba58734ea9fc99fc2c89ee61537efdea0aab4bec972c6245363a31ec75dcacf0645b868c931cf62b646aba758b4a7d6eaa1bea19f824e2d49d80a59e0ba WHIRLPOOL 4157986c2da4c68d8575ed31bb6411e3d3b6a67faf21ac465301a64aafd584ea87fff3239dec294da3cc17443687cb7062f3178020a92503fc1f4f084e016d25
+MISC ChangeLog-2015 28512 SHA256 d543414c11a61b2cb21dcc0583cf00541369996a53f5ddbd065585328cf25854 SHA512 fa366c8b894b98b1fdaf5941a3948ba4bb4eaa1e9fcfc580aabef973dae3a3bfe562ac39a4bf193dcbab61781f4e9dee50b61e51a194a0bd5a05e2981bde3be1 WHIRLPOOL 858519b7a39789d7b958410aaac3602558a998cbe7bf15b08f134f189db62e32d23c42dbfd07dd1525dd650ba7c123234d21c307f23e4aa9ad77974111cccfc2
+MISC metadata.xml 825 SHA256 04c20732c7c40d5974ad6a8435b7bdfcea47d4c8eb3b9eeb1115fee81e92cc9e SHA512 54d474dfe7325966022026beab59b144932f523ced472f0d5d49f72727f6129923af821211fff3d42bc8dd02701e80f313e9e8c0f34e2cf18db1888ad8907026 WHIRLPOOL 2e6ee295b40970077669f030459af88393d9dc48cb6a4721ebd5ab5e7d310c49cac80f95b916f726e9cbac71c9b38741a0c423c5d3a59d7b528ad963ffe11bc6
diff --git a/dev-qt/qthelp/files/qthelp-4.8.6-compat-install.patch b/dev-qt/qthelp/files/qthelp-4.8.6-compat-install.patch
new file mode 100644
index 000000000000..e157381c8f05
--- /dev/null
+++ b/dev-qt/qthelp/files/qthelp-4.8.6-compat-install.patch
@@ -0,0 +1,35 @@
+From 89f99089abe0c1369a78a3bb8e2a576c513ec809 Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <pesa@gentoo.org>
+Date: Wed, 6 May 2015 23:21:54 +0200
+Subject: [PATCH] Install assistant_adp binary.
+
+---
+ tools/assistant/compat/compat.pro | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/tools/assistant/compat/compat.pro b/tools/assistant/compat/compat.pro
+index 171106a..a14e3f8 100755
+--- a/tools/assistant/compat/compat.pro
++++ b/tools/assistant/compat/compat.pro
+@@ -14,6 +14,8 @@ QT += xml network
+
+ PROJECTNAME = Assistant
+
++DESTDIR = ../../../bin
++
+ FORMS += helpdialog.ui \
+ mainwindow.ui \
+ tabbedbrowser.ui \
+@@ -59,6 +61,9 @@ mac {
+ TARGET = Assistant_adp
+ }
+
++target.path = $$[QT_INSTALL_BINS]
++INSTALLS += target
++
+ TRANSLATIONS = translations/assistant_adp_de.ts \
+ translations/assistant_adp_ja.ts \
+ translations/assistant_adp_pl.ts \
+--
+2.4.0
+
diff --git a/dev-qt/qthelp/files/qthelp-4.8.6-compat-syncqt.patch b/dev-qt/qthelp/files/qthelp-4.8.6-compat-syncqt.patch
new file mode 100644
index 000000000000..4ba6b6ff7417
--- /dev/null
+++ b/dev-qt/qthelp/files/qthelp-4.8.6-compat-syncqt.patch
@@ -0,0 +1,25 @@
+From 37725ccec4d26148dde377d78c71046e8b6a6de9 Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <pesa@gentoo.org>
+Date: Wed, 6 May 2015 22:44:57 +0200
+Subject: [PATCH] Teach syncqt how to handle the QtAssistant compat headers.
+
+See https://bugs.gentoo.org/show_bug.cgi?id=529398#c47
+---
+ bin/syncqt | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/bin/syncqt b/bin/syncqt
+index dd94d4d..cc5a7bf 100755
+--- a/bin/syncqt
++++ b/bin/syncqt
+@@ -81,6 +81,7 @@ my %modules = ( # path to module name map
+ "ActiveQt" => "$basedir/src/activeqt",
+ "QtTest" => "$basedir/src/testlib",
+ "QtHelp" => "$basedir/tools/assistant/lib",
++ "QtAssistant" => "$basedir/tools/assistant/compat/lib",
+ "QtDesigner" => "$basedir/tools/designer/src/lib",
+ "QtUiTools" => "$basedir/tools/designer/src/uitools",
+ "QtDBus" => "$basedir/src/dbus",
+--
+2.4.0
+
diff --git a/dev-qt/qthelp/metadata.xml b/dev-qt/qthelp/metadata.xml
new file mode 100644
index 000000000000..a1b560594940
--- /dev/null
+++ b/dev-qt/qthelp/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="compat">Build the extra compatibility layer required by a few packages, see
+ http://blog.qt.io/blog/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qthelp/qthelp-4.8.6-r3.ebuild b/dev-qt/qthelp/qthelp-4.8.6-r3.ebuild
new file mode 100644
index 000000000000..57df24957a07
--- /dev/null
+++ b/dev-qt/qthelp/qthelp-4.8.6-r3.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The Help module for the Qt toolkit"
+SRC_URI+="
+ compat? (
+ http://download.qt.io/archive/qt/4.6/qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz
+ https://dev.gentoo.org/~pesa/distfiles/qt-assistant-compat-headers-4.7.tar.gz
+ )"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE="compat doc"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,sqlite,${MULTILIB_USEDEP}]
+ compat? (
+ ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ tools/assistant/lib/fulltextsearch
+ tools/assistant/lib
+ tools/assistant/tools/qhelpgenerator
+ tools/assistant/tools/qcollectiongenerator
+ tools/assistant/tools/qhelpconverter
+ tools/qdoc3"
+
+pkg_setup() {
+ use compat && QT4_TARGET_DIRECTORIES+="
+ tools/assistant/compat
+ tools/assistant/compat/lib"
+}
+
+src_unpack() {
+ qt4-build-multilib_src_unpack
+
+ # compat version
+ # http://blog.qt.io/blog/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/
+ if use compat; then
+ mv "${WORKDIR}"/qt-assistant-qassistantclient-library-compat-version-4.6.3 "${S}"/tools/assistant/compat || die
+ mv "${WORKDIR}"/QtAssistant "${S}"/include || die
+ find "${S}"/tools/assistant/compat -type f -execdir chmod a-x '{}' + || die
+ fi
+}
+
+src_prepare() {
+ use compat && PATCHES+=(
+ "${FILESDIR}/${PN}-4.8.6-compat-install.patch"
+ "${FILESDIR}/${PN}-4.8.6-compat-syncqt.patch"
+ )
+
+ qt4-build-multilib_src_prepare
+
+ # prevent rebuild of QtCore and QtXml (bug 348034)
+ sed -i -e '/^sub-qdoc3\.depends/d' doc/doc.pri || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -no-multimedia -no-opengl -no-phonon -no-qt3support -no-svg -no-webkit -no-xmlpatterns
+ -no-nas-sound -no-cups -no-nis -fontconfig
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_compile() {
+ qt4_multilib_src_compile
+
+ # release tarballs are shipped with prebuilt docs
+ if [[ ${QT4_BUILD_TYPE} == live ]] && multilib_is_native_abi; then
+ # qhelpgenerator needs libQtHelp.so.4
+ export LD_LIBRARY_PATH=${BUILD_DIR}/lib
+ export DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
+ emake docs
+ fi
+}
+
+multilib_src_install() {
+ qt4_multilib_src_install
+
+ if multilib_is_native_abi; then
+ emake INSTALL_ROOT="${D}" install_qchdocs
+ use doc && emake INSTALL_ROOT="${D}" install_htmldocs
+
+ # do not compress .qch files
+ docompress -x "${QT4_DOCDIR#${EPREFIX}}"/qch
+ fi
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ if use compat; then
+ insinto "${QT4_DATADIR#${EPREFIX}}"/mkspecs/features
+ doins tools/assistant/compat/features/assistant.prf
+ fi
+}
diff --git a/dev-qt/qthelp/qthelp-4.8.7.ebuild b/dev-qt/qthelp/qthelp-4.8.7.ebuild
new file mode 100644
index 000000000000..0587f38e146e
--- /dev/null
+++ b/dev-qt/qthelp/qthelp-4.8.7.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The Help module for the Qt toolkit"
+SRC_URI+="
+ compat? (
+ http://download.qt.io/archive/qt/4.6/qt-assistant-qassistantclient-library-compat-src-4.6.3.tar.gz
+ https://dev.gentoo.org/~pesa/distfiles/qt-assistant-compat-headers-4.7.tar.gz
+ )"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 ia64 ppc ppc64 sparc x86"
+fi
+
+IUSE="compat doc"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtsql-${PV}[aqua=,debug=,sqlite,${MULTILIB_USEDEP}]
+ compat? (
+ ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ tools/assistant/lib/fulltextsearch
+ tools/assistant/lib
+ tools/assistant/tools/qhelpgenerator
+ tools/assistant/tools/qcollectiongenerator
+ tools/assistant/tools/qhelpconverter
+ tools/qdoc3"
+
+pkg_setup() {
+ use compat && QT4_TARGET_DIRECTORIES+="
+ tools/assistant/compat
+ tools/assistant/compat/lib"
+}
+
+src_unpack() {
+ qt4-build-multilib_src_unpack
+
+ # compat version
+ # http://blog.qt.io/blog/2010/06/22/qt-assistant-compat-version-available-as-extra-source-package/
+ if use compat; then
+ mv "${WORKDIR}"/qt-assistant-qassistantclient-library-compat-version-4.6.3 "${S}"/tools/assistant/compat || die
+ mv "${WORKDIR}"/QtAssistant "${S}"/include || die
+ find "${S}"/tools/assistant/compat -type f -execdir chmod a-x '{}' + || die
+ fi
+}
+
+src_prepare() {
+ use compat && PATCHES+=(
+ "${FILESDIR}/${PN}-4.8.6-compat-install.patch"
+ "${FILESDIR}/${PN}-4.8.6-compat-syncqt.patch"
+ )
+
+ qt4-build-multilib_src_prepare
+
+ # prevent rebuild of QtCore and QtXml (bug 348034)
+ sed -i -e '/^sub-qdoc3\.depends/d' doc/doc.pri || die
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -no-multimedia -no-opengl -no-phonon -no-qt3support -no-svg -no-webkit -no-xmlpatterns
+ -no-nas-sound -no-cups -no-nis -fontconfig
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_compile() {
+ qt4_multilib_src_compile
+
+ # release tarballs are shipped with prebuilt docs
+ if [[ ${QT4_BUILD_TYPE} == live ]] && multilib_is_native_abi; then
+ # qhelpgenerator needs libQtHelp.so.4
+ export LD_LIBRARY_PATH=${BUILD_DIR}/lib
+ export DYLD_LIBRARY_PATH=${BUILD_DIR}/lib:${BUILD_DIR}/lib/QtHelp.framework
+ emake docs
+ fi
+}
+
+multilib_src_install() {
+ qt4_multilib_src_install
+
+ if multilib_is_native_abi; then
+ emake INSTALL_ROOT="${D}" install_qchdocs
+ use doc && emake INSTALL_ROOT="${D}" install_htmldocs
+
+ # do not compress .qch files
+ docompress -x "${QT4_DOCDIR#${EPREFIX}}"/qch
+ fi
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ if use compat; then
+ insinto "${QT4_DATADIR#${EPREFIX}}"/mkspecs/features
+ doins tools/assistant/compat/features/assistant.prf
+ fi
+}
diff --git a/dev-qt/qthelp/qthelp-5.6.2.ebuild b/dev-qt/qthelp/qthelp-5.6.2.ebuild
new file mode 100644
index 000000000000..9ea9b7860736
--- /dev/null
+++ b/dev-qt/qthelp/qthelp-5.6.2.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating online documentation into applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/clucene
+ src/assistant/help
+ src/assistant/qcollectiongenerator
+ src/assistant/qhelpconverter
+ src/assistant/qhelpgenerator
+)
diff --git a/dev-qt/qthelp/qthelp-5.7.1.ebuild b/dev-qt/qthelp/qthelp-5.7.1.ebuild
new file mode 100644
index 000000000000..94076fb49b9b
--- /dev/null
+++ b/dev-qt/qthelp/qthelp-5.7.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating online documentation into applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/clucene
+ src/assistant/help
+ src/assistant/qcollectiongenerator
+ src/assistant/qhelpconverter
+ src/assistant/qhelpgenerator
+)
diff --git a/dev-qt/qthelp/qthelp-5.9.2.ebuild b/dev-qt/qthelp/qthelp-5.9.2.ebuild
new file mode 100644
index 000000000000..05bca2693503
--- /dev/null
+++ b/dev-qt/qthelp/qthelp-5.9.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating online documentation into applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtsql-${PV}[sqlite]
+ ~dev-qt/qtwidgets-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/assistant/help
+ src/assistant/qcollectiongenerator
+ src/assistant/qhelpconverter
+ src/assistant/qhelpgenerator
+)
diff --git a/dev-qt/qtimageformats/Manifest b/dev-qt/qtimageformats/Manifest
new file mode 100644
index 000000000000..3a6f5279f9c0
--- /dev/null
+++ b/dev-qt/qtimageformats/Manifest
@@ -0,0 +1,9 @@
+DIST qtimageformats-opensource-src-5.6.2.tar.xz 1909556 SHA256 4fb153be62dac393cbcebab65040b3b9d6edecd1ebbe5e543401b0e45bd147e4 SHA512 ef501cb0b6fc7f1a2fb9725d48950e87e847733bb8e296a5630cfa25365307bc5ee574cb7a69cef48b2c7c5b810d6f3363021e4e18eff0951ab0fc38c7b12c96 WHIRLPOOL 8398b30c1ad48d827550cf22d3721079856c492f5a7dde7cdf37ec820c870310398408e95ce13a8ec577f391831560bd44624b07dd798cb2b62da78c00358205
+DIST qtimageformats-opensource-src-5.7.1.tar.xz 2004376 SHA256 4f97a2a2b269f8a45576256ad9f452320c9c9de6d9c7cc1751fdeac36b0f77f4 SHA512 b70fe30b20da8f613f05ae68bf879956341206005d1eff3c34fc279da6b219ff7983d41c2c0c057c85500a2c5826286c63f4c209dc2db84d03848241257be553 WHIRLPOOL b9541ce413e908dea4ac70e62a53cb82b89df4feddd566f479e32ad473b7b320fad0eb8229e97a3d040f826e2513d5ee922b796d16e06b00243b9d96579b103e
+DIST qtimageformats-opensource-src-5.9.2.tar.xz 2093756 SHA256 3a626ca0ac7ffc56b59c4b3f66aac6bc76954054cedb6938b961562228eb9df3 SHA512 5f1b93c0e5fffa4c2c063d14c12ad97114a452b16814ca9ac45f00ec36308a09770b3b4d137cb5d19bd3aa3a6f576724084df5d0dad75236d49868af9243c9d2 WHIRLPOOL a1b7aa0925ab8136acdb2ba8c127a1c82b4ccb19a454b82f728099ae25704e3e564822e8fb419a0bb70b39962a271af9d27ca51974d4c33414d5526d793502b5
+EBUILD qtimageformats-5.6.2.ebuild 454 SHA256 e292b178ac8ed85935518f204d0ba1555495a9072f5274c501b3a5bb78514586 SHA512 92c569cfc04f90a34f574f6a25daa1cfae712cb4c93c47c656a480b53927a49aa058ec4a30e6a59b4a1e9fcff0315316274632108af11a37bde2a5805dca45e8 WHIRLPOOL 78253b9129b41b5238c14bafa5f86cedddf9f6a2afcd5117f11125823c8f9b058f4b774d203b003a75ce3310eb9303ef9dfd14f51b10c1281d6047e691309e79
+EBUILD qtimageformats-5.7.1.ebuild 455 SHA256 ce7e47b2d9a0081d2cfbcf387d3ab2a589033e54b3bd56e0c79f67c9ef2e9bb9 SHA512 e0b66f1116601b4782913cda26836d42e13170887f00e5a74ab0983bdf1d53c9c60c98499b75a556e627df106268b40f0f8a0f5cc5b3877e6b1896cf33fd55b9 WHIRLPOOL 9f14bd7d22876f8f137feb07d9d51a0acb88cb45ba3d4cd2e20665272112028e2bc951ec26c96d77e024bf50db86e3585a3148c5ba76dacbe367c59534e26741
+EBUILD qtimageformats-5.9.2.ebuild 459 SHA256 ab17e383e1e9cb51c6bcd6e686402256cc42812b9d8d1457505db9eed219ac3b SHA512 7b14f36690a5617a6e08f297ce015d1b227e0afc1e6b37313bb50c96424efb5d3d04029b88a4266b57a1c35dc9579b02e63fee8cd72627f71fd3c71b3bea1439 WHIRLPOOL 9adf85a62a032337e64b35f1bf2334c02485904faad19055b9454fa1ed56ccbba4e678905bed8bbccc814ac13155248402b02955ea533c1baabdedb7ff589d37
+MISC ChangeLog 6029 SHA256 b44c1703fcef938e2824d3f6c25970f099bddee8abfae463bd368548d96f2f61 SHA512 fca72cfa747ab572dec0bb972efe852e09e0bdf25bbf50366dc659877e79e20a604525e3f2c7e003b0609444f42bf397d5a9cf93cfb002547a29bc317465ccf4 WHIRLPOOL dd85f8b2266a238127dc2d124a61fe35b4284532649187ce3b24186b2a3db4c66a1ab013d8abbeeff7ad2e9aad90a5aa47929d9173b5f03cb2671ecd5a7b70c1
+MISC ChangeLog-2015 1749 SHA256 4e55dbf10e8820237f665b0d64ef54dbfba3f5b191e0be6a5531e6778eca9b7f SHA512 a6f41a38717dc743cbfb29dd6805b9a66e6edb7b0da89d9f5027bd311377d664080b5a638fc7a2d5b95ca635b70cce084fef9f8e329f6319a95202c5c1f17f26 WHIRLPOOL 40509410409b1f455bbd2c201449a5cac9edcbf734de1ce1b1f57a9f734571731881db365d7da6e8febcfcaab34ae2539bfac2c37c0f3d0077dc117dad5993fa
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtimageformats/metadata.xml b/dev-qt/qtimageformats/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtimageformats/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtimageformats/qtimageformats-5.6.2.ebuild b/dev-qt/qtimageformats/qtimageformats-5.6.2.ebuild
new file mode 100644
index 000000000000..e5050f1a3ff6
--- /dev/null
+++ b/dev-qt/qtimageformats/qtimageformats-5.6.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Additional format plugins for the Qt image I/O system"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ media-libs/jasper:=
+ media-libs/libmng:=
+ media-libs/libwebp:=
+ media-libs/tiff:0
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtimageformats/qtimageformats-5.7.1.ebuild b/dev-qt/qtimageformats/qtimageformats-5.7.1.ebuild
new file mode 100644
index 000000000000..ddb527bde9d1
--- /dev/null
+++ b/dev-qt/qtimageformats/qtimageformats-5.7.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Additional format plugins for the Qt image I/O system"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ media-libs/jasper:=
+ media-libs/libmng:=
+ media-libs/libwebp:=
+ media-libs/tiff:0
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtimageformats/qtimageformats-5.9.2.ebuild b/dev-qt/qtimageformats/qtimageformats-5.9.2.ebuild
new file mode 100644
index 000000000000..3285265ebe1a
--- /dev/null
+++ b/dev-qt/qtimageformats/qtimageformats-5.9.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Additional format plugins for the Qt image I/O system"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ media-libs/jasper:=
+ media-libs/libmng:=
+ media-libs/libwebp:=
+ media-libs/tiff:0
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtlocation/Manifest b/dev-qt/qtlocation/Manifest
new file mode 100644
index 000000000000..23e5c6b5403d
--- /dev/null
+++ b/dev-qt/qtlocation/Manifest
@@ -0,0 +1,8 @@
+DIST qtlocation-opensource-src-5.6.2.tar.xz 3148448 SHA256 7a8995206ed0220f943a33c037527a1a8243d5386f5ca77bf88152675c28d23a SHA512 10d87e9e546d52fc1813cbe244cb592033758460129854879b0d04600bd2285c2ae499bb131de77bf66b4989b45d14e9e656a30aaeee47628e41b026908ed97e WHIRLPOOL 4c4cb895d3cd5cf2ac6ad385374d0dce6e91a9b6f3f562bff5e2715896d108f9f1a60ff13a5d360238812b34523d50f0ede92211830e2d0eef6ccc5b28d82966
+DIST qtlocation-opensource-src-5.7.1.tar.xz 3194112 SHA256 f9e9e64e757008c2341504a1916a219ee0cf2b1b42bfa72156e62dfe9dfbf39f SHA512 a3e0318ad348edd6d9cb4762d4fc6230a47984fcf526f55cc2c9bc00e2e70fdb1380866ec8906e3f58669c62464f8747c948d85107a2d30be1e98da27c7739d4 WHIRLPOOL be30847a33b1bb356d6725202968e189abf4a5bcdc5c2decf9a7ffc14b2d3875dfde827b41b97bf11c9497ec584f351c567150d84bb93fedeb3cb15ce0ac0075
+DIST qtlocation-opensource-src-5.9.2.tar.xz 5369548 SHA256 c81a42e44ebd4e9c33f7195e86af3deab9fde72ef0ad8dcb04acee250d356b0c SHA512 da2e011d37b1c30395360987d66978c842aae41491ce3201316ebe1acf453fb31626575e3c3d65836aa6ac80e3d4324a613f0245e90598b507a89d13ea241786 WHIRLPOOL 2a2dd20d9fc5ae75e469438587dd1d57b65a5a5e642a6806bc067b0cfa914ef0309a63b37163b0fb349134bb3b6a1fb4785691c1a8d2ef681c624df29a1df67a
+EBUILD qtlocation-5.6.2.ebuild 530 SHA256 1acd5f8cac46552d0773381eadb3419c409671d9179a48f0927d93d5b5dacc00 SHA512 0062dd3acabc93601074661c77078daddc945b40c5820202d2412d8874cbd3f763604bef125d627a6514346a5dfc1ed848aa93756b01610e9f088f285a9ca6af WHIRLPOOL acb7839b0b3420452fb1c1464fa724f5e0ab1c02b5c670c2faa2dfd038e57d5a87b6daf6605c1cfc6fe5da22212e6d3f4aa224a3461cb9435a76b804b6fd0bf1
+EBUILD qtlocation-5.7.1.ebuild 537 SHA256 19b53257a972cb3f7e71c2e89f0424c3551b7551ce8619f60111d1356ac2f310 SHA512 fd686ef629bcbdee03a9738b2a2d75464c2099830a38f165427ce475f386b5a459621a033e0ef0044fc10da2ca7d545a78e82a23b7328338ecc38407b53151a8 WHIRLPOOL ecafb00018642857da0b390b958f1dbbae9a5156c237cda910f03ba2e352bb5c65478f6f6a8c777553345b04a1dfc1d1ae4624360dca4ead08f9403ee8a9c9a7
+EBUILD qtlocation-5.9.2.ebuild 691 SHA256 4931316f8cee31b4749e14e8d9c9389449377cdbd83ae0f17bec3fe599970971 SHA512 1fa6e3e41c7b4f05171a369be729d26250a957b382d017b8ff5da97678ecb3b9341da11021545c59cf08395734e6b989fe20c8733bf831bc6246e3cef960d75b WHIRLPOOL 63807552ed816eff1a89bbf8a341b5c1874a89b0bab323175b1293aa2e97a2da698393ed77a63a3c5fabcd826196eaf2626698c158b076b8f463a92336af5528
+MISC ChangeLog 1541 SHA256 8c61f1c2236c343cb43b901832078cab5aeef49798ea38632e2982265f93be42 SHA512 4a2f1f1154219008495ecaff409ea96767959983f664b9e508252328cc8aad1ee02e94642c4fd992267aa7c21aae6303c3d4efd46f2b4e3410c867d4e4e97aea WHIRLPOOL 659bfe965efb66b7577145e03ef0adea42c427c6de8c4383c7cf5dc1bc2ba7355b5ab17b6d3d8f6654ab3f3b37f2d2f0c1f527837a44b6bfe9692cb7eaf29c9e
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtlocation/metadata.xml b/dev-qt/qtlocation/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtlocation/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtlocation/qtlocation-5.6.2.ebuild b/dev-qt/qtlocation/qtlocation-5.6.2.ebuild
new file mode 100644
index 000000000000..d7971ac3939a
--- /dev/null
+++ b/dev-qt/qtlocation/qtlocation-5.6.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="The Location module for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtpositioning-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/3rdparty
+ src/location
+ src/imports/location
+ src/plugins/geoservices
+)
diff --git a/dev-qt/qtlocation/qtlocation-5.7.1.ebuild b/dev-qt/qtlocation/qtlocation-5.7.1.ebuild
new file mode 100644
index 000000000000..1606820cf103
--- /dev/null
+++ b/dev-qt/qtlocation/qtlocation-5.7.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="The Location module for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtpositioning-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/3rdparty
+ src/location
+ src/imports/location
+ src/plugins/geoservices
+)
diff --git a/dev-qt/qtlocation/qtlocation-5.9.2.ebuild b/dev-qt/qtlocation/qtlocation-5.9.2.ebuild
new file mode 100644
index 000000000000..420e3c9ba782
--- /dev/null
+++ b/dev-qt/qtlocation/qtlocation-5.9.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="The Location module for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtpositioning-${PV}
+ ~dev-qt/qtsql-${PV}
+ sys-libs/zlib
+"
+DEPEND="${RDEPEND}
+ ~dev-qt/qtconcurrent-${PV}
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/3rdparty/clipper
+ src/3rdparty/poly2tri
+ src/3rdparty/clip2tri
+ src/3rdparty/mapbox-gl-native
+ src/location
+ src/imports/location
+ src/plugins/geoservices
+)
diff --git a/dev-qt/qtlockedfile/Manifest b/dev-qt/qtlockedfile/Manifest
new file mode 100644
index 000000000000..dcc4aae7f680
--- /dev/null
+++ b/dev-qt/qtlockedfile/Manifest
@@ -0,0 +1,6 @@
+AUX qtlockedfile.prf 190 SHA256 04a45f27023aad55d51372bd5c6adb1c8090ea32e408f993dd1b9d7bf6fc0572 SHA512 efd51aa88a40ad5615d3ae9122a360997a3d32e3f212e7d9c1c2cf9e42984a1e4b9ccff02c6ddc1e8926104527004536ad848c5ef24bc28a93eb556d99235696 WHIRLPOOL 9e5aa3cdb12730a30438c755c2e98b62f884162acf45fc4b88a95d623df659561de32583ad86cfc743422c6b30c8dfb099449a24cfaf4a7b4733c5100535b301
+DIST qt-solutions-20150629.tar.xz 710488 SHA256 cfa88a67c8396878eaa98f39b7648482fabb73988549cc404816c29212cf6503 SHA512 a95ed58f0218cd90d734a40eedd173b896fa0138ad235f3157d7bee538b16c5f385d93bae483fd22267f2984389b9940bb85ba0cd3d25c16124d56abb39568f5 WHIRLPOOL 23a273cfa2d0bc3834487c9e325c73d0038877c5a5085493ceb37ee5dc03cc4d2cddf4f46f5a89045fcbfe7f6dd03b678d56f3167fb750374d44879f11ded8b7
+EBUILD qtlockedfile-2.4.1_p20150629.ebuild 1601 SHA256 dd138d327e07912638f327befa54a287b4617e920410076c6d929e0b999a6789 SHA512 78b54de3c06fe968feea83d0ac888e34b7c3e55cb757c07ca625537b6f0ddc91bfb0ac7aa52ec77bfc5f36268d065f16af136166a34983029533200d23e48b8f WHIRLPOOL 66639e92d30de0667792350f2a8dc30ed8041ff2637a8e6995d69bafb39969d48df3bbb656d7ecdf529a99d8a273c67e49238612b3acb452a8ee2771b146f711
+MISC ChangeLog 4129 SHA256 747e223a7137a155cf2b6a3c7cc13ee4ef04f258cf37ab12ec79c136168c8d97 SHA512 6dddb61dece9428f1ca59c1b3c2cd86f4fe6e6bec01eb6ec198f65456f9095c4cf2768cc79efa12d1c1f9a64a6ea0a4526bf5a636e7d394e53be5ed5b60cbb4b WHIRLPOOL ba0a4fe32ff95aab83cb507e50734766e9278ece39b7af4e8473f423269dd2e112ef26cf935ec4434061d7225bd38f781f520e9eb045cf7e04785b013f5df50f
+MISC ChangeLog-2015 3518 SHA256 a4797ce6b34f8bf6fb2e040243e225c0b3d039aaaaa307c44b291f117917ed7e SHA512 7a51b52f1616340f142b9febbf4a59303e27404363bf7a07b3fdeb6b29ac8a3bb1f0dce0d100dc52e885905b9fc204d12a53ea814e95bfd3f5d67e2eeafcf78f WHIRLPOOL dc48e5b6e9c5447a74c59f1a3f424bcaefe2124f3ef3be51c690e6cf009dfb1475e0d6de21771c8418e134e15754c0c3807db4ecabdbefa8b603a376330163f7
+MISC metadata.xml 247 SHA256 690d3e08cdd71b405f5361dfa3f33007ce9ec9d0ae7628e9271891da9e2bda92 SHA512 b43c8e84c3c753b49b203921a5aca792639a36d6efdbe16c069ff9abfbce0585718bb3824c03abdd7bd19ada13fb0a98a378c85ed369ac5fdc53ad3b3d5465d2 WHIRLPOOL dffc398d6bdbe8a8afc8863675a819a7bd69ae4d098ffbddad4c21ab8f1a850ab8ede71f98e34999b0605ad01ea93c8864cd681b50d3e153aa3d0901ddb10743
diff --git a/dev-qt/qtlockedfile/files/qtlockedfile.prf b/dev-qt/qtlockedfile/files/qtlockedfile.prf
new file mode 100644
index 000000000000..93d656e69586
--- /dev/null
+++ b/dev-qt/qtlockedfile/files/qtlockedfile.prf
@@ -0,0 +1,6 @@
+INCLUDEPATH *= $$[QT_INSTALL_HEADERS]/QtSolutions
+greaterThan(QT_MAJOR_VERSION, 4) {
+LIBS *= -lQt$${QT_MAJOR_VERSION}Solutions_LockedFile-2.4
+} else {
+LIBS *= -lQtSolutions_LockedFile-2.4
+}
diff --git a/dev-qt/qtlockedfile/metadata.xml b/dev-qt/qtlockedfile/metadata.xml
new file mode 100644
index 000000000000..17237689dcfd
--- /dev/null
+++ b/dev-qt/qtlockedfile/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild
new file mode 100644
index 000000000000..1edea2b80a88
--- /dev/null
+++ b/dev-qt/qtlockedfile/qtlockedfile-2.4.1_p20150629.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multibuild qmake-utils
+
+MY_P=qt-solutions-${PV#*_p}
+
+DESCRIPTION="QFile extension with advisory locking functions"
+HOMEPAGE="https://code.qt.io/cgit/qt-solutions/qt-solutions.git/"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+IUSE="doc +qt4 qt5"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ qt4? ( dev-qt/qtcore:4 )
+ qt5? ( dev-qt/qtcore:5 )
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}/${PN}
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+src_prepare() {
+ echo 'SOLUTIONS_LIBRARY = yes' > config.pri
+ echo 'QT -= gui' >> src/qtlockedfile.pri
+
+ sed -i -e "s/-head/-${PV%.*}/" common.pri || die
+ sed -i -e '/SUBDIRS+=example/d' ${PN}.pro || die
+
+ multibuild_copy_sources
+}
+
+src_configure() {
+ myconfigure() {
+ if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
+ eqmake4
+ fi
+ if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then
+ eqmake5
+ fi
+ }
+ multibuild_foreach_variant run_in_build_dir myconfigure
+}
+
+src_compile() {
+ multibuild_foreach_variant run_in_build_dir default
+}
+
+src_install() {
+ dodoc README.TXT
+ use doc && dodoc -r doc/html
+
+ myinstall() {
+ # libraries
+ dolib.so lib/*
+
+ # headers
+ insinto "$(${MULTIBUILD_VARIANT}_get_headerdir)"/QtSolutions
+ doins src/QtLockedFile src/${PN}.h
+
+ # .prf files
+ insinto "$(${MULTIBUILD_VARIANT}_get_mkspecsdir)"/features
+ doins "${FILESDIR}"/${PN}.prf
+ }
+ multibuild_foreach_variant run_in_build_dir myinstall
+}
diff --git a/dev-qt/qtmultimedia/Manifest b/dev-qt/qtmultimedia/Manifest
new file mode 100644
index 000000000000..11ac7e6f81ed
--- /dev/null
+++ b/dev-qt/qtmultimedia/Manifest
@@ -0,0 +1,15 @@
+AUX qtmultimedia-4.8.0-alsa.patch 2155 SHA256 49a54bd39627b1070b106519cdff1fe33aec6a5755658c20270204b2ba850f7a SHA512 725dc78b861c82393ecd97ce293f9c165067ca940332fab22ecc252880e1c08aae301d54ddcdf38df9d32907c57bc70d772891a6dc9fdacf740de32b363f4aa4 WHIRLPOOL c5359f79a53b4d488c346e2d58924e21df3deabbb87e59762185afe43b05543578a1bc2d2bdafa31b1a345adf7a287851bde3a963c56ed1cc686beb14cedc321
+AUX qtmultimedia-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch 6852 SHA256 e647c6ad16e624aec98acd4edbf5d9fce5effd57429c6b17bd534c849d72bfec SHA512 ff513b5c68a02179e0a36803367b4dfe9f8c351fb76296570a2b382d2a1dd43fcb99033ab7844c52253c95124e2246cb81d68aa8e64e16c89d37bccaffcd9dea WHIRLPOOL 5a3108abf1c7aecf1ce86709dd65e151940c52e7e4301508b18e86429bd6cc2544632efdd9393c67f0b4056a83677b7995192fc33d853de86b58dcdbba1673f8
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtmultimedia-opensource-src-5.6.2.tar.xz 3492628 SHA256 cb9a70a7c6c0eb5be4a3fcaf9590863479e95a255308bbf07d5b7aa303bb8caf SHA512 e4750b1033f4ffbc139c14475fa07019bbb51a373d72a608035da583e88979fc7cc8694be90661c3977f6a1e0be2c27a98b348a632f62b2d40c224af927f9ccc WHIRLPOOL 1a9872996146371e4bf7d877c18a829986db63fca3ce57b250d9282d884a1479a7309b981c29c7bfedd4d965c5b76e94cafd11ea9c0e3c1d07852ebabb58365d
+DIST qtmultimedia-opensource-src-5.7.1.tar.xz 3563676 SHA256 a52b177fbf02600a0c8bd995ce7c2041c673bc1332c02b60e0e95bb9ebab7def SHA512 1415a4c29416ead2528ddb040a3c69480408509c6ba573f44295513bfe2aa62b8e8bb97cbd33713e605f094e1c1e1337507904d2b0c6480ddf9cf75393d8e97f WHIRLPOOL 6d37e06443b6e6d3d55e35ccebe08bc2a7a4423afe3728db5b297f15e682af31f6085ab2ebf92f63d4bff4ec69b772b6e545149b260245d3d076d4c619b8d46f
+DIST qtmultimedia-opensource-src-5.9.2.tar.xz 3594960 SHA256 c9a62700024871f204e5f107894c3a339bd645bf6dbac2bcf1bff8ce46842520 SHA512 b9fab874706440e97185475bfd0ad769c23d5ddbff5086cc0da9783777e81ed8140fb06fa0e7536ebfb67f2c9db39e1b9f3c2241834e74a9e1fb6ffd5cb7af11 WHIRLPOOL 6adf8241a45e02720167ceb6c739396a08be8e5790c64eb31e281aa83cb2c1448dcff537aa829474704594c0d9d4bd616acbebaadd824610c24ec2f56a454b94
+EBUILD qtmultimedia-4.8.6-r1.ebuild 1307 SHA256 f8e5acb11b3f9966d30dce285ba54d6a69331f2346ca07b6c9322a0fa1bd18f8 SHA512 286dd81f412c168181a8eace5bbebeaede4cb326fd098d21521033c942f4e7f8bdcfe2f8668eb4940d68266f28665c65b09b9d10e7ca4265479f64a1986307cf WHIRLPOOL f9b5295d5ac1e5473ba4ba0cfe8580bea836a26b74947d7e3ab0a233236c05a09eb318a92e4d851466bc74d286bf040384ad35a75592c48995eccc53606b05c3
+EBUILD qtmultimedia-4.8.7.ebuild 1298 SHA256 1a37459c93d17631d586808665ce83bffd102861646cf5463d5c0b835b466145 SHA512 d7a6fb8aa9927fadfd23e59a695818b8e066ccba71877848669358fa640064a6dee16c38ba988e2501e3350939fddc13c6ec90791c1b7c670f1e654b6a5fe6d0 WHIRLPOOL d8c052abab13a33a1fe9819d2573bdd5c4e38f0f0a5be19b43ff4bff57638f412a8538558553c749a2290e03433ad8b99c1aca932070c3482abc05635e5f66cc
+EBUILD qtmultimedia-5.6.2.ebuild 1494 SHA256 2a5ecd9de552db292de00e13fd9753f03ace2706689b62a1c86607b13c598f61 SHA512 7f508daf0f0b5a39448cdba3bae3fd5a17ef4a895a6ea22c4bdd19451500deb5e7c02542fa35f8f7b1ecbf6a68dc5a75634dc865349a5ad32a672fa8fbb3bfa2 WHIRLPOOL e393866c8b3d93bff7180d9dd82d0654dd58741aa7c2f9fa00b4bcecdecf8e556945f5a878709192e54e59c863d446e815d77c58b1caf009720613ea6b2d2eb3
+EBUILD qtmultimedia-5.7.1.ebuild 1501 SHA256 d2f4d571f530ebfb3211114ab8d8634a46fecf0baacc9c649dc3a50ecfd3dd96 SHA512 42e79f343a023a6311b7aa1a6a459b220f65e9857c890303528f8906c2a685ca55d48d645f953cbacdbed04a60506be4b92864c2669245eb45e5928c0db561c1 WHIRLPOOL 1d6314310fe84ac9d6a7746b1c891fa54bfb859086a8691ff9a146b5723f040c73f298a21068c540428979c9904f9577dbcf837bf0639da4cf2c2c14ad6af0db
+EBUILD qtmultimedia-5.9.2.ebuild 1352 SHA256 c956ae9655b1c0341718ca6a9f23998945b347d730bb504b9376a74d67289e52 SHA512 16551b7f0d8f0e4f696c6a1ea77b823052517f9a4077dea3f5e61ac691a738088c1964658374a9f9b306ec82ba29fa12679253abc9577a612e8ec1630197b0e9 WHIRLPOOL d785d993047d7a5dfdabb8e4dc32a8b568f9275c4179d54435575bdff9e49c9159a6459072312be9cae2ec8a011fcabe4717746720bca768c00baef8f2e83adf
+MISC ChangeLog 8290 SHA256 c07ea8e823fdb6a22b162dbb3911a9d4a0d190283bcea6738b5f9feef165d093 SHA512 0901666f734f770381901dff6eb5a12e045a83065a58ff8c6f52e26d1c19f5dfe94d6230ade485feb35d0c6330392afe1a0792bbfde9776ad6c79e8d77b9563e WHIRLPOOL e0f1975552843b64028d5ddd8ac921a7a85523e6480226583caebb353ea0d23a565019fab491b7d6018ac57e016218e8be28df995861e534e1566bf7b1553f47
+MISC ChangeLog-2015 13540 SHA256 28dddfa4ed5b3df29780bb32b0f640e9014f9f0badd4e6bfa982fddaa9135905 SHA512 73fdeb7a22fcc1250bb9d58102430e9260907eb8a177085678666eaa40c34bda6e840fa6013f42ce519a3fee31403fada32fa777242b62247e11f599aa6a5785 WHIRLPOOL 582313de0cc6f70a85c6dc28052eabc2488446830e707fe9839c4d0acf4b5e490b6ef17f54152a05465d70dc038b66948549416ea3238780943a2a3946ce23d0
+MISC metadata.xml 937 SHA256 2d92a8d2b727f2369f6956cd4afbb0df248c99e65b6cc3917ad196b1c026ad3f SHA512 b5007c578748a64091105fd04aec3133587dcf0f8cf22b758520776e903699de80555fa2e69206edaf8415dad037018f8c169966fb48c1d402118a6e32509d31 WHIRLPOOL 47dda6e6ff5949abfebc832718e7e169d217bca5845222946b06a7dd39ea2beb3356162d2dee03224bb84bd4d74824363d50a7c33517fac60028cf8625e0d977
diff --git a/dev-qt/qtmultimedia/files/qtmultimedia-4.8.0-alsa.patch b/dev-qt/qtmultimedia/files/qtmultimedia-4.8.0-alsa.patch
new file mode 100644
index 000000000000..8bd40edb1e80
--- /dev/null
+++ b/dev-qt/qtmultimedia/files/qtmultimedia-4.8.0-alsa.patch
@@ -0,0 +1,25 @@
+--- qt-everywhere-opensource-src-4.8.0.orig/configure 2012-03-13 00:45:02.502205702 +0100
++++ qt-everywhere-opensource-src-4.8.0/configure 2012-03-13 00:47:40.386231881 +0100
+@@ -1049,7 +1049,7 @@
+ VAL=no
+ ;;
+ #Qt style yes options
+- -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu)
++ -incremental|-qvfb|-profile|-shared|-static|-sm|-xinerama|-xshape|-xsync|-xinput|-egl|-reduce-exports|-pch|-separate-debug-info|-stl|-freetype|-xcursor|-xfixes|-xrandr|-xrender|-mitshm|-fontconfig|-xkb|-nis|-qdbus|-dbus|-dbus-linked|-glib|-gstreamer|-gtkstyle|-cups|-iconv|-largefile|-h|-help|-v|-verbose|-debug|-release|-fast|-accessibility|-confirm-license|-gnumake|-framework|-qt3support|-debug-and-release|-exceptions|-cocoa|-carbon|-universal|-harfbuzz|-prefix-install|-silent|-armfpa|-optimized-qmake|-dwarf2|-reduce-relocations|-sse|-openssl|-openssl-linked|-ptmalloc|-xmlpatterns|-phonon|-phonon-backend|-multimedia|-audio-backend|-svg|-declarative|-declarative-debug|-javascript-jit|-script|-scripttools|-rpath|-force-pkg-config|-s60|-usedeffiles|-icu|-alsa)
+ VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
+ VAL=yes
+ ;;
+@@ -2399,6 +2399,13 @@
+ else
+ UNKNOWN_OPT=yes
+ fi
++ ;;
++ alsa)
++ if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
++ CFG_ALSA="$VAL"
++ else
++ UNKNOWN_OPT=yes
++ fi
+ ;;
+ *)
+ UNKNOWN_OPT=yes
diff --git a/dev-qt/qtmultimedia/files/qtmultimedia-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch b/dev-qt/qtmultimedia/files/qtmultimedia-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch
new file mode 100644
index 000000000000..6a040b2d88a5
--- /dev/null
+++ b/dev-qt/qtmultimedia/files/qtmultimedia-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch
@@ -0,0 +1,155 @@
+From 7737e5f851fdf33ea3e8e60cf7856f47565f09d3 Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <pesa@gentoo.org>
+Date: Fri, 22 Jan 2016 23:17:16 +0100
+Subject: [PATCH] Relax ALSA version checks for alsa-lib >= 1.1.0
+
+Backport of qtmultimedia/3b322323d036ae2fc9f685bfc74d1ebcd5532159
+---
+ config.tests/unix/alsa/alsatest.cpp | 2 +-
+ src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp | 16 ++++++++--------
+ src/multimedia/audio/qaudiodeviceinfo_alsa_p.h | 2 +-
+ src/multimedia/audio/qaudioinput_alsa_p.cpp | 4 ++--
+ src/multimedia/audio/qaudiooutput_alsa_p.cpp | 4 ++--
+ 5 files changed, 14 insertions(+), 14 deletions(-)
+
+diff --git a/config.tests/unix/alsa/alsatest.cpp b/config.tests/unix/alsa/alsatest.cpp
+index ac5f1e1..8d78f95 100644
+--- a/config.tests/unix/alsa/alsatest.cpp
++++ b/config.tests/unix/alsa/alsatest.cpp
+@@ -40,7 +40,7 @@
+ ****************************************************************************/
+
+ #include <alsa/asoundlib.h>
+-#if(!(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10))
++#if (!(SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 10)))
+ #error "Alsa version found too old, require >= 1.0.10"
+ #endif
+
+diff --git a/src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp b/src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp
+index 973cbab..a09dcf6 100644
+--- a/src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp
++++ b/src/multimedia/audio/qaudiodeviceinfo_alsa_p.cpp
+@@ -63,7 +63,7 @@ QAudioDeviceInfoInternal::QAudioDeviceInfoInternal(QByteArray dev, QAudio::Mode
+ device = QLatin1String(dev);
+ this->mode = mode;
+
+-#if (SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ checkSurround();
+ #endif
+ }
+@@ -159,13 +159,13 @@ bool QAudioDeviceInfoInternal::open()
+ QList<QByteArray> devices = availableDevices(mode);
+
+ if(dev.compare(QLatin1String("default")) == 0) {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(devices.first().constData());
+ #else
+ dev = QLatin1String("hw:0,0");
+ #endif
+ } else {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = device;
+ #else
+ int idx = 0;
+@@ -212,13 +212,13 @@ bool QAudioDeviceInfoInternal::testSettings(const QAudioFormat& format) const
+ QList<QByteArray> devices = QAudioDeviceInfoInternal::availableDevices(QAudio::AudioOutput);
+
+ if(dev.compare(QLatin1String("default")) == 0) {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(devices.first().constData());
+ #else
+ dev = QLatin1String("hw:0,0");
+ #endif
+ } else {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = device;
+ #else
+ int idx = 0;
+@@ -396,7 +396,7 @@ void QAudioDeviceInfoInternal::updateLists()
+ }
+ channelz.append(1);
+ channelz.append(2);
+-#if (SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ if (surround40) channelz.append(4);
+ if (surround51) channelz.append(6);
+ if (surround71) channelz.append(8);
+@@ -419,7 +419,7 @@ QList<QByteArray> QAudioDeviceInfoInternal::availableDevices(QAudio::Mode mode)
+ QList<QByteArray> devices;
+ QByteArray filter;
+
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ // Create a list of all current audio devices that support mode
+ void **hints, **n;
+ char *name, *descr, *io;
+@@ -498,7 +498,7 @@ QByteArray QAudioDeviceInfoInternal::defaultOutputDevice()
+ return devices.first();
+ }
+
+-#if (SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ void QAudioDeviceInfoInternal::checkSurround()
+ {
+ QList<QByteArray> devices;
+diff --git a/src/multimedia/audio/qaudiodeviceinfo_alsa_p.h b/src/multimedia/audio/qaudiodeviceinfo_alsa_p.h
+index 96febf4..714bf60 100644
+--- a/src/multimedia/audio/qaudiodeviceinfo_alsa_p.h
++++ b/src/multimedia/audio/qaudiodeviceinfo_alsa_p.h
+@@ -98,7 +98,7 @@ private:
+ bool open();
+ void close();
+
+-#if (SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ void checkSurround();
+ bool surround40;
+ bool surround51;
+diff --git a/src/multimedia/audio/qaudioinput_alsa_p.cpp b/src/multimedia/audio/qaudioinput_alsa_p.cpp
+index 339fd9f..202a5b2 100644
+--- a/src/multimedia/audio/qaudioinput_alsa_p.cpp
++++ b/src/multimedia/audio/qaudioinput_alsa_p.cpp
+@@ -284,13 +284,13 @@ bool QAudioInputPrivate::open()
+ QString dev = QString(QLatin1String(m_device.constData()));
+ QList<QByteArray> devices = QAudioDeviceInfoInternal::availableDevices(QAudio::AudioInput);
+ if(dev.compare(QLatin1String("default")) == 0) {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(devices.first());
+ #else
+ dev = QLatin1String("hw:0,0");
+ #endif
+ } else {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(m_device);
+ #else
+ int idx = 0;
+diff --git a/src/multimedia/audio/qaudiooutput_alsa_p.cpp b/src/multimedia/audio/qaudiooutput_alsa_p.cpp
+index bf85de5..fe4b010 100644
+--- a/src/multimedia/audio/qaudiooutput_alsa_p.cpp
++++ b/src/multimedia/audio/qaudiooutput_alsa_p.cpp
+@@ -299,13 +299,13 @@ bool QAudioOutputPrivate::open()
+ QString dev = QString(QLatin1String(m_device.constData()));
+ QList<QByteArray> devices = QAudioDeviceInfoInternal::availableDevices(QAudio::AudioOutput);
+ if(dev.compare(QLatin1String("default")) == 0) {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(devices.first());
+ #else
+ dev = QLatin1String("hw:0,0");
+ #endif
+ } else {
+-#if(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 14)
++#if (SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || SND_LIB_SUBMINOR >= 14))
+ dev = QLatin1String(m_device);
+ #else
+ int idx = 0;
+--
+2.7.0
+
diff --git a/dev-qt/qtmultimedia/metadata.xml b/dev-qt/qtmultimedia/metadata.xml
new file mode 100644
index 000000000000..c6f5fc3b1269
--- /dev/null
+++ b/dev-qt/qtmultimedia/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="gstreamer">Enable audio support via <pkg>media-libs/gstreamer</pkg> using SLOT 1.0</flag>
+ <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+ <flag name="widgets">Build the QtMultimediaWidgets module</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtmultimedia/qtmultimedia-4.8.6-r1.ebuild b/dev-qt/qtmultimedia/qtmultimedia-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..8edcfefe89ba
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-4.8.6-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The Multimedia module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="amd64 arm ~ia64 ppc ppc64 x86"
+fi
+
+IUSE="alsa"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.0-alsa.patch"
+ "${FILESDIR}/${PN}-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch" # bug 572426
+)
+
+QT4_TARGET_DIRECTORIES="src/multimedia"
+
+QCONFIG_ADD="multimedia"
+QCONFIG_DEFINE="QT_MULTIMEDIA"
+
+multilib_src_configure() {
+ local myconf=(
+ -multimedia -audio-backend
+ $(qt_use alsa)
+ -no-accessibility -no-qt3support -no-xmlpatterns -no-phonon -no-phonon-backend
+ -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtmultimedia/qtmultimedia-4.8.7.ebuild b/dev-qt/qtmultimedia/qtmultimedia-4.8.7.ebuild
new file mode 100644
index 000000000000..eb03bb3922ac
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-4.8.7.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The Multimedia module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~ia64 ppc ppc64 x86"
+fi
+
+IUSE="alsa"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-4.8.0-alsa.patch"
+ "${FILESDIR}/${PN}-4.8.6-Relax-ALSA-version-checks-for-1.1.x.patch" # bug 572426
+)
+
+QT4_TARGET_DIRECTORIES="src/multimedia"
+
+QCONFIG_ADD="multimedia"
+QCONFIG_DEFINE="QT_MULTIMEDIA"
+
+multilib_src_configure() {
+ local myconf=(
+ -multimedia -audio-backend
+ $(qt_use alsa)
+ -no-accessibility -no-qt3support -no-xmlpatterns -no-phonon -no-phonon-backend
+ -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtmultimedia/qtmultimedia-5.6.2.ebuild b/dev-qt/qtmultimedia/qtmultimedia-5.6.2.ebuild
new file mode 100644
index 000000000000..bcd2410201ef
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-5.6.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ~ppc ppc64 x86"
+fi
+
+IUSE="alsa gles2 gstreamer openal pulseaudio qml widgets"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ alsa? ( media-libs/alsa-lib )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-bad:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ qml? (
+ ~dev-qt/qtdeclarative-${PV}
+ gles2? ( ~dev-qt/qtgui-${PV}[egl] )
+ openal? ( media-libs/openal )
+ )
+ widgets? (
+ ~dev-qt/qtopengl-${PV}
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ )
+"
+DEPEND="${RDEPEND}
+ gstreamer? ( x11-proto/videoproto )
+"
+
+src_prepare() {
+ # do not rely on qtbase configuration
+ sed -i -e 's/contains(QT_CONFIG, \(alsa\|pulseaudio\))://' \
+ qtmultimedia.pro || die
+
+ qt_use_compile_test alsa
+ qt_use_compile_test gstreamer
+ qt_use_compile_test openal
+ qt_use_compile_test pulseaudio
+
+ qt_use_disable_mod qml quick \
+ src/src.pro \
+ src/plugins/plugins.pro
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/gsttools/gsttools.pro \
+ src/plugins/gstreamer/common.pri
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex gstreamer 'GST_VERSION=1.0' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtmultimedia/qtmultimedia-5.7.1.ebuild b/dev-qt/qtmultimedia/qtmultimedia-5.7.1.ebuild
new file mode 100644
index 000000000000..255a5e8a1523
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-5.7.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="alsa gles2 gstreamer openal pulseaudio qml widgets"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ alsa? ( media-libs/alsa-lib )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-bad:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ qml? (
+ ~dev-qt/qtdeclarative-${PV}
+ gles2? ( ~dev-qt/qtgui-${PV}[egl] )
+ openal? ( media-libs/openal )
+ )
+ widgets? (
+ ~dev-qt/qtopengl-${PV}
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ )
+"
+DEPEND="${RDEPEND}
+ gstreamer? ( x11-proto/videoproto )
+"
+
+src_prepare() {
+ # do not rely on qtbase configuration
+ sed -i -e 's/contains(QT_CONFIG, \(alsa\|pulseaudio\))://' \
+ qtmultimedia.pro || die
+
+ qt_use_compile_test alsa
+ qt_use_compile_test gstreamer
+ qt_use_compile_test openal
+ qt_use_compile_test pulseaudio
+
+ qt_use_disable_mod qml quick \
+ src/src.pro \
+ src/plugins/plugins.pro
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/gsttools/gsttools.pro \
+ src/plugins/gstreamer/common.pri
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex gstreamer 'GST_VERSION=1.0' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtmultimedia/qtmultimedia-5.9.2.ebuild b/dev-qt/qtmultimedia/qtmultimedia-5.9.2.ebuild
new file mode 100644
index 000000000000..d0626551922b
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-5.9.2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="alsa gles2 gstreamer openal pulseaudio qml widgets"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtnetwork-${PV}
+ alsa? ( media-libs/alsa-lib )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-bad:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ pulseaudio? ( media-sound/pulseaudio )
+ qml? (
+ ~dev-qt/qtdeclarative-${PV}
+ gles2? ( ~dev-qt/qtgui-${PV}[egl] )
+ openal? ( media-libs/openal )
+ )
+ widgets? (
+ ~dev-qt/qtopengl-${PV}
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ )
+"
+DEPEND="${RDEPEND}
+ gstreamer? ( x11-proto/videoproto )
+"
+
+src_prepare() {
+ qt_use_disable_config openal openal \
+ src/imports/imports.pro
+
+ qt_use_disable_mod qml quick \
+ src/src.pro \
+ src/plugins/plugins.pro
+
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/gsttools/gsttools.pro \
+ src/plugins/gstreamer/common.pri
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ --
+ $(qt_use alsa)
+ $(qt_use gstreamer)
+ $(qt_use pulseaudio)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtnetwork/Manifest b/dev-qt/qtnetwork/Manifest
new file mode 100644
index 000000000000..fcf8d69b53ee
--- /dev/null
+++ b/dev-qt/qtnetwork/Manifest
@@ -0,0 +1,9 @@
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtnetwork-5.6.2.ebuild 1167 SHA256 873e29a78a7bbb1fce2be474746941abd9aa92a9ba08ecf12d5ac4a5914ba188 SHA512 b709365101751ce1c606a699d3936743c280f26bf0cf960011d9062b57f143059844a6f5407821331b0a462105933450f016ea71a2b757d57ef86ad7f12a1e49 WHIRLPOOL 772ea0e5c47464eb2bf5c92b09f09f29c76d69b5c595a3efaef2d7deadb3ca5bd65644e8bfe6001c894cd9a79d2d1e5c39fcb6daad1f9f735c400f1d952f4902
+EBUILD qtnetwork-5.7.1.ebuild 1168 SHA256 3e0cd7f62c2c99ab4f9120ce770268fe26c1cef9c846d891c5c3f250155a7411 SHA512 0d7d306fbc0dd47d697709e738a7f65f478d1fe2213aae5e5054151aedb1c2e8b0f1de2a40b1f19087d57cc98b84418b8e9df6f491af31742ab637f9ce9b53fe WHIRLPOOL 6d33354ea35c840be510a1870f0831573b3b713d19e2ef9922a2de550bc1867ebdf869b85181c055a7cf3ac32659043be1d8a6109f827595335fb4496e66559a
+EBUILD qtnetwork-5.9.2.ebuild 1174 SHA256 03d3d59fe7a459e36bd015e2e9e8ca192b7a8585d9c045ee9e9806bf27d72246 SHA512 9180653e11c99762a603e601475a8bb8acd343a7e8183f9c3e0909cec04f82495d34daa201a2d14de05a88ce64aa9a5d56b57469a6bd7a72a4ed125bef9c46df WHIRLPOOL 8154c04e8baf7d58a5dfb1f28f9542da95c36b6ad00bc88f12f86c353bac2e9b62ce909ba649084149149cf8e93df799c7f342e0df5276237f09f77de2a6d6c1
+MISC ChangeLog 6709 SHA256 fb2de493c800e02cab287c0e353ac491cd4e90220b02c92bcfc2d475f9c19224 SHA512 922d4dacd47001005c6a2f23e73f4fee593bdf853556866b0b57d8e3b98f7a2f5739a4de65324837ee17532150083a608ae84db0f7d7186195363fed898b181c WHIRLPOOL 609ee52184b9c596161bf9904899c2095396f5ed8bc17ff3323563655f1c2a756b175872540c44cc5d9744fb4f2b633963ad9bb590b6707e79354cafc3a7e4a6
+MISC ChangeLog-2015 2144 SHA256 7a645f7bc2fc60d96d9cb8eaa99415f2f52424b237962f31aab15211fea0694f SHA512 e5d35035b9fed93fe83ba7cc585d5a95b61958e5bd5351d7c67c952a392594e2bb21720e15cd1d2b43753fff339d74b248c550891ff82c3a506f2653a49d6c02 WHIRLPOOL 44554447b65fb2176788457da63400d64ada180bc9bcc554fef317a1740eb86824db2dce58e7690a4c4095daf914146869107a043607de3a6b099102ff96d4ed
+MISC metadata.xml 876 SHA256 e901b7bf7ab4401062dd0fed29d8b694bd519b8e915e7b65f901fe0facffa29b SHA512 6a38a068dd89a9a1bb470938bf4b2427553356fed8f1a638596e21261363544b8fb770ca2ec9e619aedb4e4ea260b60966924b5b8beb8295804c99cb8d916f5f WHIRLPOOL fbde75a1af3108eabc4c62a7ac9b1ccad0f40e03ce57970a678d1a19fcbf7ae8aecbb4c8ad56b401e67ed3cb7f73878f8f4799a34bc406d1a3cff33261ade6ed
diff --git a/dev-qt/qtnetwork/metadata.xml b/dev-qt/qtnetwork/metadata.xml
new file mode 100644
index 000000000000..cc8f0589d94a
--- /dev/null
+++ b/dev-qt/qtnetwork/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="bindist">Disable EC support via <pkg>dev-libs/openssl</pkg></flag>
+ <flag name="connman">Enable <pkg>net-misc/connman</pkg>-based bearer plugin</flag>
+ <flag name="libproxy">Use <pkg>net-libs/libproxy</pkg> for automatic
+ HTTP/SOCKS proxy configuration</flag>
+ <flag name="networkmanager">Enable <pkg>net-misc/networkmanager</pkg>-based
+ bearer plugin</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtnetwork/qtnetwork-5.6.2.ebuild b/dev-qt/qtnetwork/qtnetwork-5.6.2.ebuild
new file mode 100644
index 000000000000..524c106a267b
--- /dev/null
+++ b/dev-qt/qtnetwork/qtnetwork-5.6.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Network abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="bindist connman libproxy networkmanager +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-libs/zlib-1.2.5
+ connman? ( ~dev-qt/qtdbus-${PV} )
+ libproxy? ( net-libs/libproxy )
+ networkmanager? ( ~dev-qt/qtdbus-${PV} )
+ ssl? ( dev-libs/openssl:0[bindist=] )
+"
+RDEPEND="${DEPEND}
+ connman? ( net-misc/connman )
+ networkmanager? ( net-misc/networkmanager )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/network
+ src/plugins/bearer/generic
+)
+
+QT5_GENTOO_CONFIG=(
+ libproxy
+ ssl::SSL
+ ssl::OPENSSL
+ ssl:openssl-linked:LINKED_OPENSSL
+)
+
+pkg_setup() {
+ use connman && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/connman)
+ use networkmanager && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/networkmanager)
+}
+
+src_configure() {
+ local myconf=(
+ $(use connman || use networkmanager && echo -dbus-linked)
+ $(qt_use libproxy)
+ $(usex ssl -openssl-linked '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtnetwork/qtnetwork-5.7.1.ebuild b/dev-qt/qtnetwork/qtnetwork-5.7.1.ebuild
new file mode 100644
index 000000000000..445352fe2148
--- /dev/null
+++ b/dev-qt/qtnetwork/qtnetwork-5.7.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Network abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="bindist connman libproxy networkmanager +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-libs/zlib-1.2.5
+ connman? ( ~dev-qt/qtdbus-${PV} )
+ libproxy? ( net-libs/libproxy )
+ networkmanager? ( ~dev-qt/qtdbus-${PV} )
+ ssl? ( dev-libs/openssl:0[bindist=] )
+"
+RDEPEND="${DEPEND}
+ connman? ( net-misc/connman )
+ networkmanager? ( net-misc/networkmanager )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/network
+ src/plugins/bearer/generic
+)
+
+QT5_GENTOO_CONFIG=(
+ libproxy
+ ssl::SSL
+ ssl::OPENSSL
+ ssl:openssl-linked:LINKED_OPENSSL
+)
+
+pkg_setup() {
+ use connman && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/connman)
+ use networkmanager && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/networkmanager)
+}
+
+src_configure() {
+ local myconf=(
+ $(use connman || use networkmanager && echo -dbus-linked)
+ $(qt_use libproxy)
+ $(usex ssl -openssl-linked '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtnetwork/qtnetwork-5.9.2.ebuild b/dev-qt/qtnetwork/qtnetwork-5.9.2.ebuild
new file mode 100644
index 000000000000..48c13b15cd29
--- /dev/null
+++ b/dev-qt/qtnetwork/qtnetwork-5.9.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Network abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="bindist connman libproxy networkmanager +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ >=sys-libs/zlib-1.2.5
+ connman? ( ~dev-qt/qtdbus-${PV} )
+ libproxy? ( net-libs/libproxy )
+ networkmanager? ( ~dev-qt/qtdbus-${PV} )
+ ssl? ( dev-libs/openssl:0=[bindist=] )
+"
+RDEPEND="${DEPEND}
+ connman? ( net-misc/connman )
+ networkmanager? ( net-misc/networkmanager )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/network
+ src/plugins/bearer/generic
+)
+
+QT5_GENTOO_CONFIG=(
+ libproxy
+ ssl::SSL
+ ssl::OPENSSL
+ ssl:openssl-linked:LINKED_OPENSSL
+)
+
+pkg_setup() {
+ use connman && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/connman)
+ use networkmanager && QT5_TARGET_SUBDIRS+=(src/plugins/bearer/networkmanager)
+}
+
+src_configure() {
+ local myconf=(
+ $(use connman || use networkmanager && echo -dbus-linked)
+ $(qt_use libproxy)
+ $(usex ssl -openssl-linked '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtnetworkauth/Manifest b/dev-qt/qtnetworkauth/Manifest
new file mode 100644
index 000000000000..0995e3d2eb6a
--- /dev/null
+++ b/dev-qt/qtnetworkauth/Manifest
@@ -0,0 +1,3 @@
+DIST qtnetworkauth-opensource-src-5.9.2.tar.xz 112344 SHA256 a003f05aaa330605c6572212b4df869c026eabbbeb241c991031fad2511d239a SHA512 2e83eefd5db62aa1cdbe451b432ba1937541e435dcc35205d3bb9b947f2ac7e31663dc069a6cfad5bbf34e1fa799d519820f7ed61b9c247016611a533385bebf WHIRLPOOL 2f87f02b3b25369847e694ab8e8638f3e7a99f8e355beb53952d4f33deec8fe41251c1bb757737bd1b0f1049684f0a5c4c617dedd81d6c3a6fbba7b6fbd61100
+EBUILD qtnetworkauth-5.9.2.ebuild 376 SHA256 4e9127123e78c2a70412b7bcb7f14fe33dfb3e0fe9f7564ee3e9103c274ebb01 SHA512 b5ec9ac2a341536c3a260d3a705e6f216b38fe5ea2101a18058db9c61b6d77882bbd6f8a0890d4e1c5f57feb15963959816a41ba69a19ed5753112882c186b50 WHIRLPOOL b192eb5225ef8bd8f878629f54d32154259a7cd031cb794e91988540aafa0b01e2021579bdb8af1098c213bc2e6dc79a5f0b0c35e4dd4c99bc9169f513fd25b8
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtnetworkauth/metadata.xml b/dev-qt/qtnetworkauth/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtnetworkauth/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtnetworkauth/qtnetworkauth-5.9.2.ebuild b/dev-qt/qtnetworkauth/qtnetworkauth-5.9.2.ebuild
new file mode 100644
index 000000000000..ec54a2f00cf7
--- /dev/null
+++ b/dev-qt/qtnetworkauth/qtnetworkauth-5.9.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Network authorization library for the Qt5 framework"
+LICENSE="GPL-3"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtopengl/Manifest b/dev-qt/qtopengl/Manifest
new file mode 100644
index 000000000000..2f19c7f5273e
--- /dev/null
+++ b/dev-qt/qtopengl/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtopengl-4.8.6-r1.ebuild 1150 SHA256 ae6dafa1c1b386c28d7a1dc0f97f9e602a44b619d714a67f4e0f618f849e96b4 SHA512 297455f7c3c37d5515c4ff4ad80da19dd4561b3e407aa652e63e866d32ab21fb90dc4b84bf8947061ab35512e7af82a108ab70bb55919491261addf579b89d87 WHIRLPOOL 5ee21979ecad754d71323a2ff59b68592a8ceae922796dd084a097f637becbc3dc8a40b964525b1b4121662040758e619252b20595157d70bc80e62ae124f6f1
+EBUILD qtopengl-4.8.7.ebuild 1099 SHA256 e9e5bdb07f52fa2a0d32b4bff2bceae6c635b7e95376087ab3c4014c5dfef6f4 SHA512 e2d39685cb09046580bff360dcf7b46a1c57f654d7704db31f936a85d71096c134d24103fd34f257b1a5af966eacf0e80aca85f03790c1b033d9dd041301a25a WHIRLPOOL 6c90a3c32b5bd2ad245e517cb5cdd1caca72101a269d47541370a9299dad6a5f68fc674f1475ac7c4dcd45ce950747ee877fd8a8eb1fd7966cde24d2a4807ae7
+EBUILD qtopengl-5.6.2.ebuild 630 SHA256 a6c69f92fd50fe9240bb02dbe4125f17ce08713638dc17576b343cd736bc346e SHA512 1e5aa301ca46534d59223d912dcf0fc734d834cffa2d3140d193e58cc81eeba7c8fffc18289c5c661b64a6f5e2dc81a73a768593d42df6cd082bea70bd80c20c WHIRLPOOL b224e434ffb2912b3ecf0a628a364262f28ee760f4bc3b7fb671d648f57e097d175f9e958c49e0132158e45b90c4ea79ed0c324bd231cd8fbb164b6246ae241b
+EBUILD qtopengl-5.7.1.ebuild 631 SHA256 2e8f4ae0893276ece41f9f1b73c85de0a8ab257698d4071bf2b8ccb2781a453e SHA512 d99c51bd8dcae9977a0e209893afeda6f2355a550960fbf4ba86afffa5c12a3dc7017b4a7b947eee259bc631ce5e1eafa285cc131923afcfd9a2e8fa3652b21e WHIRLPOOL 3e1fcbbeb311a20d50f2db204b85865b8d3c0bc3f978ff9fc514d44738b9fb895ab0d47cdd5b9574a3fb4fbcd383d6eb65dab52718d5799e3a61acb73d37563c
+EBUILD qtopengl-5.9.2.ebuild 636 SHA256 ca8674047975eaf20ee4deef73575646bd248e3ad31be9fab5285da09264e3db SHA512 109c0c3f5b8bf7719c1d09e8c83f8c47d6e8d76edce60f0b2bab6d66e1adbd9b182a63569cc58556488206a977603a16c3b7f697913e492859fa72a42efc9383 WHIRLPOOL bfb34513deed51b3c25bfd4f9953ff32f18cb7e292b68242f55ef06cc9f5117cc9b662fd563298e49eb22769f4530faaa1dd19faa853e7c9022f0a661574af81
+MISC ChangeLog 7211 SHA256 d1b708ca332c026ac93c9eb2ad1ed57f388df279411bb5cbc268c64c53e1931a SHA512 b42101aa7d75f6cc761a1eb12db35a730cdadb100317db78e000f38959ba270af712507d52f7c0700be2a6b0deff7617f93ce5c43bab920b27539735f515720f WHIRLPOOL e797e4cabf2dd560243c6bdc339bdff9b7c029aba6e5fcd86bc55d29bb6d8d2f4c90cb663843a9e0c70d6253d4060f00f04b52668906a5558f3df30949f43bc8
+MISC ChangeLog-2015 21502 SHA256 5f1a3e3533e41171ff34919eed579afabbb9b42ff5778009dd57061ad514dfe7 SHA512 ae2f6eecbe2da62d2a289b13f475e683a3645221e947e027f9b354199867d64b3fe335738164ed58cc924489e6ea10b4f6205efd568b8d86f136c948c602faa0 WHIRLPOOL 3d5c375aa89b47397aa410a0a122c7f046155f1aa28e1b3fc09699bdf7153ccc521f8440bdc8814683787611ca59b136675dd51171d0ce542d19e2988f07710d
+MISC metadata.xml 849 SHA256 4d79862dfc9ba842dc65d732166fa1b408cf566f4477a4d7b1aff4ebc75df1d8 SHA512 98644de5d50d3392db4099551755340012a29ef9ae129038eb64ff1aca49f2de34442d7fd8e4f6c457366148a7d9288843f7ea023d0759a71aadab3a419aad41 WHIRLPOOL 0e84c1b5fd6af78351c140a299fb08ff45eebc10643eee7be6688d29a9044250bbf452e399ea5915ccdc6bec73e45a021f09d9b012465194934c060b5868d943
diff --git a/dev-qt/qtopengl/metadata.xml b/dev-qt/qtopengl/metadata.xml
new file mode 100644
index 000000000000..3a2fbf1c8ab7
--- /dev/null
+++ b/dev-qt/qtopengl/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="egl">Use EGL instead of GLX to manage OpenGL contexts</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="qt3support">Enable the Qt3Support libraries for Qt4</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtopengl/qtopengl-4.8.6-r1.ebuild b/dev-qt/qtopengl/qtopengl-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..c0e3a77f51b5
--- /dev/null
+++ b/dev-qt/qtopengl/qtopengl-4.8.6-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The OpenGL module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="egl qt3support"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,egl=,qt3support=,${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/opengl
+ src/plugins/graphicssystems/opengl"
+
+QCONFIG_ADD="opengl"
+QCONFIG_DEFINE="QT_OPENGL"
+
+multilib_src_configure() {
+ local myconf=(
+ -opengl
+ $(qt_use qt3support)
+ $(qt_use egl)
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ dodir /usr/share/qt4/graphicssystems
+ echo "experimental" > "${ED}"/usr/share/qt4/graphicssystems/opengl || die
+}
diff --git a/dev-qt/qtopengl/qtopengl-4.8.7.ebuild b/dev-qt/qtopengl/qtopengl-4.8.7.ebuild
new file mode 100644
index 000000000000..1aa3635ae83a
--- /dev/null
+++ b/dev-qt/qtopengl/qtopengl-4.8.7.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The OpenGL module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="egl qt3support"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,egl=,qt3support=,${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/opengl
+ src/plugins/graphicssystems/opengl"
+
+QCONFIG_ADD="opengl"
+QCONFIG_DEFINE="QT_OPENGL"
+
+multilib_src_configure() {
+ local myconf=(
+ -opengl
+ $(qt_use qt3support)
+ $(qt_use egl)
+ )
+ qt4_multilib_src_configure
+}
+
+multilib_src_install_all() {
+ qt4_multilib_src_install_all
+
+ dodir /usr/share/qt4/graphicssystems
+ echo "experimental" > "${ED}"/usr/share/qt4/graphicssystems/opengl || die
+}
diff --git a/dev-qt/qtopengl/qtopengl-5.6.2.ebuild b/dev-qt/qtopengl/qtopengl-5.6.2.ebuild
new file mode 100644
index 000000000000..ae37895a92ac
--- /dev/null
+++ b/dev-qt/qtopengl/qtopengl-5.6.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="OpenGL support library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="gles2"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/opengl
+)
+
+src_configure() {
+ local myconf=(
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtopengl/qtopengl-5.7.1.ebuild b/dev-qt/qtopengl/qtopengl-5.7.1.ebuild
new file mode 100644
index 000000000000..f1c9248875d2
--- /dev/null
+++ b/dev-qt/qtopengl/qtopengl-5.7.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="OpenGL support library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="gles2"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/opengl
+)
+
+src_configure() {
+ local myconf=(
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtopengl/qtopengl-5.9.2.ebuild b/dev-qt/qtopengl/qtopengl-5.9.2.ebuild
new file mode 100644
index 000000000000..7e85dc2c3591
--- /dev/null
+++ b/dev-qt/qtopengl/qtopengl-5.9.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="OpenGL support library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="gles2"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ virtual/opengl
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/opengl
+)
+
+src_configure() {
+ local myconf=(
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtpaths/Manifest b/dev-qt/qtpaths/Manifest
new file mode 100644
index 000000000000..fa5410bfcb5a
--- /dev/null
+++ b/dev-qt/qtpaths/Manifest
@@ -0,0 +1,9 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qtpaths-5.6.2.ebuild 397 SHA256 708cc557b10c89d5707e1a6eb091add749e7c2640c5803fc950646dcff137566 SHA512 3520fec32321a2c36d10ffe340b37f97381dbd002272a3540e26644515e720f4381e48d4acf009bd7046530ee87e7def1207b19077dd1228fe09bf834440a5d8 WHIRLPOOL 5523ce63612b327b78bcb244de09dd86280195a882087cdabd658aa0ab293d4804e91699da97d245c8640f8ce7b2945644f39844c262f48300af361e1cd7f683
+EBUILD qtpaths-5.7.1.ebuild 404 SHA256 e33baac8d255ed37e3809e5f53f081c8764a6ede9c0f18858939018684c205e4 SHA512 e9e081e62b191f26395b65fafed9c98a5ab2e173985dafc610cbc1f86297e589188c803761f767d37f6a0ec23eb65bc8250bf8fe896d33d156219477e780f9a6 WHIRLPOOL 422bf2a087b1b0050417ac48d61b4dca9d756d8fe6d53e3d17dacac8e61e13f088b426bb86253a18e8f01b4d0c78b9d887f6aeaa95432b61e12a68242f4c46c8
+EBUILD qtpaths-5.9.2.ebuild 409 SHA256 4b84a8c9f106eadaf74c40809b6a2a8fbd098589ae65213c5f6bf043f2593218 SHA512 edbc1d1beaf8c0f6cc4855be89b20f8df561fe6e0c5187b155f3aceb0bd58fa0b4bccf8574ccf8c36b25adb7c3394c6a04cbf2a126ddd02395b39e301cc86ff3 WHIRLPOOL 6785ae58881f6f756d8c666bf37ede78944f389bb2aad73cb15a3db313e84d20d798e8dda293865d4e323246482b29bcf9897b5908f6caab0fd4f2aa64dc6249
+MISC ChangeLog 5857 SHA256 034e11dd341edb4c690484ea31f929afd621e614787c62a3fdf0ffbcf1a54d06 SHA512 d0c3c67346d5206fcb34e73801ac194f1c59dd46069e31c86a0fbbbc6237b0359e8a4c947aebfd31957f6ae63b0983af4bb4b3ca8d238dfead39900efa27d865 WHIRLPOOL fd0f1c770522e9d67687aea4fe7627121f9a6a343c1adf2041f9368133bb5ace1da3f84cd76beb57f9e20198d2dfd78a64ab535e380d495c077c8db0c6af40ed
+MISC ChangeLog-2015 1513 SHA256 239f00343be91d5b588c37ce9a8a8113c58a7052d54c37cab68ec1d6afe5b3c4 SHA512 8a9c6af9155acc2f82f81cb38ba5379b14d173d6cfd0cbc398f62a35f7abdbd152889b1207037c52e697c44db460c318d775a38562ea5e8072f747ce5163d5dc WHIRLPOOL 12a137822802c9cf8cc106a2653156a34afaa7763ce111c08a7922bbaa21dd8a98db6a9bf82c2916c13a8a21fe41840df9e26f93bb0e7d94dfd9da6c74b2e796
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtpaths/metadata.xml b/dev-qt/qtpaths/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtpaths/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtpaths/qtpaths-5.6.2.ebuild b/dev-qt/qtpaths/qtpaths-5.6.2.ebuild
new file mode 100644
index 000000000000..3a64cf853381
--- /dev/null
+++ b/dev-qt/qtpaths/qtpaths-5.6.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Command line client to QStandardPaths"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ~ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtpaths
+)
diff --git a/dev-qt/qtpaths/qtpaths-5.7.1.ebuild b/dev-qt/qtpaths/qtpaths-5.7.1.ebuild
new file mode 100644
index 000000000000..177127c7b542
--- /dev/null
+++ b/dev-qt/qtpaths/qtpaths-5.7.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Command line client to QStandardPaths"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtpaths
+)
diff --git a/dev-qt/qtpaths/qtpaths-5.9.2.ebuild b/dev-qt/qtpaths/qtpaths-5.9.2.ebuild
new file mode 100644
index 000000000000..c6c9ac70a54a
--- /dev/null
+++ b/dev-qt/qtpaths/qtpaths-5.9.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Command line client to QStandardPaths"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtpaths
+)
diff --git a/dev-qt/qtplugininfo/Manifest b/dev-qt/qtplugininfo/Manifest
new file mode 100644
index 000000000000..9ec6061b2e28
--- /dev/null
+++ b/dev-qt/qtplugininfo/Manifest
@@ -0,0 +1,8 @@
+DIST qttools-opensource-src-5.6.2.tar.xz 9794512 SHA256 db2bb4318786257a47172c377d9c456d5d5ec760d5d69240a4693dc87989e1b7 SHA512 3b2a0d098e09353978ff1e54cfcc293b8c7b4ada323c3c98e6ce8d62cea4574d285fc169f9758ec019206184db0df39ac99971be0bcb335672b7f4f86c787327 WHIRLPOOL 7e4ab96eb762d4ea13fc19f5816f3b7633601746d6f4c83b7eefa7b9cecc65db0837bc85f9b69c6a69f13b0fac243d3491b6990a85d72ee24bee4d05a262e1fd
+DIST qttools-opensource-src-5.7.1.tar.xz 10011108 SHA256 64197022686c3d8b11a8639f102e2caf03cc325a30e7a32ba66881648ac2dfac SHA512 10e4e060943596602bae0f99091de0923d3ebc761d44a5d193bfd17b77cf8fdf3c4466fb19363bbd3a354955ed09db9132b23833557f5216c7b4df758c17406e WHIRLPOOL af661baeafa85e7af56bb8859415306d26fe7c0de8238d399a520623643de0e6c6ff6056715013d202285c6ef068f4c4c21fdf28098cb42ac6ec97cbfde127b2
+DIST qttools-opensource-src-5.9.2.tar.xz 9778248 SHA256 2bb996118b68e9939c185a593837e5a41bb3667bf5d4d5134fac02598bd2d81a SHA512 afce063e167de96dfa264cfd27dc8d80c23ef091a30f4f8119575cae83f39716c3b332427630b340f518b82d6396cca1893f28e00f3c667ba201d7e4fc2aefe1 WHIRLPOOL 747a9c7ee7914ae613373c810891c0a4147b3c5614801677014fa1fadebc3bb985b120e855380ef05bb8c452968d6dd9d54db9ac2b4c530d5c0d0453226f378b
+EBUILD qtplugininfo-5.6.2.ebuild 373 SHA256 e8d53fdebe444fd09b18ca8d57d98626385c26a656d6c81ef3bae0e71fbca0c7 SHA512 8825a6140078e4caad4ba8187c06f6840038b027c7cb989532f5a01c4008119d4c8f8285df269056d33e4111f82bdf024f04657c46d07c595fc48f49d0c18309 WHIRLPOOL 64e068a134a18cfbbb87a84f57f8b1730e974c096ad47ffba70cea750121847c80d69cc27432c846c42834d76a6e0193d35cb754c8c597c436286b685bdc72ff
+EBUILD qtplugininfo-5.7.1.ebuild 373 SHA256 e8d53fdebe444fd09b18ca8d57d98626385c26a656d6c81ef3bae0e71fbca0c7 SHA512 8825a6140078e4caad4ba8187c06f6840038b027c7cb989532f5a01c4008119d4c8f8285df269056d33e4111f82bdf024f04657c46d07c595fc48f49d0c18309 WHIRLPOOL 64e068a134a18cfbbb87a84f57f8b1730e974c096ad47ffba70cea750121847c80d69cc27432c846c42834d76a6e0193d35cb754c8c597c436286b685bdc72ff
+EBUILD qtplugininfo-5.9.2.ebuild 373 SHA256 022423119ec57cdc52e95ee5055f432afbeac03851d752a837c7b09f13ef0bf8 SHA512 af4bae833123b5d2e2e319907be4f1616e158ff949f25dc45a251460946428b04a4fe8a186d0a43163779c44b39f9f0ca412a308a340d8e783dc94f0e465d933 WHIRLPOOL a182a73278b54302dc11d9c0d0a8531bc0178cdb8a67d36b43efb24c3a2df66da8c2f334bb3b06b267968f092e6cb5da6c4cc6c4f53908efbfa4650fe0eebcc3
+MISC ChangeLog 1341 SHA256 7d594c84d8f90765bffd17cbc5108fa12bf5b96ebde5761e7b4d1e08b9e7b3ed SHA512 6828e5e97fa64b54c3fca7c0524d9f89394067fffaac4a6084d7b38c76d4beb8da0578d62a17f908869e22801fd8259f3773586dd80c8bf528c5b308db968147 WHIRLPOOL 8950ce162f9946545954a0b53f73d129d49f97f4a59df61b4f365657969a021b04717c5eacc69e4e9e07b8976cf9b7ec9e8dbb49c9799d103528630557781feb
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtplugininfo/metadata.xml b/dev-qt/qtplugininfo/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtplugininfo/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtplugininfo/qtplugininfo-5.6.2.ebuild b/dev-qt/qtplugininfo/qtplugininfo-5.6.2.ebuild
new file mode 100644
index 000000000000..f830ab762eb0
--- /dev/null
+++ b/dev-qt/qtplugininfo/qtplugininfo-5.6.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 plugin metadata dumper"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtplugininfo
+)
diff --git a/dev-qt/qtplugininfo/qtplugininfo-5.7.1.ebuild b/dev-qt/qtplugininfo/qtplugininfo-5.7.1.ebuild
new file mode 100644
index 000000000000..f830ab762eb0
--- /dev/null
+++ b/dev-qt/qtplugininfo/qtplugininfo-5.7.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 plugin metadata dumper"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtplugininfo
+)
diff --git a/dev-qt/qtplugininfo/qtplugininfo-5.9.2.ebuild b/dev-qt/qtplugininfo/qtplugininfo-5.9.2.ebuild
new file mode 100644
index 000000000000..f411fc0cb905
--- /dev/null
+++ b/dev-qt/qtplugininfo/qtplugininfo-5.9.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qttools"
+inherit qt5-build
+
+DESCRIPTION="Qt5 plugin metadata dumper"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/qtplugininfo
+)
diff --git a/dev-qt/qtpositioning/Manifest b/dev-qt/qtpositioning/Manifest
new file mode 100644
index 000000000000..0afd5bb19d94
--- /dev/null
+++ b/dev-qt/qtpositioning/Manifest
@@ -0,0 +1,9 @@
+DIST qtlocation-opensource-src-5.6.2.tar.xz 3148448 SHA256 7a8995206ed0220f943a33c037527a1a8243d5386f5ca77bf88152675c28d23a SHA512 10d87e9e546d52fc1813cbe244cb592033758460129854879b0d04600bd2285c2ae499bb131de77bf66b4989b45d14e9e656a30aaeee47628e41b026908ed97e WHIRLPOOL 4c4cb895d3cd5cf2ac6ad385374d0dce6e91a9b6f3f562bff5e2715896d108f9f1a60ff13a5d360238812b34523d50f0ede92211830e2d0eef6ccc5b28d82966
+DIST qtlocation-opensource-src-5.7.1.tar.xz 3194112 SHA256 f9e9e64e757008c2341504a1916a219ee0cf2b1b42bfa72156e62dfe9dfbf39f SHA512 a3e0318ad348edd6d9cb4762d4fc6230a47984fcf526f55cc2c9bc00e2e70fdb1380866ec8906e3f58669c62464f8747c948d85107a2d30be1e98da27c7739d4 WHIRLPOOL be30847a33b1bb356d6725202968e189abf4a5bcdc5c2decf9a7ffc14b2d3875dfde827b41b97bf11c9497ec584f351c567150d84bb93fedeb3cb15ce0ac0075
+DIST qtlocation-opensource-src-5.9.2.tar.xz 5369548 SHA256 c81a42e44ebd4e9c33f7195e86af3deab9fde72ef0ad8dcb04acee250d356b0c SHA512 da2e011d37b1c30395360987d66978c842aae41491ce3201316ebe1acf453fb31626575e3c3d65836aa6ac80e3d4324a613f0245e90598b507a89d13ea241786 WHIRLPOOL 2a2dd20d9fc5ae75e469438587dd1d57b65a5a5e642a6806bc067b0cfa914ef0309a63b37163b0fb349134bb3b6a1fb4785691c1a8d2ef681c624df29a1df67a
+EBUILD qtpositioning-5.6.2.ebuild 731 SHA256 06af5d7dac308606ab7715b9edf987f202667567ea479690b75709e2e78461ab SHA512 36c88e916f23c8a118c792d63cc988edda2bec299afb8fe9a2f510623285c144cd6f1724049103528358decb0cb4b680ddef86c3f4f7d9270998b09cf0450be6 WHIRLPOOL 53dbcff2eb1b87d242d91ba62a194fc624bebc9f12bf68452960ec1850b91b95a94678bef4620b3369d0fa587004e02463f249afdc68b091751cb47ef7251534
+EBUILD qtpositioning-5.7.1.ebuild 738 SHA256 dccc0998aff56d9827ed8c1d9d114a3f1bb28fa71972c13dd450055103a20fa3 SHA512 1dd5a1827a28584cf35ef6f7d38cd6adce0602587bf618bd4e1f927868f08d3557d02d4f70910cb7f68c16a8e4bd53547b2bed4dc24194290d3a457668ddda32 WHIRLPOOL 73391eb93dbe22baf8578a930db561b45f7f8e0699df989acc91835c31c292f7b935cddf036fedb21e38f4de6bb03fa1f01fb1b2a8445ab9107a95471304edf3
+EBUILD qtpositioning-5.9.2.ebuild 810 SHA256 1bd543bcf85469ecac8ecc56506d7814a95e88b753aefba27112b73d1f8ebc16 SHA512 f5fa845f12bd35df1329f76fef2b78cc9196f18f7d6421e3fb5717dd2438120193e628772f7db30f82548b87674f547a106435ede85acf06d45b55509ede3aca WHIRLPOOL e48e91352d40fcfd30a0b4906e76caccc0b9b0750434cd306504ea20b3677ad47d04e9cc47c77ac9d59ad55a2f1de153d30b69e0235027b953961c4c7c0d75de
+MISC ChangeLog 6302 SHA256 c67cf10ad95e417604eb4548abc9645652d0cf8d2f660569c39790b327540fcc SHA512 e250b6e9ce4a5e0bb1e4ccf5f0b8682de5b19c2278a91c594691192aeeb3f1a1e8ad0f9f08acd6759b297bb258ae4e8544570dc6bdc6c6de48df51f519966fc8 WHIRLPOOL 9c7409ef53839b18361fccdec78616f2eaa34cb4659c17a4b6f935dcd5ee1602cb21d1c65d6c9b66ee779b52c08eeb43c288895c1d748d527b1e8231d7cd43ce
+MISC ChangeLog-2015 1461 SHA256 da2eb27ad4f07186590ea3a73ad0ec093cc698b79720c452a0b238c9e90709f7 SHA512 bcd30e5d212035b963306e0da6763f589c45808439d919c14e912657747408b2a8e9d4532a2f61bda9299a9525dc6602671d1c3f3ea757fde83dcdaa4d852c33 WHIRLPOOL b40781456f0edb5d4179c057e3281f23d5929b5f6161faa9f63c08c81c2f451b52dcd29a9e822d73d7edfa3c80b30bc53243cce06efa2b9ae8488f74e133f0dc
+MISC metadata.xml 638 SHA256 16e2bbf669329e4730cbb37b63d91da1a874e4394a24ced1ed7600dc9eee6579 SHA512 22a8957aa1e8cf06f20d163dec127c424d0b206bd2f1a4ddbcb3cd59d00cfacbb74c9a95a1f20a755bbe067c1f3c87f1e56cb5afc076c6c94de4364dec1a6cc5 WHIRLPOOL e8ac9c1448a375f97215dc7085aff310af60d5a780c9e7f4929a00ab3f36bcbcd5d325f48730f5ad6e24098c90a3b65b87e71c7cedac311fbfe3afa27c10d323
diff --git a/dev-qt/qtpositioning/metadata.xml b/dev-qt/qtpositioning/metadata.xml
new file mode 100644
index 000000000000..23d4d81fd3d8
--- /dev/null
+++ b/dev-qt/qtpositioning/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="geoclue">Use enhanced location information from <pkg>app-misc/geoclue</pkg></flag>
+ <flag name="qml">Build QML bindings</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtpositioning/qtpositioning-5.6.2.ebuild b/dev-qt/qtpositioning/qtpositioning-5.6.2.ebuild
new file mode 100644
index 000000000000..56064d3fda13
--- /dev/null
+++ b/dev-qt/qtpositioning/qtpositioning-5.6.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtlocation"
+inherit qt5-build
+
+DESCRIPTION="Physical position determination library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc64 x86"
+fi
+
+IUSE="geoclue qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ geoclue? ( ~dev-qt/qtdbus-${PV} )
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+PDEPEND="
+ geoclue? ( app-misc/geoclue:0 )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/positioning
+ src/plugins/position/positionpoll
+)
+
+pkg_setup() {
+ use geoclue && QT5_TARGET_SUBDIRS+=(src/plugins/position/geoclue)
+ use qml && QT5_TARGET_SUBDIRS+=(src/imports/positioning)
+}
diff --git a/dev-qt/qtpositioning/qtpositioning-5.7.1.ebuild b/dev-qt/qtpositioning/qtpositioning-5.7.1.ebuild
new file mode 100644
index 000000000000..02c8756f8224
--- /dev/null
+++ b/dev-qt/qtpositioning/qtpositioning-5.7.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtlocation"
+inherit qt5-build
+
+DESCRIPTION="Physical position determination library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 x86"
+fi
+
+IUSE="geoclue qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ geoclue? ( ~dev-qt/qtdbus-${PV} )
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+PDEPEND="
+ geoclue? ( app-misc/geoclue:0 )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/positioning
+ src/plugins/position/positionpoll
+)
+
+pkg_setup() {
+ use geoclue && QT5_TARGET_SUBDIRS+=(src/plugins/position/geoclue)
+ use qml && QT5_TARGET_SUBDIRS+=(src/imports/positioning)
+}
diff --git a/dev-qt/qtpositioning/qtpositioning-5.9.2.ebuild b/dev-qt/qtpositioning/qtpositioning-5.9.2.ebuild
new file mode 100644
index 000000000000..ccf6ea6d6bc3
--- /dev/null
+++ b/dev-qt/qtpositioning/qtpositioning-5.9.2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtlocation"
+inherit qt5-build
+
+DESCRIPTION="Physical position determination library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="geoclue qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ geoclue? ( ~dev-qt/qtdbus-${PV} )
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+PDEPEND="
+ geoclue? ( app-misc/geoclue:0 )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/3rdparty/clipper
+ src/3rdparty/poly2tri
+ src/3rdparty/clip2tri
+ src/positioning
+ src/plugins/position/positionpoll
+)
+
+pkg_setup() {
+ use geoclue && QT5_TARGET_SUBDIRS+=(src/plugins/position/geoclue)
+ use qml && QT5_TARGET_SUBDIRS+=(src/imports/positioning)
+}
diff --git a/dev-qt/qtprintsupport/Manifest b/dev-qt/qtprintsupport/Manifest
new file mode 100644
index 000000000000..fa938a1908d4
--- /dev/null
+++ b/dev-qt/qtprintsupport/Manifest
@@ -0,0 +1,9 @@
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtprintsupport-5.6.2.ebuild 755 SHA256 36d7261d540f7e4a453dbac5ef02e4118edf1a2dd7e61cd1d3b1bf5968352ee8 SHA512 2f393e82f43d703872bc77d3439fc8e5c151d0c8d872ecc5aeb2bca4cbc557c923d54cc720f443a6ea95a4096ac0bb5d94a45829a2878b798bcc0dcf865ebada WHIRLPOOL 83ae6662a35b57e456a72f8318347296067bc1df6c4848a5f990c22f2fcc5637d0cce767ee74656e204c05565324b0e2b3a7430b8d0901619e3e4cbdafd83ebc
+EBUILD qtprintsupport-5.7.1.ebuild 756 SHA256 a23a00c44869e5d011beb5dc870a1a0a6c39414a374d6deb0426df053a55d20e SHA512 ec05254864dc55d52b3a773b019d37341f136c607ace697873926abeba01b08b9871e0ef5867bdde5a474c8cf4ad0728cdc89e02ff0de33c71700f4fb0c69561 WHIRLPOOL 24bd6d248a21775805beda1f92a381c9428ff0d5b62d4ee07a543ba3dfbeca44c35a1572d8abd6d0fe0e5531c651fc7f0c561b75e1a460be2bebc2d1829fe245
+EBUILD qtprintsupport-5.9.2.ebuild 761 SHA256 fa3a0ccd3aeb8c307ac607e16b1ec52788d7569b88650c22e7850c9be9b96f8e SHA512 1dd17adb85e348a45451d11b896960643592ceae9824d37c97fea7ae274ad80fdf0e8f45885d7df7494f1ecad89daff52a61ed14c81d8e05d5bc9a9edcc1a061 WHIRLPOOL 282daea9001a32ee354b4505dde344497902fc1e9b5733c9010a543e98f68e5428d1aae4ca3b51c59905f70c7f47aad000d303eeefff5a687c8830073fabfa3a
+MISC ChangeLog 6677 SHA256 2cccde7e604657b012d390372603bfe82f6375f36d11102aa5eee2c72bcd5357 SHA512 2dc5bd16ae6dac06a32b6389d2397dec60f136366fcede8b504f4eeafc06ba231de65f2fd2771ca6524f97f0e0712671747cd9b888ab78bb7292897562abc49d WHIRLPOOL e4e0accc8525ca892a43b9efa22849be087921ade68feb26819957894636ee4b4c7e2fe9978881bfd7fd1fc9161d9c1955ceeb6bddea006e22947468892f06e8
+MISC ChangeLog-2015 2084 SHA256 e6eb7c01b214ce6b6bcde664bcc62971681be2a3a3aff15be1d7554abf1482d6 SHA512 9a77ec49e312fa31ec63a2031a999df01ec35b5deb600a2c0675bbf2279f270193424eeef08fd5ae8931089d2b59298c85444ad04d4ef0fdf527b0e7dd7b8a23 WHIRLPOOL fa1878d33c231fad7d9c9b2b4bc6205c3dbc79e3c801d1beb90147ab9c95c22d2fef96eef217dd4e73f90167723ecf995ee2976203c5fd80e72eb0630c364bac
+MISC metadata.xml 569 SHA256 29972a6c77f44c62be39c25e18764ec70467c25350d8231cdf3b0b0eaee3146d SHA512 a8f035a140ff40e92944369ea2d744c049a56becd4e10e72fe98065c203b458ea9ebae40ef23e4bb86d0487d0b68b52e6c2f9f8a99d1ffc4a12d1d372d061192 WHIRLPOOL 533b0bb36559f85f36c79bdd0987de917db43e133ebeba5f3c56d5e70c9b9dfe3358ce7c8b009f942a2cda9c6c47403dd17b2e28bda74b89fadad24d15537688
diff --git a/dev-qt/qtprintsupport/metadata.xml b/dev-qt/qtprintsupport/metadata.xml
new file mode 100644
index 000000000000..17b1d11ac715
--- /dev/null
+++ b/dev-qt/qtprintsupport/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtprintsupport/qtprintsupport-5.6.2.ebuild b/dev-qt/qtprintsupport/qtprintsupport-5.6.2.ebuild
new file mode 100644
index 000000000000..6f90409fc82c
--- /dev/null
+++ b/dev-qt/qtprintsupport/qtprintsupport-5.6.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Printing support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="cups gles2"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ cups? ( >=net-print/cups-1.4 )
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/printsupport
+ src/plugins/printsupport
+)
+
+QT5_GENTOO_CONFIG=(
+ cups
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use cups)
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtprintsupport/qtprintsupport-5.7.1.ebuild b/dev-qt/qtprintsupport/qtprintsupport-5.7.1.ebuild
new file mode 100644
index 000000000000..20de828991b4
--- /dev/null
+++ b/dev-qt/qtprintsupport/qtprintsupport-5.7.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Printing support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="cups gles2"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ cups? ( >=net-print/cups-1.4 )
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/printsupport
+ src/plugins/printsupport
+)
+
+QT5_GENTOO_CONFIG=(
+ cups
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use cups)
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtprintsupport/qtprintsupport-5.9.2.ebuild b/dev-qt/qtprintsupport/qtprintsupport-5.9.2.ebuild
new file mode 100644
index 000000000000..71b61e387963
--- /dev/null
+++ b/dev-qt/qtprintsupport/qtprintsupport-5.9.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Printing support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="cups gles2"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=]
+ ~dev-qt/qtwidgets-${PV}[gles2=]
+ cups? ( >=net-print/cups-1.4 )
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/printsupport
+ src/plugins/printsupport
+)
+
+QT5_GENTOO_CONFIG=(
+ cups
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use cups)
+ -opengl $(usex gles2 es2 desktop)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtquickcontrols/Manifest b/dev-qt/qtquickcontrols/Manifest
new file mode 100644
index 000000000000..b399794e90ef
--- /dev/null
+++ b/dev-qt/qtquickcontrols/Manifest
@@ -0,0 +1,9 @@
+DIST qtquickcontrols-opensource-src-5.6.2.tar.xz 5952696 SHA256 5ed0f2292be10222dfb1b57a05472798fd759279f65455d91c02ef4fb746102c SHA512 19bf092e984bc5ccbc328726f10e6c4d1980f68772b85591c7f62025552fc38bb25b71974f4e71258456c85be37cc72636c6dd035f5b57e573fdf5c99e028a7a WHIRLPOOL 17bc1be69bdf28821b2e72e4406079a2dca0d346b0aaa4c5f4642ba37a99326142ebbd5f89fac219b6b9c452622b6a3ce33c2fa68012d6fcce8bdefcf614e400
+DIST qtquickcontrols-opensource-src-5.7.1.tar.xz 5943024 SHA256 6feb1a736bf93af98c40d04cde6b36c113e4cdf84ccb9b306ca92ef9b1779e9d SHA512 7f5d3a2fcb1da3ba5299f57935156e34dd61d019b29892794927148c7bda99e8e298522f1a7d807f2c2b9746efcc9418a9f89c6322257749036b046e03471368 WHIRLPOOL f0863a5b88057ffbbd5059b3a61d7ae98b8291a96383936e8acf70b64ad91b8da3a7d2837377141041ea2f3051638dad530ad83b089a9aa18a8e11ee54b6d289
+DIST qtquickcontrols-opensource-src-5.9.2.tar.xz 5945332 SHA256 5f09ecf8648acd8abed20d727b8517e0c53cf945e83a992ee58d4baadd84bd1f SHA512 fd5833bd3823e3a53b54ac542857af5bb109952035869ad0a151e807abc9d304ef5d3fa04b75df3b59faf0b95412f593d86b56198f96734f3a75b1620688ba4f WHIRLPOOL 79d373dcdbbb176d966b7c0c5a207384325680e766d71c49af008da6f33373b4ea0b8c0c0b51b6ac1493c7046bec0b829f703d5a29b72e996b6642897cb3703a
+EBUILD qtquickcontrols-5.6.2.ebuild 746 SHA256 deb7c3faad761e8889cdaffe8ac12f4f381596e5fded78946c9906dc8f11d13c SHA512 50764935e86cf78444ffef142ca6b3d5519db09252c22ef143b79b8f799951e66072c44fc74830c3576d4bfe586c9060bdea7b512eaca8ee6a1e738387daf8c8 WHIRLPOOL 923c28bbe52852ca44148a151bc57c24eb7da616c8dec53d67f222615f144da3f95b7caf54331a63c5001bad6c769d03b0f774695c04646caed234e2fb86112b
+EBUILD qtquickcontrols-5.7.1.ebuild 746 SHA256 f1b94b0c664f16074eae52ab531fa2cd9f0951ec2c7b1197261a89967f9acd00 SHA512 a178ab0c0c0b963af3be4cf32fc12573a452c8f10d3ef533606c4809689bc617823c231371e2cdff4d42e204d2d4c75d6e985cc1c23ad2dd838145f9ec735b47 WHIRLPOOL 8e798435cc293837d3e04c795f18b0e8d8af58abd436d861d8315a4db27e53e4db12c70b61ac4f396f78c884c29cc1f83b38b0936a4a272a17792fc08d05f9ec
+EBUILD qtquickcontrols-5.9.2.ebuild 751 SHA256 0b617cf8456d8b4fbb7133dc1b242a0b3a2111d328d31137e57b4b362f69c044 SHA512 8cf039f5fd036f1c9a90b284aecaddbc4b9c53699d47b07d870e73be761ba23f36ba26398777cac9d0423e09fbeee1f7bd902faae012cf6c68157a59dda4e029 WHIRLPOOL 949d1cbe27fe357fe537fdd3d9db1d937d6b555591f11b9ce3ea34a0036629d011fc0e0e2562fee5ee8ed0a0d2e0a0dd10f35bd77af0914e81d0dfb5770f6d89
+MISC ChangeLog 6424 SHA256 217fcc93467391d2e0f4a551ec17bff5ad86d3d4911fda521ac4844209db3463 SHA512 4becabce0621a1498ae8f9a123e223ddc3468aa19fa37ca3c5523899ebfb040ca570deb9529c1d9864002eba13d1c6db8e371e476ff77bd0fa2505cf3e7a0b0e WHIRLPOOL e3b2b37c30904ef15305eca22062fe501eb8384e4680578f5793c6c776b3e36620cf522e3d4a48e05d7f33772f1c6cc0a27851b214ed8656c9c5bcb82b254d94
+MISC ChangeLog-2015 1798 SHA256 d4bb718d045b90beb20a63085ddaf70f122327fe4b7392b97f3a307507182ab4 SHA512 414df915b0ffa426963a1ec739d6ec6a8297cb5d8eb8d6a5dd962593e142ff95f1459902913d802cc206b263a5c9db4f15fd594be2708ac1f0bae9e6d1b39b2c WHIRLPOOL a9921c5083541dccca3e18249a572cf303d18911affdbbce8eddec34172ff24c6145efcdf50b7cc601fe335a285f9db575e8dcbeb3f389e7ecc236e2012674b4
+MISC metadata.xml 551 SHA256 5a4b9bb2bc22d0e1dc6149f9ee22551a627e955d032a97537b20ac68d2438f0b SHA512 b3fd90ef9fffbd2bbfd8bd75ee09ff4dc7fb18a4ab7247a12c54c980993450466454a83938a2cbc7c423d9ddc03a46e8b29a92b443aa08166ab2fa2be2a3451c WHIRLPOOL cd14d7d97c15a2fa95d19475e52f1b35d0a344e3115f6fed2036dba0c05e85add7c9503e57e21c0c26a31be3ba8b0db2c9628d41b4c76b4303ae998fe771c7ff
diff --git a/dev-qt/qtquickcontrols/metadata.xml b/dev-qt/qtquickcontrols/metadata.xml
new file mode 100644
index 000000000000..cc8ed92a390e
--- /dev/null
+++ b/dev-qt/qtquickcontrols/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="widgets">Enable QtWidgets support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtquickcontrols/qtquickcontrols-5.6.2.ebuild b/dev-qt/qtquickcontrols/qtquickcontrols-5.6.2.ebuild
new file mode 100644
index 000000000000..388b187d9e3c
--- /dev/null
+++ b/dev-qt/qtquickcontrols/qtquickcontrols-5.6.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Set of controls used in conjunction with Qt Quick to build complete interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ~ppc ppc64 x86"
+fi
+
+IUSE="+widgets"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/controls/Private/private.pri \
+ tests/auto/activeFocusOnTab/activeFocusOnTab.pro \
+ tests/auto/controls/controls.pro \
+ tests/auto/testplugin/testplugin.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtquickcontrols/qtquickcontrols-5.7.1.ebuild b/dev-qt/qtquickcontrols/qtquickcontrols-5.7.1.ebuild
new file mode 100644
index 000000000000..5f4d9479f188
--- /dev/null
+++ b/dev-qt/qtquickcontrols/qtquickcontrols-5.7.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Set of controls used in conjunction with Qt Quick to build complete interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="+widgets"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/controls/Private/private.pri \
+ tests/auto/activeFocusOnTab/activeFocusOnTab.pro \
+ tests/auto/controls/controls.pro \
+ tests/auto/testplugin/testplugin.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtquickcontrols/qtquickcontrols-5.9.2.ebuild b/dev-qt/qtquickcontrols/qtquickcontrols-5.9.2.ebuild
new file mode 100644
index 000000000000..ac6ab02eea2a
--- /dev/null
+++ b/dev-qt/qtquickcontrols/qtquickcontrols-5.9.2.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Set of controls used in conjunction with Qt Quick to build complete interfaces"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="+widgets"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod widgets widgets \
+ src/src.pro \
+ src/controls/Private/private.pri \
+ tests/auto/activeFocusOnTab/activeFocusOnTab.pro \
+ tests/auto/controls/controls.pro \
+ tests/auto/testplugin/testplugin.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtquickcontrols2/Manifest b/dev-qt/qtquickcontrols2/Manifest
new file mode 100644
index 000000000000..d40f9f9e291a
--- /dev/null
+++ b/dev-qt/qtquickcontrols2/Manifest
@@ -0,0 +1,6 @@
+DIST qtquickcontrols2-opensource-src-5.7.1.tar.xz 2212812 SHA256 f2e8acd0badbf604f28258b063c94ba71e28147c53c435ae9eb484497cf3e7ec SHA512 24b142f60f3dbc52084906249e261ea8b788135a3dc2e45bb3fc885fe14f9281178025433b28e227891070adff3fe4b64c8a1f83ac4c9bde7f4a6048ea44370e WHIRLPOOL c9a943762f28025169de1d17a94c6849cd51afa5f26538f3943fb343e04fd1282a4b28f595c96106bcac57c744d2cfc8beb0d8c77ab07952a03feb316344ba94
+DIST qtquickcontrols2-opensource-src-5.9.2.tar.xz 4121004 SHA256 2b55dd3dd53b4a6abb0ceb74b7fb98a5e52e9056c71a6cdbaead5cdf9d1ac8d2 SHA512 e283320aabbaa153067c909804cb34bbcbf6fcb7246bb214957b6092ceb0f01c4fae2efd9d7a6cb011274deafff4aaf0a45dbda06a3fdce1154622e48740048c WHIRLPOOL 12b53b8b43a6d839faa41551ac580617c8a4b8ea1328da9a7e5b686eec04be4e012f935c3c62d79672d39ac01c723840b8836f711bdfccd2960a129d86e8baeb
+EBUILD qtquickcontrols2-5.7.1.ebuild 433 SHA256 4d8cf0d3ca7eeda5d5ab90afa2c969e2b7aa9aad5fbfb112536179d84eea48a0 SHA512 a9a3396d6b63faee06d93c3596c68756b21dae17f6ff2c2725f28f33c87d3bef29ed2a8335f627f30a660530572d09b36f96a6a1e6828952a0112be87e12e70b WHIRLPOOL b37dec8d17b76e375361589f2ebd21bf69939fcacc80b016b40aec35a0422dcca48fd6a2fd47b2e3d1e51643508b6a72fa18c7418b7387fe017fd6a432cc0dc0
+EBUILD qtquickcontrols2-5.9.2.ebuild 598 SHA256 9a5ae39ba6c0250e13469026790ad25e23b1dbad1051b406de8943b5953b0b91 SHA512 e5235edebdd976b707ab9b7a02191caefbc4df5612c03586d4c6787b528c9a82494c4d1afdfa1a8db37f20cfe3afe83a9eafac2e67d6980ab71bd2bca4cd34b9 WHIRLPOOL 94ecff9ad578622d7442f6f9109caa4f7172afc5bbb0475302602791ea6227cefd0c739ec1021b90a617bab784bdc207238962092e7ad1b5e5b5d8b2ab8b86b1
+MISC ChangeLog 692 SHA256 233477e97e677747873ee3f19a719a37ccec81142c663155035996ca01614afe SHA512 5f93da7661462864324a0affd7b463c24e1c0d8ee27fefaaef7b7d6c19db245dc48f8460de47342e6d3cd994aef688d13297a39b8c0d18ce5838534e7acd1cdd WHIRLPOOL f11ec3abde24cc70c1d4db7755b0979f07f7125c439ccf9fa173fec5db4d0e88effb3e4dabb1f3f46d4f4382f6761f1b68334cc5b2b7f741514ec858d6381296
+MISC metadata.xml 551 SHA256 5a4b9bb2bc22d0e1dc6149f9ee22551a627e955d032a97537b20ac68d2438f0b SHA512 b3fd90ef9fffbd2bbfd8bd75ee09ff4dc7fb18a4ab7247a12c54c980993450466454a83938a2cbc7c423d9ddc03a46e8b29a92b443aa08166ab2fa2be2a3451c WHIRLPOOL cd14d7d97c15a2fa95d19475e52f1b35d0a344e3115f6fed2036dba0c05e85add7c9503e57e21c0c26a31be3ba8b0db2c9628d41b4c76b4303ae998fe771c7ff
diff --git a/dev-qt/qtquickcontrols2/metadata.xml b/dev-qt/qtquickcontrols2/metadata.xml
new file mode 100644
index 000000000000..cc8ed92a390e
--- /dev/null
+++ b/dev-qt/qtquickcontrols2/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="widgets">Enable QtWidgets support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtquickcontrols2/qtquickcontrols2-5.7.1.ebuild b/dev-qt/qtquickcontrols2/qtquickcontrols2-5.7.1.ebuild
new file mode 100644
index 000000000000..eb8b809e3d6c
--- /dev/null
+++ b/dev-qt/qtquickcontrols2/qtquickcontrols2-5.7.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Set of next generation Qt Quick controls for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 ~arm x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgraphicaleffects-${PV}
+ ~dev-qt/qtgui-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtquickcontrols2/qtquickcontrols2-5.9.2.ebuild b/dev-qt/qtquickcontrols2/qtquickcontrols2-5.9.2.ebuild
new file mode 100644
index 000000000000..af1973c274ad
--- /dev/null
+++ b/dev-qt/qtquickcontrols2/qtquickcontrols2-5.9.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Set of next generation Qt Quick controls for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+IUSE="widgets"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+RDEPEND="${DEPEND}
+ ~dev-qt/qtgraphicaleffects-${PV}
+"
+
+src_prepare() {
+ qt_use_disable_mod widgets widgets \
+ src/imports/platform/platform.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtscript/Manifest b/dev-qt/qtscript/Manifest
new file mode 100644
index 000000000000..845612c43783
--- /dev/null
+++ b/dev-qt/qtscript/Manifest
@@ -0,0 +1,14 @@
+AUX 4.8.6-javascriptcore-x32.patch 1826 SHA256 d6568064e1f4ac9d67354f66e090b74dd6fb917830961ca63359a4cdf58e2cfc SHA512 9b93ebdb9c474ad4e4d09de9d99d97351022863ae3a58fb0b03d1cd103dd012d0a12643f6e00f60cf0a9a4ac24db98039e87d5dd9a1afcf8dc65696b4bcd4efb WHIRLPOOL ed0536fcd9fbe280bd4c77556f216320fdc1e8cf13193dab21e96651bfe70095e0840c7ba133c16bac58ae3993996e0df778a97e0565753026d3d73b236bef18
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtscript-opensource-src-5.6.2.tar.xz 2587484 SHA256 e06ef6b271cae2187b57cd4ffdd6759428fd47f94a060e2ed2af024a8c14110e SHA512 3636b214f0573e471a1e44cf33097adcd104df7b74e5abedbc75fd9c44e804bb47172b6ab4c41513e8162e27850bf64067ca11196396b60c3bd2c968e15d3113 WHIRLPOOL 1375ddaac79ef2a99a0193696a64f3c16d03c404231ed641a45692e4be8cf26d65b9c199cf73fb8b2152486355ca8279b64d723b94dbb504fc585011c969c795
+DIST qtscript-opensource-src-5.7.1.tar.xz 2608180 SHA256 5bf91a1c53020d91d454d4bb0f930ada98c5fc008fda78f2d7171152920da426 SHA512 6bde4add16745475d42c0fda0d3451a77717b14dca12b40a4e3cebc9e2b6edb04da23ebf9af46010135066524dd8ea0453a07420cf42228fd7ed5249b633a95c WHIRLPOOL 971db46b5f469a123e2727318017f42726db53251d5637e0804ce35905d1006322681362fe0f1d8f92f15f2f5f88e9a85862374a97256fe797223d2cabc55636
+DIST qtscript-opensource-src-5.9.2.tar.xz 2611900 SHA256 47807db5c2684609a0252601fda0a153530a2c97abb8c96df30f4e7897cd40f1 SHA512 3ce2e57a0a6b2382614f689edca0deed87afe944c1c41decb3b9f420449fa59f2b79e6330e78e01a950761a95903113eaa7fbf261886361114acf5015d93254c WHIRLPOOL 6c7c1d4eb25a3bc8e4c4a47512788d1e7183eb7c3928ab2c892f8cfe7b7ed9e7ef1bc7f93e5e3be1ecd23635e6b118ae008270e6b8877e5746980e5492bfd9c3
+EBUILD qtscript-4.8.6-r2.ebuild 1122 SHA256 aec6842a2d20322154cccecc3cd56debff3e866a244da8bc016c5a216a14e186 SHA512 b19d49f1ea1400dc2ac0ff905c26c7aa47e32b7ddd7fbe8e397784feb8079b5dec64f6c448ee8db72f56835b58f2e80544e371453e3715b0caf1e366af6e8938 WHIRLPOOL 1516487e0352c6ed479c83c352bf75c957d71234ac62e0c8449d8aa5811c4489e9cf5fae0ed73e1631a51de52119a4dcb9b5546eafb6074658ff6b29f8e45588
+EBUILD qtscript-4.8.7.ebuild 1071 SHA256 8708b7abac9ba20465a99b40f9bcecf0234d47e5441efc6ceec2f66fd7e9aeca SHA512 96d65f72b7e56f2ca95527ef0eb057384ea8d3107f8ac06c297759cb29143fe529b30ad8a0c2858e786a45b2969ee1ceb45c33896d61dae36bf5dd1306534fbe WHIRLPOOL 6288043d07b5866ac63953e0595136196867756b7e9854f3bcaa2d80789b26481e6f4b37c8da4d5956c503b3ef9b2a1e1144658c1305098469f92737a5d8c877
+EBUILD qtscript-5.6.2.ebuild 663 SHA256 aa168b7de5ee353b7c6036b41a594423fa7357ea5d36ef4315702c95a24fbb08 SHA512 bde5326cddd6b9a7eb68a3ed440f1247a2cf504a2bcff726d55af998c8450129fd193ebd631bebe511ce78deae2589dddfe71c616571b1d12fd72570b326d205 WHIRLPOOL 393ac03e8ca1d87885bd262ee6c096d4d201115c0fdcd9c2399014488e41e61d5e18454e16463fc1526bb761cb936a2bd3f3d1109ae7fbdedd69414743ab2420
+EBUILD qtscript-5.7.1.ebuild 664 SHA256 2e862f8f6ecf13f51d6369c1d4317174cf332d99e9d9e0e930ef65c425c0912e SHA512 d068ca8ac446cfef1c8b6e4421b243f2f0e4476baa2003ef1487b46a1989284ddcd2bb806d381e2c87de49de094fdec750699cbf4138c7d0f44fb2043b77df49 WHIRLPOOL a97d58686f06199f456d816fd84fb44d8edd45789db13701635aaaf87bb5de64d9713e7b4f3536e83c23154c7affa8de858b5e7dcaa263b274266313a45d2573
+EBUILD qtscript-5.9.2.ebuild 674 SHA256 de3eb53d2e16e34fb0aa441851a1870226e259773a6d1db9d5a72dd94c440f78 SHA512 a183c06e6c4268195d2100fc404a941b559c7b6e6154d2ec36d7b391a59135563c29d96f159e14c6d334cdbc7ce170c475e9259fb6ad033b317ced1748bee101 WHIRLPOOL b2344fd060a1c698e67c595ed98132c0af3b0a2e4831e35b6b62658854fcc73f6e11da063650fd3ca9c624c302b10f0c5852df3c347ab90bbe45d2f02be60753
+MISC ChangeLog 8112 SHA256 0b411ba33865660e65d341e156ffb88aa462c458923e376b4fd23137581d0af8 SHA512 b57d770ffaf115c7eb36f3aa21e526feb9e4c44c5401d9f795f047b91790234016102e46821de4e80f8b639961c45eb6dea11bfc854edef66b2e30d4e6cd2fe7 WHIRLPOOL d0b841e0d72622a1c65fc023a721d58a3e255d5eff27fd0ec5e7645d6aec432cad375e93bfa2473dab622c3607fd4044fb0b152bd8a91280b9644dbfd9e86019
+MISC ChangeLog-2015 22681 SHA256 3acfd1a3fd3efcacf66d4f1b86556f8fd24ff7ef91fed24d7730f0ebb872a5f1 SHA512 5af735d4ada7e96a506fb43a94e983c2eb08974fd4d3e9d3a8b7a31322db46e228ea30620371413ef040c77a43e2c2d64450df50cd3b54b045e7c3fc8571cd2c WHIRLPOOL 756d20a453bf3f6e8c30c56643d6d6b0c00c51ee1348fccf1a785a5616784f852387fbec002fcd918f6ca23f5a16fb733eb1c8c6b4707c7d6fadc78c47e2f018
+MISC metadata.xml 714 SHA256 800eb7d8481b64d32d5bfed0b1a871f9b7cacbcb365f0e89a72772a581688702 SHA512 8324b4dc7a26ce06a5c8af58768e337f1e96a2077b65f5996a4af535a07ac3a13c05af2fb0c89796335ea106eb82d0857dc20cb9d4c8131907313557a0319b6e WHIRLPOOL 6080b79a0d96fca91e01e2754eef513716b651e53d829f48355279805ec02be5aa4b74948fd2c209e6b181c38f3a7852bc7d2a7982ec54b13fe7929ca1c5abcf
diff --git a/dev-qt/qtscript/files/4.8.6-javascriptcore-x32.patch b/dev-qt/qtscript/files/4.8.6-javascriptcore-x32.patch
new file mode 100644
index 000000000000..cde4cfb93f51
--- /dev/null
+++ b/dev-qt/qtscript/files/4.8.6-javascriptcore-x32.patch
@@ -0,0 +1,53 @@
+From 4e7126ea1488f3e1df0b76cacf83cb73f9d4b54c Mon Sep 17 00:00:00 2001
+From: Allan Sandfeld Jensen <allan.jensen@digia.com>
+Date: Tue, 4 Mar 2014 10:46:18 +0100
+Subject: Fix build on x32
+
+Recognize x32 and disable JIT in this configuration.
+
+Task-number: QTBUG-35463
+Change-Id: Ie5bf64f22f3e58a9b3f12190cf790ad6c39f415e
+---
+ src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+index 0b95639..85ed8a7 100644
+--- a/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
++++ b/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h
+@@ -202,6 +202,11 @@
+ #if defined(__x86_64__) \
+ || defined(_M_X64)
+ #define WTF_CPU_X86_64 1
++
++#if defined(__ILP32__)
++#define WTF_CPU_X32 1
++#endif
++
+ #endif
+
+ /* 64-bit mode on AIX */
+@@ -906,7 +911,7 @@
+ #endif
+
+ #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32) && !defined(WTF_USE_JSVALUE32_64)
+-#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64)
++#if (CPU(X86_64) && !CPU(X32) && (OS(UNIX) || OS(WINDOWS) || OS(SOLARIS) || OS(HPUX))) || (CPU(IA64) && !CPU(IA64_32)) || CPU(ALPHA) || CPU(AIX64) || CPU(SPARC64) || CPU(MIPS64) || CPU(AARCH64)
+ #define WTF_USE_JSVALUE64 1
+ #elif CPU(ARM) || CPU(PPC64)
+ #define WTF_USE_JSVALUE32 1
+@@ -923,6 +928,11 @@ on MinGW. See https://bugs.webkit.org/show_bug.cgi?id=29268 */
+ #define ENABLE_REPAINT_THROTTLING 0
+ #endif
+
++/* Disable JIT on x32 */
++#if CPU(X32)
++#define ENABLE_JIT 0
++#endif
++
+ #if !defined(ENABLE_JIT)
+
+ /* The JIT is tested & working on x86_64 Mac */
+--
+cgit v0.11.0
+
diff --git a/dev-qt/qtscript/metadata.xml b/dev-qt/qtscript/metadata.xml
new file mode 100644
index 000000000000..a559e6341854
--- /dev/null
+++ b/dev-qt/qtscript/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="scripttools">Build the QtScriptTools module (requires QtWidgets)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtscript/qtscript-4.8.6-r2.ebuild b/dev-qt/qtscript/qtscript-4.8.6-r2.ebuild
new file mode 100644
index 000000000000..4521eb08bb4d
--- /dev/null
+++ b/dev-qt/qtscript/qtscript-4.8.6-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The QtScript module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+jit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="src/script"
+
+QCONFIG_ADD="script"
+QCONFIG_DEFINE="QT_SCRIPT"
+
+PATCHES=( "${FILESDIR}/4.8.6-javascriptcore-x32.patch" )
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use jit javascript-jit)
+ -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama
+ -no-xshape -no-sm -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif
+ -no-libpng -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-accessibility -no-fontconfig -no-glib -no-opengl -no-svg
+ -no-gtkstyle
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtscript/qtscript-4.8.7.ebuild b/dev-qt/qtscript/qtscript-4.8.7.ebuild
new file mode 100644
index 000000000000..e5acb7448823
--- /dev/null
+++ b/dev-qt/qtscript/qtscript-4.8.7.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The QtScript module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+jit"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="src/script"
+
+QCONFIG_ADD="script"
+QCONFIG_DEFINE="QT_SCRIPT"
+
+PATCHES=( "${FILESDIR}/4.8.6-javascriptcore-x32.patch" )
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_use jit javascript-jit)
+ -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor -no-xinerama
+ -no-xshape -no-sm -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif
+ -no-libpng -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-accessibility -no-fontconfig -no-glib -no-opengl -no-svg
+ -no-gtkstyle
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtscript/qtscript-5.6.2.ebuild b/dev-qt/qtscript/qtscript-5.6.2.ebuild
new file mode 100644
index 000000000000..f605ec022dd4
--- /dev/null
+++ b/dev-qt/qtscript/qtscript-5.6.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Application scripting library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="+jit scripttools"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ scripttools? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod scripttools widgets \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex jit '' JAVASCRIPTCORE_JIT=no)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtscript/qtscript-5.7.1.ebuild b/dev-qt/qtscript/qtscript-5.7.1.ebuild
new file mode 100644
index 000000000000..32cd7de69de3
--- /dev/null
+++ b/dev-qt/qtscript/qtscript-5.7.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Application scripting library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="+jit scripttools"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ scripttools? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod scripttools widgets \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex jit '' JAVASCRIPTCORE_JIT=no)
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtscript/qtscript-5.9.2.ebuild b/dev-qt/qtscript/qtscript-5.9.2.ebuild
new file mode 100644
index 000000000000..d04b08861560
--- /dev/null
+++ b/dev-qt/qtscript/qtscript-5.9.2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Application scripting library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="+jit scripttools"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ scripttools? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod scripttools widgets \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ local myqmakeargs=(
+ JAVASCRIPTCORE_JIT=$(usex jit 'yes' 'no')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtscxml/Manifest b/dev-qt/qtscxml/Manifest
new file mode 100644
index 000000000000..f1e42e287b34
--- /dev/null
+++ b/dev-qt/qtscxml/Manifest
@@ -0,0 +1,6 @@
+DIST qtscxml-opensource-src-5.7.1.tar.xz 346948 SHA256 9dad4ab220a715b6a63df1d4a196bfa963a1ce7e6e57e7b36462c5dab09db38c SHA512 f5e2d6882a36dc08470502ede82862f4cd95f21b5b354e20ef5a2f9b458dbfdd35c1629a89217606aea5aead1d76d03c80e76387e1ee202bf73fe5c2022f1bb7 WHIRLPOOL 5ff40e079afd5299f61d5445f333ea0a573945780aa05f8df30ac71d645377dc054d0f807bdcc1ae57b0b2f0fbf3ce01a83a0a6be934ba01655026c69edb216e
+DIST qtscxml-opensource-src-5.9.2.tar.xz 414152 SHA256 9d2b1292bc632305aa1963bfbfc06e8b4489ca0f9ed380ea6410c9dc38aeb15d SHA512 c33db992ab456e5dd8b9be65c5619c503048106bbb1839b0930f2d4df36eed0780dfa1fc2912d7758aa72195269e59cbe8826cbaa414c2f339ca66c565809c88 WHIRLPOOL b22618b2387e67256f423e2aa267ffcb9dd965e6b0af2cb8fe18effc2fbd23011b0f1d9d22b6108ea022c07fa1369dab7ce77586c52788e375c591a1b8293f9b
+EBUILD qtscxml-5.7.1.ebuild 372 SHA256 b6fc5da05c50504bc0900ddec28934c17251c8a3e87eb3a30ec9167029f58f53 SHA512 eb5ba8623820f82531258a9b76321f50680779e29a518ca2e6973bdef8d27b50e3ad250f2b43460454123664c9bd63a072fc679dad97caf521134ea412cfdbb3 WHIRLPOOL c87906057a40c76ffc21d72b47abfbc67600cb391c1b89c0c679f3b225fbdb1330152acf38c72c57f5738f5ce7dfb365b4b17af3cfa9e71a42b4c2500af01792
+EBUILD qtscxml-5.9.2.ebuild 374 SHA256 2addd0514a8d332aa9bc3131b04a1b6bda4b99887de0697ac5639a33301ebbd8 SHA512 f91c79dd8fec8355db089c7b91f5a0b1244f3180f9ac0db1a7d1d6c7ea0e0b2b2aeae7cfbf61054487c75fdaf05953d10e1fdffff9c7914db7aa8a53b7c75ac5 WHIRLPOOL b4f2fb579eee3e7e282baa40aa6b02b416a0f03aaa73d12fdf06382c5ad22bcc7d0c389ab5c067c8e125e2b85a7fd957e30309332167a3b26c9b6612fc793016
+MISC ChangeLog 634 SHA256 693d0b455e28c73a615b732a3132f5282ed0dd0b3d70aeae8fdeb0c46d3f597d SHA512 2fc5ce34b02276616e55001ce8825fdd97d577f8b647f42749b8f590c6c06183bc5ae59b5e5b98f5e19b1bbc36cdc1f7293d5ccb2ea78cb066a2fe80269f136e WHIRLPOOL 2db066a7195a1bf2e52f5ddd7382c2e5ce0f08977c25b4b92e9e163684c2306d642762f07cf7aea427570916a8211006922a84d2cefde3a930c1e82d920badeb
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtscxml/metadata.xml b/dev-qt/qtscxml/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtscxml/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtscxml/qtscxml-5.7.1.ebuild b/dev-qt/qtscxml/qtscxml-5.7.1.ebuild
new file mode 100644
index 000000000000..dc5f1c74ae20
--- /dev/null
+++ b/dev-qt/qtscxml/qtscxml-5.7.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="State Chart XML (SCXML) support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtscxml/qtscxml-5.9.2.ebuild b/dev-qt/qtscxml/qtscxml-5.9.2.ebuild
new file mode 100644
index 000000000000..e8f77a2e9a86
--- /dev/null
+++ b/dev-qt/qtscxml/qtscxml-5.9.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="State Chart XML (SCXML) support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtsensors/Manifest b/dev-qt/qtsensors/Manifest
new file mode 100644
index 000000000000..678ded3111ea
--- /dev/null
+++ b/dev-qt/qtsensors/Manifest
@@ -0,0 +1,9 @@
+DIST qtsensors-opensource-src-5.6.2.tar.xz 1973888 SHA256 a7809081aab4f2f0d7a4f40c3abb02e1690bb390d1dd410d7c6c5019a5053427 SHA512 18cbf232e157942e9a3452921761c45f96334d8f628e2c5331b2670dfeb46eb018819f586e126404dc0426687bbfa1fdc4cd4557ee8bca1e74a21037383c73db WHIRLPOOL 8fe8d7f52df6d95ef0d9dac76cecebf98e95d26c83056192265ea3ccb128ce2a610f936519b73abca407f685dfcdb89bb36208e83189c3f395c882311db1343c
+DIST qtsensors-opensource-src-5.7.1.tar.xz 1987144 SHA256 ccb3942edb5e615e9a43c147d87a09f19690eafbc56be0cdf4f73b7e510f3b10 SHA512 5dff126e59f0bae4e5a8b1d3b971dc1c7318169f82dcb05907bad5dd460f2edadb317ffd111047af5a2d1db3a2c3adc204e5f8ec2b792c912a8e7e987f596914 WHIRLPOOL ccefbcebf8bad0df76f00aafc23fe119664fd253e96e07784d7977192651b36a1143afcbf9d069a908f79c259ee0325d1fa272dd1673d9458328171f90d10b6d
+DIST qtsensors-opensource-src-5.9.2.tar.xz 1994772 SHA256 79441588c9c8bd1b34b91481441614077ea335a0005e79a1dc68ad964284b5d3 SHA512 c03c7d531c3a17a51ac41cd1623ffbbb24e8b2bef739d44db3115a70fe75ce831f50de037752a09bccd069416c4c939e31b663bf405c7cc8bf642e88399771a7 WHIRLPOOL 418ffd97a6a8ac4a273bc56242d84541a7562135b51197b9844b30e93cfb4dd2ee335e73efed678cacc596931b1cad54d8922679829ac03c9a04c5264833e3c7
+EBUILD qtsensors-5.6.2.ebuild 480 SHA256 e2ab5626ddc11cc01c8d54a246b1798b8efc0ebc5130cc9cfebbb933f2e713c4 SHA512 ca8643b44834a24afb61caaf68db39f4232be9a370e467f411d63f824b60ff1f3e88ceccabd8fc0f1d1636775bc1e785347a1546d413067445cb8e6ca940e089 WHIRLPOOL 72246a3da5f675616cb030a4e6fa031bb6d3d66e3e718dec5133b8d16f2563fb71c580864f3ca11e9144ceb47ea7c9d1605ca5c6e05c1e0307ddf686cd700cc2
+EBUILD qtsensors-5.7.1.ebuild 488 SHA256 f79473278bb52e92f0081cad9094f970211aaf493f91e418a9093cc720985aaf SHA512 d944b6c4be0bf4703941580b87a19aa737cadb8960fd59f1426bb4e51045cf0cf138cff7b028bcac139fc7652ce38997a4aa90cc71d880b08069e7ed7b14f80c WHIRLPOOL d98bb4ab47616e2f23d500f3daff72ac3d4c2736a2ff413b419e5d692f5e9004a1e142f62d52d24a6574915f769fb8c93f85d146bfb4ef6c25848d7c7ed67fa4
+EBUILD qtsensors-5.9.2.ebuild 532 SHA256 11b5ee56eee8eee31d9b453de80ed3c81f5863b56676ef234f2effe3736c5268 SHA512 71e96030b39faa323fddc237c891840a99f0a4a7cdac68768adea74de518b363e05b49b0fa74544488aa86265a5832d9d4c9225aa24f367b550c1da749d67db9 WHIRLPOOL 1840f844ea523f9985631fbb546b24321ea0613a86ee686b68b52eb092a509b4a3bb9f322809017d88762cb041ec1a4e01404d4e39f187daabf8dc22d8a023f4
+MISC ChangeLog 5802 SHA256 6e100183a877df2bc1bfb4386671be2df9f4d4d5e10883ca7df05bef0fef95d8 SHA512 a4c04ecf2b2476af3a6e0b629e381a70218017fe1f72866232fca7a2206046b085e68f5d0d04c0db14d32eaef525b423400b4c22b4660aeb6b08c7b01203a142 WHIRLPOOL 98759bbc2797637872abefcd7304810cc014821155d16e997e757a42cddf333c6c80c6e2f66926457a5e1331117c045080c7274b1db96d4c7303add2734530db
+MISC ChangeLog-2015 1513 SHA256 a1997515a81eca23fef5246b6ed9fecf10449f4f9bddf7a253f2b5fbac7ca1fc SHA512 14b52e2b78df0e5144e6470d61cf77b64319b670ce795005b37882f8093bc8f0da825102bb02ecdb7e94ef2f8f14d051d8c374fdbe9dd22cbefe12009373bd9b WHIRLPOOL 967a24201599f86f82ef14d1fb86aeba409ec7578f18d937c6d6f88629326dac928a3772f9e156189bcf12459051f12d299eef6d4a70759b58e44bb85cca53ee
+MISC metadata.xml 541 SHA256 fc6a95efc02e6bb41a461d3451763fae06de0cdf44ae915d4798c85e8b8f5494 SHA512 99744f9c24fdd46617704ad0c0b8bd5fc694a1c8e6d668044edab244e4edf8f2fa73b769a7a789c539848e80e39ca3e38c88284b0ff1e3faf52450082d0c7d6b WHIRLPOOL e5466f33d942726740bbb68ad315e0f68e8910668ff2b01c9f3c943cda28eec4e7e92cd7dc3cde323347c251e59a1db9d84ef066746a53d5face60e9188abef5
diff --git a/dev-qt/qtsensors/metadata.xml b/dev-qt/qtsensors/metadata.xml
new file mode 100644
index 000000000000..c33b152da0be
--- /dev/null
+++ b/dev-qt/qtsensors/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Build QML bindings</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtsensors/qtsensors-5.6.2.ebuild b/dev-qt/qtsensors/qtsensors-5.6.2.ebuild
new file mode 100644
index 000000000000..0f193917ad38
--- /dev/null
+++ b/dev-qt/qtsensors/qtsensors-5.6.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Hardware sensor access library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtsensors/qtsensors-5.7.1.ebuild b/dev-qt/qtsensors/qtsensors-5.7.1.ebuild
new file mode 100644
index 000000000000..68e525a38e27
--- /dev/null
+++ b/dev-qt/qtsensors/qtsensors-5.7.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Hardware sensor access library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 x86"
+fi
+
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtsensors/qtsensors-5.9.2.ebuild b/dev-qt/qtsensors/qtsensors-5.9.2.ebuild
new file mode 100644
index 000000000000..c09362836fcf
--- /dev/null
+++ b/dev-qt/qtsensors/qtsensors-5.9.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Hardware sensor access library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+fi
+
+# TODO: simulator
+IUSE="qml"
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdbus-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick \
+ src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtserialbus/Manifest b/dev-qt/qtserialbus/Manifest
new file mode 100644
index 000000000000..1a1760ce67f5
--- /dev/null
+++ b/dev-qt/qtserialbus/Manifest
@@ -0,0 +1,3 @@
+DIST qtserialbus-opensource-src-5.9.2.tar.xz 278632 SHA256 bbc24bdafd0191fc808e08b19f378e74bedbb79faf4e396b66ba7ca9fed9be08 SHA512 978f93c485509d70e2e2590f98d38ad76f03b31fac1508594a0802acf1a022e4f531fc9294826bacdc7292b3c8f9f740e4cd3e2996bb9b3deb401350aae8136d WHIRLPOOL 5df266d70c312c354c2bf52428d19bf5c95aa22ef7fe85142d73cd5278187490b3b51889f97d93d3f93aa19d7a4e1011690d7abdccb0f24a9c1848ff104ce4b4
+EBUILD qtserialbus-5.9.2.ebuild 375 SHA256 4325de62bbd36e387b2832289ff98675111f8559f551b7801cb096f6f1e8b6cb SHA512 eaed83c16c24d79ef34c3b0514040a84cf6e2dd4521ddc129915dee733f6b9da50553a3357330c77f1c42fd60a9bae9b55521fbb39958e42b752bd25d486be67 WHIRLPOOL f6e8d973c996c1938430e582514c04038a19dde11cd283b2ad004f8ad7e3c6d2db6ff2b9a36bef1895f85928bb605cfc3428ceafba7115bc6c843e59b86cf514
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtserialbus/metadata.xml b/dev-qt/qtserialbus/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtserialbus/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtserialbus/qtserialbus-5.9.2.ebuild b/dev-qt/qtserialbus/qtserialbus-5.9.2.ebuild
new file mode 100644
index 000000000000..60ddee17fe51
--- /dev/null
+++ b/dev-qt/qtserialbus/qtserialbus-5.9.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Support for CAN and other serial buses"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtserialport-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtserialport/Manifest b/dev-qt/qtserialport/Manifest
new file mode 100644
index 000000000000..36bcf0d3402c
--- /dev/null
+++ b/dev-qt/qtserialport/Manifest
@@ -0,0 +1,9 @@
+DIST qtserialport-opensource-src-5.6.2.tar.xz 256852 SHA256 af76281bad2c2bd283189635316b46091f6712134b845ae1b9e3016eec94f376 SHA512 fb4544ce295c771216a5dad6f7800c85554c67852c42b965a2139cffd00241f7d4f86ab9db2a88c62a76561db74829f5c6b291cfc847d5d290373edd420dc42f WHIRLPOOL e93d799fdac0474b8106e3948120f4d8db30da9ab1a97d282be594d07e04fa4f48a2ff83f24fa3deaea26d6b94cfdf61f182233eb1607282cb604a1e6354d8ad
+DIST qtserialport-opensource-src-5.7.1.tar.xz 265616 SHA256 76d5e19bd392b72602ba3bfe3c0d03c10962674604cf814efa2c910f98cf5a26 SHA512 090015dc2652399bee7c7d30c9f127be695e4c002b18dba1089d4bec555513774a587864989f33ad4059ff7b9b2bf24c387394c03a4024e2640b3642bc89ccbf WHIRLPOOL 08709c502758081faad0bf12bf34c16d216ef2cb3ac8e7c6c438d1f429249c3388ed264817f921f83deae1817c58458b38d0cbe7e70b556a22cc74a57fce4007
+DIST qtserialport-opensource-src-5.9.2.tar.xz 272996 SHA256 50ed9cc22db1615bc00267d24b0819813b854af3651ab6e5ffaa7f7c7e62cd42 SHA512 cc8899c1ae2ed9fd8cf1c213ab7efaec12b3b16836006fdbf74cb7ea457705505a13e82c2f2873ee9426ae66473ec42259f4e728de64576ee44420f116cc433d WHIRLPOOL 6d73738131cc7a32931b4050a96309a5b86d6e32a28d5b598b29b15aface8e41be57eb3fb9b0d62f1c846b8b7403c7de41392f524b146e0b1e8e745cecae2101
+EBUILD qtserialport-5.6.2.ebuild 543 SHA256 73f5fe7bae4345eff8305b0e8aad01699e4cf56b3bb0a6480b58213f00e944c2 SHA512 d66c44fbd424fc2d79b0b145e7c1e2e1283cf64cd8cca7d8fa1a0c9c724189e6526b9107aa4c9dc09a37adaaec93f71160bd925d22fc27acedbf506bbd47420a WHIRLPOOL 8351bef305e8642ff925dc45875e5d7a117fe71613337a331c61d769926c34bb328969f7a867c62f60a721cbd94e5df38b51d5ec91a8905c55a64741e549ae47
+EBUILD qtserialport-5.7.1.ebuild 551 SHA256 1decdaba340237d3e4b8271bc2bafb8d0e457be67384d217006968aff5e1d484 SHA512 97fccd4fcace165cb2f4241f2e8b44f137ef69fe7f02b5178d4812102839bb01dc33212766a25557d1978cf0459b151f8ab7ced897ffa574498c5b8fa19ef34f WHIRLPOOL 58c54118b2262b9976cb775a0a55e3677619cd4baaef0951474eef151b65ddf6edb9772b2ca896c8644300b2941c31eb25d9f9f630e795a99cf29071a9f49dc7
+EBUILD qtserialport-5.9.2.ebuild 542 SHA256 895301f28f3bfc775d18ee9552412890eaef7ddb30e207f91c4b8590f0e495cd SHA512 d076dbd3cb3b10e54b1cbaf6c897fb9d81cf389fcc4fcce97d769e0c17b30e2e42f40816265c40aaf3c46a2b7585f9b7829f9a00208e34108d930032b8194efb WHIRLPOOL 302351fafe81eb22a9b3b0b0fefcaf21b87fb3d36362ac6bf9dc735dccbb3007504b8c535a47f78aa7141025ad2fff67cec5ea0ead54072875b89c08d16a1ff1
+MISC ChangeLog 5411 SHA256 dcc14012d0f1accbd56a44bfa64079cf357fed9bb03330945382ee1d8aa0cd05 SHA512 c8dfaa619b8b30fb21895ec16c14df07a78f63f266f65ae29c228ac923b8af0bf56f2daee0096d289867822e7af99a04f171be49e21b81066fbe670388ea37cc WHIRLPOOL 879d30afc88c097e82ef71a70b6142b20c98f40510162fde928a66db0d5cdc9a9a9d9fc89af2b56763ecdb776a20c9088a4ca45f2df6bfd3c34368fa4a9c1bb7
+MISC ChangeLog-2015 1617 SHA256 6fb7e7e280317d043692a0112cfb4146e81b289971bab080bc38b7c0a9f4d899 SHA512 18d6243661825c0ebddf8cea18b382bb78afed2d43d479cc47003cc250e3a7afcaa9e35bc8a8558cb2a1c406114813872b62ab82d5993e1d8f0a67c095b183e4 WHIRLPOOL 87df8e2d2a6f30f5aa9a3e0b6b18f7b1bb42ac0299b9bc2ec7141ff21a0a5d78e3e99925e674d5c81d7455702740bf4723e2f7452c339ffe0b87328c3a07f276
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtserialport/metadata.xml b/dev-qt/qtserialport/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtserialport/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtserialport/qtserialport-5.6.2.ebuild b/dev-qt/qtserialport/qtserialport-5.6.2.ebuild
new file mode 100644
index 000000000000..524958448969
--- /dev/null
+++ b/dev-qt/qtserialport/qtserialport-5.6.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Serial port abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ virtual/libudev:=
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # make sure we link against libudev
+ sed -i -e 's/:contains(QT_CONFIG,\s*libudev)//' \
+ src/serialport/serialport-lib.pri || die
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtserialport/qtserialport-5.7.1.ebuild b/dev-qt/qtserialport/qtserialport-5.7.1.ebuild
new file mode 100644
index 000000000000..8560cf614830
--- /dev/null
+++ b/dev-qt/qtserialport/qtserialport-5.7.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Serial port abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ virtual/libudev:=
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # make sure we link against libudev
+ sed -i -e 's/:contains(QT_CONFIG,\s*libudev)//' \
+ src/serialport/serialport-lib.pri || die
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtserialport/qtserialport-5.9.2.ebuild b/dev-qt/qtserialport/qtserialport-5.9.2.ebuild
new file mode 100644
index 000000000000..f0e771072aef
--- /dev/null
+++ b/dev-qt/qtserialport/qtserialport-5.9.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Serial port abstraction library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ virtual/libudev:=
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # make sure we link against libudev
+ sed -i -e 's/:qtConfig(libudev)//' \
+ src/serialport/serialport-lib.pri || die
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtsingleapplication/Manifest b/dev-qt/qtsingleapplication/Manifest
new file mode 100644
index 000000000000..d9abbe01d977
--- /dev/null
+++ b/dev-qt/qtsingleapplication/Manifest
@@ -0,0 +1,9 @@
+AUX 2.6.1_p20130904-no-gui.patch 2294 SHA256 164df2885860282c09534da83c9ac1ee56ee6b03d33efb39f75f54df552929cf SHA512 68b6ccf490483df0590af59c447fdfe99f421fd9dbc6211a7666f7ad0557025e13640b1c579fd25477fc0c197f49efa63c017e24a47b91291d99c773a7ad8dc9 WHIRLPOOL a62315f94e8fae5620b6e29eeccc1105fb0c5f3d8ab7f23f0a94b889844cf65b24eb599e0e372f29359eb9c17f1f577aa62849a7e9ebe55b44c4536a9663765a
+AUX 2.6.1_p20130904-unbundle-qtlockedfile.patch 2547 SHA256 e5efb144ab9b1d442fb8f3c6616090eff635978b63b3bb72f0929dc3e78e6aa4 SHA512 96a1dd68e8ba841c5466183cfdcb9693e01d2096878f52f0f521bcee14ec38fb005bace877af473b645aa035c3651c136220fd2fc5dfb7a8883b9a75cdc55eba WHIRLPOOL 0d97ae41b2e449259d6e53b5df772e5e2ca129e023c329b8c5a02e25da5b9ebad8d2ba683c7ac85e87b9e11cd666f6a01f3cb410a6007cc92c98fcedcf1c871b
+AUX qtsingleapplication.prf 255 SHA256 55a443957678e5c8f9547ef122bc9297fb62d157ac8742edda88262a4b6b7bae SHA512 005d9f547279ee7df2a4c0ae17ad371a73c9d21a3257740d5ad63c261c8eed64acff7211d009ef787ff9610075d0fbf31fb404803cd0ed2647dc2036ef89fad5 WHIRLPOOL fa28d8dacbf9da25ec6a5c42d6e378c3c1772f02623359ffa84d6ef83657fc2587c81958623ed5490676f294e139f80cc819f2e87cb9804418c88cc6c3c1365f
+AUX qtsinglecoreapplication.prf 241 SHA256 fd5757a188f84457c13367aaab743b86f6730d4674457299ba3c76ac51d5f9e8 SHA512 938d2eb0c2a3a8dc8ab1c15a175a6bad78b20ad699936b7afbbc54fec10cff6f7ed9ca69b68d81d36495fad439b8550c0d515e4b4a6856362c475f1d9fa7d974 WHIRLPOOL fa5838c6a55ea40384f123825436790b66b42ada3a2923f8eca8ed202c177896802b301ba18cc663be66d9e067bea96b5be3c743acd2701dde4a72e173718769
+DIST qt-solutions-20150629.tar.xz 710488 SHA256 cfa88a67c8396878eaa98f39b7648482fabb73988549cc404816c29212cf6503 SHA512 a95ed58f0218cd90d734a40eedd173b896fa0138ad235f3157d7bee538b16c5f385d93bae483fd22267f2984389b9940bb85ba0cd3d25c16124d56abb39568f5 WHIRLPOOL 23a273cfa2d0bc3834487c9e325c73d0038877c5a5085493ceb37ee5dc03cc4d2cddf4f46f5a89045fcbfe7f6dd03b678d56f3167fb750374d44879f11ded8b7
+EBUILD qtsingleapplication-2.6.1_p20150629.ebuild 2028 SHA256 3e25a22bb625eed171eccc2854bda31e8d2f855fba41fc0b33000ba77ef2f78d SHA512 586acda4d0883dfc9e8287e3c1291cca7fc581ad0decb35cc1c3cf3316ade7283b8abedd356e5c6d4c3e770f30e93426e6142fed1f1abb8f10c262895ddf3071 WHIRLPOOL 244f09cf1781841de65d20f3311d0dbb50a49b66e3a5a50e8a65336e0adef9c172d150d5fa71d8cdaed5a758d3785d2210fbacffc8811ed5b291964c815eb81b
+MISC ChangeLog 4386 SHA256 892e0e926b3a019f4e4f52c6dddd5e7e413f54b6c36ab47d146dec7cb8b3ca6c SHA512 a32a08a03809a248bfca4e5158d32547e9ee93c4dc8157ec2500483cc58eb870037e15fa67b03b42adfe9244d94e4410492ea0ece663854ca400d3a20905eb6c WHIRLPOOL e670d95823881d38644b93165565e277e9a9e2ec62ec0235b2c839f0d5a138b1fd7b6f56f878d0ca5679c717be08f85d5211fd0143b264ea61e12a485198a18c
+MISC ChangeLog-2015 4602 SHA256 63bcb3cee3f0b2ae5403e40a21cc92beb94adacb5319ede92aff35e97df90629 SHA512 d10b1ccef27766d4acdd58dba7a3de7a08624da90420d4e87476eec517fa6aa7c6309816559e30850f18836cf92fd513e364fac0e113a909c4f278e6ac2c321c WHIRLPOOL d4e1af98ae5a6c05b75e26e93438064b0858d028acdc74b9a40a5f02288a884e3d9ee52698bc83162f8805dd06c50d89e07ab252777d1eeb21f3075310cb0baa
+MISC metadata.xml 247 SHA256 690d3e08cdd71b405f5361dfa3f33007ce9ec9d0ae7628e9271891da9e2bda92 SHA512 b43c8e84c3c753b49b203921a5aca792639a36d6efdbe16c069ff9abfbce0585718bb3824c03abdd7bd19ada13fb0a98a378c85ed369ac5fdc53ad3b3d5465d2 WHIRLPOOL dffc398d6bdbe8a8afc8863675a819a7bd69ae4d098ffbddad4c21ab8f1a850ab8ede71f98e34999b0605ad01ea93c8864cd681b50d3e153aa3d0901ddb10743
diff --git a/dev-qt/qtsingleapplication/files/2.6.1_p20130904-no-gui.patch b/dev-qt/qtsingleapplication/files/2.6.1_p20130904-no-gui.patch
new file mode 100644
index 000000000000..19019e2892a4
--- /dev/null
+++ b/dev-qt/qtsingleapplication/files/2.6.1_p20130904-no-gui.patch
@@ -0,0 +1,67 @@
+From f66352d6c2918123466bd72aee2118b9167562af Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <davidepesa@gmail.com>
+Date: Sat, 28 Dec 2013 16:43:18 +0100
+Subject: [PATCH] no gui
+
+---
+ buildlib/buildlib.pro | 4 +++-
+ src/qtsingleapplication.pri | 11 +++++------
+ src/qtsinglecoreapplication.pri | 2 +-
+ 3 files changed, 9 insertions(+), 8 deletions(-)
+
+diff --git a/buildlib/buildlib.pro b/buildlib/buildlib.pro
+index 37dddcd..f7c6508 100644
+--- a/buildlib/buildlib.pro
++++ b/buildlib/buildlib.pro
+@@ -2,7 +2,9 @@ TEMPLATE=lib
+ CONFIG += qt dll qtsingleapplication-buildlib
+ mac:CONFIG += absolute_library_soname
+ win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release build_all
+-include(../src/qtsingleapplication.pri)
++include(../common.pri)
++include(../src/qtsinglecoreapplication.pri)
++exists(../config.pri):!infile(../config.pri, QTSA_NO_GUI, yes):include(../src/qtsingleapplication.pri)
+ TARGET = $$QTSINGLEAPPLICATION_LIBNAME
+ DESTDIR = $$QTSINGLEAPPLICATION_LIBDIR
+ win32 {
+diff --git a/src/qtsingleapplication.pri b/src/qtsingleapplication.pri
+index 02c9e5b..772924d 100644
+--- a/src/qtsingleapplication.pri
++++ b/src/qtsingleapplication.pri
+@@ -1,15 +1,14 @@
+-include(../common.pri)
+-INCLUDEPATH += $$PWD
+-DEPENDPATH += $$PWD
+-QT *= network
++INCLUDEPATH *= $$PWD
++DEPENDPATH *= $$PWD
++QT *= gui network
+ greaterThan(QT_MAJOR_VERSION, 4): QT *= widgets
+ CONFIG *= qtlockedfile
+
+ qtsingleapplication-uselib:!qtsingleapplication-buildlib {
+ LIBS += -L$$QTSINGLEAPPLICATION_LIBDIR -l$$QTSINGLEAPPLICATION_LIBNAME
+ } else {
+- SOURCES += $$PWD/qtsingleapplication.cpp $$PWD/qtlocalpeer.cpp
+- HEADERS += $$PWD/qtsingleapplication.h $$PWD/qtlocalpeer.h
++ SOURCES += $$PWD/qtsingleapplication.cpp
++ HEADERS += $$PWD/qtsingleapplication.h
+ }
+
+ win32 {
+diff --git a/src/qtsinglecoreapplication.pri b/src/qtsinglecoreapplication.pri
+index f5b8414..bf14a3f 100644
+--- a/src/qtsinglecoreapplication.pri
++++ b/src/qtsinglecoreapplication.pri
+@@ -3,7 +3,7 @@ DEPENDPATH += $$PWD
+ HEADERS += $$PWD/qtsinglecoreapplication.h $$PWD/qtlocalpeer.h
+ SOURCES += $$PWD/qtsinglecoreapplication.cpp $$PWD/qtlocalpeer.cpp
+
+-QT *= network
++QT = core network
+ CONFIG *= qtlockedfile
+
+ win32:contains(TEMPLATE, lib):contains(CONFIG, shared) {
+--
+1.8.5.2
+
diff --git a/dev-qt/qtsingleapplication/files/2.6.1_p20130904-unbundle-qtlockedfile.patch b/dev-qt/qtsingleapplication/files/2.6.1_p20130904-unbundle-qtlockedfile.patch
new file mode 100644
index 000000000000..93c78fab9bab
--- /dev/null
+++ b/dev-qt/qtsingleapplication/files/2.6.1_p20130904-unbundle-qtlockedfile.patch
@@ -0,0 +1,81 @@
+From 62210d463f87abb0584ce699915e1845cacaa480 Mon Sep 17 00:00:00 2001
+From: Davide Pesavento <davidepesa@gmail.com>
+Date: Sat, 28 Dec 2013 16:33:15 +0100
+Subject: [PATCH] unbundle qtlockedfile
+
+---
+ src/qtlocalpeer.cpp | 11 +----------
+ src/qtlocalpeer.h | 2 +-
+ src/qtsingleapplication.pri | 1 +
+ src/qtsinglecoreapplication.pri | 1 +
+ 4 files changed, 4 insertions(+), 11 deletions(-)
+
+diff --git a/src/qtlocalpeer.cpp b/src/qtlocalpeer.cpp
+index 332b064..f17e662 100644
+--- a/src/qtlocalpeer.cpp
++++ b/src/qtlocalpeer.cpp
+@@ -55,15 +55,6 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0;
+ #include <unistd.h>
+ #endif
+
+-namespace QtLP_Private {
+-#include "qtlockedfile.cpp"
+-#if defined(Q_OS_WIN)
+-#include "qtlockedfile_win.cpp"
+-#else
+-#include "qtlockedfile_unix.cpp"
+-#endif
+-}
+-
+ const char* QtLocalPeer::ack = "ack";
+
+ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
+@@ -114,7 +105,7 @@ bool QtLocalPeer::isClient()
+ if (lockFile.isLocked())
+ return false;
+
+- if (!lockFile.lock(QtLP_Private::QtLockedFile::WriteLock, false))
++ if (!lockFile.lock(QtLockedFile::WriteLock, false))
+ return true;
+
+ bool res = server->listen(socketName);
+diff --git a/src/qtlocalpeer.h b/src/qtlocalpeer.h
+index 1b533b1..1127735 100644
+--- a/src/qtlocalpeer.h
++++ b/src/qtlocalpeer.h
+@@ -68,7 +68,7 @@ protected:
+ QString id;
+ QString socketName;
+ QLocalServer* server;
+- QtLP_Private::QtLockedFile lockFile;
++ QtLockedFile lockFile;
+
+ private:
+ static const char* ack;
+diff --git a/src/qtsingleapplication.pri b/src/qtsingleapplication.pri
+index 6f2bced..02c9e5b 100644
+--- a/src/qtsingleapplication.pri
++++ b/src/qtsingleapplication.pri
+@@ -3,6 +3,7 @@ INCLUDEPATH += $$PWD
+ DEPENDPATH += $$PWD
+ QT *= network
+ greaterThan(QT_MAJOR_VERSION, 4): QT *= widgets
++CONFIG *= qtlockedfile
+
+ qtsingleapplication-uselib:!qtsingleapplication-buildlib {
+ LIBS += -L$$QTSINGLEAPPLICATION_LIBDIR -l$$QTSINGLEAPPLICATION_LIBNAME
+diff --git a/src/qtsinglecoreapplication.pri b/src/qtsinglecoreapplication.pri
+index d2d6cc3..f5b8414 100644
+--- a/src/qtsinglecoreapplication.pri
++++ b/src/qtsinglecoreapplication.pri
+@@ -4,6 +4,7 @@ HEADERS += $$PWD/qtsinglecoreapplication.h $$PWD/qtlocalpeer.h
+ SOURCES += $$PWD/qtsinglecoreapplication.cpp $$PWD/qtlocalpeer.cpp
+
+ QT *= network
++CONFIG *= qtlockedfile
+
+ win32:contains(TEMPLATE, lib):contains(CONFIG, shared) {
+ DEFINES += QT_QTSINGLECOREAPPLICATION_EXPORT=__declspec(dllexport)
+--
+1.8.5.2
+
diff --git a/dev-qt/qtsingleapplication/files/qtsingleapplication.prf b/dev-qt/qtsingleapplication/files/qtsingleapplication.prf
new file mode 100644
index 000000000000..3171424fd04f
--- /dev/null
+++ b/dev-qt/qtsingleapplication/files/qtsingleapplication.prf
@@ -0,0 +1,9 @@
+INCLUDEPATH *= $$[QT_INSTALL_HEADERS]/QtSolutions
+greaterThan(QT_MAJOR_VERSION, 4) {
+LIBS *= -lQt$${QT_MAJOR_VERSION}Solutions_SingleApplication-2.6
+QT *= widgets
+} else {
+LIBS *= -lQtSolutions_SingleApplication-2.6
+}
+QT *= network
+CONFIG *= qtlockedfile
diff --git a/dev-qt/qtsingleapplication/files/qtsinglecoreapplication.prf b/dev-qt/qtsingleapplication/files/qtsinglecoreapplication.prf
new file mode 100644
index 000000000000..87d2a9583dbd
--- /dev/null
+++ b/dev-qt/qtsingleapplication/files/qtsinglecoreapplication.prf
@@ -0,0 +1,8 @@
+INCLUDEPATH *= $$[QT_INSTALL_HEADERS]/QtSolutions
+greaterThan(QT_MAJOR_VERSION, 4) {
+LIBS *= -lQt$${QT_MAJOR_VERSION}Solutions_SingleApplication-2.6
+} else {
+LIBS *= -lQtSolutions_SingleApplication-2.6
+}
+QT *= network
+CONFIG *= qtlockedfile
diff --git a/dev-qt/qtsingleapplication/metadata.xml b/dev-qt/qtsingleapplication/metadata.xml
new file mode 100644
index 000000000000..17237689dcfd
--- /dev/null
+++ b/dev-qt/qtsingleapplication/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20150629.ebuild b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20150629.ebuild
new file mode 100644
index 000000000000..7f5bb4a43bd2
--- /dev/null
+++ b/dev-qt/qtsingleapplication/qtsingleapplication-2.6.1_p20150629.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multibuild qmake-utils
+
+MY_P=qt-solutions-${PV#*_p}
+
+DESCRIPTION="Qt library to start applications only once per user"
+HOMEPAGE="https://code.qt.io/cgit/qt-solutions/qt-solutions.git/"
+SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+IUSE="doc +qt4 qt5 X"
+
+REQUIRED_USE="|| ( qt4 qt5 )"
+
+DEPEND="
+ dev-qt/qtlockedfile[qt4?,qt5?]
+ qt4? (
+ dev-qt/qtcore:4
+ X? ( dev-qt/qtgui:4 )
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ X? (
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ )
+ )
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}/${PN}
+
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt4) $(usev qt5) )
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/2.6.1_p20130904-unbundle-qtlockedfile.patch"
+ epatch "${FILESDIR}/2.6.1_p20130904-no-gui.patch"
+
+ echo 'SOLUTIONS_LIBRARY = yes' > config.pri
+ use X || echo 'QTSA_NO_GUI = yes' >> config.pri
+
+ sed -i -e "s/-head/-${PV%.*}/" common.pri || die
+ sed -i -e '/SUBDIRS+=examples/d' ${PN}.pro || die
+
+ # to ensure unbundling
+ rm -f src/qtlockedfile*
+
+ multibuild_copy_sources
+}
+
+src_configure() {
+ myconfigure() {
+ if [[ ${MULTIBUILD_VARIANT} == qt4 ]]; then
+ eqmake4
+ fi
+ if [[ ${MULTIBUILD_VARIANT} == qt5 ]]; then
+ eqmake5
+ fi
+ }
+ multibuild_foreach_variant run_in_build_dir myconfigure
+}
+
+src_compile() {
+ multibuild_foreach_variant run_in_build_dir default
+}
+
+src_install() {
+ dodoc README.TXT
+ use doc && dodoc -r doc/html
+
+ myinstall() {
+ # libraries
+ dolib.so lib/*
+
+ # headers
+ insinto "$(${MULTIBUILD_VARIANT}_get_headerdir)"/QtSolutions
+ doins src/qtsinglecoreapplication.h
+ use X && doins src/{QtSingleApplication,${PN}.h}
+
+ # .prf files
+ insinto "$(${MULTIBUILD_VARIANT}_get_mkspecsdir)"/features
+ doins "${FILESDIR}"/qtsinglecoreapplication.prf
+ use X && doins "${FILESDIR}"/${PN}.prf
+ }
+ multibuild_foreach_variant run_in_build_dir myinstall
+}
diff --git a/dev-qt/qtspeech/Manifest b/dev-qt/qtspeech/Manifest
new file mode 100644
index 000000000000..edc4b39a2491
--- /dev/null
+++ b/dev-qt/qtspeech/Manifest
@@ -0,0 +1,3 @@
+DIST qtspeech-opensource-src-5.9.2.tar.xz 80896 SHA256 ef7a84ec5a30c7c79d390b5cc56d476baa7c8b9f3b36f8b76d079fe85c1b0333 SHA512 8213ad13d33732fee3fc5b5e408b870970a3003d461be24195222e1d1209210039d1d0cd2f3c537a0db62629fb297d88b33ed4734ecb6c8d74f5406a87e7e0c0 WHIRLPOOL 353dd1b863e57f67763857fd63bcde59dddc73ee0de2f702e81b960e848fbc0a1947675bd5853062961eed97ecd0e5b0c72a2549f2dc93144ee124f79d9acf31
+EBUILD qtspeech-5.9.2.ebuild 419 SHA256 b2412c3b91a68011380dbe6283533f26461bf1d527a21ca4e2619b15b079bb87 SHA512 67df194ea477741f3d8162479a9ce595290c68daa5c7e6d3eb344265b1c58306c23b92829edf0208dfbd881ca24a1ac927f661bc2fa6c76b873731ca73213cd4 WHIRLPOOL 61c3ba86a17854edead20e579889bf58e14b9d26cf9d80aa559042a1e3f0e7a7b9d87748ecf5c61fcfd1b28853824b67d4b75297adfa03f315ccc5d31a319cd7
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtspeech/metadata.xml b/dev-qt/qtspeech/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtspeech/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtspeech/qtspeech-5.9.2.ebuild b/dev-qt/qtspeech/qtspeech-5.9.2.ebuild
new file mode 100644
index 000000000000..c121d92e8235
--- /dev/null
+++ b/dev-qt/qtspeech/qtspeech-5.9.2.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Text-to-speech library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# TODO: flite plugin - needs 2.0.0 (not yet in tree)
+IUSE=""
+
+RDEPEND="
+ app-accessibility/speech-dispatcher
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-qt/qtsql/Manifest b/dev-qt/qtsql/Manifest
new file mode 100644
index 000000000000..66786d30277b
--- /dev/null
+++ b/dev-qt/qtsql/Manifest
@@ -0,0 +1,15 @@
+AUX qtsql-5.7.1-mariadb.patch 1888 SHA256 e79692b1aeeaa8c603febf988a3cbe9288d08633b400f57b3f76c9ab3ab23e7d SHA512 4fb0e066eaf848feb7379d4f0f92e26a1e60e9003d77b8976588036df09c04cc24431335cfe08616a4c23b10975ba44e6c25b92417a8f285308bc8f0b46c2c78 WHIRLPOOL bb804b9d047286b7b7e345a313c290b52638d11ef587b74db850ce483601811391fd67b6579155f7bc539c2cd45420d55dd89b36d4c4a1cfcca8d2deda656fe9
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtsql-4.8.6-r1.ebuild 2316 SHA256 0d97228d2f63c88ae28cf009d9146168ce2993ff9edc709adc5d8038b6033170 SHA512 52d65ae15b725fa4f8e56075c3a5a94353a8cfe89158b09235f73de5d0ad0e3b2f9e669e9286ca43eb4fa17f81479a27174cabc7225660ff86fb7f91d2620e52 WHIRLPOOL 4c0fa7987c6585ce34b64ce64739a9864e734c7d0b0808c31e456c1be59ca2bffae87e58b5c9de281b58b995b7f24b736ced769e242882fb953357c347a5aca4
+EBUILD qtsql-4.8.7-r1.ebuild 2265 SHA256 c7ffc0a7ec5ac35afcefb158e556593a71e5de378c1031533af7792b3aaac930 SHA512 28167f5c71734f26227e070e414c616be2e13e0f890e24e83ce69a62f727aa53a0ca05c641693ea276b9c3ab4264694bbb574697a3342d4aa3a348213ebdb63c WHIRLPOOL 67344e438fe7c150a1903aad3f49c1c112c7e7668bd1388cf56e2b5af703e1152d8227c7e040740414532a9a51b7c47849d32d8f8e8099a7f86a02f434cfa5be
+EBUILD qtsql-5.6.2.ebuild 1413 SHA256 03279438193b0ac75f86bdef702117b3594e2d63b1dab8d108d20382035a3411 SHA512 1e73bb42c06aff1832c09b5d70fa64ffba172cfa621b3982ca2b7c362f2a7c35e276e67f134360b750f9a02d47277a136e55d745acd6cf68c385c43934fab82c WHIRLPOOL 84ebd3dfb2953c1e6e41c2a8a38ef2b9a4d7300849e992bcee8160bea22a0f487a5319c7fda866bc7a3676c563ef4e86e561d91ad3cd8e458b157f7659b46b27
+EBUILD qtsql-5.7.1-r1.ebuild 1472 SHA256 c8f00aefb0453d61895b96dd921acb173bf284ce0d42c78f2eb8d9573541fa98 SHA512 8d705ff95ac4364244cb8958d4815a1b97514b4b32dbeb258770f1124be1cf1688615ac2837bcecb94ce11eb29d207b998ee36f9bd1e08c8afeca3b90d193e03 WHIRLPOOL c4fb91ed136933e9752d34ee293c31670723876e1cf2cd65eb6b20031f72adb22b453f96a5f3d71ff5a6d5984d1c4642ecef17275be0e354a06be3aceda1140c
+EBUILD qtsql-5.7.1.ebuild 1414 SHA256 4ffe7c0bcc9914654ee5c155c6ae823d2dbee9b8116ffc91d1a05bc54e7b7d8a SHA512 8f5890db58f62f475306bff09d3dcd9e2876840f7ae04210d3bc53ff01bb376250a2d964a86f2621da7b3818a1fae97631bea067467650e08b7b3ca325b0c418 WHIRLPOOL 0a46661f91fcc1a8f823e1080a5db27e8a65d4be3baed73bd6682f251137cb4ff3a67f706ab31447a122f218f0b5dcafad2d7dd43571c92d046de0d13e4d5357
+EBUILD qtsql-5.9.2.ebuild 1419 SHA256 aef07f69d9c9208be82e668daca77adbb1f6bdf5994d59769603b9069d848061 SHA512 5339d5c51acabe4ddd2ab80ddeaf14bf679531026b1603b70d3671967827523b1909b3a6982a21c64df4e16df8d08f010a877ed88bb45d4a56f683b5d879ba43 WHIRLPOOL 21b234aa05e72dbd5d853eb2714dce9d198f16a1f2791ed93bb325f65c3d1cd06e30a4f3fd50f56d088e548de6621f1b6184390b6e61ad621731e0abccca6064
+MISC ChangeLog 7228 SHA256 2b164f9d002c2878cc9cd459116ada1274dc01429688b5285a40e83c611d5b22 SHA512 dcb2ee925ac1e71bbbccea78af024ea4c63ccc3261fb67c2ce6a93a4de367e700314141e7d682403375f1dfefe3eb201be31b7ae89e4c5ce6c40dbe0d4b64c1f WHIRLPOOL a61da11682a9445c675d7425d4cd21d55fb78d3a96be7232c45003b32c8f42478baf96fb7c6b1c9a78f33e37462d5b8bca6f678a0c4428fb4b9daf6c228c2419
+MISC ChangeLog-2015 24302 SHA256 736472039bd82ad72cbd806a5acf860db85695afcfce98f6dfc7a68d026a680e SHA512 e2572b9bddf13a5b09a7d3f4cddb379351eccea6003efc62ace56e64cff4742ae0be564c50cde6ec318e7f0139e66a01d091704d245ceace48aba8f307aff922 WHIRLPOOL eef9c81483ed17e66b24d656e1bb33d978a04aef508973941ca5ce96114be8216ff195556b8d5241b0f39ad1b86c5361e15c6fcf7a0fbef2b2161e6071068b6d
+MISC metadata.xml 701 SHA256 08c5add7a470888f4e229ebc67a819d3fe3f94d276ba326cf641591323d11354 SHA512 c807e5c85d7e4f23f15ef9f95f4bed3e303e25e355a096ee118e4846330948957dc44d16c97d3c687ee30a5895c511e9d1480a39ddf2360f8989d06daf0b91b8 WHIRLPOOL c4c42deffa2f7ab327de407e14d9884779c7790fba2b96b4616c4527ade89f1a26dfee8e2182c05d8abd95a50e301650d6b8522756928ce72c88dc5ec09b9d81
diff --git a/dev-qt/qtsql/files/qtsql-5.7.1-mariadb.patch b/dev-qt/qtsql/files/qtsql-5.7.1-mariadb.patch
new file mode 100644
index 000000000000..8aede46c3b4d
--- /dev/null
+++ b/dev-qt/qtsql/files/qtsql-5.7.1-mariadb.patch
@@ -0,0 +1,56 @@
+From d25346417238b7dc0fb37359a9b56eff2908a5dc Mon Sep 17 00:00:00 2001
+From: =?utf8?q?Daniel=20Vr=C3=A1til?= <daniel.vratil@kdab.com>
+Date: Mon, 18 Sep 2017 22:33:55 +0200
+Subject: [PATCH] Only call mysql_library_end() once when using MariaDB
+
+MariaDB allows only a single call to mysql_library_end(), all subsequent calls
+to mysql_library_init() or any other API call will fail. Since QMYSQLDriver
+calls mysql_library_end() function whenever the refcount drops to 0, this
+breaks applications that close and reopen database connections.
+
+This change registers call to mysql_library_init() via qAddPostRoutine()
+when compiled against MariaDB, so that we only call it once.
+
+Task-number: QTBUG-63108
+Change-Id: I22c1f0c5b081216f12596a32748dca25cae919e9
+Reviewed-by: Andy Shaw <andy.shaw@qt.io>
+---
+ src/plugins/sqldrivers/mysql/qsql_mysql.cpp | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+diff --git a/src/plugins/sqldrivers/mysql/qsql_mysql.cpp b/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
+index ee439fa..6e428fb 100644
+--- a/src/sql/drivers/mysql/qsql_mysql.cpp
++++ b/src/sql/drivers/mysql/qsql_mysql.cpp
+@@ -1158,16 +1158,22 @@ static void qLibraryInit()
+ }
+ # endif // MYSQL_VERSION_ID
+ #endif // Q_NO_MYSQL_EMBEDDED
++
++#ifdef MARIADB_BASE_VERSION
++ qAddPostRoutine(mysql_server_end);
++#endif
+ }
+
+ static void qLibraryEnd()
+ {
+-#ifndef Q_NO_MYSQL_EMBEDDED
+-# if MYSQL_VERSION_ID > 40000
+-# if (MYSQL_VERSION_ID >= 40110 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50003
+- mysql_library_end();
+-# else
+- mysql_server_end();
++#if !defined(MARIADB_BASE_VERSION)
++# if !defined(Q_NO_MYSQL_EMBEDDED)
++# if MYSQL_VERSION_ID > 40000
++# if (MYSQL_VERSION_ID >= 40110 && MYSQL_VERSION_ID < 50000) || MYSQL_VERSION_ID >= 50003
++ mysql_library_end();
++# else
++ mysql_server_end();
++# endif
+ # endif
+ # endif
+ #endif
+--
+2.7.4
+
diff --git a/dev-qt/qtsql/metadata.xml b/dev-qt/qtsql/metadata.xml
new file mode 100644
index 000000000000..bea102dd5ae8
--- /dev/null
+++ b/dev-qt/qtsql/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="qt3support">Enable the Qt3Support libraries for Qt4</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtsql/qtsql-4.8.6-r1.ebuild b/dev-qt/qtsql/qtsql-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..6df25c2d59c6
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-4.8.6-r1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit multilib qt4-build-multilib
+
+DESCRIPTION="The SQL module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres qt3support +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ freetds? ( dev-db/freetds )
+ mysql? ( >=virtual/mysql-5.6-r2:=[${MULTILIB_USEDEP}] )
+ oci8? ( >=dev-db/oracle-instantclient-basic-11.2.0.4[${MULTILIB_USEDEP}] )
+ odbc? ( || (
+ >=dev-db/unixODBC-2.3.2-r2[${MULTILIB_USEDEP}]
+ >=dev-db/libiodbc-3.52.8-r2[${MULTILIB_USEDEP}]
+ ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/sql
+ src/plugins/sqldrivers"
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_native_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I${EPREFIX}/usr/include/mysql -L${EPREFIX}/usr/$(get_libdir)/mysql")
+ $(qt_use oci8 sql-oci plugin) $(use oci8 && echo "-I${ORACLE_HOME}/include -L${ORACLE_HOME}/$(get_libdir)")
+ $(qt_use odbc sql-odbc plugin) $(use odbc && echo "-I${EPREFIX}/usr/include/iodbc")
+ $(qt_native_use postgres sql-psql plugin) $(use postgres && multilib_is_native_abi && echo "-I${EPREFIX}/usr/include/postgresql/pgsql")
+ $(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo -system-sqlite)
+ -no-sql-db2
+ -no-sql-ibase
+ -no-sql-sqlite2
+ -no-sql-symsql
+ $(qt_use qt3support)
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ -no-glib
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtsql/qtsql-4.8.7-r1.ebuild b/dev-qt/qtsql/qtsql-4.8.7-r1.ebuild
new file mode 100644
index 000000000000..ccc0ded8d9c8
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-4.8.7-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit multilib qt4-build-multilib
+
+DESCRIPTION="The SQL module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres qt3support +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,qt3support=,${MULTILIB_USEDEP}]
+ freetds? ( dev-db/freetds )
+ mysql? ( virtual/libmysqlclient:=[${MULTILIB_USEDEP}] )
+ oci8? ( >=dev-db/oracle-instantclient-basic-11.2.0.4[${MULTILIB_USEDEP}] )
+ odbc? ( || (
+ >=dev-db/unixODBC-2.3.2-r2[${MULTILIB_USEDEP}]
+ >=dev-db/libiodbc-3.52.8-r2[${MULTILIB_USEDEP}]
+ ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/sql
+ src/plugins/sqldrivers"
+
+multilib_src_configure() {
+ local myconf=(
+ $(qt_native_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin) $(use mysql && echo "-I${EPREFIX}/usr/include/mysql -L${EPREFIX}/usr/$(get_libdir)/mysql")
+ $(qt_use oci8 sql-oci plugin) $(use oci8 && echo "-I${ORACLE_HOME}/include -L${ORACLE_HOME}/$(get_libdir)")
+ $(qt_use odbc sql-odbc plugin) $(use odbc && echo "-I${EPREFIX}/usr/include/iodbc")
+ $(qt_native_use postgres sql-psql plugin) $(use postgres && multilib_is_native_abi && echo "-I${EPREFIX}/usr/include/postgresql/pgsql")
+ $(qt_use sqlite sql-sqlite plugin) $(use sqlite && echo -system-sqlite)
+ -no-sql-db2
+ -no-sql-ibase
+ -no-sql-sqlite2
+ -no-sql-symsql
+ $(qt_use qt3support)
+ -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
+ -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
+ -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl
+ -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl
+ -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
+ -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
+ -no-glib
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtsql/qtsql-5.6.2.ebuild b/dev-qt/qtsql/qtsql-5.6.2.ebuild
new file mode 100644
index 000000000000..4dfa0cbee521
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-5.6.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="SQL abstraction library for the Qt5 tooolkit"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ freetds? ( dev-db/freetds )
+ mysql? ( virtual/libmysqlclient:= )
+ oci8? ( dev-db/oracle-instantclient-basic )
+ odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.10.2:3 )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/sql
+ src/plugins/sqldrivers
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin)
+ $(qt_use oci8 sql-oci plugin)
+ $(qt_use odbc sql-odbc plugin)
+ $(qt_use postgres sql-psql plugin)
+ $(qt_use sqlite sql-sqlite plugin)
+ $(usex sqlite -system-sqlite '')
+ )
+
+ use mysql && myconf+=("-I${EPREFIX}/usr/include/mysql" "-L${EPREFIX}/usr/$(get_libdir)/mysql")
+ use oci8 && myconf+=("-I${ORACLE_HOME}/include" "-L${ORACLE_HOME}/$(get_libdir)")
+ use odbc && myconf+=("-I${EPREFIX}/usr/include/iodbc")
+ use postgres && myconf+=("-I${EPREFIX}/usr/include/postgresql/pgsql")
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtsql/qtsql-5.7.1-r1.ebuild b/dev-qt/qtsql/qtsql-5.7.1-r1.ebuild
new file mode 100644
index 000000000000..c0f66a04ad4f
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-5.7.1-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="SQL abstraction library for the Qt5 tooolkit"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ freetds? ( dev-db/freetds )
+ mysql? ( virtual/libmysqlclient:= )
+ oci8? ( dev-db/oracle-instantclient-basic )
+ odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.10.2:3 )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${PN}-5.7.1-mariadb.patch" )
+
+QT5_TARGET_SUBDIRS=(
+ src/sql
+ src/plugins/sqldrivers
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin)
+ $(qt_use oci8 sql-oci plugin)
+ $(qt_use odbc sql-odbc plugin)
+ $(qt_use postgres sql-psql plugin)
+ $(qt_use sqlite sql-sqlite plugin)
+ $(usex sqlite -system-sqlite '')
+ )
+
+ use mysql && myconf+=("-I${EPREFIX}/usr/include/mysql" "-L${EPREFIX}/usr/$(get_libdir)/mysql")
+ use oci8 && myconf+=("-I${ORACLE_HOME}/include" "-L${ORACLE_HOME}/$(get_libdir)")
+ use odbc && myconf+=("-I${EPREFIX}/usr/include/iodbc")
+ use postgres && myconf+=("-I${EPREFIX}/usr/include/postgresql/pgsql")
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtsql/qtsql-5.7.1.ebuild b/dev-qt/qtsql/qtsql-5.7.1.ebuild
new file mode 100644
index 000000000000..a320910a9c2c
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-5.7.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="SQL abstraction library for the Qt5 tooolkit"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ freetds? ( dev-db/freetds )
+ mysql? ( virtual/libmysqlclient:= )
+ oci8? ( dev-db/oracle-instantclient-basic )
+ odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.10.2:3 )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/sql
+ src/plugins/sqldrivers
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin)
+ $(qt_use oci8 sql-oci plugin)
+ $(qt_use odbc sql-odbc plugin)
+ $(qt_use postgres sql-psql plugin)
+ $(qt_use sqlite sql-sqlite plugin)
+ $(usex sqlite -system-sqlite '')
+ )
+
+ use mysql && myconf+=("-I${EPREFIX}/usr/include/mysql" "-L${EPREFIX}/usr/$(get_libdir)/mysql")
+ use oci8 && myconf+=("-I${ORACLE_HOME}/include" "-L${ORACLE_HOME}/$(get_libdir)")
+ use odbc && myconf+=("-I${EPREFIX}/usr/include/iodbc")
+ use postgres && myconf+=("-I${EPREFIX}/usr/include/postgresql/pgsql")
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtsql/qtsql-5.9.2.ebuild b/dev-qt/qtsql/qtsql-5.9.2.ebuild
new file mode 100644
index 000000000000..0560c4a2739a
--- /dev/null
+++ b/dev-qt/qtsql/qtsql-5.9.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="SQL abstraction library for the Qt5 tooolkit"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="freetds mysql oci8 odbc postgres +sqlite"
+
+REQUIRED_USE="
+ || ( freetds mysql oci8 odbc postgres sqlite )
+"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ freetds? ( dev-db/freetds )
+ mysql? ( virtual/libmysqlclient:= )
+ oci8? ( dev-db/oracle-instantclient-basic )
+ odbc? ( || ( dev-db/unixODBC dev-db/libiodbc ) )
+ postgres? ( dev-db/postgresql:* )
+ sqlite? ( >=dev-db/sqlite-3.8.10.2:3 )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/sql
+ src/plugins/sqldrivers
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use freetds sql-tds plugin)
+ $(qt_use mysql sql-mysql plugin)
+ $(qt_use oci8 sql-oci plugin)
+ $(qt_use odbc sql-odbc plugin)
+ $(qt_use postgres sql-psql plugin)
+ $(qt_use sqlite sql-sqlite plugin)
+ $(usex sqlite -system-sqlite '')
+ )
+
+ use mysql && myconf+=("-I${EPREFIX}/usr/include/mysql" "-L${EPREFIX}/usr/$(get_libdir)/mysql")
+ use oci8 && myconf+=("-I${ORACLE_HOME}/include" "-L${ORACLE_HOME}/$(get_libdir)")
+ use odbc && myconf+=("-I${EPREFIX}/usr/include/iodbc")
+ use postgres && myconf+=("-I${EPREFIX}/usr/include/postgresql/pgsql")
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtsvg/Manifest b/dev-qt/qtsvg/Manifest
new file mode 100644
index 000000000000..824570080909
--- /dev/null
+++ b/dev-qt/qtsvg/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtsvg-opensource-src-5.6.2.tar.xz 1723056 SHA256 f7a361bf661b31ae7779513559dd0b774171911bc57f5cfb6bed6878ddc8bc4e SHA512 ff78a75d0452de56dfe5b33f64d611c9e75e1a46c2ca168f9d3467ef3bb32f17ef256b45df275ed45bc2215d31dbf321d9cacb3f428096354041481276683958 WHIRLPOOL 12079ed91289cd8096b3119de8d936e3be4f5997754c4274791b0325874db837ea8427503e5d39d9ed68a63bf12ac3ad64d81aaea5a82312013fc062346c2f1e
+DIST qtsvg-opensource-src-5.7.1.tar.xz 1751536 SHA256 b0f017db8cf18e655e8a6635bc4ddbdbad6f8ef839857451b78942630a4c3947 SHA512 b4ba18a81ddf381f635c608f2ca6f339859b964aedf310fea9b4845d50154b5256759583abe14126e6bb86a9daad8a6e597910ce2036af26ae221b925817e260 WHIRLPOOL 34c018be5a8c8e9d3bec46a1e3680cc8c4d094f0a99336b6245be146feb8a4f76aeb2c752d9af4c597965e25b92f254c9f12709f688eee7b77e2e3785ed5a480
+DIST qtsvg-opensource-src-5.9.2.tar.xz 1777392 SHA256 ba96ebfbb60d2793547295b7122a127d21ba44cf586bfd3c8212c59d68661108 SHA512 c21c5a12fa10ff9f91deda88c99c995ee2138bdffa21c793b0c42f25155f01f87ede5206624b9d82713649f8cf1cfdb95f1d5b7e792de62f3848d3a9ec665fdd WHIRLPOOL 1682dbf75852c15517e6f4101d87d553fa6667243a59a0c5eff8a28367d2f971f66294d1cfe88f7061e397220b59b337b08a98f805305f3b3732623f4788025c
+EBUILD qtsvg-4.8.6-r1.ebuild 1197 SHA256 949a903bb61a38259990ddb5a9d64b7e27afd40c826145f9de30f9949c069900 SHA512 22e65b035a1da3d95fb6614888a24d3fabacaa5a285798331917beb2264086da856aa3834f6edbaa11edbc452e793c7454318f6932a35ed9233568e75bc7613f WHIRLPOOL 6c2c3e2d03f5b9cece5424af04ebffa00fd3d294ef52d6d78f1e386ca4fc891b81a5386ff205a549f2d6aedb854bbc151f9a303d42c1f8d8bbb56245eda93852
+EBUILD qtsvg-4.8.7.ebuild 1146 SHA256 dd6105d95d52541226be5ba0682a51da0dbbc24aa2ad90cbf0a51b00d07a88a6 SHA512 84ab7f6e1b3356a1ffa2701706180e8324b55c58695e5c62a7c7b96d7d0f1a9383f2c50dc53060a6a50fa2da9c39794cd80681654d874d6d5ea59d7bb84fd08a WHIRLPOOL 8f6a906dd601df39d1f1231e1ee01d65f8cb79a7a15e4b378fb10370c8c53050d2da5429d45ae7010246f110d9d398e091f0cacfbf2a9ea537ecb64c80523516
+EBUILD qtsvg-5.6.2.ebuild 453 SHA256 3bc984c76fc53e14d7d66fdac2618bded81e0670972cb138a3620498df1e1035 SHA512 f0b043dd157b32572d43cc6a7d11585f7910b07e5dfd3fcbb63b706e8567619756800f948414ba5eb15d1fc4380673b426c9f65c08875b393a4bd6a34c1a19e6 WHIRLPOOL 246125b562af8955f224b9f93dde88398485f287e7204e0b61a656a58448a042e6cbc209bc156bb48ff0786c3d5b7d7bafe6be7b54f50e019bd78d7925930fc5
+EBUILD qtsvg-5.7.1.ebuild 454 SHA256 6ac2408b07343dea79accf2de9465c476e21e11c38acfca684282ded13fb3d84 SHA512 164521f4c694bac7e803203f1e80c50cb937aabf56a6b2e36ec27f376173328daf621080ec0bb8577cb00720c41ef208ef7c4225193bc667329a3b1c06dfe8bf WHIRLPOOL 029e9ad2812225486a19e3c413c6366d37d31f2d173fd846239556e9443c912e1301f89890a48c3976212c448f0f68514f9285fd357dfd00023146d23274c27d
+EBUILD qtsvg-5.9.2.ebuild 459 SHA256 253226aae0e0bfcf393f3bbcfc1b31e07b3de4e3ca1080a641d034bb056f8fc8 SHA512 43d4fa342fb5795ada673d1838d97556246f9266beef688c1946b0f7b831fc41c82412f193b9aaab599d3f49ce2b46b3880b5b20941d822f1527065e7081bb67 WHIRLPOOL 23da057a1af3dcc058aaaca76bfb3da05a7ae243847d2a1658bb0cd94f61a022bb6785b5c524e8f99722585f54ce61e4bcdf7df08514ce2e45d92ec802e0e8c5
+MISC ChangeLog 7307 SHA256 95a15d07341ad8ed9cbab343e6c272df62d1f81a6796c72956014210a6ab2b95 SHA512 c8a5b367222f9a1501729a2af504d76408dc46201a170595ababdcbcb2e08040b656185827d889bf5e08de7f1935060329c115a7c84113f209fdbfe535bd234e WHIRLPOOL 5139ced0d50f52f564330ba62a5bb6bd21060bcf09d59ad7f3d4173ed34dee4024dede49aad65294c5b91738d1663fc38e0fcd17b7515a19541e13cfe78ed4ba
+MISC ChangeLog-2015 19857 SHA256 e914be22fe80b699c3a75bb4af8b5afdfeac9f2dad2ca7c4833ce600ff958d40 SHA512 d6ebba642174b6a193cb0208132a51ac41d45a25eebc3b85804b1cfc53c811c54b6a277613588717e37de0ac8b1b4fc064bb0cca37fce3ce8a95287665e139c4 WHIRLPOOL 254f8e06b558586391650ac9cd4e8d5ae2b981ae8d96920125b609c6c2fa7b876b0befc17d5fcd807229417ef777558eedc462d3db4f334e7fb7050d38436c61
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/qtsvg/metadata.xml b/dev-qt/qtsvg/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/qtsvg/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtsvg/qtsvg-4.8.6-r1.ebuild b/dev-qt/qtsvg/qtsvg-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..37af17f620d5
--- /dev/null
+++ b/dev-qt/qtsvg/qtsvg-4.8.6-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The SVG module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/svg
+ src/plugins/imageformats/svg
+ src/plugins/iconengines/svgiconengine"
+
+QCONFIG_ADD="svg"
+QCONFIG_DEFINE="QT_SVG"
+
+multilib_src_configure() {
+ local myconf=(
+ -svg
+ $(qt_use accessibility)
+ -no-xkb -no-xrender
+ -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
+ -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
+ -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-fontconfig -no-glib -no-gtkstyle
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtsvg/qtsvg-4.8.7.ebuild b/dev-qt/qtsvg/qtsvg-4.8.7.ebuild
new file mode 100644
index 000000000000..4f0a92da6a8b
--- /dev/null
+++ b/dev-qt/qtsvg/qtsvg-4.8.7.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The SVG module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="+accessibility"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[accessibility=,aqua=,debug=,${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/svg
+ src/plugins/imageformats/svg
+ src/plugins/iconengines/svgiconengine"
+
+QCONFIG_ADD="svg"
+QCONFIG_DEFINE="QT_SVG"
+
+multilib_src_configure() {
+ local myconf=(
+ -svg
+ $(qt_use accessibility)
+ -no-xkb -no-xrender
+ -no-xrandr -no-xfixes -no-xcursor -no-xinerama -no-xshape -no-sm
+ -no-opengl -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
+ -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-fontconfig -no-glib -no-gtkstyle
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtsvg/qtsvg-5.6.2.ebuild b/dev-qt/qtsvg/qtsvg-5.6.2.ebuild
new file mode 100644
index 000000000000..1279d49b6b0b
--- /dev/null
+++ b/dev-qt/qtsvg/qtsvg-5.6.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="SVG rendering library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ >=sys-libs/zlib-1.2.5
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtxml-${PV} )
+"
diff --git a/dev-qt/qtsvg/qtsvg-5.7.1.ebuild b/dev-qt/qtsvg/qtsvg-5.7.1.ebuild
new file mode 100644
index 000000000000..3ff247d0daf6
--- /dev/null
+++ b/dev-qt/qtsvg/qtsvg-5.7.1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="SVG rendering library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ >=sys-libs/zlib-1.2.5
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtxml-${PV} )
+"
diff --git a/dev-qt/qtsvg/qtsvg-5.9.2.ebuild b/dev-qt/qtsvg/qtsvg-5.9.2.ebuild
new file mode 100644
index 000000000000..2667ef7e76df
--- /dev/null
+++ b/dev-qt/qtsvg/qtsvg-5.9.2.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="SVG rendering library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ >=sys-libs/zlib-1.2.5
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtxml-${PV} )
+"
diff --git a/dev-qt/qttest/Manifest b/dev-qt/qttest/Manifest
new file mode 100644
index 000000000000..885fcc2973c1
--- /dev/null
+++ b/dev-qt/qttest/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qttest-4.8.6-r1.ebuild 976 SHA256 dd226f587d04b98dc5d9ad03f51df2ba1fb1b85b0324b1dddd77a36981be2b09 SHA512 379df69a87f71cdd24e647a8b0f2e17d91a158b9eed535fd252296211d0ee276d2e2d907d3cbb2734c3bd0608ca2ef48e6732b7009bedd31d5b36b4d210a9808 WHIRLPOOL c1b6fa32ce12051a31c61ecb5120e60cd57816314a922a6bd6e2ecf7b280c3e660053be3916a09fc6d2770fc41a803590d46d445a12174003c1e366f44e7eecf
+EBUILD qttest-4.8.7.ebuild 932 SHA256 a50e9ec29857ce58ce68a96e9d28195ee0d82f5d79dbcb098f3ebad234e9b396 SHA512 16694b6dbec76437444ec6056185f3fc92fce2ee16b775430db84e83f38ac45ab85f274addef4620ca9add95f478394035703cf3b3acf81ba19f4f2985c58874 WHIRLPOOL f233551f56ebcd63997fe272c638b2cfbdb470f3af43c30b65a3a182a82f23d707e53900302347dcfea85cc1c345ce27ae645d28300d025f8f67558eb7453bab
+EBUILD qttest-5.6.2.ebuild 490 SHA256 1a9c04d821bd8084660f034c7eec6a91ba706f97223b781fddbae86258255656 SHA512 a8d5f9d0581b5cf5003ea97c657a77820f3feeef0002c8232185cdda429b4035ad83ff8d9de4392a1c02d85ae64da02b51f3f5edb505521cf30844da750ad14c WHIRLPOOL a3418004f3bbe8e52b7b5a10ec534bf1197ad59c035fe8f524fb8d10d7b08254a1d83ddfb8ccb201489ebcbc2cb55f0490135a5ecea4c051e4dc2272b94bb25a
+EBUILD qttest-5.7.1.ebuild 491 SHA256 09704326e73d84cca16563542993d98fe833610bf7bbe7c8a2baf562a1bc20ba SHA512 8709179f307e0c8a179fb13d947762807db80fdd81ad4fefd54fc88d95b98fa4efca98e41a6deaca734e99df4e581705e36bbb0d92a0a5c357e01e7efcc878d6 WHIRLPOOL 51ae419b7fede3415b3f24a4899ce1985f0b4c1cc010dc288a6307dfb799883b21c98cb2f28d3aad49b4faa67ffd711c30a1952c1ab28b685625e3d1e01165ec
+EBUILD qttest-5.9.2.ebuild 496 SHA256 253f77368ce8b73601866cae4a20db035f8b80643e20929e7084577e49ef338f SHA512 9404b0261e85b73b653b6b7a673fcda3b28472682273befe5dd81d2003aa029143ca476b3e274461ecc3c2d3cce3a88482061944800332b8ce100f25d109db5d WHIRLPOOL 78b7b99477adc3bb325b22720afe0ab92e74038bcdf3232d9cda2457bdfa8e8ff57abdd433585e06ddb5303b61697561aac6b089ba909153843269e47fd9120f
+MISC ChangeLog 6942 SHA256 a14729ebe432b69802f0dde8aa73f231df8c62daf1dc0bb336a51fb291576cb2 SHA512 8d2be5ebec38ffae86c845c5bba52f29ab8ae23a8180c256040167d9a76a504a79f8eb9ad956b40064bec4d5ec2f50273da10046626e084d364f081749588558 WHIRLPOOL e7df4408e647d103c8726303e8e5f8ca2e5dea4f79ba0aed2c150e0ac3094382d8e04dd64a1525ca8e99a3fe686b5d299a1d3e3c2ffdf0463279ac69232aadd7
+MISC ChangeLog-2015 19949 SHA256 18a637950e97d3fce38ae5467bedd2880a291ebbfd5f1e9d04a142624d08d3d4 SHA512 2400683f804bf642beb37923d94479bd8fe08251c394fe70cd809679b331ebc6de5fdf8607f2c834f8bdf66bfa819a1267c6e3a518abeba412767eaa0e17ce20 WHIRLPOOL 603093034ee03deea17dcf1c21cdc57f662cce5a92da4f729dd1d83a671b1b3991438d269aeaa9f471bc0305507d121751b33c352400abe15d6032902dfcd193
+MISC metadata.xml 628 SHA256 93e3e120fada2157b015081d530a52dd17a934d7e08440c93fa46616b7f2460a SHA512 571c94a9d9713de46619fa60fab6c0627066481be86b08a258408eab1f2ee6cc9ceb28f57361c4657c20d54b2d0647ded9fc900e419752ec35ebb8da88659360 WHIRLPOOL 58b34ba347a35e7e8a6e6848ede54919ca4b51e4ccffb28a7b466c05f25bd9310fee77ef046a20fc2c489db2467158b4833687933c459afd0fe58dac95e9cbf1
diff --git a/dev-qt/qttest/metadata.xml b/dev-qt/qttest/metadata.xml
new file mode 100644
index 000000000000..22d751f51bd7
--- /dev/null
+++ b/dev-qt/qttest/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qttest/qttest-4.8.6-r1.ebuild b/dev-qt/qttest/qttest-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..4d831d92e2b8
--- /dev/null
+++ b/dev-qt/qttest/qttest-4.8.6-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The QtTest module for unit testing Qt applications and libraries"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="src/testlib"
+
+multilib_src_configure() {
+ local myconf=(
+ -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor
+ -no-xinerama -no-xshape -no-sm -no-opengl
+ -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
+ -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-accessibility -no-fontconfig -no-glib -no-svg
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qttest/qttest-4.8.7.ebuild b/dev-qt/qttest/qttest-4.8.7.ebuild
new file mode 100644
index 000000000000..2562d388b384
--- /dev/null
+++ b/dev-qt/qttest/qttest-4.8.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The QtTest module for unit testing Qt applications and libraries"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="src/testlib"
+
+multilib_src_configure() {
+ local myconf=(
+ -no-xkb -no-fontconfig -no-xrender -no-xrandr -no-xfixes -no-xcursor
+ -no-xinerama -no-xshape -no-sm -no-opengl
+ -no-nas-sound -no-dbus -no-cups -no-nis -no-gif -no-libpng
+ -no-libmng -no-libjpeg -no-openssl -system-zlib -no-webkit -no-phonon
+ -no-qt3support -no-xmlpatterns -no-freetype -no-libtiff
+ -no-accessibility -no-fontconfig -no-glib -no-svg
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qttest/qttest-5.6.2.ebuild b/dev-qt/qttest/qttest-5.6.2.ebuild
new file mode 100644
index 000000000000..aaf977397d03
--- /dev/null
+++ b/dev-qt/qttest/qttest-5.6.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Unit testing library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtxml-${PV}
+ )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/testlib
+)
diff --git a/dev-qt/qttest/qttest-5.7.1.ebuild b/dev-qt/qttest/qttest-5.7.1.ebuild
new file mode 100644
index 000000000000..c62adf96024f
--- /dev/null
+++ b/dev-qt/qttest/qttest-5.7.1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Unit testing library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtxml-${PV}
+ )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/testlib
+)
diff --git a/dev-qt/qttest/qttest-5.9.2.ebuild b/dev-qt/qttest/qttest-5.9.2.ebuild
new file mode 100644
index 000000000000..1db027438864
--- /dev/null
+++ b/dev-qt/qttest/qttest-5.9.2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+VIRTUALX_REQUIRED="test"
+inherit qt5-build
+
+DESCRIPTION="Unit testing library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? (
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtxml-${PV}
+ )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/testlib
+)
diff --git a/dev-qt/qttranslations/Manifest b/dev-qt/qttranslations/Manifest
new file mode 100644
index 000000000000..a3b32fe77c4f
--- /dev/null
+++ b/dev-qt/qttranslations/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qttranslations-opensource-src-5.6.2.tar.xz 1204148 SHA256 7d793b447c1673206e0c5512883ad1435554dbaebf2152475b6d4a7ba6efa421 SHA512 7b2cf7cc1560866a8172ca6478f94b3f737e5b71d60afe1b4dbe302c7f589a42a4156bb886bedc1d9339de7d70e71a28ab96785ba597d050161aac28d16e40a8 WHIRLPOOL e35729644293235e22c1607651ae46e0840d380737a7bba43d958f85ee1e8d8f82842b8124108a64240ecdf5271c9bed2f8ef7d1543ab74457b506316eb015b0
+DIST qttranslations-opensource-src-5.7.1.tar.xz 1206116 SHA256 16ecdb09532724e80fa6202e5604d80877923b652b771b6020cea36bee0258e7 SHA512 8d7705d1fb2569f90bb7fbb9bdfe7ffdbf7a8746ee4da634f66fb7f70c14b91f7257165b6ac041cbe4918b88e6ec344c8e554f1e7339257e7e1b9a06e78ba837 WHIRLPOOL 61486e72f2ff43649e61cda6f8ab98f8c85636f4e96ea6c648dc204fdb998f0a60114faa2a75e7f6b2e5bc45a8ef2205923a62436b11616fb8fe2d2693104d30
+DIST qttranslations-opensource-src-5.9.2.tar.xz 1412128 SHA256 5df16ddf9da0f42a3040aef2a92ad7da67381e2e4c132632fddf3a7a8026d12f SHA512 e84e9741cc6f938556c4fd423fef4852b039ebe4afc12db8570a6540717297541f632a07d750ee25c46eea9ae858a78fba18be49597c47cb8c9165b961e0ee94 WHIRLPOOL 1ccf4921c795053aaf86d89dda9f995a3708de8344250256d5557dcc471a5083540b0166fdf4f3f900c10fe2b38031b79011711fe7b9b871d853632c44f704e0
+EBUILD qttranslations-4.8.6-r1.ebuild 830 SHA256 3e0143c4404716ded9f002d7180a90bef3cbd5ef1a363373703dac857159cf27 SHA512 2e837553720c7cc376d9dc38579d61549d1a6565afb5c042a5b3fe7ec73f34c92380039d5263b8732975fe4702244da3e7926f8af2e9566825e529a31bdec7b6 WHIRLPOOL 28a149e0755b4801775d8bb0932d649c967d884b4f54b99d3234caae82edaaa3c92fcda86676fbcc53abda46aaba4715870b972d233f564124e81d8302547c42
+EBUILD qttranslations-4.8.7.ebuild 772 SHA256 342eb78058bf9d362ae46b46ef8496c069242b5f486f69566de6960d7b26fad1 SHA512 85e9692f0d861c014bb012bf4a735c5d1a9449469d104eda5e77c0240a2f5f9d55deec4db172c016875845f02790c114180d6f179bacf29c43444d3a643a64ab WHIRLPOOL 829d04e287cff9baba0fbaf0da8a01a50267347736440c608e04ca2d8dedfa99a5456a2d0013c50395c8c7e8e935a48a8fd181a67d569bd514f084afb5850cf4
+EBUILD qttranslations-5.6.2.ebuild 361 SHA256 486530f0926dc885e45f94a1fddb2d8ea7bc1f2ef1facd192b856b44c38729c9 SHA512 77141b58204d678f603d5a840b4136029076179333fef0a46c1d2625a8e7d9c46995af68ad0f0d002cbb4fc32412c6e92a4067326bfb61258aedadbb2a2fef73 WHIRLPOOL 228a00379b8c3c4cd9d0e56401d5e38df31ef882098a4cf8e47b0a7de8fe66e25c8965a9f7a6179ed0fbf3497fee24b8c120af268b52bd6c9b87c48d30b08197
+EBUILD qttranslations-5.7.1.ebuild 362 SHA256 140f89aa368785e60d60b52f0cd134094166d1cd4085bcd557a3d37ceb536dc4 SHA512 f5e75b59fc5457b491084946657acd1268f1fc64b723f5a91564b4a21606569ab45137913618ab3501a58fefea59793a298c241f0be462279a857ad836ae34e1 WHIRLPOOL 3eb4c7d25954d0ab99e9b34bcb7f1cc78f774572ec03ac195c334e94afa503dde510474448b241a97fe2bc1f4c315e23e8e299b9958ad9617542fb0e4db7d9a1
+EBUILD qttranslations-5.9.2.ebuild 367 SHA256 f4a7dc0d43f18022b28daa651cdbe4f96643a588302ee7ef3ec67f72379da828 SHA512 5fee74bf66f818592d441d46dc379f391d50097f530e04d9e3bce8288d4f221d56632473e6bfd86974bc342a833206e1c27c15bbda31fee36f6bb829df494415 WHIRLPOOL 9b3d026244f2f41a3d434cd7c18fd4db152cacedfa5bb5f544dfe093cfddfd7721187de85e18874c225f0a1f12cc4aae208fc3d8cf6af57fc37f6f2a6c745d48
+MISC ChangeLog 7390 SHA256 de68fe02fec180799c5ece3752ba3384b218a9cfa0f71ca9d6adf3f0bc4af08e SHA512 b3ae0fdd3144290c493390f96ea4b682d24b5ca083a584eba0c2d35215aed748b548e568d73ce8e2c9b3741153cbe08505bd98df60c569ad6cba5f593f5a6752 WHIRLPOOL b528994f10e5a485a54bbb0172474952d360dd0cb8f797f7c357261ca925b2e5f86d6db8904684f10917f784b462e0c483be42fe222e6de98fa0d5c29700f992
+MISC ChangeLog-2015 3233 SHA256 3ca12ab82de129441fcd2cc287ab315a9cd826c8169f6cfa037b0c23c326519e SHA512 8c0ed9fdd24f4edbc6bcab11f8e3986fa3c7f9d2f84df8d43fc7aa4909ae4dcfb34cbc5fa5581826baa89550a8dcee583cdcd8391d1d6083397f57b3b1f85767 WHIRLPOOL a74a758883635e6b7957fc86382940450c0d2ce4f85dee5873811ad9d29ff34cb01b2bfbe9f173f479888e7f65066c7e1041638c538fbe3437a53cae61be62b3
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qttranslations/metadata.xml b/dev-qt/qttranslations/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qttranslations/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qttranslations/qttranslations-4.8.6-r1.ebuild b/dev-qt/qttranslations/qttranslations-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..2567a4f77fa7
--- /dev/null
+++ b/dev-qt/qttranslations/qttranslations-4.8.6-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="Translation files for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm ~arm64 hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND=""
+
+QT4_TARGET_DIRECTORIES="translations"
+
+multilib_src_configure() {
+ if multilib_is_native_abi; then
+ qt4_prepare_env
+ qt4_symlink_tools_to_build_dir
+ qt4_foreach_target_subdir qt4_qmake
+ fi
+}
+
+multilib_src_compile() {
+ multilib_is_native_abi && qt4_multilib_src_compile
+}
+
+multilib_src_test() {
+ :
+}
+
+multilib_src_install() {
+ multilib_is_native_abi && qt4_multilib_src_install
+}
diff --git a/dev-qt/qttranslations/qttranslations-4.8.7.ebuild b/dev-qt/qttranslations/qttranslations-4.8.7.ebuild
new file mode 100644
index 000000000000..10a440278223
--- /dev/null
+++ b/dev-qt/qttranslations/qttranslations-4.8.7.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="Translation files for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND=""
+
+QT4_TARGET_DIRECTORIES="translations"
+
+multilib_src_configure() {
+ if multilib_is_native_abi; then
+ qt4_prepare_env
+ qt4_symlink_tools_to_build_dir
+ qt4_foreach_target_subdir qt4_qmake
+ fi
+}
+
+multilib_src_compile() {
+ multilib_is_native_abi && qt4_multilib_src_compile
+}
+
+multilib_src_test() {
+ :
+}
+
+multilib_src_install() {
+ multilib_is_native_abi && qt4_multilib_src_install
+}
diff --git a/dev-qt/qttranslations/qttranslations-5.6.2.ebuild b/dev-qt/qttranslations/qttranslations-5.6.2.ebuild
new file mode 100644
index 000000000000..97090e269867
--- /dev/null
+++ b/dev-qt/qttranslations/qttranslations-5.6.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Translation files for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/linguist-tools-${PV}
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND=""
diff --git a/dev-qt/qttranslations/qttranslations-5.7.1.ebuild b/dev-qt/qttranslations/qttranslations-5.7.1.ebuild
new file mode 100644
index 000000000000..304991c75ecd
--- /dev/null
+++ b/dev-qt/qttranslations/qttranslations-5.7.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Translation files for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/linguist-tools-${PV}
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND=""
diff --git a/dev-qt/qttranslations/qttranslations-5.9.2.ebuild b/dev-qt/qttranslations/qttranslations-5.9.2.ebuild
new file mode 100644
index 000000000000..2cd296662734
--- /dev/null
+++ b/dev-qt/qttranslations/qttranslations-5.9.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Translation files for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/linguist-tools-${PV}
+ ~dev-qt/qtcore-${PV}
+"
+RDEPEND=""
diff --git a/dev-qt/qtvirtualkeyboard/Manifest b/dev-qt/qtvirtualkeyboard/Manifest
new file mode 100644
index 000000000000..6a1bd297a169
--- /dev/null
+++ b/dev-qt/qtvirtualkeyboard/Manifest
@@ -0,0 +1,5 @@
+DIST qtvirtualkeyboard-opensource-src-5.7.1.tar.xz 10014088 SHA256 b28b8b937ed15d794c5ebc93e9556d08a0c9761a434864ebf2b454554e652add SHA512 31481a88b91ef936437e54c863d39a63917496bd5701670ed38f1695c7cc6d867b8cc0eede62a523d5fea3819bc2688845277c9737349a0982de711cc464f00f WHIRLPOOL 9a99dd194e69b68cf4144f9f6349caf747b177ddf23330ab1b66e189d37943c18fe8a1a4da94550d6034b5919c619e7c53f0c869eb8b99f938b7786e75ebb029
+DIST qtvirtualkeyboard-opensource-src-5.9.2.tar.xz 10036440 SHA256 e836ca0348b21df28635e541713726444abed7b53a0acf3358cc90532e64c6fc SHA512 f8c39b789e877e60389ee9aab4a5c17e6018093f72fc57f526ce2584183135206306d4d5a7c7551a6de45969aa6f55444bb39f4ea3324cdf10611533f0bc2b22 WHIRLPOOL c6171b98c8e36a09c7d752cbada93b2cdccfa6b875ceca502faa16c1ae9eb4025562929c08db279857cb7fdb0ae4172ed19dff5f2450c0029a58d1b7fa67c4f4
+EBUILD qtvirtualkeyboard-5.7.1.ebuild 994 SHA256 06d311d5b23a2dfda93416c640c9725837c4aecf768e54d13da0579b99aa39af SHA512 e4d806e72918e1248587a844bc42b40a8f8b84af9990060656e0d21068468ea51b187f60794d539bdfbbac642b87bf05c57412c4b55566aef33060f596463829 WHIRLPOOL dbbf08dd4b37b8e71d768e8708a3673c8ec41c79d798057745be7787f7e7c40408f5371093b7c5d757971465600e0279380726d175cb714ce2c497e85588ddb2
+EBUILD qtvirtualkeyboard-5.9.2.ebuild 994 SHA256 06d311d5b23a2dfda93416c640c9725837c4aecf768e54d13da0579b99aa39af SHA512 e4d806e72918e1248587a844bc42b40a8f8b84af9990060656e0d21068468ea51b187f60794d539bdfbbac642b87bf05c57412c4b55566aef33060f596463829 WHIRLPOOL dbbf08dd4b37b8e71d768e8708a3673c8ec41c79d798057745be7787f7e7c40408f5371093b7c5d757971465600e0279380726d175cb714ce2c497e85588ddb2
+MISC metadata.xml 579 SHA256 8c838a2920a2fe98fc39e60f7d049f6e36d0158ec4f97edfefd0ed82cc96d09d SHA512 96b897699828afe8027d30da6a77ab6ac2ffb40c4496564a1f0d7db51078303bc5af940c462ebaa4409c0aaeb70e3215584f0d8fb664837757603f7a535868e3 WHIRLPOOL 567bbbb682a376406ede2a5a0fc58392bf4c23fac7785e161637f9680cb2ba8663fef56265623e44dede3789d610a97723b79f9d28b65e6803df56503706cd93
diff --git a/dev-qt/qtvirtualkeyboard/metadata.xml b/dev-qt/qtvirtualkeyboard/metadata.xml
new file mode 100644
index 000000000000..1f6a41cfea6b
--- /dev/null
+++ b/dev-qt/qtvirtualkeyboard/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="handwriting">Adds handwriting recognition integration support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.7.1.ebuild b/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.7.1.ebuild
new file mode 100644
index 000000000000..2cbcca31ea53
--- /dev/null
+++ b/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.7.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Virtual keyboard plugin for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# TODO: unbudle libraries for more layouts
+IUSE="handwriting +spell +xcb"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtsvg-${PV}
+ spell? ( app-text/hunspell:= )
+ xcb? ( x11-libs/libxcb:= )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex handwriting CONFIG+=lipi-toolkit "")
+ $(usex spell "" CONFIG+=disable-hunspell)
+ $(usex xcb "" CONFIG+=disable-desktop)
+ CONFIG+="lang-ar_AR lang-da_DK lang-de_DE lang-en_GB \
+ lang-es_ES lang-fa_FA lang-fi_FI lang-fr_FR \
+ lang-hi_IN lang-it_IT lang-nb_NO lang-pl_PL \
+ lang-pt_PT lang-ro_RO lang-ru_RU lang-sv_SE"
+ )
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.9.2.ebuild b/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.9.2.ebuild
new file mode 100644
index 000000000000..2cbcca31ea53
--- /dev/null
+++ b/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.9.2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Virtual keyboard plugin for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~x86"
+fi
+
+# TODO: unbudle libraries for more layouts
+IUSE="handwriting +spell +xcb"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtsvg-${PV}
+ spell? ( app-text/hunspell:= )
+ xcb? ( x11-libs/libxcb:= )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ local myqmakeargs=(
+ $(usex handwriting CONFIG+=lipi-toolkit "")
+ $(usex spell "" CONFIG+=disable-hunspell)
+ $(usex xcb "" CONFIG+=disable-desktop)
+ CONFIG+="lang-ar_AR lang-da_DK lang-de_DE lang-en_GB \
+ lang-es_ES lang-fa_FA lang-fi_FI lang-fr_FR \
+ lang-hi_IN lang-it_IT lang-nb_NO lang-pl_PL \
+ lang-pt_PT lang-ro_RO lang-ru_RU lang-sv_SE"
+ )
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtwayland/Manifest b/dev-qt/qtwayland/Manifest
new file mode 100644
index 000000000000..6c991ebd3c05
--- /dev/null
+++ b/dev-qt/qtwayland/Manifest
@@ -0,0 +1,9 @@
+DIST qtwayland-opensource-src-5.6.2.tar.xz 267028 SHA256 035c3199f4719627b64b7020f0f4574da2b4cb78c6981aba75f27b872d8e6c86 SHA512 193c1ef58282bf9597303996d8e03853d95c2e4f79a62bdcfc6ad48f397dbb71f8f2e94f8ab334c7fae0a6a0e5b79e8f762468be6a3b66eb3636c465fabff51d WHIRLPOOL e870e8be2ef393b8f5ba248e0f51e30297aa6bb0864c821c217c79e727d778751f89067913f0b7db0e0075d12843653529ce2c8cce37f429cf24265639db1e55
+DIST qtwayland-opensource-src-5.7.1.tar.xz 291776 SHA256 f23fc5e180c8af5b38419d84e44f1f342904a197c2382a7b03f83de2136201c7 SHA512 41a6699b9048a859bb0cb1e37cd0a3977f52a5a223d4f6a4ce5e1402c5b829cc907593ce2b70f4ec24dfad147251bb2f20e889eae26072cf53e774b4585f2921 WHIRLPOOL 959fb40ce79d9d09ee3c3ec436d3be229b614da15712494d943dd2cded12f0e29f9750b6e103307bb4e27e00a28f5b2ac508a29dff4f25e1b677f2f2519de98d
+DIST qtwayland-opensource-src-5.9.2.tar.xz 311052 SHA256 f6434d03f933867dfb219abec2cf19e2c1d1ef23d46d12cb9333c8066027f6c6 SHA512 28b6f77be5289cb9eba0e3e6b220d2c99d2ab4dbae8e02caecd7651b5ae33c09f117545664b01649ca52b27025cc15853806ece8dc10713c3d90832416c7def6 WHIRLPOOL 2d0c1ea872dbe4bd48dd1564062310eb2933e44dafe9c4547137f3b63aaddfe9a70aca806e48120abdbfa0de4eef9424258012afe2debe4c01012f3a94bcd932
+EBUILD qtwayland-5.6.2.ebuild 865 SHA256 2d95e6a433c25b3187acf1057c6377aad186a90bf345db89a96f92033d7a9390 SHA512 d37b5bb891b15d22af32fd363cab268884cf8a17fd37f7720ead8a039c51b6d71038502f1324e13b504e542b4424919d86f1a95ab69393716e3c87706a251749 WHIRLPOOL 5d021c0970e95d64c7e2d026db05d9506a0ed59a08ccab3969073ccc54eddbeabce0f016d87fd668ccc6743ef3f76b4539ee05bb673b8d61de39cb19fbfff3b8
+EBUILD qtwayland-5.7.1.ebuild 623 SHA256 2a3d6da03326aea6d955fd17ca9125a4c12fbcb99c127a6650ab430ccd93431d SHA512 8768c4014b155e6a5918d93228c2281e4742354f706089bc94355d8eedc939d5d32471163652cc6ce640beb719516b71832100d9d5e255ee90b38a3f68edc022 WHIRLPOOL 5abab1e92d40a1941dc1c0106f9ffc8824306c2a293c39d41af796d04dd706533bd459078103d878fa8f7c430f558cb47f771b66721c294538696c1125ccd37e
+EBUILD qtwayland-5.9.2.ebuild 907 SHA256 43b46fd094e98771528c9badfb3ad46f3941a8a8c6103cf7ca2a4d0049651283 SHA512 8f36a62cdd003781b58b70214de5593afd3ddce625a53e088ca1e4d19e270bc1afb65fb669f1cdd6173079661220c05280f19ae4ac394bec825f27d656bb0a61 WHIRLPOOL b793a8a7348da8894962cbacda4ec89731340e718cb52bbcaf151de73e0a969830805e398a05b3856b476133a66d64cf1296664e03aa02ae916643ac306a5b27
+MISC ChangeLog 6365 SHA256 10557ede221a5b7af278ac48105f3e9d906c12ccc5d3be829470f1ac10a20406 SHA512 aacbcf84ec21b9ed4c68ecc519b7c384aed61fa12ecc2e9f5be113acc4abbeb28f68488f6e498f545268629c0fea0b355581d0141e125c1d5b16941172e46c8a WHIRLPOOL 210c79d26de8acc65e4ce59ebe2da8ad4d8cc59daabc41716edbfc64d33785bf22bc3e4d359cb3c8c878ddd4f29cebbdd7a622446483fd3d6cc3f49014ff5230
+MISC ChangeLog-2015 1270 SHA256 7050817fd20620c2cba03a17449307a031d7b446e17855eb4093e1be7cf2f330 SHA512 120f419e9e672d2402e890a503d21df0445d6514deffb907d08cefc4f7792f59d9c3f382a1181989241532eb9a4bda314bbfd5db1e57be79a2c91a245fe06028 WHIRLPOOL 16142dcabd8cbe9e7481b1f5c2018975d4a3de36361d2ebee76d8cde860260d7591b93a2d61358760d9d7f994e4946d5fa20dfe70e728092031f0cd5cb0e5f0e
+MISC metadata.xml 719 SHA256 f8fea1f7753632cd00a58ff1fef8947cc951dab1b48e975bc391ab111559e22f SHA512 c5ea15976e3b19011280682ae02b0be7ff20cef45a24aa40d8b0e337eb7692c8adbda57cbf5e9fd6f9c03868f26aeb347204cc69e531386753622f6d2d2c47e3 WHIRLPOOL 87881c9d625a1e0b527d0b723cbe20fcaa292e598b61f78e38a9654eed8c50d96f36bd5f3ce96190d8486720854c3669e28967e035fedca42754c59348047eb4
diff --git a/dev-qt/qtwayland/metadata.xml b/dev-qt/qtwayland/metadata.xml
new file mode 100644
index 000000000000..9bd59538a9fe
--- /dev/null
+++ b/dev-qt/qtwayland/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="libinput">Enable support for input devices via <pkg>dev-libs/libinput</pkg></flag>
+ <flag name="qml">Build QML/QtQuick bindings</flag>
+ <flag name="wayland-compositor">Build Qt compositor for wayland</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwayland/qtwayland-5.6.2.ebuild b/dev-qt/qtwayland/qtwayland-5.6.2.ebuild
new file mode 100644
index 000000000000..d427008009c6
--- /dev/null
+++ b/dev-qt/qtwayland/qtwayland-5.6.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Wayland platform plugin for Qt"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ~ppc ppc64 x86"
+fi
+
+IUSE="qml wayland-compositor xcomposite"
+
+DEPEND="
+ >=dev-libs/wayland-1.4.0
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[egl]
+ media-libs/mesa[egl]
+ >=x11-libs/libxkbcommon-0.2.0
+ wayland-compositor? (
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+ )
+ xcomposite? (
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ if use wayland-compositor; then
+ echo "CONFIG += wayland-compositor" >> "${QT5_BUILD_DIR}"/.qmake.cache
+ fi
+
+ qt_use_compile_test xcomposite
+ qt_use_disable_mod qml quick src/compositor/compositor_api/compositor_api.pri
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtwayland/qtwayland-5.7.1.ebuild b/dev-qt/qtwayland/qtwayland-5.7.1.ebuild
new file mode 100644
index 000000000000..b90f33e3e8ee
--- /dev/null
+++ b/dev-qt/qtwayland/qtwayland-5.7.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Wayland platform plugin for Qt"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE="xcomposite"
+
+DEPEND="
+ >=dev-libs/wayland-1.4.0
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}[egl]
+ media-libs/mesa[egl]
+ >=x11-libs/libxkbcommon-0.2.0
+ xcomposite? (
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ qt_use_compile_test xcomposite
+
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtwayland/qtwayland-5.9.2.ebuild b/dev-qt/qtwayland/qtwayland-5.9.2.ebuild
new file mode 100644
index 000000000000..43c33faf510b
--- /dev/null
+++ b/dev-qt/qtwayland/qtwayland-5.9.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Wayland platform plugin for Qt"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE="+libinput xcomposite"
+
+DEPEND="
+ >=dev-libs/wayland-1.6.0
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}[egl,libinput?]
+ media-libs/mesa[egl]
+ >=x11-libs/libxkbcommon-0.2.0
+ xcomposite? (
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_config libinput xkbcommon-evdev \
+ src/client/client.pro \
+ src/compositor/wayland_wrapper/wayland_wrapper.pri \
+ src/plugins/shellintegration/ivi-shell/ivi-shell.pro \
+ tests/auto/compositor/compositor/compositor.pro
+
+ use xcomposite || rm -r config.tests/xcomposite || die
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebchannel/Manifest b/dev-qt/qtwebchannel/Manifest
new file mode 100644
index 000000000000..0a800d7077e8
--- /dev/null
+++ b/dev-qt/qtwebchannel/Manifest
@@ -0,0 +1,9 @@
+DIST qtwebchannel-opensource-src-5.6.2.tar.xz 119792 SHA256 700efdef5f51bdb77093f4db212afe275ad35a710ea08ba0e9e9cbc8f09f1a52 SHA512 76963aea9a287b360110086ffa146f0b93eac963e6a4adcd6ff6fec83fc5416aee1e374d50a4a47dd86edf25eb486f6f8ef23becdba46d891f5484ec5f336de4 WHIRLPOOL 62076abdec83d872abde159b923ab0a403ac659346824b0e7637cc2c6400fca8a97f1652df25faf0b08ce4cd89e801a5e2fdfda67c3555cdb04e44fbf8262b09
+DIST qtwebchannel-opensource-src-5.7.1.tar.xz 122436 SHA256 63ab3ac76ff993009cfa978162a764e05b763cacb70d1a862893f8de4492319b SHA512 643ca738e07c9a719d1d17ee23faf0d7bb3a62e6ee03e5b4f78e1cdf8d1b13ed71416b86bbb40c93d121a6569dc55d0373f1cb0961c8db07762c93592ca49af8 WHIRLPOOL acc3fe032452a35a765799995e9318f280cd67dd9d72ad9580254a8f645461d835ad0e6b4b9c95fe92581daee5ab298c6d195f75abd231cff8f0cab71f511b7a
+DIST qtwebchannel-opensource-src-5.9.2.tar.xz 147388 SHA256 9c1b4defecadd7f9ee15d5815d464abef0961fc565cc7831720fc7c0c0d13a26 SHA512 cab160532483928d18278be9430147090fcc12ffc2b7f9c4529a9e33bcafe939b0b6bfd8e46a6467709043cd54aabc697166f74927b24f1e654b522edb6231db WHIRLPOOL 548eb5b7410e17a045566c25c88beabb2e1e52babcfaf0ca8a707893138d55a41da91361ffd66fdf85fd1cd50cda3f83c45731191587ec98f44cbf0216bb4075
+EBUILD qtwebchannel-5.6.2.ebuild 556 SHA256 3d766ac00d0559c8720bae1eb111014244a1fa6421e1505b97bd9dc49fd090fc SHA512 c5b8b5e0bc089369a6ca2376b30de51f08b905338616c28f826496b30de2fc9105905415660310cbf2a67c9d79f0a52f4e417b4d290decded65cd50ea195e23a WHIRLPOOL 8c27ce092e053087673fa7e062da2223a8798d3dfa2959cccad039e2c8115fa4afbcf7c1cee590ea0798da34d744b35f4ccbe67cebedb4e2d67d6c77b90eb1d8
+EBUILD qtwebchannel-5.7.1.ebuild 563 SHA256 9a2af87c6c3e2026301ec26fc0ea2e05c4e90e4bc0398874546d1760ea1a4c6f SHA512 741eb20f2e08d421c4b254801edaf84319c0cb380c2e6debeac88ec633099b78839120d5cfca28500d825d0191db6518522b757d8ab7748709a0a69648dae5ac WHIRLPOOL 3946939220d5b2df80694302a1f9102cd60afa1b07d5274c5dfb2a8cfa33410320fe10a5ba37759af900af40dc6fc2765271428d52ccf5402a2836f7cb1c9e30
+EBUILD qtwebchannel-5.9.2.ebuild 567 SHA256 d1392276e02757ee43cb46738534f83f9aac02f7ef80ce7eb01770efcd801dec SHA512 5d4f9958cc1d6810c1b5b7d99aa9af0d20e840fd77cab5662ab5ecf7fbc0979fd5832a88757e624857080bb0e74c90761435785250c138024ae87f11a7d7e145 WHIRLPOOL 2550f739dc039268c3beb14ffd62e52aa4bc20f24e327cef4f671d7dc76acb8d77cef2ea73bf1a9f0f5f1f5d7e82b5ded7fcbc7c7625f7886c142215f4a844dd
+MISC ChangeLog 6407 SHA256 68d0fd9c280c4e457c3b798327d5d4706c8537e020a1426b1b5a5b9316cd8eb3 SHA512 47c5f0e5978fdb0e5f8ad8ecae6089b554fa45b21baa6d0e3d2662cd2547091923eb0417ceae944cbb7978e0d095daab97838a110aca1f29087bdbc3b225353a WHIRLPOOL 7947a80f00af35a679020511e70d001aa734e964233fb91ef60461edcc56becdce121daa7fa2886fb0b77e1f548a0295a6d0299550b13db4a2fb96e4ed7a2cf4
+MISC ChangeLog-2015 467 SHA256 83de35df34acf01ce55e72aad3c27c7b133d767fd7b78d58d8643bdfbbb84596 SHA512 f01a73ae3453cc30d9e6cb2866e0fef5614e9dc694665f13f83f71dbabc91c5b15ed52ddba35791ad4a8874ab54d231196c9634176a24bf663554384b8aa0e56 WHIRLPOOL e78b31adb72cab29c5b4477c6a9bc728cd02c2ae469ee11e4086310d3a3e08490136007a7a6e0959b17d2201c6206989c2d93fbab93b5b38cc2cdf6ee1db30a6
+MISC metadata.xml 561 SHA256 6aa31826187afe31aeaaf36be2619f1a68eb075526d806e3287d333b25c55f0a SHA512 73d78a296a643dafb989554225cefd7b4c0a00431f2d65c3705207ca5282d0b73d56625426c5b029f76f7eb27b3c84272c9da64a05100a7cc84cad22bbed191a WHIRLPOOL df0251229b677520bcec04b006bc2522b26d91897507554629074df5177744947d05e754e979b66096ce736db732101dd06e60b828dc2609e0558ed77ce66fae
diff --git a/dev-qt/qtwebchannel/metadata.xml b/dev-qt/qtwebchannel/metadata.xml
new file mode 100644
index 000000000000..d437181335d4
--- /dev/null
+++ b/dev-qt/qtwebchannel/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Build QML/QtQuick bindings and imports</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwebchannel/qtwebchannel-5.6.2.ebuild b/dev-qt/qtwebchannel/qtwebchannel-5.6.2.ebuild
new file mode 100644
index 000000000000..34cd2a0ca08e
--- /dev/null
+++ b/dev-qt/qtwebchannel/qtwebchannel-5.6.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating C++ and QML applications with HTML/JavaScript clients"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ppc64 x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+ qt_use_disable_mod qml qml src/webchannel/webchannel.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebchannel/qtwebchannel-5.7.1.ebuild b/dev-qt/qtwebchannel/qtwebchannel-5.7.1.ebuild
new file mode 100644
index 000000000000..3180f91e265b
--- /dev/null
+++ b/dev-qt/qtwebchannel/qtwebchannel-5.7.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating C++ and QML applications with HTML/JavaScript clients"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ppc64 x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+ qt_use_disable_mod qml qml src/webchannel/webchannel.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebchannel/qtwebchannel-5.9.2.ebuild b/dev-qt/qtwebchannel/qtwebchannel-5.9.2.ebuild
new file mode 100644
index 000000000000..42caf288363f
--- /dev/null
+++ b/dev-qt/qtwebchannel/qtwebchannel-5.9.2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Qt5 module for integrating C++ and QML applications with HTML/JavaScript clients"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+fi
+
+IUSE="qml"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+ qt_use_disable_mod qml qml src/webchannel/webchannel.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebengine/Manifest b/dev-qt/qtwebengine/Manifest
new file mode 100644
index 000000000000..0ba462f4704b
--- /dev/null
+++ b/dev-qt/qtwebengine/Manifest
@@ -0,0 +1,15 @@
+AUX qtwebengine-5.7.0-fix-system-ffmpeg.patch 953 SHA256 046d2d09cb50a5b580a445edaf4545481e3575c30c1ba3197182f1e0f71e6478 SHA512 7fe43758f0f20ce1d4952d36773fede8def13c60dc4ac01186ef0d1b79055f02151a89e94c61b6dbe5e0a0560e53e3a27c2f40aaba181704b752b3618b3f3b9f WHIRLPOOL 64a566562652e4c7754a634de5ea4f4d64fe54033223157645d5efb64a0784a0e45c00785c4fa30f95adfeb9c830189f5796465b94ee834b04b11c3f871ad1e7
+AUX qtwebengine-5.7.0-icu58.patch 3126 SHA256 0e9eaae292efd47c76a05e0380ffe8cc2f353f1a55fc1bf180a5313a529ab8cb SHA512 573741564c85dfa8df1f8b89f075214067f4892d9cc4280d986709c4438823a82ab1eb752b39fdae4e0321a0ae30479fce2ecacb4d35f197bc3699ee24583d67 WHIRLPOOL 79b02ab132b3dd56f70b6d8cb828605abbd27d33862556d1c22196c2b34ce7a9b0ff31dcc5d48b28f75a74888d96327cb572fdaca92284dd89ec4e2c23bbf6e7
+AUX qtwebengine-5.7.0-undef-madv_free.patch 1132 SHA256 2490dcbad1ec31a7eadf872ce0e63cbf9c12f8b9fa65f2f8b030274e283c0198 SHA512 1f581749438b07df03f8123957b31d2749a702c00dae06d5c4ab8bd9a4a3d9f14ee0457f5fa9221e7b1d0dc4eac8965990336140f09787df4e46757165b1e22e WHIRLPOOL 0c4404fd40e5fa3fdc55c11bac0f76843fb174b1048d24b0b934d0ecbe664ff7b04f03c09a1cb08df0a30622adcd515e837cbabee77c699eeecc87785f3ec354
+AUX qtwebengine-5.7.1-fix-audio-detection.patch 802 SHA256 3cc298a3fdeecf4a339bad39ac9bc63201c02b87fceb32e4c06e3004a6197103 SHA512 d461dc066eda63d9cc7131852d12f2a0ed0abdaf849f9d7ec0e1da20098e031877c07ae37ebd3ba47af1ef1d7cf4d909ef594bcb4682f9e4f69d7deeaeb01f2c WHIRLPOOL 41dd2c3b574939d2a3b25f1758502cb473dd29f3046360c4ff38098246c959f95d6628ab832b318874d7cbe3a088ca119e2c03cd1dd04009fab75ec3bb1f51c0
+AUX qtwebengine-5.7.1-gcc-7.patch 5612 SHA256 2afa904ea3c349e4721073a4d8325a4be69ddbf39ae18a7d4456abe09920f36f SHA512 a2824a8ea4b2499fb6f5b583349c3b3428a3a99e5f534d624e00c7820f7a70c824ffc90fc9abd0f981fd707e5361b1d466de1094f65d5c1c8d62db9dc118be0a WHIRLPOOL 015dadbcfad837710a674ebf0fd6014878f27206262c4c61fe9c054a830555e771d5e7414bc5486b1de6409bec23a4f8f4ad6b29dd4c9e8a3acfd4d6e1d3500e
+AUX qtwebengine-5.9.0-paxmark-mksnapshot.patch 1299 SHA256 eb8f97551e71b3ce1d52ab30ec74165bbef70cdc523752a7e404a502ec7d61df SHA512 80fce43f244d5ac7519eb27415bc9bbee9012cd1416abaed815e835d3057f64b0d766f8d7c0e4d58ec2ceab04fc3090223eb9a461e64235a6113bef31dd7d47b WHIRLPOOL f96ade2775582920ea6bc42aa2d193975423990c7af01df60b10889f44dbddecd61355ca2cf4c76a342661019046f826441b7055e20741c0ac9760ff3c9ea096
+AUX qtwebengine-paxmark-mksnapshot.patch 1478 SHA256 540ab83071df14d5fc6881dcf6fc28a2daaa46584e9b0c3ad45b584c612f16af SHA512 3ad5312be5d0a1e08df9d5f25256678c12373d64a99f0d7fb0f96b711f719775328feb554144ac5cde22f8226a7b8d62bd07287270da613db09a1ed3c3303019 WHIRLPOOL d70127c7ef2e2262557b62aa0fd8709c90aed5e0143e43c8c53dd817378dd7accefe2dccdc9b90a740fa3d49f40a3438a4a1438f51995da86bdfba816aa319bb
+DIST qtwebengine-opensource-src-5.6.2.tar.xz 143752452 SHA256 2f0a1648e1a8b22bad0134f2b37d69d185074393c398c1a3c6a83b910ff39740 SHA512 c30a270bfb254a18d4b89af8ae28789912d6157cd58010b6838461c332c32c667c15b683d290fd14615b9f0be20aca9957bd8657c4abaa8d77c28278c58f7282 WHIRLPOOL 94e627c369cfa18a7c878f75007698839aa1cd1b10df4de8e42b2f393dcd2dedec33930c1fa41c50bfa39e63089d66c7c5d0861ea7093356b1cc2e93a605893e
+DIST qtwebengine-opensource-src-5.7.1.tar.xz 163782564 SHA256 2101883e3d632b50133a14e3bbdc1d4d649e405c9618f2eef1b72a7b821ccc2b SHA512 4f53e51141d8e3479d22062a80af0359d3d7ab6bc0d2d6530c6af2d3e5b625f7192cda2a9eb85c657864ec3b30bdc797d3bff57db4c71211e71bb4ee5ac9c71a WHIRLPOOL cebf17fc3e5c75406789c36e12dd32b0b6e6111dad6bf8f48bb07fd5d8ea76d78cd2cc5c3ad3021c8de9b91974afd7688ea384626d7e308dedd67664f1eec104
+DIST qtwebengine-opensource-src-5.9.2.tar.xz 217353592 SHA256 cab069e4589f806640bebe4077c70e5cd5ffeb146c6e8caca6c4454fc0c4a108 SHA512 9139533b8b384519cb49a909ed678344c94cdeeed40048d0cf8482506defaea0ea8f06396576fae9f51e4b073a04ee63d1b1b42b8cd82a6d4592bc0db983c715 WHIRLPOOL 5435e594dc304305b8ca2b9b61a06b0477d8539df818a5fc1faefd1b6a95f11cf385391c6e3ea8e41d8e75149d1bc5b37f7ca49f14203fe2213a4f0de55a547b
+EBUILD qtwebengine-5.6.2-r1.ebuild 2392 SHA256 a4dd285337fa54f85cc356b082406704264c9eb3587fbd7c3f1bd69d87705d3f SHA512 ba9f4eeec343eeb8df9d62b17e122d9f7b6f93802fbedbfbcc75297091e20a4bcd9f7b7579be98e1401d0b52f36090772bca5bb7f821e3864f5d65995b6c0c33 WHIRLPOOL b099b92df0d4a9812d95c9b5df66ca86bf4213891880d760fff502a833b745e59a4b1ed831366aeecad12f40e71914353982dbf458236f31048d66eb61b3daf8
+EBUILD qtwebengine-5.7.1-r2.ebuild 3106 SHA256 684a1ed6a02c0806e33c26a4b502903e47ca926084c6595c43aa5d19f4fbc524 SHA512 40e425233d99bf82a0595d4248597177516f4fccc7dcba1a607e4940c828b5e35de7c3b1a5ebc700d1d05e436ff885f445b1428dd6bc9f7d9395b088ada04b20 WHIRLPOOL 0e52df6f55e837f11fdf648399e632971754f2069855387a6aa9be3f42925d001555783a18c0b11b71075f1e9b0da1779c8d6f84aba8758b7a7153346e3da596
+EBUILD qtwebengine-5.9.2.ebuild 2942 SHA256 4dca83c2dec3a5495608c6df3b302a3ab2d4d3f072a04e7f51354bc189372d01 SHA512 e7878f3b7eba7afe6a2e77438f0b515b71d1e75b9a9a3e76643f91619fa65c246de14b95c6e9c74cbbafeba26b30696b250404f881275d896b23a8cd25a1a814 WHIRLPOOL bfa238a1006c2d847bd64eef6c8ad69711b3bbd4ac0443daaaca8871c4f99d68ce16150d2dc29817257c6e9a12355856238b4e3f1dd1f9d900b1ba81e0547bd4
+MISC ChangeLog 4551 SHA256 7c2f13dee42848bb8c70d31a5dae4ddef55addec4275fe5450242b9a78328bc2 SHA512 68d4182db4787200eb078de86bc25efa3fe42f9712a43a46a979667df5d3fa20f504510beb2a345d0e7a5dd50bcb6b604782c7a02827f4ec6b976069e193cdc2 WHIRLPOOL 5e23101939b342511733a3bbfe5ff5dcdea9e189a05d7ad5f8166df26dd010a852a09578cfc1e6974092853a4d49e9884d8af89cc709d84c774e8567aa66254f
+MISC metadata.xml 948 SHA256 4890ca8aaf167f11623fa965dfc11f031ea777a16ce92282caa9e83a2c2f1fa4 SHA512 999c61f79a077d37981fbac6420c6255ec6fea2397372182700d6c709fbd5029289173aaa910916ab9096109070afc47ad11f411cfd8d5bcaafb6c9bd6309a85 WHIRLPOOL 73f94a6f3ffc150b65a7fd3f68aaf82a536e25eeb3fde1be7f28fe601fea6674fe9b394bcd2136897fcb9cdca265280d4d085b86387714c7bd9daabde3f21e19
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.7.0-fix-system-ffmpeg.patch b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-fix-system-ffmpeg.patch
new file mode 100644
index 000000000000..71881e0f77c2
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-fix-system-ffmpeg.patch
@@ -0,0 +1,13 @@
+diff -Naur qtwebengine-opensource-src-5.7.0.orig/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h qtwebengine-opensource-src-5.7.0/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h
+--- qtwebengine-opensource-src-5.7.0.orig/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h 2016-11-23 13:01:20.929772871 -0800
++++ qtwebengine-opensource-src-5.7.0/src/3rdparty/chromium/media/ffmpeg/ffmpeg_common.h 2016-11-23 13:02:18.879462854 -0800
+@@ -24,7 +24,9 @@
+ // Disable deprecated features which result in spammy compile warnings. This
+ // list of defines must mirror those in the 'defines' section of BUILD.gn file &
+ // ffmpeg.gyp file or the headers below will generate different structures!
++#if !defined(USE_SYSTEM_FFMPEG)
+ #define FF_API_CONVERGENCE_DURATION 0
++#endif
+ // Upstream libavcodec/utils.c still uses the deprecated
+ // av_dup_packet(), causing deprecation warnings.
+ // The normal fix for such things is to disable the feature as below,
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.7.0-icu58.patch b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-icu58.patch
new file mode 100644
index 000000000000..ced5367c4826
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-icu58.patch
@@ -0,0 +1,51 @@
+diff -Naur qtwebengine-opensource-src-5.7.0.orig/src/3rdparty/chromium/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp qtwebengine-opensource-src-5.7.0/src/3rdparty/chromium/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
+--- qtwebengine-opensource-src-5.7.0.orig/src/3rdparty/chromium/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp 2016-11-15 17:07:38.680665385 -0800
++++ qtwebengine-opensource-src-5.7.0/src/3rdparty/chromium/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp 2016-11-15 17:12:17.564001354 -0800
+@@ -26,6 +26,9 @@
+ #include "wtf/StdLibExtras.h"
+ #include "wtf/text/CharacterNames.h"
+
++#include <unicode/uchar.h>
++#include <unicode/uvernum.h>
++
+ namespace blink {
+
+ unsigned numGraphemeClusters(const String& string)
+@@ -122,13 +125,18 @@
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0), 0, 0, 0, B(0, 0, 0, 0, 0, 0, 0, 0) }, // DEL
+ };
+
++#if U_ICU_VERSION_MAJOR_NUM >= 58
++#define BA_LB_COUNT (U_LB_COUNT - 3)
++#else
++#define BA_LB_COUNT U_LB_COUNT
++#endif
+ // Line breaking table for CSS word-break: break-all. This table differs from
+ // asciiLineBreakTable in:
+ // - Indices are Line Breaking Classes defined in UAX#14 Unicode Line Breaking
+ // Algorithm: http://unicode.org/reports/tr14/#DescriptionOfProperties
+ // - 1 indicates additional break opportunities. 0 indicates to fallback to
+ // normal line break, not "prohibit break."
+-static const unsigned char breakAllLineBreakClassTable[][U_LB_COUNT / 8 + 1] = {
++static const unsigned char breakAllLineBreakClassTable[][BA_LB_COUNT / 8 + 1] = {
+ // XX AI AL B2 BA BB BK CB CL CM CR EX GL HY ID IN IS LF NS NU OP PO PR QU SA SG SP SY ZW NL WJ H2 H3 JL JT JV CP CJ HL RI
+ { B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 0, 0) }, // XX
+ { B(0, 1, 1, 0, 1, 0, 0, 0), B(0, 0, 0, 0, 0, 1, 0, 0), B(0, 0, 0, 1, 1, 0, 1, 0), B(1, 0, 0, 0, 0, 0, 0, 0), B(0, 0, 0, 0, 0, 0, 1, 0) }, // AI
+@@ -178,7 +186,7 @@
+ #undef AL
+
+ static_assert(WTF_ARRAY_LENGTH(asciiLineBreakTable) == asciiLineBreakTableLastChar - asciiLineBreakTableFirstChar + 1, "asciiLineBreakTable should be consistent");
+-static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == U_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
++static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == BA_LB_COUNT, "breakAllLineBreakClassTable should be consistent");
+
+ static inline bool shouldBreakAfter(UChar lastCh, UChar ch, UChar nextCh)
+ {
+@@ -209,7 +217,7 @@
+
+ static inline bool shouldBreakAfterBreakAll(ULineBreak lastLineBreak, ULineBreak lineBreak)
+ {
+- if (lineBreak >= 0 && lineBreak < U_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < U_LB_COUNT) {
++ if (lineBreak >= 0 && lineBreak < BA_LB_COUNT && lastLineBreak >= 0 && lastLineBreak < BA_LB_COUNT) {
+ const unsigned char* tableRow = breakAllLineBreakClassTable[lastLineBreak];
+ return tableRow[lineBreak / 8] & (1 << (lineBreak % 8));
+ }
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.7.0-undef-madv_free.patch b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-undef-madv_free.patch
new file mode 100644
index 000000000000..193e71362065
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.7.0-undef-madv_free.patch
@@ -0,0 +1,33 @@
+From fa8cdb3a32c377b6290d0a92d2522186bcd48293 Mon Sep 17 00:00:00 2001
+From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
+Date: Tue, 9 Aug 2016 16:21:29 +0200
+Subject: Do not depend on Linux 4.5
+
+Avoid using MADV_FREE that was only recently added to Linux. It will fail when
+run on older Linux kernels.
+
+Change-Id: I9b0369fb31402f088b2327c12f70dd39f5e4c8c0
+Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
+---
+ chromium/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp
+index 12c9a7b..1639013 100644
+--- a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp
++++ b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/PageAllocator.cpp
+@@ -39,6 +39,11 @@
+
+ #include <sys/mman.h>
+
++#if OS(LINUX) && defined(MADV_FREE)
++// Added in Linux 4.5, but we don't want to depend on 4.5 at runtime
++#undef MADV_FREE
++#endif
++
+ #ifndef MADV_FREE
+ #define MADV_FREE MADV_DONTNEED
+ #endif
+--
+cgit v1.0-4-g1e03
+
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.7.1-fix-audio-detection.patch b/dev-qt/qtwebengine/files/qtwebengine-5.7.1-fix-audio-detection.patch
new file mode 100644
index 000000000000..597554e685cd
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.7.1-fix-audio-detection.patch
@@ -0,0 +1,23 @@
+# dev-qt/qtwebengine: Fix detecting audio backends.
+
+# The upstream change doesn't really work for us, so we'll make
+# it work with us.
+# Gentoo-Bug: https://bugs.gentoo.org/603498
+
+--- /src/core/config/linux.pri 2016-12-23 00:05:41.057955774 +0200
++++ /src/core/config/linux.pri 2016-12-23 00:09:39.000573909 +0200
+@@ -35,12 +35,12 @@
+ contains(QT_CONFIG, system-png): GYP_CONFIG += use_system_libpng=1
+ contains(QT_CONFIG, system-jpeg): GYP_CONFIG += use_system_libjpeg=1
+ contains(QT_CONFIG, system-harfbuzz): GYP_CONFIG += use_system_harfbuzz=1
+-contains(QT_CONFIG, pulseaudio) {
++use?(pulseaudio) {
+ GYP_CONFIG += use_pulseaudio=1
+ } else {
+ GYP_CONFIG += use_pulseaudio=0
+ }
+-contains(QT_CONFIG, alsa) {
++use?(alsa) {
+ GYP_CONFIG += use_alsa=1
+ } else {
+ GYP_CONFIG += use_alsa=0
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.7.1-gcc-7.patch b/dev-qt/qtwebengine/files/qtwebengine-5.7.1-gcc-7.patch
new file mode 100644
index 000000000000..a5c3072a4777
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.7.1-gcc-7.patch
@@ -0,0 +1,144 @@
+From 64fdd317d4127142ad9e967197a2df6ac81ef55f Mon Sep 17 00:00:00 2001
+From: Allan Sandfeld Jensen <allan.jensen@qt.io>
+Date: Wed, 29 Mar 2017 17:42:18 +0200
+Subject: [PATCH] Fix build with GCC 7.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+Fixes some ambiguities and outright wrong code GCC 7 doesn't accept but
+earlier compilers did.
+
+Task-number:QTBUG-59776
+Change-Id: I012f121842ac6cde49db0d571efc62aabe2115e3
+Reviewed-by: Michael Brüning <michael.bruning@qt.io>
+---
+ .../mojo/public/cpp/bindings/interface_ptr_info.h | 2 +-
+ .../third_party/WebKit/Source/wtf/LinkedHashSet.h | 2 ++
+ chromium/v8/src/objects-body-descriptors.h | 2 +-
+ chromium/v8/src/objects-inl.h | 19 +++++++++++++++++++
+ chromium/v8/src/objects.h | 16 ++--------------
+ 5 files changed, 25 insertions(+), 16 deletions(-)
+
+diff --git a/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_ptr_info.h b/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_ptr_info.h
+index 5bd29d5..c94a5ac 100644
+--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_ptr_info.h
++++ b/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_ptr_info.h
+@@ -34,7 +34,7 @@ class InterfacePtrInfo {
+
+ InterfacePtrInfo& operator=(InterfacePtrInfo&& other) {
+ if (this != &other) {
+- handle_ = other.handle_.Pass();
++ handle_ = std::move(other.handle_);
+ version_ = other.version_;
+ other.version_ = 0u;
+ }
+--
+2.7.4
+From 493441248c82d9f39d0947e3bbf4571736e1cf85 Mon Sep 17 00:00:00 2001
+From: Allan Sandfeld Jensen <allan.jensen@qt.io>
+Date: Wed, 29 Mar 2017 15:53:00 +0200
+Subject: [PATCH 1/1] Fix build with GCC 7.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+Fixes a few problems with using undeclared functions and ambigious
+code.
+
+Task-number: QTBUG-59776
+Change-Id: I59813919b4867d5dd3499a45baed004a1a1c1a3c
+Reviewed-by: Michael Brüning <michael.bruning@qt.io>
+---
+ chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h | 2 ++
+ .../third_party/pdfium/fpdfsdk/javascript/global.cpp | 8 ++++----
+ chromium/v8/src/objects-body-descriptors.h | 2 +-
+ chromium/v8/src/objects-inl.h | 18 ++++++++++++++++++
+ chromium/v8/src/objects.h | 16 ++--------------
+ 5 files changed, 27 insertions(+), 19 deletions(-)
+
+diff --git a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h
+index e85c72f..6f94cd6 100644
+--- a/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h
++++ b/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h
+@@ -542,6 +542,8 @@ inline LinkedHashSet<T, U, V, W>& LinkedHashSet<T, U, V, W>::operator=(LinkedHas
+ return *this;
+ }
+
++inline void swapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b);
++
+ template<typename T, typename U, typename V, typename W>
+ inline void LinkedHashSet<T, U, V, W>::swap(LinkedHashSet& other)
+ {
+diff --git a/src/3rdparty/chromium/v8/src/objects-body-descriptors.h b/src/3rdparty/chromium/v8/src/objects-body-descriptors.h
+index 91cb888..a1c3634 100644
+--- a/src/3rdparty/chromium/v8/src/objects-body-descriptors.h
++++ b/src/3rdparty/chromium/v8/src/objects-body-descriptors.h
+@@ -99,7 +99,7 @@ class FixedBodyDescriptor final : public BodyDescriptorBase {
+
+ template <typename StaticVisitor>
+ static inline void IterateBody(HeapObject* obj, int object_size) {
+- IterateBody(obj);
++ IterateBody<StaticVisitor>(obj);
+ }
+ };
+
+diff --git a/src/3rdparty/chromium/v8/src/objects-inl.h b/src/3rdparty/chromium/v8/src/objects-inl.h
+index 58441d3..4c486ea 100644
+--- a/src/3rdparty/chromium/v8/src/objects-inl.h
++++ b/src/3rdparty/chromium/v8/src/objects-inl.h
+@@ -7588,6 +7588,24 @@ bool GlobalDictionaryShape::IsDeleted(Dictionary* dict, int entry) {
+ }
+
+
++template <typename Derived, typename Shape, typename Key>
++inline uint32_t HashTable<Derived,Shape,Key>::Hash(Key key) {
++ if (Shape::UsesSeed) {
++ return Shape::SeededHash(key, GetHeap()->HashSeed());
++ } else {
++ return Shape::Hash(key);
++ }
++}
++
++template <typename Derived, typename Shape, typename Key>
++inline uint32_t HashTable<Derived,Shape,Key>::HashForObject(Key key, Object* object) {
++ if (Shape::UsesSeed) {
++ return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
++ } else {
++ return Shape::HashForObject(key, object);
++ }
++}
++
+ bool ObjectHashTableShape::IsMatch(Handle<Object> key, Object* other) {
+ return key->SameValue(other);
+ }
+diff --git a/src/3rdparty/chromium/v8/src/objects.h b/src/3rdparty/chromium/v8/src/objects.h
+index 7d774be..42da5fa 100644
+--- a/src/3rdparty/chromium/v8/src/objects.h
++++ b/src/3rdparty/chromium/v8/src/objects.h
+@@ -3194,21 +3194,9 @@ class HashTable : public HashTableBase {
+ typedef Shape ShapeT;
+
+ // Wrapper methods
+- inline uint32_t Hash(Key key) {
+- if (Shape::UsesSeed) {
+- return Shape::SeededHash(key, GetHeap()->HashSeed());
+- } else {
+- return Shape::Hash(key);
+- }
+- }
++ inline uint32_t Hash(Key key);
+
+- inline uint32_t HashForObject(Key key, Object* object) {
+- if (Shape::UsesSeed) {
+- return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
+- } else {
+- return Shape::HashForObject(key, object);
+- }
+- }
++ inline uint32_t HashForObject(Key key, Object* object);
+
+ // Returns a new HashTable object.
+ MUST_USE_RESULT static Handle<Derived> New(
+--
+2.7.4
diff --git a/dev-qt/qtwebengine/files/qtwebengine-5.9.0-paxmark-mksnapshot.patch b/dev-qt/qtwebengine/files/qtwebengine-5.9.0-paxmark-mksnapshot.patch
new file mode 100644
index 000000000000..5eb8ce12cff3
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-5.9.0-paxmark-mksnapshot.patch
@@ -0,0 +1,46 @@
+--- a/src/3rdparty/chromium/v8/src/v8.gyp
++++ b/src/3rdparty/chromium/v8/src/v8.gyp
+@@ -36,6 +36,7 @@
+ 'v8_experimental_extra_library_files%': [],
+ 'v8_enable_inspector%': 0,
+ 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
++ 'mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot_u<(EXECUTABLE_SUFFIX)',
+ 'mkpeephole_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkpeephole<(EXECUTABLE_SUFFIX)',
+ 'v8_os_page_size%': 0,
+ },
+@@ -2432,7 +2433,7 @@
+ ]
+ },
+ {
+- 'target_name': 'mksnapshot',
++ 'target_name': 'mksnapshot_u',
+ 'type': 'executable',
+ 'dependencies': [
+ 'v8_base',
+@@ -2485,5 +2486,26 @@
+ }],
+ ],
+ },
++ {
++ 'target_name': 'mksnapshot',
++ 'type': 'executable',
++ 'dependencies': ['mksnapshot_u'],
++ 'actions': [
++ {
++ 'action_name': 'paxmark_m_mksnapshot',
++ 'inputs': [
++ '<(mksnapshot_u_exec)',
++ ],
++ 'outputs': [
++ '<(mksnapshot_exec)',
++ ],
++ 'action': [
++ 'sh',
++ '-c',
++ 'cp <(mksnapshot_u_exec) <(mksnapshot_exec) && paxmark.sh m <(mksnapshot_exec)',
++ ],
++ },
++ ],
++ },
+ ],
+ }
diff --git a/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch b/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch
new file mode 100644
index 000000000000..c71cedc223eb
--- /dev/null
+++ b/dev-qt/qtwebengine/files/qtwebengine-paxmark-mksnapshot.patch
@@ -0,0 +1,46 @@
+--- qtwebengine-opensource-src-5.6.0-orig/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-03-04 01:48:36.000000000 +1100
++++ qtwebengine-opensource-src-5.6.0/src/3rdparty/chromium/v8/tools/gyp/v8.gyp 2016-05-01 19:15:44.052770543 +1000
+@@ -33,6 +33,7 @@
+ 'embed_script%': "",
+ 'v8_extra_library_files%': [],
+ 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
++ 'mksnapshot_u_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot_u<(EXECUTABLE_SUFFIX)',
+ 'remove_v8base_debug_symbols%': 0,
+ },
+ 'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
+@@ -1913,7 +1914,7 @@
+ ]
+ },
+ {
+- 'target_name': 'mksnapshot',
++ 'target_name': 'mksnapshot_u',
+ 'type': 'executable',
+ 'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'],
+ 'include_dirs+': [
+@@ -1936,5 +1937,26 @@
+ }],
+ ],
+ },
++ {
++ 'target_name': 'mksnapshot',
++ 'type': 'executable',
++ 'dependencies': ['mksnapshot_u'],
++ 'actions': [
++ {
++ 'action_name': 'paxmark_m_mksnapshot',
++ 'inputs': [
++ '<(mksnapshot_u_exec)',
++ ],
++ 'outputs': [
++ '<(mksnapshot_exec)',
++ ],
++ 'action': [
++ 'sh',
++ '-c',
++ 'cp <(mksnapshot_u_exec) <(mksnapshot_exec) && paxmark.sh m <(mksnapshot_exec)',
++ ],
++ },
++ ],
++ },
+ ],
+ }
diff --git a/dev-qt/qtwebengine/metadata.xml b/dev-qt/qtwebengine/metadata.xml
new file mode 100644
index 000000000000..d93362dc7bc2
--- /dev/null
+++ b/dev-qt/qtwebengine/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="geolocation">Enable physical position determination
+ via <pkg>dev-qt/qtpositioning</pkg></flag>
+ <flag name="pax_kernel">Enable building under a PaX enabled kernel</flag>
+ <flag name="system-ffmpeg">Use the system-wide <pkg>media-video/ffmpeg</pkg>
+ instead of bundled.</flag>
+ <flag name="system-icu">Use the system-wide <pkg>dev-libs/icu</pkg>
+ instead of bundled.</flag>
+ <flag name="widgets">Enable QtWidgets support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwebengine/qtwebengine-5.6.2-r1.ebuild b/dev-qt/qtwebengine/qtwebengine-5.6.2-r1.ebuild
new file mode 100644
index 000000000000..c2d123d0085a
--- /dev/null
+++ b/dev-qt/qtwebengine/qtwebengine-5.6.2-r1.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit pax-utils python-any-r1 qt5-build
+
+DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 x86"
+fi
+
+IUSE="bindist geolocation pax_kernel +system-ffmpeg +system-icu widgets"
+
+RDEPEND="
+ app-arch/snappy:=
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtwebchannel-${PV}[qml]
+ dev-libs/expat
+ dev-libs/jsoncpp:=
+ dev-libs/libevent:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ media-libs/alsa-lib
+ media-libs/flac
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ media-libs/libpng:0=
+ >=media-libs/libvpx-1.5:=[svc]
+ media-libs/libwebp:=
+ media-libs/mesa
+ media-libs/opus
+ media-libs/speex
+ net-libs/libsrtp:0=
+ sys-apps/dbus
+ sys-apps/pciutils
+ sys-libs/libcap
+ sys-libs/zlib[minizip]
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ geolocation? ( ~dev-qt/qtpositioning-${PV} )
+ system-ffmpeg? ( media-video/ffmpeg:0= )
+ system-icu? ( dev-libs/icu:= )
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/gperf
+ dev-util/ninja
+ dev-util/re2c
+ sys-devel/bison
+ pax_kernel? ( sys-apps/elfix )
+"
+
+src_prepare() {
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-paxmark-mksnapshot.patch" )
+
+ if use system-icu; then
+ # ensure build against system headers - bug #601264
+ rm -r src/3rdparty/chromium/third_party/icu/source || die
+ fi
+
+ qt_use_disable_mod geolocation positioning \
+ src/core/core_common.pri \
+ src/core/core_gyp_generator.pro
+
+ qt_use_disable_mod widgets widgets src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ export NINJA_PATH=/usr/bin/ninja
+
+ local myqmakeargs=(
+ $(usex bindist '' 'WEBENGINE_CONFIG+=use_proprietary_codecs')
+ $(usex system-ffmpeg 'WEBENGINE_CONFIG+=use_system_ffmpeg' '')
+ $(usex system-icu 'WEBENGINE_CONFIG+=use_system_icu' '')
+ )
+ qt5-build_src_configure
+}
+
+src_install() {
+ qt5-build_src_install
+
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
+}
diff --git a/dev-qt/qtwebengine/qtwebengine-5.7.1-r2.ebuild b/dev-qt/qtwebengine/qtwebengine-5.7.1-r2.ebuild
new file mode 100644
index 000000000000..78b06c03f6ec
--- /dev/null
+++ b/dev-qt/qtwebengine/qtwebengine-5.7.1-r2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit multiprocessing pax-utils python-any-r1 qt5-build
+
+DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 ~arm ~arm64 x86"
+fi
+
+IUSE="alsa bindist geolocation pax_kernel pulseaudio +system-ffmpeg +system-icu widgets"
+
+RDEPEND="
+ app-arch/snappy:=
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtwebchannel-${PV}[qml]
+ dev-libs/expat
+ dev-libs/libevent:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/protobuf:=
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ media-libs/libpng:0=
+ >=media-libs/libvpx-1.5:=[svc]
+ media-libs/libwebp:=
+ media-libs/mesa
+ media-libs/opus
+ net-libs/libsrtp:0=
+ sys-apps/dbus
+ sys-apps/pciutils
+ sys-libs/libcap
+ sys-libs/zlib[minizip]
+ virtual/jpeg:0
+ virtual/libudev
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ alsa? ( media-libs/alsa-lib )
+ geolocation? ( ~dev-qt/qtpositioning-${PV} )
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( media-video/ffmpeg:0= )
+ system-icu? ( dev-libs/icu:= )
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/gperf
+ dev-util/ninja
+ dev-util/re2c
+ sys-devel/bison
+ pax_kernel? ( sys-apps/elfix )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-5.7.1-fix-audio-detection.patch"
+ "${FILESDIR}/${PN}-5.7.0-fix-system-ffmpeg.patch"
+ "${FILESDIR}/${PN}-5.7.0-icu58.patch"
+ "${FILESDIR}/${PN}-5.7.0-undef-madv_free.patch"
+ "${FILESDIR}/${PN}-5.7.1-gcc-7.patch"
+)
+
+src_prepare() {
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-paxmark-mksnapshot.patch" )
+
+ if use system-icu; then
+ # ensure build against system headers - bug #601264
+ rm -r src/3rdparty/chromium/third_party/icu/source || die
+ fi
+
+ qt_use_disable_mod geolocation positioning \
+ src/core/core_common.pri \
+ src/core/core_gyp_generator.pro
+
+ qt_use_disable_mod widgets widgets src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ export NINJA_PATH=/usr/bin/ninja
+ export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
+
+ local myqmakeargs=(
+ $(usex alsa 'WEBENGINE_CONFIG+=use_alsa' '')
+ $(usex bindist '' 'WEBENGINE_CONFIG+=use_proprietary_codecs')
+ $(usex pulseaudio 'WEBENGINE_CONFIG+=use_pulseaudio' '')
+ $(usex system-ffmpeg 'WEBENGINE_CONFIG+=use_system_ffmpeg' '')
+ $(usex system-icu 'WEBENGINE_CONFIG+=use_system_icu' '')
+ )
+ qt5-build_src_configure
+}
+
+src_install() {
+ qt5-build_src_install
+
+ # bug 601472
+ if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
+ die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
+ fi
+
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
+}
diff --git a/dev-qt/qtwebengine/qtwebengine-5.9.2.ebuild b/dev-qt/qtwebengine/qtwebengine-5.9.2.ebuild
new file mode 100644
index 000000000000..52d738f401f9
--- /dev/null
+++ b/dev-qt/qtwebengine/qtwebengine-5.9.2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit multiprocessing pax-utils python-any-r1 qt5-build
+
+DESCRIPTION="Library for rendering dynamic web content in Qt5 C++ and QML applications"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+fi
+
+IUSE="alsa bindist geolocation pax_kernel pulseaudio +system-ffmpeg +system-icu widgets"
+
+RDEPEND="
+ app-arch/snappy:=
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtwebchannel-${PV}[qml]
+ dev-libs/expat
+ dev-libs/libevent:=
+ dev-libs/libxml2
+ dev-libs/libxslt
+ dev-libs/protobuf:=
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/harfbuzz:=
+ media-libs/libpng:0=
+ >=media-libs/libvpx-1.5:=[svc]
+ media-libs/libwebp:=
+ media-libs/mesa
+ media-libs/opus
+ net-libs/libsrtp:0=
+ sys-apps/dbus
+ sys-apps/pciutils
+ sys-libs/libcap
+ sys-libs/zlib[minizip]
+ virtual/jpeg:0
+ virtual/libudev
+ x11-libs/libdrm
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ alsa? ( media-libs/alsa-lib )
+ geolocation? ( ~dev-qt/qtpositioning-${PV} )
+ pulseaudio? ( media-sound/pulseaudio:= )
+ system-ffmpeg? ( media-video/ffmpeg:0= )
+ system-icu? ( dev-libs/icu:= )
+ widgets? ( ~dev-qt/qtwidgets-${PV} )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-util/gperf
+ dev-util/ninja
+ dev-util/re2c
+ sys-devel/bison
+ pax_kernel? ( sys-apps/elfix )
+"
+
+src_prepare() {
+ use pax_kernel && PATCHES+=( "${FILESDIR}/${PN}-5.9.0-paxmark-mksnapshot.patch" )
+
+ # bug 620444 - ensure local headers are used
+ find "${S}" -type f -name "*.pr[fio]" | xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |' || die
+
+ qt_use_disable_config alsa alsa src/core/config/linux.pri
+ qt_use_disable_config pulseaudio pulseaudio src/core/config/linux.pri
+
+ qt_use_disable_mod geolocation positioning \
+ mkspecs/features/configure.prf \
+ src/core/core_chromium.pri \
+ src/core/core_common.pri
+
+ qt_use_disable_mod widgets widgets src/src.pro
+
+ qt5-build_src_prepare
+}
+
+src_configure() {
+ export NINJA_PATH=/usr/bin/ninja
+ export NINJAFLAGS="${NINJAFLAGS:--j$(makeopts_jobs) -l$(makeopts_loadavg "${MAKEOPTS}" 0) -v}"
+
+ local myqmakeargs=(
+ $(usex bindist '' 'WEBENGINE_CONFIG+=use_proprietary_codecs')
+ $(usex system-ffmpeg 'WEBENGINE_CONFIG+=use_system_ffmpeg' '')
+ $(usex system-icu 'WEBENGINE_CONFIG+=use_system_icu' '')
+ )
+ qt5-build_src_configure
+}
+
+src_install() {
+ qt5-build_src_install
+
+ # bug 601472
+ if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebEngine.so ]]; then
+ die "${CATEGORY}/${PF} failed to build anything. Please report to https://bugs.gentoo.org/"
+ fi
+
+ pax-mark m "${D%/}${QT5_LIBEXECDIR}"/QtWebEngineProcess
+}
diff --git a/dev-qt/qtwebkit/Manifest b/dev-qt/qtwebkit/Manifest
new file mode 100644
index 000000000000..5556905d1926
--- /dev/null
+++ b/dev-qt/qtwebkit/Manifest
@@ -0,0 +1,24 @@
+AUX 4.10.4-gcc5.patch 1599 SHA256 f5a998dcf3b21ef15b281d86cd7245e4d0ceb885f0e18c0fb7b367f81d1c8a6f SHA512 76cdccc1f1cd07ae226599b5f0e03b4e3f347d11aa1bc025a0c2ac4d30842852666393dcf3a5302156fb6adee874d87e8f89d3a63a72cde3a7dff2328201a974 WHIRLPOOL 10df94f2e1d9bb322b8f605631aa577ca45c5b72b056e258211d5cc94a9b007f790044d9d04032e7fedf22c47e2db5b7365343ba3832cccca63208984a45cb34
+AUX 4.10.4-use-correct-icu-typedef.patch 1262 SHA256 356a316ef34902e1738803d6ad6e2c6f9265bca7dd67fd41d3912436e96c459e SHA512 73915919247a09796c5923f1524b1a003f196a9bcd8b19ef47e10196c59febcf4792cb3da02c93f881773a1b0d6bb041dd4c2dffc894dec9fb3a641032919558 WHIRLPOOL 34305ddc7734379aaf87dfeb6c666e222d15ba3b7feca7f421d65ed2677e66be8e7551d2bc9e1369fa7f97404528bf7d2a9438f6cfb8d318b9661d71fcb58b78
+AUX 4.8.2-javascriptcore-x32.patch 500 SHA256 16c68e343f4bb416b870ae46bcaf80e6c2bc7ab45f5dc66f10698e8a5baefa90 SHA512 4fa7e280de9364e9eb8df651075aa0a2dded58db0db44d008bad3f053146f539c82c9aa1312006cc85b8367850ec385d3e3f716d2d4b8f4f1d15cd4756957632 WHIRLPOOL bc3241264a78353b0235a7caeb099d49a5fe93677f7fe88316a24c14b35a7f3a0c19b834b3b78a3fcd14d8b265ff5021153147a40f6332b680ad2f70095afe80
+AUX qtwebkit-5.2.1-disable-gstreamer.patch 770 SHA256 ece0e5c2bc46e5cb5174a6cc946838a9666a77edb4415a75226c064a90c1df5e SHA512 56a7f24dd7bbd48a5d8db2e205cdca0f635cc84b62bab2bf22cf9cf42f0503033e86b2ec96d0286ffa36ba59d1dca64701c0652b80387aa9e7bef155e49de15e WHIRLPOOL 5b4c1464ef056ce06082db48c396bb24d878d71ec8fa71c33f04e912157267d4a55482fd8c1749883bfea3879fbdd3d61e5fb0fbc0015b61b4d8f8383fc991c4
+AUX qtwebkit-5.3.2-use-gstreamer010.patch 930 SHA256 cef69a22f8719f4854e2996395632c26a156cee5b63bf47ae445ded9aa945621 SHA512 a8a1d51713177e3085e07b9f0aa74123acaaea4415f86bd8a75d9f9f81ace4411eb8ddf7ef887c621a527f6e8023f955855aec972d568275e0da90733df04ea1 WHIRLPOOL 62a9182eefe56e00a6fcbab796df9c961649545fcc9d4ba42f7ee7aa87213c6f87960889a846048db798bf2be86b037908a8e91435018813fb23098b5d5ca9f2
+AUX qtwebkit-5.4.2-system-leveldb.patch 711 SHA256 791a952174e5b50b0fc2a0e7b12fd6829e88b3fb59b6d8ccefe469df272957e7 SHA512 d95d6e697d5e0b951465180d3f6bfa0ac16fc0f7a29504f773cf3bb28b1a7472f7bab83f379ea980851b6ed64a7d49cefcb27a503d37e5ce90110318628febcb WHIRLPOOL e979a7691faeeda737c916c183365619b875dd5fd872f1fcba16ff19549d0d6238c813cf01b0fa9cd649100422ed2de8987191d2343c062d46ee2276d7cd2407
+AUX qtwebkit-5.5.1-disable-jit.patch 460 SHA256 d4f64d992bdfde58d87bfb3fe131200bda55324ddbc9a7204d26f9df6dc14ec4 SHA512 d9af937475bed746a0e47698b432370488b644a5aeeb008eaa201f4d264fe9f52525345b47757eec08b2adc8dc46d15a044e6ff5e49420f897f1bb416ca06749 WHIRLPOOL 5515613b1fddd09a5b05200dea5b843d875b4bd1e9e42d139fba77e47db15ab7967e2d9c21cc0194dac2f63d01d91d10c5ec48f4201801e2e41eed65f11cd7ec
+AUX qtwebkit-5.6.2-icu-59.patch 4683 SHA256 45af86da2d8b0621b213668808aee4136022c5a16b8baae11367d98acd5838b2 SHA512 189b523c8ee6ae8b62b93e8a46319a2a656280a6aca476fc2bc04d8066f497a9fd3f18029659558bedf985ba7c500eb2d541c4140158e2410cc01db29612f356 WHIRLPOOL 838c887a0af099c6a22e4516a2aa24428c5266f2d0eb99e68ccf21aa4c0ce625cac2cd1d763ec6fcf6843fd7409fb79092643c4e7b2aedad7d2313590c9e47ef
+AUX qtwebkit-5.8.0-disable-gstreamer.patch 714 SHA256 9d07ef5ebb167ef877c95c38ce0080c39338f2dac5e7adf5cb7e94d901781b55 SHA512 7b47d5e549f8bc0113bdff596a191fff3f8c6deafd6ebc456e224c1657a07e0208c478fdd49b9790ef618371cb969ae8aaaf08f9c5f9eb10b5841817f0f8736d WHIRLPOOL e2073f06156d66b8bc5b57359ed173d61c9239383c0b0e5bdf928eb55b7747b4e7aa10721968bfce603c7adff8af46b02b4583a6ddb90fc0145607839e2f5624
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtwebkit-2.3.4.tar.gz 51648808 SHA256 c6cfa9d068f7eb024fee3f6c24f5b8b726997f669007587f35ed4a97d40097ca SHA512 f7aa3762f84b8ef6c75ceb40beaad750b5c09bb3f14964cda17b42f489ff2c876e35678b57404057e909948160450a144de67ad1337a42992dc5a1d4b796bec4 WHIRLPOOL 1d8e78a8d7f920b132ed79dbc6a6a71b784080d8aa4b9123f22797efa6062eb4f85236ab66f3232900a131049d7c78fc5fc333511b161dc72c30434cd7fef542
+DIST qtwebkit-opensource-src-5.6.2.tar.xz 35306252 SHA256 528a6b8b1c5095367b26e8ce4f3a46bb739e2e9913ff4dfc6ef58a04fcd73966 SHA512 d3f795463c957b4927d61280df831d08282bf6c9e624cf1db2709ab56ab218eb028192a4efaef21e0bdb28edd42de8ec08995f37fc828bde99000cf6919c33c3 WHIRLPOOL 9667f2f68bb832fdf3f5de14da641afd3b71a0c270e436257bc37ae86ed7d8d3434cdcada3b8818ab73ac6866bd4a69892ae682618d6d6a00cccccd287bda4bf
+DIST qtwebkit-opensource-src-5.7.1.tar.xz 35298736 SHA256 a46cf7c89339645f94a5777e8ae5baccf75c5fc87ab52c9dafc25da3327b5f03 SHA512 538928ada8fd25c01f0b78efac79e004904e6e4ec110108c492877e334acd5d9253653d3b207e535d1e08d092af2833a7566cebb2bf8b90069944634bf24f60a WHIRLPOOL d2dce72777a6babb1c35025ff6d882b7f48895dca4425b9e29b099e45282e8538548a653f0757998d6a619d706544fad0363199d8979ccca94762ba39b6516bd
+DIST qtwebkit-opensource-src-5.9.1.tar.xz 35300628 SHA256 28a560becd800a4229bfac317c2e5407cd3cc95308bc4c3ca90dba2577b052cf SHA512 79316ab746a230fdb290e28629d7cec5fca75119ba8868060742c682ab86490de9ffd8e517569aa7412f35fd709568dbb5f7d2d467bdb4461e192f8b05d6f1e5 WHIRLPOOL 85bb21fb4ed3895c8d78d86a0725d650179b6d2bfea418cf8a54b98d8dac91f98a1423c78058feed54349ebb25fc934ecd82122413f22338b6d49083e21d41b9
+EBUILD qtwebkit-4.10.4.ebuild 3494 SHA256 6f68f93b4a4d441c0deb88b33df77220ade03ea8ade629888c363929671bcc65 SHA512 b639e4913d72e7da97992da94545af42cb4428c45b3265f9274c4fa76f2e440afb9f84ad30a7bc537716ed946ae72b997cde9f691020c1dcde0238654c0af14d WHIRLPOOL b2fd77022b2319cc718be314f232972503761cc169d88683a5ab9824bc8ab4e574eff24fff51b65ddb814decdc110b0bdad27b87b3b9af9d2b232c15d0c8df96
+EBUILD qtwebkit-4.8.6-r1.ebuild 1918 SHA256 94d69bdf14527dfc23e52d772b511536b1f5b3a68afd00c9f4b8512d892223bf SHA512 20a5647a270a7f72263921c2ea9144500e1e4019155bb27f92df6b72733d27acd7c6a4c848669e68339bd34c2f40b9397a770920e934a9a53bba49de46559d1a WHIRLPOOL aafc7a1c84cbc0d76c2af19c8334524a61eb8caf3c2c04c0ca7b61ebed88965453acf02f876b339f5a8006f6bc997b17b88eeeaf770f2be6f12ee245d456fe76
+EBUILD qtwebkit-4.8.7.ebuild 1884 SHA256 431c77f8be50833918d9b617a3b5e092cebe376b24dcec12e0d4cf4ab19ccc6f SHA512 162070940a680a8f9b3e9f008dd5f640a8e634443621edf878bdb7bec2f9725f48696ebc054455e099d2374d1f226031e02b571f3d45713541750d5061caca68 WHIRLPOOL 2465e8663d5d5ea90fe02041fbab2338d2b21148f8a0c9f1bc764731165480b22bfde6b5d3af01ed6c9921f6d5c98b6e2cc3b0990aefc21b2263b652976ad9f2
+EBUILD qtwebkit-5.6.2.ebuild 3262 SHA256 b7d7fa7adccac1873228bcae368f73355144d837dba57d9608b7f76428952a78 SHA512 25d3a1554d8c9f77b881dfb0a9fd97d420b009483ec1752f2a737c2302ae91a8577d238b37214f38c8b01b396475f02aaf7e0283c79953ad44310a2d7f7b200d WHIRLPOOL 48c8457a9161f0f46dac20daf2fbe8a9a00056ff6f977a7fb1f82b3c751239ce1cff0a739b449a0c9eadc2ad90678780971c5ac864f0576da574c94ff0d3d897
+EBUILD qtwebkit-5.7.1.ebuild 3544 SHA256 ffd1cbe63831e12da3e4fc0f30aff8944006c272ed80b47dd389b823032bc439 SHA512 e4159313513e9c8f628eae43fe1f5a4412c84de66ce52cb20b3a7dd8e5d18195f50c25408995987c3d5e9635e937a27a13d9642722677f1a1f4a3190991aaac5 WHIRLPOOL 4ee6fa8274b16fdfce4bb7cb9ad52243ea618cee432d0f078c7cf3b0a8e6e46f20766d1b9a6d5cbbf2be642648472a0041e9d2226d937db2040d71d7329f5dec
+EBUILD qtwebkit-5.9.1.ebuild 3499 SHA256 0d7a22016ae106e8096977e41796d68ac133ed1eb8e66b7246a859613438e2eb SHA512 051bbaa3ef288492e6f25e868269462325b13849ed0ccd7b0c5fffe07d9ac012980726e4c361a5676b5ba485a0fdbd396896836cf6c0f88971fd0f046b9d2301 WHIRLPOOL bce03b838faffab69e7547a699910d9e2a2449c42bf27d9ced857675e43edfd7616df5c4ef11ac982042e0b1384a87b99e42fe5772abbdfcb6ddd84c2a8911c0
+MISC ChangeLog 8577 SHA256 8c3013ae304b6073455ac7b762e164a240d9b7beadaa40b3734fb6316eccc569 SHA512 cc728a9137e7b1b07c0f54ce98d154400f678f32ae1fb9a50720f53a0659d8a3d1a44fe5e866f9d994e82f5c89ebfc3ccac12191a3cc3cc8e872cde1a01c56d0 WHIRLPOOL 6860249a4bf13d829e900dca2b7950cde91b143c9009515257dfa5a83045a7579f366e9118e07603a94579a87a32fb7e498e2c242d75222f68a74a03150325a9
+MISC ChangeLog-2015 31426 SHA256 306bd008471585efee73ae42bc3cee0118c54051717991197cefabef002257a1 SHA512 164d4537f4e9d27ec37da6c1acbe3261620ee96b05b725a2a0f2a252f2f30915634f9001dd02f0ddbf69540f20aaa1f1edc541f9dcb6bad27b93c1343ab89da9 WHIRLPOOL 3a8d622bbd360ffcff4bdee63c120526d761594a7912c1d45b23b76c192e10a1e72d96eb6f5905f82ca0dcc609830fb4b22d9e99aec55c17d51d31eaa8aaf866
+MISC metadata.xml 1539 SHA256 3ed94c56aecca8b0e5b4011df5210c100074d2035e822a096430591135df0c31 SHA512 b36674bc6c25fced3ee0b2c2501eb542806e5de53c2410f61a7d7571091f75c3068042d7b8076654088ad1ec6e05c851007c5cdeb07f7f4af9c1fe9be477b556 WHIRLPOOL 3c4bac080279078c578a720fc0cc5f642a783bed54c950b5ccd4801240ef7328f0614158432a7b00fbf39489521ab92d3ef2a9ca80f466c3d4d192cc1ec6d33c
diff --git a/dev-qt/qtwebkit/files/4.10.4-gcc5.patch b/dev-qt/qtwebkit/files/4.10.4-gcc5.patch
new file mode 100644
index 000000000000..3a6b2a39c0e8
--- /dev/null
+++ b/dev-qt/qtwebkit/files/4.10.4-gcc5.patch
@@ -0,0 +1,35 @@
+From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
+Date: Fri, 6 Mar 2015 10:20:13 +0000 (+0100)
+Subject: Fix g++ 5.0 build
+X-Git-Tag: v5.4.2~12
+X-Git-Url: https://codereview.qt-project.org/gitweb?p=qt%2Fqtwebkit.git;a=commitdiff_plain;h=650c6ee8e76bb574d3a1bea09e2494992d8f070e;hp=f9966f351678351ee6b971d7b6b25a4987407e46
+
+Fix g++ 5.0 build
+
+A non-inline template needs to be explicitly instantiated if used
+outside the object where it is declared.
+
+Patch suggested by Khem Raj.
+
+Task-number: QTBUG-44829
+Change-Id: Ib0adbd9273bd1cef01e5863bc8aaa9c373022792
+Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
+---
+
+diff --git a/Source/JavaScriptCore/runtime/JSObject.cpp b/Source/JavaScriptCore/runtime/JSObject.cpp
+index 5637e20..bd55919 100644
+--- a/Source/JavaScriptCore/runtime/JSObject.cpp
++++ b/Source/JavaScriptCore/runtime/JSObject.cpp
+@@ -1909,6 +1909,11 @@ void JSObject::putByIndexBeyondVectorLengthWithoutAttributes(ExecState* exec, un
+ }
+ }
+
++// Used in JSArray.cpp so we must instantiate explicit
++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<Int32Shape>(ExecState* exec, unsigned i, JSValue value);
++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<DoubleShape>(ExecState* exec, unsigned i, JSValue value);
++template void JSObject::putByIndexBeyondVectorLengthWithoutAttributes<ContiguousShape>(ExecState* exec, unsigned i, JSValue value);
++
+ void JSObject::putByIndexBeyondVectorLengthWithArrayStorage(ExecState* exec, unsigned i, JSValue value, bool shouldThrow, ArrayStorage* storage)
+ {
+ VM& vm = exec->vm();
+
diff --git a/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch b/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch
new file mode 100644
index 000000000000..3e4816255fed
--- /dev/null
+++ b/dev-qt/qtwebkit/files/4.10.4-use-correct-icu-typedef.patch
@@ -0,0 +1,40 @@
+From 916f00008b602ae1b260106e7fb1274d2282f61f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jkt@flaska.net>
+Date: Tue, 3 Sep 2013 16:59:35 +0200
+Subject: [PATCH] ICU has defined UChar32 to be an int32_t since 2002
+
+This fixes the build failure of qtwebkit23 on my Gentoo machine.
+---
+ Source/WTF/wtf/unicode/qt4/UnicodeQt4.h | 2 +-
+ Source/WTF/wtf/unicode/wchar/UnicodeWchar.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h b/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h
+index a2d1ad4..392d2db 100644
+--- a/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h
++++ b/Source/WTF/wtf/unicode/qt4/UnicodeQt4.h
+@@ -69,7 +69,7 @@ typedef uint16_t UChar;
+ #endif
+
+ #if !USE(ICU_UNICODE)
+-typedef uint32_t UChar32;
++typedef int32_t UChar32;
+ #endif
+
+ namespace WTF {
+diff --git a/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h b/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h
+index 10c2026..db8944e 100644
+--- a/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h
++++ b/Source/WTF/wtf/unicode/wchar/UnicodeWchar.h
+@@ -31,7 +31,7 @@
+ #include <wtf/unicode/UnicodeMacrosFromICU.h>
+
+ typedef wchar_t UChar;
+-typedef uint32_t UChar32;
++typedef int32_t UChar32;
+
+ namespace WTF {
+ namespace Unicode {
+--
+1.7.1
+
diff --git a/dev-qt/qtwebkit/files/4.8.2-javascriptcore-x32.patch b/dev-qt/qtwebkit/files/4.8.2-javascriptcore-x32.patch
new file mode 100644
index 000000000000..16f52d9cb07e
--- /dev/null
+++ b/dev-qt/qtwebkit/files/4.8.2-javascriptcore-x32.patch
@@ -0,0 +1,11 @@
+--- src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h.orig 2012-07-17 15:06:26.692276108 +0000
++++ src/3rdparty/webkit/Source/JavaScriptCore/wtf/Platform.h 2012-07-17 15:06:54.480928701 +0000
+@@ -993,7 +993,7 @@
+ #endif
+
+ #if !defined(WTF_USE_JSVALUE64) && !defined(WTF_USE_JSVALUE32_64)
+-#if (CPU(X86_64) && (OS(UNIX) || OS(WINDOWS))) \
++#if (CPU(X86_64) && defined(__LP64__) && (OS(UNIX) || OS(WINDOWS))) \
+ || (CPU(IA64) && !CPU(IA64_32)) \
+ || CPU(ALPHA) \
+ || CPU(SPARC64) \
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.2.1-disable-gstreamer.patch b/dev-qt/qtwebkit/files/qtwebkit-5.2.1-disable-gstreamer.patch
new file mode 100644
index 000000000000..69550f290faa
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.2.1-disable-gstreamer.patch
@@ -0,0 +1,15 @@
+--- a/Tools/qmake/mkspecs/features/features.prf 2014-03-19 18:35:47.795676444 +0000
++++ b/Tools/qmake/mkspecs/features/features.prf 2014-03-19 18:36:38.602433220 +0000
+@@ -99,12 +99,6 @@
+
+ # HTML5 Media Support for builds with GStreamer
+ unix:!mac:!contains(QT_CONFIG, no-pkg-config) {
+- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
+- WEBKIT_CONFIG += video use_gstreamer
+- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
+- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
+- }
+- use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
+ }
+
+ !enable?(video):qtHaveModule(multimediawidgets) {
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.3.2-use-gstreamer010.patch b/dev-qt/qtwebkit/files/qtwebkit-5.3.2-use-gstreamer010.patch
new file mode 100644
index 000000000000..e44dc295a411
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.3.2-use-gstreamer010.patch
@@ -0,0 +1,18 @@
+--- a/Tools/qmake/mkspecs/features/features.prf 2014-09-27 11:09:50.010617142 +0100
++++ b/Tools/qmake/mkspecs/features/features.prf 2014-09-27 11:17:10.741678989 +0100
+@@ -96,14 +96,8 @@
+ use?(3d_graphics): WEBKIT_CONFIG += webgl
+
+ # HTML5 Media Support for builds with GStreamer
+- unix:!mac:!contains(QT_CONFIG, no-pkg-config) {
+- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
+- WEBKIT_CONFIG += video use_gstreamer
+- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
+- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
+- }
++ WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
+ use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
+- }
+
+ !enable?(video):qtHaveModule(multimediawidgets) {
+ WEBKIT_CONFIG += video use_qt_multimedia
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch b/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch
new file mode 100644
index 000000000000..265d5075f2fa
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.4.2-system-leveldb.patch
@@ -0,0 +1,25 @@
+Correct header location so system dev-libs/leveldb can be detected.
+
+--- a/Tools/qmake/config.tests/leveldb/leveldb.cpp
++++ b/Tools/qmake/config.tests/leveldb/leveldb.cpp
+@@ -19,7 +19,7 @@
+
+ #include <leveldb/db.h>
+ #include <leveldb/env.h>
+-#include <helpers/memenv/memenv.h>
++#include <leveldb/helpers/memenv.h>
+
+ int main(int, char**)
+ {
+
+--- a/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
++++ b/Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
+@@ -38,7 +38,7 @@
+ #include <leveldb/comparator.h>
+ #include <leveldb/db.h>
+ #include <leveldb/env.h>
+-#include <helpers/memenv/memenv.h>
++#include <leveldb/helpers/memenv.h>
+ #include <leveldb/slice.h>
+ #include <string>
+ #include <wtf/PassOwnPtr.h>
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.5.1-disable-jit.patch b/dev-qt/qtwebkit/files/qtwebkit-5.5.1-disable-jit.patch
new file mode 100644
index 000000000000..40e58f0d0dec
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.5.1-disable-jit.patch
@@ -0,0 +1,15 @@
+Allow disabling JIT for hardened.
+
+Author: Magnus Granberg <zorry@gentoo.org>
+Gentoo-bug: 562396
+
+--- a/Tools/qmake/mkspecs/features/features.pri
++++ b/Tools/qmake/mkspecs/features/features.pri
+@@ -70,6 +70,7 @@ FEATURE_DEFAULTS = \
+ ENABLE_INPUT_TYPE_WEEK=0 \
+ ENABLE_INSPECTOR=1 \
+ ENABLE_INSPECTOR_SERVER=1 \
++ ENABLE_JIT=0 \
+ ENABLE_JAVASCRIPT_DEBUGGER=1 \
+ ENABLE_LEGACY_CSS_VENDOR_PREFIXES=0 \
+ ENABLE_LEGACY_NOTIFICATIONS=1 \
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.6.2-icu-59.patch b/dev-qt/qtwebkit/files/qtwebkit-5.6.2-icu-59.patch
new file mode 100644
index 000000000000..2a2709b34ce9
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.6.2-icu-59.patch
@@ -0,0 +1,92 @@
+From bf172ae289a1348842005a9421797970f9b72060 Mon Sep 17 00:00:00 2001
+From: Konstantin Tokarev <annulen@yandex.ru>
+Date: Thu, 4 May 2017 15:12:37 +0300
+Subject: [PATCH] Fix compilation with ICU 59
+
+Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=171612
+
+Task-number: QTBUG-60532
+Change-Id: I6014feea213aa70ebe40b09d9d1a03fd1ed3c843
+Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
+---
+ Source/JavaScriptCore/API/JSStringRef.cpp | 6 +++---
+ Source/JavaScriptCore/runtime/DateConversion.cpp | 3 ++-
+ Source/WTF/wtf/TypeTraits.h | 3 +++
+ Source/WebKit2/Shared/API/c/WKString.cpp | 2 +-
+ 4 files changed, 9 insertions(+), 5 deletions(-)
+
+diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp
+index 812f3d413..77a3fd0f4 100644
+--- a/Source/JavaScriptCore/API/JSStringRef.cpp
++++ b/Source/JavaScriptCore/API/JSStringRef.cpp
+@@ -37,7 +37,7 @@ using namespace WTF::Unicode;
+ JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
+ {
+ initializeThreading();
+- return OpaqueJSString::create(chars, numChars).leakRef();
++ return OpaqueJSString::create(reinterpret_cast<const UChar*>(chars), numChars).leakRef();
+ }
+
+ JSStringRef JSStringCreateWithUTF8CString(const char* string)
+@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string)
+ JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars)
+ {
+ initializeThreading();
+- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
++ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast<const UChar*>(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
+ }
+
+ JSStringRef JSStringRetain(JSStringRef string)
+@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string)
+
+ const JSChar* JSStringGetCharactersPtr(JSStringRef string)
+ {
+- return string->characters();
++ return reinterpret_cast<const JSChar*>(string->characters());
+ }
+
+ size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
+diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp
+index 0b57f012d..05e27338b 100644
+--- a/Source/JavaScriptCore/runtime/DateConversion.cpp
++++ b/Source/JavaScriptCore/runtime/DateConversion.cpp
+@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as
+ #if OS(WINDOWS)
+ TIME_ZONE_INFORMATION timeZoneInformation;
+ GetTimeZoneInformation(&timeZoneInformation);
+- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
++ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
++ String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName));
+ #else
+ struct tm gtm = t;
+ char timeZoneName[70];
+diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h
+index 9df2c95cf..f5d6121fd 100644
+--- a/Source/WTF/wtf/TypeTraits.h
++++ b/Source/WTF/wtf/TypeTraits.h
+@@ -72,6 +72,9 @@ namespace WTF {
+ template<> struct IsInteger<unsigned long> { static const bool value = true; };
+ template<> struct IsInteger<long long> { static const bool value = true; };
+ template<> struct IsInteger<unsigned long long> { static const bool value = true; };
++#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT)
++ template<> struct IsInteger<char16_t> { static const bool value = true; };
++#endif
+ #if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED)
+ template<> struct IsInteger<wchar_t> { static const bool value = true; };
+ #endif
+diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
+index cbac67dd8..23400a64e 100644
+--- a/Source/WebKit2/Shared/API/c/WKString.cpp
++++ b/Source/WebKit2/Shared/API/c/WKString.cpp
+@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef)
+ size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength)
+ {
+ COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar);
+- return (toImpl(stringRef)->getCharacters(static_cast<UChar*>(buffer), bufferLength));
++ return (toImpl(stringRef)->getCharacters(reinterpret_cast<UChar*>(buffer), bufferLength));
+ }
+
+ size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef)
+--
+2.13.1
+
diff --git a/dev-qt/qtwebkit/files/qtwebkit-5.8.0-disable-gstreamer.patch b/dev-qt/qtwebkit/files/qtwebkit-5.8.0-disable-gstreamer.patch
new file mode 100644
index 000000000000..867e8dcb8ef9
--- /dev/null
+++ b/dev-qt/qtwebkit/files/qtwebkit-5.8.0-disable-gstreamer.patch
@@ -0,0 +1,15 @@
+--- a/Tools/qmake/mkspecs/features/features.prf
++++ b/Tools/qmake/mkspecs/features/features.prf
+@@ -101,12 +101,6 @@ defineTest(detectFeatures) {
+
+ # HTML5 Media Support for builds with GStreamer
+ unix:!mac:qtConfig(pkg-config) {
+- packagesExist("glib-2.0 gio-2.0 gstreamer-1.0 gstreamer-plugins-base-1.0") {
+- WEBKIT_CONFIG += video use_gstreamer
+- } else: packagesExist("glib-2.0 gio-2.0 \'gstreamer-0.10 >= 0.10.30\' \'gstreamer-plugins-base-0.10 >= 0.10.30\'") {
+- WEBKIT_CONFIG += video use_gstreamer use_gstreamer010
+- }
+- use?(gstreamer): WEBKIT_CONFIG += use_native_fullscreen_video
+ }
+
+ !enable?(video):qtHaveModule(multimediawidgets) {
diff --git a/dev-qt/qtwebkit/metadata.xml b/dev-qt/qtwebkit/metadata.xml
new file mode 100644
index 000000000000..885ad268a503
--- /dev/null
+++ b/dev-qt/qtwebkit/metadata.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by upstream)</flag>
+ <flag name="geolocation">Enable physical position determination via <pkg>dev-qt/qtpositioning</pkg></flag>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="gstreamer">Enable HTML5 audio/video support via <pkg>media-libs/gstreamer</pkg> using SLOT 1.0</flag>
+ <flag name="gstreamer010">Enable HTML5 audio/video support via <pkg>media-libs/gstreamer</pkg> using SLOT 0.10</flag>
+ <flag name="multimedia">Enable HTML5 audio/video support via <pkg>dev-qt/qtmultimedia</pkg></flag>
+ <flag name="orientation">Enable device orientation detection via <pkg>dev-qt/qtsensors</pkg></flag>
+ <flag name="printsupport">Enable printing via <pkg>dev-qt/qtprintsupport</pkg></flag>
+ <flag name="qml">Build QML/QtQuick bindings</flag>
+ <flag name="webchannel">Enable integration with <pkg>dev-qt/qtwebchannel</pkg></flag>
+ <flag name="webp">Add support for WebP image format</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild b/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild
new file mode 100644
index 000000000000..8a1810e3d7f1
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-4.10.4.ebuild
@@ -0,0 +1,125 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+inherit eutils multilib python-any-r1 qmake-utils toolchain-funcs multilib-minimal
+
+MY_PV=${PV/4.10/2.3}
+
+DESCRIPTION="The WebKit module for the Qt toolkit"
+HOMEPAGE="https://www.qt.io/ http://trac.webkit.org/wiki/QtWebKit"
+SRC_URI="mirror://kde/stable/${PN}-2.3/${MY_PV}/src/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="|| ( LGPL-2.1 GPL-3 )"
+SLOT="4"
+KEYWORDS="~amd64"
+IUSE="debug +gstreamer"
+
+RDEPEND="
+ >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}]
+ dev-libs/libxml2:2[${MULTILIB_USEDEP}]
+ dev-libs/libxslt[${MULTILIB_USEDEP}]
+ >=dev-qt/qtcore-4.8.6-r1:4[ssl,${MULTILIB_USEDEP}]
+ >=dev-qt/qtdeclarative-4.8.6-r1:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtgui-4.8.6-r1:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtopengl-4.8.6-r1:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtscript-4.8.6-r1:4[${MULTILIB_USEDEP}]
+ >=dev-qt/qtsql-4.8.6-r1:4[sqlite,${MULTILIB_USEDEP}]
+ >=media-libs/fontconfig-2.10.2-r1[${MULTILIB_USEDEP}]
+ media-libs/libpng:0=[${MULTILIB_USEDEP}]
+ >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
+ virtual/jpeg:0[${MULTILIB_USEDEP}]
+ virtual/libudev:=[${MULTILIB_USEDEP}]
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXrender[${MULTILIB_USEDEP}]
+ gstreamer? (
+ dev-libs/glib:2[${MULTILIB_USEDEP}]
+ media-libs/gstreamer:1.0[${MULTILIB_USEDEP}]
+ media-libs/gst-plugins-base:1.0[${MULTILIB_USEDEP}]
+ )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-lang/perl
+ dev-lang/ruby
+ dev-util/gperf
+ sys-devel/bison
+ sys-devel/flex
+ virtual/perl-Digest-MD5
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/pkgconfig[${MULTILIB_USEDEP}]
+"
+
+S=${WORKDIR}
+
+PATCHES=(
+ "${FILESDIR}/${PV}-gcc5.patch"
+ "${FILESDIR}/${PV}-use-correct-icu-typedef.patch"
+)
+
+src_prepare() {
+ # examples cause a sandbox violation (bug 458222)
+ sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die
+
+ # respect CXXFLAGS
+ sed -i -e '/QMAKE_CXXFLAGS_RELEASE.*=/d' \
+ Source/WTF/WTF.pro \
+ Source/JavaScriptCore/Target.pri || die
+
+ # apply patches
+ [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
+ epatch_user
+}
+
+multilib_src_compile() {
+ local -x \
+ QTDIR=${EPREFIX}/usr/$(get_libdir)/qt4 \
+ WEBKITOUTPUTDIR=${BUILD_DIR}
+
+ local myconf=(
+ "${S}"/Tools/Scripts/build-webkit
+ --qt
+ # tell the build system where to find the qmake binary for the current ABI
+ --qmake="$(qt4_get_bindir)"/qmake
+ --qmakearg="CONFIG+=nostrip DEFINES+=HAVE_QTTESTLIB=0"
+ --makeargs="${MAKEOPTS}"
+ --$(usex debug debug release)
+ --$(usex gstreamer video no-video)
+ # disable WebKit2 since it requires Qt5
+ --no-webkit2
+ # prevent automagic dependency on qt-mobility (bug 547350)
+ --no-geolocation
+ --no-device-orientation
+ --no-orientation-events
+ # copied from eqmake4
+ QMAKE_AR="'$(tc-getAR) cqs'"
+ QMAKE_CC="'$(tc-getCC)'"
+ QMAKE_CXX="'$(tc-getCXX)'"
+ QMAKE_LINK="'$(tc-getCXX)'"
+ QMAKE_LINK_C="'$(tc-getCC)'"
+ QMAKE_OBJCOPY="'$(tc-getOBJCOPY)'"
+ QMAKE_RANLIB=
+ QMAKE_STRIP=
+ QMAKE_CFLAGS="'${CFLAGS}'"
+ QMAKE_CFLAGS_RELEASE=
+ QMAKE_CFLAGS_DEBUG=
+ QMAKE_CXXFLAGS="'${CXXFLAGS}'"
+ QMAKE_CXXFLAGS_RELEASE=
+ QMAKE_CXXFLAGS_DEBUG=
+ QMAKE_LFLAGS="'${LDFLAGS}'"
+ QMAKE_LFLAGS_RELEASE=
+ QMAKE_LFLAGS_DEBUG=
+ )
+ echo "${myconf[@]}"
+ "${myconf[@]}" || die
+}
+
+multilib_src_install() {
+ emake INSTALL_ROOT="${D}" install -C $(usex debug Debug Release)
+
+ # move pkgconfig file to the correct location
+ mv "${ED}"/usr/$(get_libdir){/qt4/pkgconfig,} || die
+}
diff --git a/dev-qt/qtwebkit/qtwebkit-4.8.6-r1.ebuild b/dev-qt/qtwebkit/qtwebkit-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..eb73229ec7df
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-4.8.6-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The WebKit module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="arm ia64 ppc ppc64"
+else
+ KEYWORDS="amd64 arm ia64 ~mips ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="icu +jit"
+
+# libxml2[!icu?] is needed for bugs 407315 and 411091
+DEPEND="
+ >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,ssl,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/4.8.2-javascriptcore-x32.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/3rdparty/webkit/Source/JavaScriptCore
+ src/3rdparty/webkit/Source/WebCore
+ src/3rdparty/webkit/Source/WebKit/qt"
+
+QCONFIG_ADD="webkit"
+QCONFIG_DEFINE="QT_WEBKIT"
+
+src_prepare() {
+ # Remove -Werror from CXXFLAGS
+ sed -i -e '/QMAKE_CXXFLAGS\s*+=/ s:-Werror::g' \
+ src/3rdparty/webkit/Source/WebKit.pri || die
+
+ # Fix version number in generated pkgconfig file (bug 406443)
+ sed -i -e 's/^isEmpty(QT_BUILD_TREE)://' \
+ src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro || die
+
+ # Prevent automagic dependency on qt-mobility (bug 547350)
+ sed -i -e 's/contains(MOBILITY_CONFIG,\s*\w\+)/false/' \
+ src/3rdparty/webkit/Source/WebCore/features.pri || die
+
+ if use icu; then
+ sed -i -e '/CONFIG\s*+=\s*text_breaking_with_icu/ s:^#\s*::' \
+ src/3rdparty/webkit/Source/JavaScriptCore/JavaScriptCore.pri || die
+ fi
+
+ qt4-build-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -webkit
+ -system-sqlite
+ $(qt_use icu)
+ $(qt_use jit javascript-jit)
+ -DENABLE_VIDEO=0
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtwebkit/qtwebkit-4.8.7.ebuild b/dev-qt/qtwebkit/qtwebkit-4.8.7.ebuild
new file mode 100644
index 000000000000..9af397014440
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-4.8.7.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The WebKit module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ia64 ~mips ppc ppc64 x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE="icu +jit"
+
+# libxml2[!icu?] is needed for bugs 407315 and 411091
+DEPEND="
+ >=dev-db/sqlite-3.8.3:3[${MULTILIB_USEDEP}]
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,ssl,${MULTILIB_USEDEP}]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ ~dev-qt/qtxmlpatterns-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+ >=x11-libs/libX11-1.5.0-r1[${MULTILIB_USEDEP}]
+ >=x11-libs/libXrender-0.9.7-r1[${MULTILIB_USEDEP}]
+ icu? ( dev-libs/icu:=[${MULTILIB_USEDEP}] )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/4.8.2-javascriptcore-x32.patch"
+)
+
+QT4_TARGET_DIRECTORIES="
+ src/3rdparty/webkit/Source/JavaScriptCore
+ src/3rdparty/webkit/Source/WebCore
+ src/3rdparty/webkit/Source/WebKit/qt"
+
+QCONFIG_ADD="webkit"
+QCONFIG_DEFINE="QT_WEBKIT"
+
+src_prepare() {
+ # Remove -Werror from CXXFLAGS
+ sed -i -e '/QMAKE_CXXFLAGS\s*+=/ s:-Werror::g' \
+ src/3rdparty/webkit/Source/WebKit.pri || die
+
+ # Fix version number in generated pkgconfig file (bug 406443)
+ sed -i -e 's/^isEmpty(QT_BUILD_TREE)://' \
+ src/3rdparty/webkit/Source/WebKit/qt/QtWebKit.pro || die
+
+ # Prevent automagic dependency on qt-mobility (bug 547350)
+ sed -i -e 's/contains(MOBILITY_CONFIG,\s*\w\+)/false/' \
+ src/3rdparty/webkit/Source/WebCore/features.pri || die
+
+ if use icu; then
+ sed -i -e '/CONFIG\s*+=\s*text_breaking_with_icu/ s:^#\s*::' \
+ src/3rdparty/webkit/Source/JavaScriptCore/JavaScriptCore.pri || die
+ fi
+
+ qt4-build-multilib_src_prepare
+}
+
+multilib_src_configure() {
+ local myconf=(
+ -webkit
+ -system-sqlite
+ $(qt_use icu)
+ $(qt_use jit javascript-jit)
+ -DENABLE_VIDEO=0
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtwebkit/qtwebkit-5.6.2.ebuild b/dev-qt/qtwebkit/qtwebkit-5.6.2.ebuild
new file mode 100644
index 000000000000..a944be9499ba
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-5.6.2.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="WebKit rendering library for the Qt5 framework (deprecated)"
+SRC_URI="https://download.qt.io/community_releases/${PV%.*}/${PV}/${PN}-opensource-src-${PV}.tar.xz"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ppc64 x86"
+fi
+
+# TODO: qttestlib
+
+IUSE="geolocation gstreamer gstreamer010 +jit multimedia opengl orientation printsupport qml webchannel webp"
+REQUIRED_USE="?? ( gstreamer gstreamer010 multimedia )"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/icu:=
+ >=dev-libs/leveldb-1.18-r1
+ dev-libs/libxml2:2
+ dev-libs/libxslt
+ ~dev-qt/qtcore-${PV}[icu]
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtsql-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ media-libs/fontconfig:1.0
+ media-libs/libpng:0=
+ >=sys-libs/zlib-1.2.5
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXrender
+ geolocation? ( ~dev-qt/qtpositioning-${PV} )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ gstreamer010? (
+ dev-libs/glib:2
+ media-libs/gstreamer:0.10
+ media-libs/gst-plugins-base:0.10
+ )
+ multimedia? ( ~dev-qt/qtmultimedia-${PV}[widgets] )
+ opengl? ( ~dev-qt/qtopengl-${PV} )
+ orientation? ( ~dev-qt/qtsensors-${PV} )
+ printsupport? ( ~dev-qt/qtprintsupport-${PV} )
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+ webchannel? ( ~dev-qt/qtwebchannel-${PV} )
+ webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-lang/ruby
+ dev-util/gperf
+ sys-devel/bison
+ sys-devel/flex
+ virtual/rubygems
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-5.4.2-system-leveldb.patch"
+ "${FILESDIR}/${PN}-5.6.2-icu-59.patch" # bug 618644
+)
+
+src_prepare() {
+ # ensure bundled library cannot be used
+ rm -r Source/ThirdParty/leveldb || die
+
+ # bug 466216
+ sed -i -e '/CONFIG +=/s/rpath//' \
+ Source/WebKit/qt/declarative/{experimental/experimental,public}.pri \
+ Tools/qmake/mkspecs/features/{force_static_libs_as_shared,unix/default_post}.prf \
+ || die
+
+ qt_use_disable_mod geolocation positioning Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod multimedia multimediawidgets Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod orientation sensors Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod printsupport printsupport Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod qml quick Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod webchannel webchannel \
+ Source/WebKit2/Target.pri \
+ Source/WebKit2/WebKit2.pri
+
+ if use gstreamer010; then
+ PATCHES+=("${FILESDIR}/${PN}-5.3.2-use-gstreamer010.patch")
+ elif ! use gstreamer; then
+ PATCHES+=("${FILESDIR}/${PN}-5.2.1-disable-gstreamer.patch")
+ fi
+
+ # bug 562396
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.5.1-disable-jit.patch")
+
+ use opengl || sed -i -e '/contains(QT_CONFIG, opengl): WEBKIT_CONFIG += use_3d_graphics/d' \
+ Tools/qmake/mkspecs/features/features.prf || die
+ use webp || sed -i -e '/config_libwebp: WEBKIT_CONFIG += use_webp/d' \
+ Tools/qmake/mkspecs/features/features.prf || die
+
+ # bug 458222
+ sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebkit/qtwebkit-5.7.1.ebuild b/dev-qt/qtwebkit/qtwebkit-5.7.1.ebuild
new file mode 100644
index 000000000000..4407ad91b68c
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-5.7.1.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="WebKit rendering library for the Qt5 framework (deprecated)"
+SRC_URI="https://download.qt.io/community_releases/${PV%.*}/${PV}/${PN}-opensource-src-${PV}.tar.xz"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ppc64 x86"
+fi
+
+# TODO: qttestlib
+
+IUSE="geolocation gstreamer gstreamer010 +jit multimedia opengl orientation printsupport qml webchannel webp"
+REQUIRED_USE="?? ( gstreamer gstreamer010 multimedia )"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/icu:=
+ >=dev-libs/leveldb-1.18-r1
+ dev-libs/libxml2:2
+ dev-libs/libxslt
+ ~dev-qt/qtcore-${PV}[icu]
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtnetwork-${PV}
+ ~dev-qt/qtsql-${PV}
+ ~dev-qt/qtwidgets-${PV}
+ media-libs/fontconfig:1.0
+ media-libs/libpng:0=
+ >=sys-libs/zlib-1.2.5
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXrender
+ geolocation? ( ~dev-qt/qtpositioning-${PV} )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ gstreamer010? (
+ dev-libs/glib:2
+ media-libs/gstreamer:0.10
+ media-libs/gst-plugins-base:0.10
+ )
+ multimedia? ( ~dev-qt/qtmultimedia-${PV}[widgets] )
+ opengl? ( ~dev-qt/qtopengl-${PV} )
+ orientation? ( ~dev-qt/qtsensors-${PV} )
+ printsupport? ( ~dev-qt/qtprintsupport-${PV} )
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+ webchannel? ( ~dev-qt/qtwebchannel-${PV} )
+ webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-lang/ruby
+ dev-util/gperf
+ sys-devel/bison
+ sys-devel/flex
+ virtual/rubygems
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-5.4.2-system-leveldb.patch"
+ "${FILESDIR}/${PN}-5.6.2-icu-59.patch" # bug 618644
+)
+
+src_prepare() {
+ # ensure bundled library cannot be used
+ rm -r Source/ThirdParty/leveldb || die
+
+ # bug 466216
+ sed -i -e '/CONFIG +=/s/rpath//' \
+ Source/WebKit/qt/declarative/{experimental/experimental,public}.pri \
+ Tools/qmake/mkspecs/features/{force_static_libs_as_shared,unix/default_post}.prf \
+ || die
+
+ qt_use_disable_mod geolocation positioning Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod multimedia multimediawidgets Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod orientation sensors Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod printsupport printsupport Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod qml quick Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod webchannel webchannel \
+ Source/WebKit2/Target.pri \
+ Source/WebKit2/WebKit2.pri
+
+ if use gstreamer010; then
+ PATCHES+=("${FILESDIR}/${PN}-5.3.2-use-gstreamer010.patch")
+ elif ! use gstreamer; then
+ PATCHES+=("${FILESDIR}/${PN}-5.2.1-disable-gstreamer.patch")
+ fi
+
+ # bug 562396
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.5.1-disable-jit.patch")
+
+ use opengl || sed -i -e '/contains(QT_CONFIG, opengl): WEBKIT_CONFIG += use_3d_graphics/d' \
+ Tools/qmake/mkspecs/features/features.prf || die
+ use webp || sed -i -e '/config_libwebp: WEBKIT_CONFIG += use_webp/d' \
+ Tools/qmake/mkspecs/features/features.prf || die
+
+ # bug 458222
+ sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die
+
+ qt5-build_src_prepare
+}
+
+src_install() {
+ qt5-build_src_install
+
+ # bug 572056
+ if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebKit.so ]]; then
+ eerror "${CATEGORY}/${PF} could not build due to a broken ruby environment."
+ die 'Check "eselect ruby" and ensure you have a working ruby in your $PATH'
+ fi
+}
diff --git a/dev-qt/qtwebkit/qtwebkit-5.9.1.ebuild b/dev-qt/qtwebkit/qtwebkit-5.9.1.ebuild
new file mode 100644
index 000000000000..af4f3594111b
--- /dev/null
+++ b/dev-qt/qtwebkit/qtwebkit-5.9.1.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+QT_MIN_VER="5.9.1:5"
+inherit python-any-r1 qt5-build
+
+DESCRIPTION="WebKit rendering library for the Qt5 framework (deprecated)"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+fi
+
+# TODO: qttestlib
+
+IUSE="geolocation gstreamer gles2 +jit multimedia opengl orientation printsupport qml test webchannel webp"
+REQUIRED_USE="?? ( gstreamer multimedia )"
+
+RDEPEND="
+ dev-db/sqlite:3
+ dev-libs/icu:=
+ >=dev-libs/leveldb-1.18-r1
+ dev-libs/libxml2:2
+ dev-libs/libxslt
+ >=dev-qt/qtcore-${QT_MIN_VER}[icu]
+ >=dev-qt/qtgui-${QT_MIN_VER}
+ >=dev-qt/qtnetwork-${QT_MIN_VER}
+ >=dev-qt/qtsql-${QT_MIN_VER}
+ >=dev-qt/qtwidgets-${QT_MIN_VER}
+ media-libs/fontconfig:1.0
+ media-libs/libpng:0=
+ >=sys-libs/zlib-1.2.5
+ virtual/jpeg:0
+ virtual/opengl
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXrender
+ geolocation? ( >=dev-qt/qtpositioning-${QT_MIN_VER} )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-base:1.0
+ )
+ multimedia? ( >=dev-qt/qtmultimedia-${QT_MIN_VER}[widgets] )
+ opengl? (
+ >=dev-qt/qtgui-${QT_MIN_VER}[gles2=]
+ >=dev-qt/qtopengl-${QT_MIN_VER}
+ )
+ orientation? ( >=dev-qt/qtsensors-${QT_MIN_VER} )
+ printsupport? ( >=dev-qt/qtprintsupport-${QT_MIN_VER} )
+ qml? ( >=dev-qt/qtdeclarative-${QT_MIN_VER} )
+ webchannel? ( >=dev-qt/qtwebchannel-${QT_MIN_VER} )
+ webp? ( media-libs/libwebp:0= )
+"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ dev-lang/ruby
+ dev-util/gperf
+ sys-devel/bison
+ sys-devel/flex
+ virtual/rubygems
+ test? ( >=dev-qt/qttest-${QT_MIN_VER} )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-5.4.2-system-leveldb.patch"
+)
+
+src_prepare() {
+ # ensure bundled library cannot be used
+ rm -r Source/ThirdParty/leveldb || die
+
+ # force using system library
+ sed -i -e 's/qtConfig(system-jpeg)/true/' \
+ -e 's/qtConfig(system-png)/true/' \
+ Tools/qmake/mkspecs/features/features.prf || die
+
+ # bug 466216
+ sed -i -e '/CONFIG +=/s/rpath//' \
+ Source/WebKit/qt/declarative/{experimental/experimental,public}.pri \
+ Tools/qmake/mkspecs/features/{force_static_libs_as_shared,unix/default_post}.prf \
+ || die
+
+ qt_use_disable_config opengl opengl Tools/qmake/mkspecs/features/features.prf
+
+ qt_use_disable_mod geolocation positioning Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod multimedia multimediawidgets Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod orientation sensors Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod printsupport printsupport Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod qml quick Tools/qmake/mkspecs/features/features.prf
+ qt_use_disable_mod webchannel webchannel \
+ Source/WebKit2/Target.pri \
+ Source/WebKit2/WebKit2.pri
+
+ if ! use gstreamer; then
+ PATCHES+=("${FILESDIR}/${PN}-5.8.0-disable-gstreamer.patch")
+ fi
+
+ # bug 562396
+ use jit || PATCHES+=("${FILESDIR}/${PN}-5.5.1-disable-jit.patch")
+
+ use webp || sed -i -e '/config_libwebp: WEBKIT_CONFIG += use_webp/d' \
+ Tools/qmake/mkspecs/features/features.prf || die
+
+ # bug 458222
+ sed -i -e '/SUBDIRS += examples/d' Source/QtWebKit.pro || die
+
+ qt5-build_src_prepare
+}
+
+src_install() {
+ qt5-build_src_install
+
+ # bug 572056
+ if [[ ! -f ${D%/}${QT5_LIBDIR}/libQt5WebKit.so ]]; then
+ eerror "${CATEGORY}/${PF} could not build due to a broken ruby environment."
+ die 'Check "eselect ruby" and ensure you have a working ruby in your $PATH'
+ fi
+}
diff --git a/dev-qt/qtwebsockets/Manifest b/dev-qt/qtwebsockets/Manifest
new file mode 100644
index 000000000000..fd061aef2500
--- /dev/null
+++ b/dev-qt/qtwebsockets/Manifest
@@ -0,0 +1,9 @@
+DIST qtwebsockets-opensource-src-5.6.2.tar.xz 171004 SHA256 3cd9d4bbff8e6be5e252f00fc9ecb9ac2d8a193020288c7d1e82583daeb5ba35 SHA512 6b4adc5a2ba3403b6a733b84bb9bb7a696db50c264b26841f67b6cc20bff44bf9743d3fd2d95f94b3e68127be6f411c3398ed7e910480658c3065549302b1958 WHIRLPOOL cb26a843312bffc75cbf1f7742e96ba78ab1363970e692e78daedd165a525dc96d1ee1d898f762c7bb5d1bccb3c09011d8f1d569ef4a7255e0f18fd0649d71d5
+DIST qtwebsockets-opensource-src-5.7.1.tar.xz 193204 SHA256 5c2a75b68e7f2e98530659b33bb08edee83013832dbf99cc5b40afc8a90652d1 SHA512 3cca317d71513a0b11d5b46d6caee44d77a7f65eff09dbd6c180ad682a0271924e05efc28e6d31c9e982b6ab0b3fe1370606eea372e2fefd4525237496d2c7c9 WHIRLPOOL 036bbe99c69e4ec71198b2691583c240f3255c27408413e0962dea6addd70a1f1a4d132eda05e7ec3c9350c796137c764fc7b5742d0a0817c63be2dde7ffb8b7
+DIST qtwebsockets-opensource-src-5.9.2.tar.xz 199312 SHA256 afddc1bd915ea47ccbec968a7af02e2a5405c717830e4671924fe35b55e81674 SHA512 9330d6806251bc77d4c2a497a31b1b0e42a1e6bfe3ea7c00cee123052e9e1f9080e33cf4dfcd6ee6e4732c62f41257a77ec25ad607528f4e8ebe61ccaee3e159 WHIRLPOOL 64a2ff34b6798a7d64c2f12d5925a18cf9c95079c931060a3d906fc33ce9bd7efa208fffdfba9f3399c8198df51ac303412811acca90a74ea9231c1251f89598
+EBUILD qtwebsockets-5.6.2.ebuild 522 SHA256 6a50c6a81b717b9deae4ce799f32d91aa3b144d10f758886b711959f37d0bddc SHA512 65b1f5aac597faf949a69d0b2fbcc3acaf291ea0a9d8278438de5dc2dfe78ef85b949d5a6764504a4ee39790a90ee147144f620bd2d5fe765c130063a2eacc1c WHIRLPOOL 9204fe5649a0bcd0eb1e42fb713e4aae8244265d340e63463cf73c1516dcf6b02f072dd2bdb5e3d63e6626b6da8a833514a50004b52c15a145157df766d5a9d4
+EBUILD qtwebsockets-5.7.1.ebuild 530 SHA256 442b69888ba1800d5e46f9fb384ecd7ac1925ab1ce5d61ec6a351c7fe38ba83c SHA512 47d050f3ef32e91e9bf87330d2bb7b752d39579d4a586a56ed66f51bd648e11c74d015e75159dc027dda1f4792d9db6800b44bc02e1bbc7bfcfdc4141d6fdf2d WHIRLPOOL d93f602180cb10c4eebd32c5bbd49ec483a4e4e0319e570e1ba0a937e69f95aa02edb3d74004b93dd191bc6a6e62b92fe3677481bf08db78f067ad93ce77ea03
+EBUILD qtwebsockets-5.9.2.ebuild 534 SHA256 82a4ca08b5ea9bdd74cffe78c75b2f7595a645e68e85761784cb4670ace9469b SHA512 103cf47730e37e0351e97822e387262e3deca1367ef0b1f4955810bbdd71f54a801704bee58f22a549ed90221ce2f7ba961589298fcb9c0de68139a4cb9de59b WHIRLPOOL 6715eb94d47a658109a863944210f404e1888ed072b34f9d1206e2576143203e85fec5bcdc68a74c59113894870f6826b42165a0291f2dc688ac57053b8dea60
+MISC ChangeLog 6130 SHA256 9cd4ad52b986fc68e53ff77c999542fa8f98fe9df6677a22432368c548476e09 SHA512 f587d0dfda5f515609a619b21230c789849d632e4b3677cc5c23eb73035fe95f3f62e5a16dde2fc064cd6bdc8b199458aa73e6b6135e8a603cca02178e11b1fa WHIRLPOOL 50838d70ce2439f0f2b4e4f7253df579bb586566c348e2236be3dde716bac5e26bcbb008be689a6c19871c32f357cfa20341a16764bb77f0ed95fb31e24ee604
+MISC ChangeLog-2015 1888 SHA256 b067019c5acc903d2d9146c938600b272ec184f34a557ffb2a66dcb6b127ac14 SHA512 6371d43e51e96137226e6c023b8c12b28274d5a0efd2a08002057bcb52aaa05f4ce2eae7c82c83f3a0605db1ffbd8c4ce4d51574a647ba4338fac8fcb4149401 WHIRLPOOL 0809c595aaab5c29fa1ab697134226d6b608273d361e4e5840d40745aca5c656889635d0120c2a1800c4c50b9fac000bcdb5a0ba7fafa8dc7419263f09917bfa
+MISC metadata.xml 541 SHA256 fc6a95efc02e6bb41a461d3451763fae06de0cdf44ae915d4798c85e8b8f5494 SHA512 99744f9c24fdd46617704ad0c0b8bd5fc694a1c8e6d668044edab244e4edf8f2fa73b769a7a789c539848e80e39ca3e38c88284b0ff1e3faf52450082d0c7d6b WHIRLPOOL e5466f33d942726740bbb68ad315e0f68e8910668ff2b01c9f3c943cda28eec4e7e92cd7dc3cde323347c251e59a1db9d84ef066746a53d5face60e9188abef5
diff --git a/dev-qt/qtwebsockets/metadata.xml b/dev-qt/qtwebsockets/metadata.xml
new file mode 100644
index 000000000000..c33b152da0be
--- /dev/null
+++ b/dev-qt/qtwebsockets/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="qml">Build QML bindings</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwebsockets/qtwebsockets-5.6.2.ebuild b/dev-qt/qtwebsockets/qtwebsockets-5.6.2.ebuild
new file mode 100644
index 000000000000..8d0adecf0808
--- /dev/null
+++ b/dev-qt/qtwebsockets/qtwebsockets-5.6.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Implementation of the WebSocket protocol for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm hppa ppc64 x86"
+fi
+
+IUSE="qml +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl=]
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebsockets/qtwebsockets-5.7.1.ebuild b/dev-qt/qtwebsockets/qtwebsockets-5.7.1.ebuild
new file mode 100644
index 000000000000..eeb4dca9e31f
--- /dev/null
+++ b/dev-qt/qtwebsockets/qtwebsockets-5.7.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Implementation of the WebSocket protocol for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc64 x86"
+fi
+
+IUSE="qml +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl=]
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebsockets/qtwebsockets-5.9.2.ebuild b/dev-qt/qtwebsockets/qtwebsockets-5.9.2.ebuild
new file mode 100644
index 000000000000..edf0d08a8c4f
--- /dev/null
+++ b/dev-qt/qtwebsockets/qtwebsockets-5.9.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Implementation of the WebSocket protocol for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
+fi
+
+IUSE="qml +ssl"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}[ssl=]
+ qml? ( ~dev-qt/qtdeclarative-${PV} )
+
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ qt_use_disable_mod qml quick src/src.pro
+
+ qt5-build_src_prepare
+}
diff --git a/dev-qt/qtwebview/Manifest b/dev-qt/qtwebview/Manifest
new file mode 100644
index 000000000000..6ba181c3aa99
--- /dev/null
+++ b/dev-qt/qtwebview/Manifest
@@ -0,0 +1,5 @@
+DIST qtwebview-opensource-src-5.7.1.tar.xz 107388 SHA256 b3bcf9693e0205263f5d227f2204cf12c3a3d1e200b3114723511ee3bdf2159f SHA512 a0ed2c203e3638b3fa1e8fc051bc8dec51ca32b16da684fbf73c6f342e579c11a382c799797c593abb35df438699124fa169d1463affa1a2d0b55af57f05a011 WHIRLPOOL 6fa80d034344b3915ad32c323f36be27cea96f149b63fb785f4ab68349784c81ddd51d0796ef64d0b2b35da9cb5c5419a86fe3736e99051eb4cdb0092148e18f
+DIST qtwebview-opensource-src-5.9.2.tar.xz 108060 SHA256 fccaec79c73c62010f90bdd1a85b31d5caa63e0a1a28983bb74f6127afe1b8b1 SHA512 2b141977fc5219321715aa66042eea7c4a9ce913fe50e9d8e84f62ebf0316aa13c5b2f1a4349c3ad8a47850930e5c1dd5f56e1c3dada97730afe65d69d1efbfb WHIRLPOOL 6309bbc8f96574cd92cc4fad0ee5e782a31a6c05bb9b4d400c5514fd638c48e07eeed9b34edc9999d85468f9a560e67570965d25db2fbdf7bfa87af6dec4b4f4
+EBUILD qtwebview-5.7.1.ebuild 435 SHA256 ea11a452a577b1f097ce6184a6278a1cb44bdab3ea2b1bc5924fcb488958d26f SHA512 b617e25fc5e34d3a2e78db3c81ab89e303392b54dd2d7604a35a8ecbb37ebafc8d1ad15ba51292fcf3ebda8b2f038d657c0e579012529569dc5bc33317f963a3 WHIRLPOOL 52a916070f511efe5c6a87bfac631c3d59c1cd578990f7eaec1eff5df62ec07da117944130a3a2173fa846cb3df9e5f8a0c365d5669c322faf6470308c4643d2
+EBUILD qtwebview-5.9.2.ebuild 434 SHA256 ee52213864241be84810a0b59c97014b3281741c925eab7f8a4992d5987d6fe1 SHA512 e7653020d0fa86cecfacf8ef867dcf6c6b70fcfb9b5b94437874cf98297d379f8437d7b981e622ad6f8ad26b7eb8ae7958b4890703238f884fbe6386e1d15234 WHIRLPOOL 5e228026e708f3606cd326fa879c9a327df5b845a689ca666e4bf02566e53aa4bfd7df5d610c2613dd4cf1a1a72258b3d129a6bd76714905b679b2aec7acd4a6
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtwebview/metadata.xml b/dev-qt/qtwebview/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtwebview/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwebview/qtwebview-5.7.1.ebuild b/dev-qt/qtwebview/qtwebview-5.7.1.ebuild
new file mode 100644
index 000000000000..234ec083fbb1
--- /dev/null
+++ b/dev-qt/qtwebview/qtwebview-5.7.1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Module for displaying web content in a QML application using the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwebengine-${PV}
+
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtwebview/qtwebview-5.9.2.ebuild b/dev-qt/qtwebview/qtwebview-5.9.2.ebuild
new file mode 100644
index 000000000000..95f5a9dc76be
--- /dev/null
+++ b/dev-qt/qtwebview/qtwebview-5.9.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Module for displaying web content in a QML application using the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtdeclarative-${PV}
+ ~dev-qt/qtgui-${PV}
+ ~dev-qt/qtwebengine-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtwidgets/Manifest b/dev-qt/qtwidgets/Manifest
new file mode 100644
index 000000000000..37ef56cd0363
--- /dev/null
+++ b/dev-qt/qtwidgets/Manifest
@@ -0,0 +1,9 @@
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtwidgets-5.6.2.ebuild 873 SHA256 a541f0b344222a1038e4dd6e74bf04b9dd93e40d9d1edf809fb59b4ffbb228b5 SHA512 cdd478f84f6d3437750d550d4ad3e1e83e73638ccc1c015a9f63948f89fdba980871dfed4b8db0548fbc7e6657229c809f7827b8f655f860472c52b683cfdeb3 WHIRLPOOL 1884af0f59d2a7956f0a664af5a25956ff8d901b5e020fe7653fd9ce30e42c674690b9395b31980a33835f60fa020570957d7fe73eef3676675122bf14d05256
+EBUILD qtwidgets-5.7.1.ebuild 834 SHA256 5ad48278bc6648cd85ff6a7d23de4de8d4694654cf9f9634d08062c4c3612831 SHA512 29890730308f8bf264098bfb70fabd6d4212290b9090ffede33bd6a4baa3eb9f3a71178850f1355ff6c12a90c7b41793aca224b7b95671fec3142c81e4667832 WHIRLPOOL 43ff9d31213829fc75e764ffc41a92ee0dc7998cd69f5f8d05a09dbc3c9427f71519055f2c6f9e39cdeaf52308a9f82396c1b76f21adda29740fa37143e1dbc2
+EBUILD qtwidgets-5.9.2.ebuild 953 SHA256 f2157b1b437e77159f292d03a60b345d77fb164a2aa9d31b4c7ee857b54a4ec1 SHA512 a962a1de2c029e9cdf6d960e1c0e0b43705ef262ca5c6558b6a3290655b89045905d0019e3629cb5abd2e21cf2b97e506d0f53f349ab5fb6536948675d90d76a WHIRLPOOL 6a6c2af353f3cb22477ffd5293d565c6461b486be97ae80c0453c62beb17a95942a5d1460dc09d9a2a6751be2c6e5876f95319e126f9f73121530ac9dbb1f526
+MISC ChangeLog 7180 SHA256 6f1424945b5ec4a787469c6ca502b49059573c70cf997010c9cbba4477d413d2 SHA512 ea8bf329c9faaf113d50814554b61556c4d0a9c7dda443698ebc058c6bde8f94569fc8ec904cbc286571ab337625eaf57808ad982fa9b4f11cb31b58ff19a7e2 WHIRLPOOL 599da33ec28ed06dd9c48f0dd6056a6385cbb5707d3ecb5ef332208ede11bb9f2a258ff84f958b5feb44cd3c2f3c692a7ed86595b8a4e5f5fa2a78ba64c6c94c
+MISC ChangeLog-2015 2041 SHA256 b54b9c3395759d344d133797b698a20b719cd3f5cc6d68b571bb105ea1473aff SHA512 7d4a16e8871728f2ed4e32b9ec4020f10a0ebc6c70b098bb05905acc1aff774ddefe5f3c63f4a8f8bfe1b65ccaace4533c33b7e4bdadff2920477f487af8accd WHIRLPOOL a9d530e97e5e593050711e1166ecb1f361471089a35621f10067b77db97bd1cd9be5aed77f8537e2a67ff2f91cc4e8939cf8fdda6e17941f890eb265cc822dd7
+MISC metadata.xml 666 SHA256 02491a5478b26775d989504f53181de43852a9e63db7d4e606d99037baa39503 SHA512 3def57de2b43c03e582f246e7757b470553e139c13d6456f05786ad106ac6c71fb9c2f75d5a3913ea850613c8c3328c0ee1e7355138939184fd980d338745b68 WHIRLPOOL 46f82656ae59d7a5d253cfda3a64d8b67b46edea0bc9064ba33c5664ab5123839604216577286a9bc923e18bd01994fe9ab47b66419aaa0582645cd7580478eb
diff --git a/dev-qt/qtwidgets/metadata.xml b/dev-qt/qtwidgets/metadata.xml
new file mode 100644
index 000000000000..afb05fc28403
--- /dev/null
+++ b/dev-qt/qtwidgets/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <use>
+ <flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
+ <flag name="gtkstyle">Build a Qt style called GTK+ that mimics the active
+ GTK+ theme</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtwidgets/qtwidgets-5.6.2.ebuild b/dev-qt/qtwidgets/qtwidgets-5.6.2.ebuild
new file mode 100644
index 000000000000..afe6ca1a7bad
--- /dev/null
+++ b/dev-qt/qtwidgets/qtwidgets-5.6.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Set of components for creating classic desktop-style UIs for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+# keep IUSE defaults in sync with qtgui
+IUSE="gles2 gtkstyle +png +xcb"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=,gtkstyle=,png=,xcb?]
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/uic
+ src/widgets
+)
+
+QT5_GENTOO_CONFIG=(
+ !:no-widgets:
+)
+
+src_configure() {
+ local myconf=(
+ $(qt_use gtkstyle)
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use png libpng system)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb -xrender' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtwidgets/qtwidgets-5.7.1.ebuild b/dev-qt/qtwidgets/qtwidgets-5.7.1.ebuild
new file mode 100644
index 000000000000..2a47ae557e57
--- /dev/null
+++ b/dev-qt/qtwidgets/qtwidgets-5.7.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Set of components for creating classic desktop-style UIs for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+# keep IUSE defaults in sync with qtgui
+IUSE="gles2 +png +xcb"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=,png=,xcb?]
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/uic
+ src/widgets
+)
+
+QT5_GENTOO_CONFIG=(
+ !:no-widgets:
+)
+
+src_configure() {
+ local myconf=(
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use png libpng system)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb -xrender' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtwidgets/qtwidgets-5.9.2.ebuild b/dev-qt/qtwidgets/qtwidgets-5.9.2.ebuild
new file mode 100644
index 000000000000..ed7f16fb8999
--- /dev/null
+++ b/dev-qt/qtwidgets/qtwidgets-5.9.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Set of components for creating classic desktop-style UIs for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+# keep IUSE defaults in sync with qtgui
+IUSE="gles2 gtk +png +xcb"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[gles2=,png=,xcb?]
+ gtk? (
+ x11-libs/gtk+:3
+ x11-libs/libX11
+ x11-libs/pango
+ )
+"
+RDEPEND="${DEPEND}"
+
+QT5_TARGET_SUBDIRS=(
+ src/tools/uic
+ src/widgets
+ src/plugins/platformthemes
+)
+
+QT5_GENTOO_CONFIG=(
+ gtk:gtk3:
+ !:no-widgets:
+)
+
+src_configure() {
+ local myconf=(
+ -opengl $(usex gles2 es2 desktop)
+ $(qt_use gtk)
+ $(qt_use png libpng system)
+ $(qt_use xcb xcb system)
+ $(qt_use xcb xkbcommon system)
+ $(usex xcb '-xcb-xlib -xinput2 -xkb' '')
+ )
+ qt5-build_src_configure
+}
diff --git a/dev-qt/qtx11extras/Manifest b/dev-qt/qtx11extras/Manifest
new file mode 100644
index 000000000000..3b6657a8b886
--- /dev/null
+++ b/dev-qt/qtx11extras/Manifest
@@ -0,0 +1,9 @@
+DIST qtx11extras-opensource-src-5.6.2.tar.xz 33640 SHA256 71ffde1cfaeec310677b69ecd16cb5992e8885cf3e73b4cec7d6e7a115b40ced SHA512 52158b0de2d30ad629e066b34dff0665a70cb9ab895773f3bc129c15ca8072b82ec6759f4d7b9f5d893355e28f1a916a015c6726db289845d1854f9544336f31 WHIRLPOOL 2f0b09992a9a477eb4a40ea04ba05dbf1db08c2df745662c7d05d7abc3886aa51eb2cf7fec79a4dac6f1055fa636839a064cff7479835c5218e9d40574ef16cb
+DIST qtx11extras-opensource-src-5.7.1.tar.xz 59656 SHA256 5f5a0c2cc66ec01c2f2f31eff32fea26bd0bc03741a5dfd803b13870aa4ce427 SHA512 04359d85fad3dd51d6364c5218d5f76a384ec0d2082cefc7c67c5a8899cb19df3c9ce750b6707acfecf0a5ea57fb8cb737e5a8d2af3c63345f167f24712aaaee WHIRLPOOL 1f8bbb1583b2919a10f0684d09c420165b1919409aee662cff0037827e1231df2edac3d0f9f51e6dc7e57d028c8dc8e967c2bb4883d85668b9a7b29686b03593
+DIST qtx11extras-opensource-src-5.9.2.tar.xz 76624 SHA256 db85450ad4851816a4fade1ffc10d078d28f2cca174cffa6cbd6d1220b395ac5 SHA512 eb41aa76186e6ecea4caafc4c318c58d0f173331895c4e76e0eed8d7654b575c64dd35ed924b7c4d6a3c4e0d4d998c78aef1c484888e44b6fe87cbdd8aaf4181 WHIRLPOOL 10f6423ea20c5faa40818cb8c8bbcb55d6e6154f588718e143a8f345d3adec40c15f4ee5b9e4e8dc50d34e6d6105545b1707c92d15fc2fa044a25a59fbf9dde6
+EBUILD qtx11extras-5.6.2.ebuild 427 SHA256 e607ef72bc1fa8df39b07a90eedecddb44c5eb35cef8070090a54e23b7ce8a9e SHA512 7c38687ac64d73e149a9e4e7f9e4822db143110d98a449f8e5f200fe3f5faace4a910cb307350a223a56b8f73eb7a055435f91c1bc44e48df8384602473ad2b8 WHIRLPOOL f61eb08eb6cfe0e8747260a846ba95b61000dd764d8058a5b6ff5377d4532a75e4125046b076c3fc6b27bb817c085d605ae94e0914a941abc37fff775242d1b0
+EBUILD qtx11extras-5.7.1.ebuild 428 SHA256 999bae15ddc1c82cd4ce3e1659a27577d42e614a7d7c250272aec392b9ebfd30 SHA512 9ed63fdb17f983617259c75e0812fc4d3dda36d8a9a78b4c24a0cd436835f741903a77ecba71fc9a5ec33260505bf0f7d111577cde41a80862394741815fa83c WHIRLPOOL e4369a4667b53a7cc6b2800ea9f663bfdf83dabca29ce2ad0ef063ee4b1ef24f3013934cc806fad367321cc20985108385466780c47799ac8f3c99e770a7059a
+EBUILD qtx11extras-5.9.2.ebuild 433 SHA256 5fd29034da734d357713028e44e47fc8c1fa2f3e13bf7f09109b59e0588a6e13 SHA512 ca9758a4db6c04ed0c8adadb952449dbe07631816aa462af34eec6e3f29bc7d9579ba7b67a06aaa25c0a264e41b7ce60feab9969c9aef37e5d076753d5de6cf5 WHIRLPOOL 6d94aab3e38607b610dbc7500e6688b111897debe800481099e506193a20871a06f8f6ab6977833cd2729ad6cf98d4807b6d6ed2a13d936d1465de0b4a60e667
+MISC ChangeLog 6446 SHA256 b6fd565e15e4c9b074822844745ca0c73676d151d9a3fe1496ee1c95c51d2e1c SHA512 75cd83cc3c78674e8ac83cd08bc3cb36ad3a815c1cb817f16342fc6a7f005576299426c9ab941c24774e2c90a718d3aeb65d58da5b0ff029ac3757a76f68f8b4 WHIRLPOOL faf8ed4a0ee578f4753e24ae99e262cee1c00aeff8f210e06682bd9717b25c77674f02371557f4fdf1fc2691e993b3364798553090dc8cee3ba514eb6327d1c2
+MISC ChangeLog-2015 1714 SHA256 bce5dbfc3b42970ea6e600010bf1065dadee71dfb6bcc3bc689d3ac30658c0a4 SHA512 424d8eb6577c02514cf0b7fac20f018047fd02bf71122dd10c93116b52ec1c7383b40d87044c25ef3e055ce36c5decabb9049f8cb75bcb619bc31b9712b9f3de WHIRLPOOL d6d2704441026a82085aba8fa267e8cd5f21daf3276fce9791bf2640e42aaf262cfef9f9c57ab4099a9165b6c3b1f8a570c587f27edcc9e9d1bb7727f284b58f
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtx11extras/metadata.xml b/dev-qt/qtx11extras/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtx11extras/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtx11extras/qtx11extras-5.6.2.ebuild b/dev-qt/qtx11extras/qtx11extras-5.6.2.ebuild
new file mode 100644
index 000000000000..9178ff9b8b4e
--- /dev/null
+++ b/dev-qt/qtx11extras/qtx11extras-5.6.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Linux/X11-specific support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[xcb]
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtwidgets-${PV} )
+"
diff --git a/dev-qt/qtx11extras/qtx11extras-5.7.1.ebuild b/dev-qt/qtx11extras/qtx11extras-5.7.1.ebuild
new file mode 100644
index 000000000000..8dbdf683cf22
--- /dev/null
+++ b/dev-qt/qtx11extras/qtx11extras-5.7.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Linux/X11-specific support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[xcb]
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtwidgets-${PV} )
+"
diff --git a/dev-qt/qtx11extras/qtx11extras-5.9.2.ebuild b/dev-qt/qtx11extras/qtx11extras-5.9.2.ebuild
new file mode 100644
index 000000000000..545409027ab6
--- /dev/null
+++ b/dev-qt/qtx11extras/qtx11extras-5.9.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="Linux/X11-specific support library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtgui-${PV}[xcb]
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtwidgets-${PV} )
+"
diff --git a/dev-qt/qtxml/Manifest b/dev-qt/qtxml/Manifest
new file mode 100644
index 000000000000..8b97674056de
--- /dev/null
+++ b/dev-qt/qtxml/Manifest
@@ -0,0 +1,9 @@
+DIST qtbase-opensource-src-5.6.2.tar.xz 46825164 SHA256 2f6eae93c5d982fe0a387a01aeb3435571433e23e9d9d9246741faf51f1ee787 SHA512 ff55204e6f0b046ccb03430ac6a22bd743bc2f3822625f0c23a481a8a7acb5d93f5b8e900815c70f10554887fbe26b3ee79f6d702acfa5c370e4e3cbd1f2b321 WHIRLPOOL 4a68aae4e471b0cfac3abf3652bb18cac8ffce17c941c8589a154bf07eb8d26945fab535f2e1acb866a584584c1811e953aa19fb1b3709831d85a620f0b6dc5a
+DIST qtbase-opensource-src-5.7.1.tar.xz 44992616 SHA256 edcdf549d94d98aff08e201dcb3ca25bc3628a37b1309e320d5f556b6b66557e SHA512 0506a3a856f76e5ba182e3382a515282b6096f3900fbdc14cd5aec425105ab61922e0ada0361234387335ceb80b3c69e39cd34d75476c2946c4371e7b8c0827f WHIRLPOOL de5ff1380b3fd9cbcca741d212ac516e3f8a31366219605730cf5525a04e4efc9965a9b3cf8e99f50a2912bc7add83f61e7f90a85e176ad2830e4c1422b5d682
+DIST qtbase-opensource-src-5.9.2.tar.xz 45148744 SHA256 7fe2bb468955f633c71b3ddd3c269e68a2c4137a4e5b8dd12dcdb34cbc6d609b SHA512 a2f965871645256f3d019f71f3febb875455a29d03fccc7a3371ddfeb193b0af12394e779df05adf69fd10fe7b0d966f3915a24528ec7eb3bc36c2db6af2b6e7 WHIRLPOOL aed0b8aac590fad17b4f9067b46097e81d9991307b296428a9592d66a7c11967ee3e9a50b1d05afdeb7503470e658b016ec5af5c71e71059bd4c0d391b845f95
+EBUILD qtxml-5.6.2.ebuild 449 SHA256 8ee8cc339261c7cc33c19a5c2cce2ba51d37caf480b1fe73a4bc17f86bf492ad SHA512 a5741a3189896ff8e0278d2509943a3a6467267d1f4f9d7ba8492fb9793ef5009c7b74d9ac910e8416e5fc8773387abc59a41b6c5eb221864203996fb0b39b7f WHIRLPOOL dff589507782e150a04db7763d47b6e69cfe6a48bb1c61f3b17e5c91c09f10d82077cc41db497cf1c1da1dc6b98de583918992959e71c882c3293a96e9123fc7
+EBUILD qtxml-5.7.1.ebuild 450 SHA256 f11c145de51a1119970b61faa0dcd6d4dc24214e72607414c2e8ba10151e94f6 SHA512 a670d6c8cc7b93b36458ddb4aa0238f0bf6b4ebb5ba929bf1c46f1b95dc525e1d9820167b0604e9e7d948f3cfd192d88b656f4b448924262d8c3220d7607ba9c WHIRLPOOL 9f6ee02be836f00318b22c540e075455ac4b41e25c5b47bbaa7464377e44c55ef24efbab50b5357bbb165d734636276a0d29cb7ec90e24e88d12e79ad2139888
+EBUILD qtxml-5.9.2.ebuild 455 SHA256 b57e5a72e1c1a6ca88ee99b46d816b665943f03a1daef2da1b7ab264647fe7d0 SHA512 c149fb67be41674f8d9ce5e1537eb6352f82ff25e7af3a5dca67abe5bddd3d8fab9bff6ecc369c90cff3679e653cb1e54a5150aa3b872f6c5830485224170691 WHIRLPOOL ce544b7cef522b9b0203d9e2ddff0191dc3e7260d1a9d1ae49fa7897ca89674a68b77ea85bc075f304c46b323851c378d10bb56bdae02924bf1896df2a45f7ce
+MISC ChangeLog 6321 SHA256 8b2b821a896aa2807bb26f1da8c1b2461bc87d13fe8c6fe2699cad871a57be67 SHA512 8e8d8a6eb381238a9afcaa0804e376097e4f7224e9ff5cbc2483a15a00b4beeea7406afb05060748d4a55426466276a01330381c9c4f5a497fd4b31bfbf90098 WHIRLPOOL c22d22e43653d46a650a0ae70639801921c3064fefa95c90fdf6a1aa75d2c8c0733f339638a6a0b9284316794b7c24f0c31388659dc5ffa54d7a49089b559c31
+MISC ChangeLog-2015 1584 SHA256 18868bce2993dc5d1d6df89daa2afdb7f6d6b52d97531ec2c9a0fba03c341f7b SHA512 e411c3f2577debd72f00467c4d3d2d463702078112ff68e3ee3cee0803ef7d59fa07999b37dbd3356227f462cdd40022f85d6dcbe0b11d6cd4028ffdf42771ce WHIRLPOOL 0d386c3c9cec7f43f47e2d431824ad0fb1d5f0d92489229870adab652ea216b649d138a985de74c47425ee71352e3e2ef9cb1a112078f9f8c5471a2dc047574f
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtxml/metadata.xml b/dev-qt/qtxml/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtxml/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtxml/qtxml-5.6.2.ebuild b/dev-qt/qtxml/qtxml-5.6.2.ebuild
new file mode 100644
index 000000000000..2c0cdd51d795
--- /dev/null
+++ b/dev-qt/qtxml/qtxml-5.6.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Implementation of SAX and DOM for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/xml
+)
diff --git a/dev-qt/qtxml/qtxml-5.7.1.ebuild b/dev-qt/qtxml/qtxml-5.7.1.ebuild
new file mode 100644
index 000000000000..20cc263df256
--- /dev/null
+++ b/dev-qt/qtxml/qtxml-5.7.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Implementation of SAX and DOM for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/xml
+)
diff --git a/dev-qt/qtxml/qtxml-5.9.2.ebuild b/dev-qt/qtxml/qtxml-5.9.2.ebuild
new file mode 100644
index 000000000000..d19aa52bbb5a
--- /dev/null
+++ b/dev-qt/qtxml/qtxml-5.9.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+QT5_MODULE="qtbase"
+inherit qt5-build
+
+DESCRIPTION="Implementation of SAX and DOM for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+RDEPEND="
+ ~dev-qt/qtcore-${PV}
+"
+DEPEND="${RDEPEND}
+ test? ( ~dev-qt/qtnetwork-${PV} )
+"
+
+QT5_TARGET_SUBDIRS=(
+ src/xml
+)
diff --git a/dev-qt/qtxmlpatterns/Manifest b/dev-qt/qtxmlpatterns/Manifest
new file mode 100644
index 000000000000..3bc6ea44a103
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/Manifest
@@ -0,0 +1,13 @@
+DIST qt-everywhere-opensource-src-4.8.6.tar.gz 241623667 SHA256 8b14dd91b52862e09b8e6a963507b74bc2580787d171feda197badfa7034032c SHA512 c2d07c3cf9d687cb9b93e337c89df3f0055bd02bc8aa5ecd55d3ffb238b31a4308aeabc3c51a4f94ac76a1b00796f047513d02e427ed93ae8dd99f836fff7692 WHIRLPOOL 473566814a77237dbdd37a47980c1085f6cf39599c4d6b0120959fe80dadf65c4eaafd5f528dd86cea8815562faa204bedfe3b766c2ca4f2d2c99efc21dbca84
+DIST qt-everywhere-opensource-src-4.8.7.tar.gz 241075567 SHA256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0 SHA512 f9f81a2e7205e1fd05c8d923dc73244f29aa33f951fa6b7c5c8193449328b37084796b9b71ad0c317e4e6fd00017c10ea5d67b1b2032551cde00548522218125 WHIRLPOOL ad8f01172f5bdb3a3a69fe7b03862c4c411bc8d95211053ad66ed1d60a3c0577d073d1075a1e0a80b25d9b2721addda55a2967e6ccf5e194cec8d08770ac5fc2
+DIST qtxmlpatterns-opensource-src-5.6.2.tar.xz 1323576 SHA256 7c6df3eebf188d8ce6822a22cebbc63da5ac27047cf1bd7236d5b988244782cc SHA512 780864b839f312143975973b0a63f3d4ad105e8b87f5c71d8fb120c3e249578846e855693cea070510767c6680c2249589f7ad1bcc63488da979f4d8da8910ae WHIRLPOOL fb60edab215e053abd54b978c13e232167782d170db1528c234ccc83882a9bf6690769d037f159b7bdc8c315396a1c91bb2becaa3b329099dd2ea93903cbaf9f
+DIST qtxmlpatterns-opensource-src-5.7.1.tar.xz 1352472 SHA256 a805938c2ab1379d7dc83dcec606edd7950b5155c073b9eb53c53e62deb5f8e5 SHA512 2acdee1e49a154dd111be6afcb7f765d98fc17c49f79cf08c5fc03cda7e0cab7537e2dd57d976ee13b72c46a577bad2ac8466444ec46b3f14130f71756ac63a2 WHIRLPOOL 9d240d03ecbc1a68803e60cff49680bbac31054fca9a283b0f54aebae551bff7420ca6b648b6904d96b4315994232fbfe1a819b14f3a8d8a402dddecc762cbcd
+DIST qtxmlpatterns-opensource-src-5.9.2.tar.xz 1360696 SHA256 0aa6aa83087d5754cfefaa3d119454009fc2dd5f266c1eb2ea7a434cef22d34e SHA512 c14dbd97988473ba73b4e21352c5560278aa4dbfdf2be1d12e9119c0b5dbe8a0e4eff9a682052024a01bb21dcf52d40ba00da98947901fb91518af92a225da83 WHIRLPOOL 98102620b664d4b9469fc40b642f628e0733cc32e2799bc0090e358c4ef01eca0f0d62d05769c77bf024877038a8aacda29a4bc454b082ba0745c3ceeb8790d8
+EBUILD qtxmlpatterns-4.8.6-r1.ebuild 729 SHA256 983dea55b0596688dd2d6e5a674bcade2b8f9d14c67ff449d2a9ed755b44d227 SHA512 9e04b758cfe62e31fc006889bd49c1a8008e3a061d5a5bf5bd2a92cba13d259d6357d57406c34be2cf9f67edfafde92fbd587145ce5ccc495b938bf292337c3c WHIRLPOOL c2caaaeaa1e6efd857817e6ff5e887babdb0e10b8f948a78fc37edafb9ba2f31278fda1c3bbaf07e51c4a0b5eff80a052ca3b6d205e3eeb86d98d0c03e165d54
+EBUILD qtxmlpatterns-4.8.7.ebuild 678 SHA256 7c679bb3261bf908d0cb251fc6b4fe9e1feb5d25b1cc239b59f634e00300a8b0 SHA512 83928cfb4a813686a3787fa379c4f6872d469c350f10be68083c7fbfe657be8862100472ca88de0a50d597bc022b62648bdc66bb2395eb4670ed9bd34bf46a4d WHIRLPOOL 37baa12580f1397c66492cee67aa53dfff663107b138c0096c39f048c125bc977ed2ae33d347aff824206448d0a49a956336b74eaf06ce0ed390e13779ea397a
+EBUILD qtxmlpatterns-5.6.2.ebuild 409 SHA256 1a0da99ea5837223601db588b6f06c65f8afba77ab2f5fb0b2b4ff145031c977 SHA512 f1cbe899549cb5291aa99375930b2312e81828702586746ed01dc75403a185205326c19c196b919d82f19f50d6af63ab95f73fa598496b8b68c573626cf0a6ce WHIRLPOOL 8828b918e4566383f92933932bebd472edba285f8314e8f2f70e12180d95b5f776704332181941d0b6dea39a60433f65034ab98232e6c066a7287df6199307c3
+EBUILD qtxmlpatterns-5.7.1.ebuild 410 SHA256 0c08d64803f301b4a566379dada93853658109235ab77a2016bde3ed1784deca SHA512 fe95936636e83b41c90212726ab666433bf8ee0a7de2388292f400c1019e9ed074da0a5dd4a2ffb49ceb6ba48681c6bf5f59a3dd5a7417e3bc7f5cdb1c54f4a9 WHIRLPOOL 3d0818e8c7ea3070a5d1c7f3a8a680f99107e5d7319756180bdd3683281d202888425895be164a37dbcc062586696501493d67589d74ba62b1f42c64338c4363
+EBUILD qtxmlpatterns-5.9.2.ebuild 415 SHA256 230ef786f2b5fde6ccf52d587e6bad8deacd08b42172e105b6522d020ff57df2 SHA512 90ebbad52ced272539de159205c4b5f5a14ae26502a084829dcfd9b52030eb4819cf8dba832e6523d103050005325c0ed7072774c53fe462f61e31735ad1d4aa WHIRLPOOL 8b42c1da222e11e7a6a7aee90384456c24aa0ce25836fe8a1671c9149423dec72646eb552e3e85c00583d7449b4ba5a895a5bf69fe37b83e4972edd1c9b4d207
+MISC ChangeLog 7703 SHA256 6bdb116147d2a26afa668228c8a69623582caa22cec0a1792269a530e5399d76 SHA512 b6bc565950c8cceed9fca62ffdab7cb7be0bc19a7d137f6bc074addafc7a5c6c2894c533034295c016e298305cc046a873050bd0088fbc736dd380e621af46e1 WHIRLPOOL d9aa0712e12cc33ed3dc4a72d0de63dc853efa83c16cb3f85b565cfb043b4214b5369fbc611def26678ad0469074a8154a692474e5666db2ca0f6f720ae954b6
+MISC ChangeLog-2015 21923 SHA256 011e68ba1035feb3841fb1dbaa3665bcde88ffea1fe0b5f00b91b93a89c6e7ab SHA512 4212f7b939c6eb7e0c6b9c7f9cfd0082f40046c2c5068f7eb436530deea53348a8dc503e9ce461fb3801ab2b60e354529f2fbed61c1c232de016feef5ee9a3d8 WHIRLPOOL ae25209d640b6fbfb37bcf945fb2892e017eaa42fc5e3eeaa2950f6b24d682fb1a71f85e388800d386265382d59b0bf6b3454c2ac69d9e4e3a17b4abe2722fa0
+MISC metadata.xml 481 SHA256 18368a5eb0276163e01a4e994b4e5ba6ffb69d087047093da48fa8299cf7bc73 SHA512 bc22732d392630b21ba3895b22a3b1835fe639f930bad0ebab511757df89ebbb30530f0c482ff0a7eb24c7ba844f0b2448040dc5252ac98b0ac01423f236829f WHIRLPOOL 2cfb91d520bd44a5deef29a3b728e9486b90f72169e8faf99dc220a12462a21b323ca5213fb4309972a77200ef7f4bb0288338b7d6bb50daa41241aff3238de6
diff --git a/dev-qt/qtxmlpatterns/metadata.xml b/dev-qt/qtxmlpatterns/metadata.xml
new file mode 100644
index 000000000000..32568f62fb8e
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugreports.qt.io/</bugs-to>
+ <doc>https://doc.qt.io/</doc>
+ </upstream>
+ <slots>
+ <subslots>
+ Must only be used by packages that are known to use private parts of the Qt API.
+ </subslots>
+ </slots>
+</pkgmetadata>
diff --git a/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.6-r1.ebuild b/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.6-r1.ebuild
new file mode 100644
index 000000000000..ebe8fba7a3f4
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.6-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit qt4-build-multilib
+
+DESCRIPTION="The XmlPatterns module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
+else
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/xmlpatterns
+ tools/xmlpatterns
+ tools/xmlpatternsvalidator"
+
+QCONFIG_ADD="xmlpatterns"
+QCONFIG_DEFINE="QT_XMLPATTERNS"
+
+multilib_src_configure() {
+ local myconf=(
+ -xmlpatterns
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.7.ebuild b/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.7.ebuild
new file mode 100644
index 000000000000..20cd5a7736b0
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/qtxmlpatterns-4.8.7.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit qt4-build-multilib
+
+DESCRIPTION="The XmlPatterns module for the Qt toolkit"
+
+if [[ ${QT4_BUILD_TYPE} == release ]]; then
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+QT4_TARGET_DIRECTORIES="
+ src/xmlpatterns
+ tools/xmlpatterns
+ tools/xmlpatternsvalidator"
+
+QCONFIG_ADD="xmlpatterns"
+QCONFIG_DEFINE="QT_XMLPATTERNS"
+
+multilib_src_configure() {
+ local myconf=(
+ -xmlpatterns
+ )
+ qt4_multilib_src_configure
+}
diff --git a/dev-qt/qtxmlpatterns/qtxmlpatterns-5.6.2.ebuild b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.6.2.ebuild
new file mode 100644
index 000000000000..f5bae222f80a
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.6.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="XPath, XQuery, XSLT, and XML Schema validation library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtxmlpatterns/qtxmlpatterns-5.7.1.ebuild b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.7.1.ebuild
new file mode 100644
index 000000000000..9979f4c6c572
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.7.1.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="XPath, XQuery, XSLT, and XML Schema validation library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-qt/qtxmlpatterns/qtxmlpatterns-5.9.2.ebuild b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.9.2.ebuild
new file mode 100644
index 000000000000..4cd0f9311e9c
--- /dev/null
+++ b/dev-qt/qtxmlpatterns/qtxmlpatterns-5.9.2.ebuild
@@ -0,0 +1,19 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit qt5-build
+
+DESCRIPTION="XPath, XQuery, XSLT, and XML Schema validation library for the Qt5 framework"
+
+if [[ ${QT5_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
+fi
+
+IUSE=""
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}
+ ~dev-qt/qtnetwork-${PV}
+"
+RDEPEND="${DEPEND}"