eclass/qt4-qt-copy.eclass: remove some more patches from 4.4.0_rc1.
[gentoo-soor-overlay.git] / eclass / qt4-qt-copy.eclass
blob1b56d77e95bec562e66f594b1cff511c5283236d
1 # Copyright 2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 EAPI="1"
7 # @ECLASS: qt4-qt-copy.eclass
8 # @MAINTAINER:
9 # Leonardo Valeri Manera <l.valerimanera@gmail.com>
10 # @BLURB: Eclass for Qt4 split ebuilds with qt-copy
11 # @DESCRIPTION:
12 # This eclass contains overlays the standard qt4-build eclass
13 # with an optional function that applies qt-copy patches,
14 # either from a tarball or from svn trunk.
16 inherit eutils qt4-build
18 case ${PVR} in
19 4.4.0_rc1)
20 case ${PN} in
21 qt-script|qt-core|qt-dbus|qt-gui|qt-qt3support)
22 QT_COPY_PV="1.1"
24 esac
27 eerror "Version ${PVR} does not have patchset defined in the qt4-qt-copy eclass!"
28 die "Unsupported version for patchset, something screwed up bad, boss."
30 esac
32 if [[ -n ${QT_COPY_PV} ]]; then
33 IUSE="${IUSE} +qt-copy"
34 SRC_URI="${SRC_URI} qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma )"
35 DEPEND="qt-copy? ( app-arch/lzma-utils )"
38 qt4_qt-copy() {
39 # sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:'
41 case ${PVR} in
42 4.4.0_rc1)
43 qt_script_patches="
44 0180-window-role-corelib.diff"
45 qt_core_patches="${qt_script_patches}
46 0167-fix-group-reading.diff"
47 qt_dbus_patches="${qt_core_patches}"
48 qt_gui_patches="
49 0180-window-role-gui.diff
50 0195-compositing-properties.diff
51 0203-qtexthtmlparser-link-color.diff
52 0214-fix-qgraphicsproxywidget-tab-crash.diff
53 0220-no-x-recursion-in-xerrhandler.diff
54 0223-fix-qpixmap-hasalpha.diff
55 0224-fast-qpixmap-fill.diff
56 0225-invalidate-tabbar-geometry-on-refresh.diff
57 0226-qtreeview-column_resize_when_needed.diff"
58 qt_qt3support_patches="
59 0210-fix-crash-q3stylesheet-font-size.diff"
62 eerror "Version ${PVR} is not supported by the qt4-qt-copy eclass!"
63 die "Unsupported version for patching, something screwed up bad, boss."
65 esac
67 qt_copy_patches="${PN//-/_}_patches"
68 qt_copy_files=""
69 for qt_copy_patch in ${!qt_copy_patches}; do
70 qt_copy_files="${qt_copy_files} patches/${qt_copy_patch}"
71 done
72 qt_copy_files="${qt_copy_files# }"
74 cd "${S}"
76 echo "lzma -dc ${DISTDIR}/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner ${qt_copy_files}"
77 lzma -dc "${DISTDIR}"/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner ${qt_copy_files}
79 EPATCH_MULTI_MSG="Applying QT-copy patches ..." \
80 EPATCH_FORCE="yes" EPATCH_SUFFIX="" epatch "${S}"/patches
83 qt4-qt-copy_src_unpack() {
84 qt4-build_src_unpack
85 use qt-copy && qt4_qt-copy
88 qt4-qt-copy_pkg_postinst() {
89 qt4-build_pkg_postinst
90 if use qt-copy; then
91 ewarn
92 ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!"
93 ewarn
97 EXPORT_FUNCTIONS src_unpack pkg_postinst