eclass/qt4-qt-copy.eclass: update to new version of 4.4.0_rc1 patchset.
[gentoo-soor-overlay.git] / eclass / qt4-qt-copy.eclass
blob518c4ec2be4f15ad0529e18c3c50bfb012c24de5
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 ${PN},${PVR} in
19 *,4.4.0_rc1)
20 QT_COPY_PV="1.1"
22 *,*)
23 eerror "${PN}-${PVR} does not have patchset defined in the qt4-qt-copy eclass!"
24 die "Unsupported package-version for patchset, something screwed up bad, boss."
26 esac
28 if [[ -n ${QT_COPY_PV} ]]; then
29 IUSE="${IUSE} +qt-copy"
30 SRC_URI="${SRC_URI} qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma )"
31 DEPEND="qt-copy? ( app-arch/lzma-utils )"
34 qt4_qt-copy() {
35 # sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:'
37 case ${PVR} in
38 4.4.0_rc1)
39 base_patches="
40 0216-allow-isystem-for-headers.diff"
41 qt_assistant_patches="${base_patches}"
42 qt_opengl_patches="${base_patches}"
43 qt_phonon_patches="${base_patches}"
44 qt_sql_patches="${base_patches}"
45 qt_svg_patches="${base_patches}"
46 qt_test_patches="${base_patches}"
47 qt_webkit_patches="${base_patches}"
48 qt_xmlpatterns_patches="${base_patches}"
49 qt_script_patches="${base_patches}
50 0180-window-role-corelib.diff
51 0209-prevent-qt-mixing.diff"
52 qt_core_patches="${qt_script_patches}
53 0167-fix-group-reading.diff"
54 qt_dbus_patches="${qt_core_patches}"
55 qt_gui_patches="${base_patches}
56 0180-window-role-gui.diff
57 0195-compositing-properties.diff
58 0203-qtexthtmlparser-link-color.diff
59 0214-fix-qgraphicsproxywidget-tab-crash.diff
60 0220-no-x-recursion-in-xerrhandler.diff
61 0223-fix-qpixmap-hasalpha.diff
62 0224-fast-qpixmap-fill.diff
63 0225-invalidate-tabbar-geometry-on-refresh.diff
64 0226-qtreeview-column_resize_when_needed.diff"
65 qt_qt3support_patches="${base_patches}
66 0210-fix-crash-q3stylesheet-font-size.diff"
69 eerror "Version ${PVR} is not supported by the qt4-qt-copy eclass!"
70 die "Unsupported version for patching, something screwed up bad, boss."
72 esac
74 qt_copy_patches="${PN//-/_}_patches"
75 qt_copy_files=""
76 for qt_copy_patch in ${!qt_copy_patches}; do
77 qt_copy_files="${qt_copy_files} patches/${qt_copy_patch}"
78 done
79 qt_copy_files="${qt_copy_files# }"
81 cd "${S}"
83 echo "lzma -dc ${DISTDIR}/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner ${qt_copy_files}"
84 lzma -dc "${DISTDIR}"/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner ${qt_copy_files}
86 EPATCH_MULTI_MSG="Applying QT-copy patches ..." \
87 EPATCH_FORCE="yes" EPATCH_SUFFIX="" epatch "${S}"/patches
90 qt4-qt-copy_src_unpack() {
91 qt4-build_src_unpack
92 use qt-copy && qt4_qt-copy
95 qt4-qt-copy_pkg_postinst() {
96 qt4-build_pkg_postinst
97 if use qt-copy; then
98 ewarn
99 ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!"
100 ewarn
104 EXPORT_FUNCTIONS src_unpack pkg_postinst