commit: 0339b82dc658d36fe2a50dde050e11d530a075bd Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Sat Feb 25 10:40:24 2017 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Sat Feb 25 10:40:32 2017 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=0339b82d
dev-qt/qtdbus: add awful hack to make it build Gentoo-bug: 599636 Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-qt/qtdbus/qtdbus-5.8.0.ebuild | 30 ++++++++++++++++++++++++++++++ dev-qt/qtdbus/qtdbus-5.8.9999.ebuild | 32 +++++++++++++++++++++++++++++++- dev-qt/qtdbus/qtdbus-5.9999.ebuild | 32 +++++++++++++++++++++++++++++++- 3 files changed, 92 insertions(+), 2 deletions(-) diff --git a/dev-qt/qtdbus/qtdbus-5.8.0.ebuild b/dev-qt/qtdbus/qtdbus-5.8.0.ebuild index 278c7799..d6b48c91 100644 --- a/dev-qt/qtdbus/qtdbus-5.8.0.ebuild +++ b/dev-qt/qtdbus/qtdbus-5.8.0.ebuild @@ -21,6 +21,7 @@ DEPEND=" RDEPEND="${DEPEND}" QT5_TARGET_SUBDIRS=( + src/corelib src/dbus src/tools/qdbusxml2cpp src/tools/qdbuscpp2xml @@ -31,9 +32,38 @@ QT5_GENTOO_CONFIG=( :dbus-linked: ) +src_prepare() { + qt5-build_src_prepare + + cat > "${S}/src/corelib/corelib.pro" <<-_EOF_ || die + QT = + TARGET = QtCore + load(qt_module) + _EOF_ +} + src_configure() { local myconf=( -dbus-linked ) qt5-build_src_configure } + +src_install() { + QT5_TARGET_SUBDIRS=( + src/dbus + src/tools/qdbusxml2cpp + src/tools/qdbuscpp2xml + ) + qt5-build_src_install +} + +src_compile() { + hack() { + emake + if [[ ${subdir} = "src/corelib" ]]; then + rm "${S}"/lib/libQt5Core* || die + fi + } + qt5_foreach_target_subdir hack +} diff --git a/dev-qt/qtdbus/qtdbus-5.8.9999.ebuild b/dev-qt/qtdbus/qtdbus-5.8.9999.ebuild index 8ebd7871..d6b48c91 100644 --- a/dev-qt/qtdbus/qtdbus-5.8.9999.ebuild +++ b/dev-qt/qtdbus/qtdbus-5.8.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -21,6 +21,7 @@ DEPEND=" RDEPEND="${DEPEND}" QT5_TARGET_SUBDIRS=( + src/corelib src/dbus src/tools/qdbusxml2cpp src/tools/qdbuscpp2xml @@ -31,9 +32,38 @@ QT5_GENTOO_CONFIG=( :dbus-linked: ) +src_prepare() { + qt5-build_src_prepare + + cat > "${S}/src/corelib/corelib.pro" <<-_EOF_ || die + QT = + TARGET = QtCore + load(qt_module) + _EOF_ +} + src_configure() { local myconf=( -dbus-linked ) qt5-build_src_configure } + +src_install() { + QT5_TARGET_SUBDIRS=( + src/dbus + src/tools/qdbusxml2cpp + src/tools/qdbuscpp2xml + ) + qt5-build_src_install +} + +src_compile() { + hack() { + emake + if [[ ${subdir} = "src/corelib" ]]; then + rm "${S}"/lib/libQt5Core* || die + fi + } + qt5_foreach_target_subdir hack +} diff --git a/dev-qt/qtdbus/qtdbus-5.9999.ebuild b/dev-qt/qtdbus/qtdbus-5.9999.ebuild index 8ebd7871..d6b48c91 100644 --- a/dev-qt/qtdbus/qtdbus-5.9999.ebuild +++ b/dev-qt/qtdbus/qtdbus-5.9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -21,6 +21,7 @@ DEPEND=" RDEPEND="${DEPEND}" QT5_TARGET_SUBDIRS=( + src/corelib src/dbus src/tools/qdbusxml2cpp src/tools/qdbuscpp2xml @@ -31,9 +32,38 @@ QT5_GENTOO_CONFIG=( :dbus-linked: ) +src_prepare() { + qt5-build_src_prepare + + cat > "${S}/src/corelib/corelib.pro" <<-_EOF_ || die + QT = + TARGET = QtCore + load(qt_module) + _EOF_ +} + src_configure() { local myconf=( -dbus-linked ) qt5-build_src_configure } + +src_install() { + QT5_TARGET_SUBDIRS=( + src/dbus + src/tools/qdbusxml2cpp + src/tools/qdbuscpp2xml + ) + qt5-build_src_install +} + +src_compile() { + hack() { + emake + if [[ ${subdir} = "src/corelib" ]]; then + rm "${S}"/lib/libQt5Core* || die + fi + } + qt5_foreach_target_subdir hack +}