1 # Copyright 2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 # @ECLASS: qt4-qt-copy.eclass
9 # Leonardo Valeri Manera <l.valerimanera@gmail.com>
10 # @BLURB: Eclass for Qt4 split ebuilds with qt-copy
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"
25 eerror
"Version ${PVR} does not have patchset defined in the qt4-qt-copy eclass!"
26 die
"Unsupported version for patchset, something screwed up bad, boss."
30 SRC_URI
="${SRC_URI} qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma )"
31 DEPEND
="${DEPEND} qt-copy? ( app-arch/lzma-utils )"
34 # sed -e 's:[0-9]*:&_all_:' -e 's:_all_-:_all_:'
38 echo "lzma -dc ${DISTDIR}/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner"
39 lzma
-dc "${DISTDIR}"/qt-copy-${PV}-patches-${QT_COPY_PV}.tar.lzma | tar xf - --no-same-owner
43 PATCHLIST="0216_all_allow-isystem-for-headers.
diff"
44 CORE_PATCHLIST="0118_all_qtcopy-define.
diff
45 0167_all_fix-group-reading.
diff
46 0180_all_window-role-corelib.
diff
47 0209_all_prevent-qt-mixing.
diff"
48 GUI_PATCHLIST="0180_all_window-role-gui.
diff
49 0191_all_listview-alternate-row-colors.
diff
50 0192_all_itemdelegate-palette-state.
diff
51 0195_all_compositing-properties.
diff
52 0203_all_qtexthtmlparser-link-color.
diff
53 0214_all_fix-qgraphicsproxywidget-tab-crash.
diff
54 0220_all_no-x-recursion-in-xerrhandler.
diff
55 0223_all_fix-qpixmap-hasalpha.
diff
56 0224_all_fast-qpixmap-fill.
diff
57 0225_all_invalidate-tabbar-geometry-on-refresh.
diff
58 0226_all_qtreeview-column_resize_when_needed.
diff"
59 QT3SUPPORT_PATCHLIST="0210_all_fix-crash-q3stylesheet-font-size.
diff"
62 PATCHLIST="${PATCHLIST} ${CORE_PATCHLIST}"
65 PATCHLIST="${PATCHLIST}
66 0118_all_qtcopy-define.
diff
67 0180_all_window-role-corelib.
diff
68 0209_all_prevent-qt-mixing.
diff"
71 PATCHLIST="${PATCHLIST} ${GUI_PATCHLIST}"
74 PATCHLIST="${PATCHLIST} ${QT3SUPPORT_PATCHLIST}"
76 qt-assistant|qt-opengl|qt-sql|qt-svg|qt-test|qt-webkit|qt-xmlpatterns)
79 eerror "Package
${PN} is not supported by the qt4-qt-copy eclass
!"
80 die "Unsupported package
, something screwed up bad
, boss.
"
85 eerror "Version
${PVR} is not supported by the qt4-qt-copy eclass
!"
86 die "Unsupported version
for patching
, something screwed up bad
, boss.
"
90 for qt_copy_patch in ${PATCHLIST}; do
91 epatch "${S}"/patches/${qt_copy_patch}
95 qt4-qt-copy_src_unpack() {
97 use qt-copy && qt4_qt-copy
100 qt4-qt-copy_pkg_postinst() {
101 qt4-build_pkg_postinst
104 ewarn "Do NOT report bugs to Gentoo
's bugzilla when built with qt-copy!"
109 EXPORT_FUNCTIONS src_unpack pkg_postinst