eclass/qt4-qt-copy.eclass: only dbus and script left to check realy, the rest oughta...
[gentoo-soor-overlay.git] / eclass / qt4-qt-copy.eclass
blob4b0253d526b470dee5ea282bdfade6750da43f8f
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 IUSE="${IUSE} +qt-copy"
20 case ${PV} in
21 4.4.0_rc1)
22 QT_COPY_PV="1.0"
24 esac
26 SRC_URI="${SRC_URI} qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma )"
27 DEPEND="${DEPEND} qt-copy? ( app-arch/lzma-utils )"
29 qt4_qt-copy() {
30 #for x in $(ls "${S}"); do
31 #mv -vi ${x} $(echo ${x} | sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:')
32 #done
34 cd "${S}"
36 echo "lzma -dc ${DISTDIR}/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner"
37 lzma -dc "${DISTDIR}"/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner
39 case ${PVR} in
40 4.4.0_rc1*)
41 PATCHLIST="0216_all_allow-isystem-for-headers.diff"
42 CORE_PATCHLIST="0118_all_qtcopy-define.diff
43 0167_all_fix-group-reading.diff
44 0180_all_window-role-corelib.diff
45 0209_all_prevent-qt-mixing.diff"
46 GUI_PATCHLIST="0180_all_window-role-gui.diff
47 0191_all_listview-alternate-row-colors.diff
48 0192_all_itemdelegate-palette-state.diff
49 0195_all_compositing-properties.diff
50 0203_all_qtexthtmlparser-link-color.diff
51 0214_all_fix-qgraphicsproxywidget-tab-crash.diff
52 0220_all_no-x-recursion-in-xerrhandler.diff
53 0223_all_fix-qpixmap-hasalpha.diff
54 0224_all_fast-qpixmap-fill.diff
55 0225_all_invalidate-tabbar-geometry-on-refresh.diff
56 0226_all_qtreeview-column_resize_when_needed.diff"
57 QT3SUPPORT_PATCHLIST="0210_all_fix-crash-q3stylesheet-font-size.diff"
58 case ${PN} in
59 qt-core|qt-dbus|qt-script)
60 PATCHLIST="${PATCHLIST} ${CORE_PATCHLIST}"
62 qt-gui)
63 PATCHLIST="${PATCHLIST} ${GUI_PATCHLIST}"
65 qt-qt3support)
66 PATCHLIST="${PATCHLIST} ${QT3SUPPORT_PATCHLIST}"
68 qt-(assistant|opengl|sql|svg|test|webkit|xmlpatterns))
71 eerror "Package ${PN} is not supported by the qt4-qt-copy eclass!"
72 die "something screwed up bad, boss."
74 esac
76 esac
78 for qt_copy_patch in ${PATCHLIST}; do
79 epatch "${S}"/patches/${qt_copy_patch}
80 done
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 "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!"
95 EXPORT_FUNCTIONS src_unpack pkg_postinst