commit:     c00c316dcf9e123f2d1eeeabd11774a8a491dafc
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 14:26:26 2017 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Sep  8 15:51:58 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=c00c316d

dev-qt/qtcore: replicate ifdefs removed in >=5.8

Gentoo-bug: 620348
Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-qt/qtcore/qtcore-5.10.9999.ebuild | 22 ++++++++++++++++++++++
 dev-qt/qtcore/qtcore-5.9.1.ebuild     | 22 ++++++++++++++++++++++
 dev-qt/qtcore/qtcore-5.9.9999.ebuild  | 22 ++++++++++++++++++++++
 dev-qt/qtcore/qtcore-5.9999.ebuild    | 22 ++++++++++++++++++++++
 4 files changed, 88 insertions(+)

diff --git a/dev-qt/qtcore/qtcore-5.10.9999.ebuild 
b/dev-qt/qtcore/qtcore-5.10.9999.ebuild
index 175000e7..b568c54d 100644
--- a/dev-qt/qtcore/qtcore-5.10.9999.ebuild
+++ b/dev-qt/qtcore/qtcore-5.10.9999.ebuild
@@ -42,3 +42,25 @@ src_configure() {
        )
        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/qtcore/qtcore-5.9.1.ebuild 
b/dev-qt/qtcore/qtcore-5.9.1.ebuild
index 175000e7..779bc30c 100644
--- a/dev-qt/qtcore/qtcore-5.9.1.ebuild
+++ b/dev-qt/qtcore/qtcore-5.9.1.ebuild
@@ -42,3 +42,25 @@ src_configure() {
        )
        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/qtcore/qtcore-5.9.9999.ebuild 
b/dev-qt/qtcore/qtcore-5.9.9999.ebuild
index 175000e7..779bc30c 100644
--- a/dev-qt/qtcore/qtcore-5.9.9999.ebuild
+++ b/dev-qt/qtcore/qtcore-5.9.9999.ebuild
@@ -42,3 +42,25 @@ src_configure() {
        )
        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/qtcore/qtcore-5.9999.ebuild 
b/dev-qt/qtcore/qtcore-5.9999.ebuild
index 175000e7..779bc30c 100644
--- a/dev-qt/qtcore/qtcore-5.9999.ebuild
+++ b/dev-qt/qtcore/qtcore-5.9999.ebuild
@@ -42,3 +42,25 @@ src_configure() {
        )
        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
+}

Reply via email to