Add stub of dedicated qt-copy overlay eclass.
[gentoo-soor-overlay.git] / eclass / qt4-qt-copy.eclass
blobe7d6ee1837c93abac66f8ff0173471fba9cdcbd1
1 # Copyright 2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 # @ECLASS: qt4-qt-copy.eclass
6 # @MAINTAINER:
7 # Leonardo Valeri Manera <l.valerimanera@gmail.com>
8 # @BLURB: Eclass for Qt4 split ebuilds with qt-copy
9 # @DESCRIPTION:
10 # This eclass contains various functions that are used when building Qt4
11 # with qt-copy.
13 RESTRICT="mirror primaryuri"
15 inherit eutils multilib toolchain-funcs flag-o-matic subversion qt4-build
17 IUSE="${IUSE} +qt-copy"
19 if [[ -n ${QT_COPY_SNAP} ]]; then
20 SRC_URI="${SRC_URI}
21 qt-copy? ( http://jyujin.de/~creidiki/qt-copy/qt-copy-${PV}-patches-${QT_COPY_SNAP}.tar.lzma )"
24 qt4_qt-copy() {
25 if [[ -z ${QT_COPY_SNAP} ]]; then
26 S_="${S}"
27 S="${S}/patches"
28 KMNAME="qt-copy"
29 KMMODULE="patches"
30 ESVN_PROJECT="KDE/${KMNAME}"
31 ESVN_MIRROR="svn://anonsvn.kde.org/home/kde"
32 ESVN_REPO_URI="${ESVN_MIRROR}/trunk/${KMNAME}"
33 ESVN_REPO_URI="${ESVN_REPO_URI}/${KMMODULE}"
34 subversion_src_unpack
35 for x in $(ls "${S}"); do
36 mv -vi ${x} $(echo ${x}|sed "s/[0-9]*/&_all_/;s/_all_-/_all_/")
37 done
38 S="${S_}"
39 cd "${S}"
41 EPATCH_SOURCE="${S}/patches"
42 EPATCH_EXCLUDE="0178_all_transparency-window-types.diff
43 0217_all_qurl-isempty-regression.diff
44 0218_all_qassert-macro-fix.diff
45 0172_all_prefer-xrandr-over-xinerama.diff
46 0184_all_dlopen-defaults-to-local.diff
47 0215_all_compile-with-Xcursor-linkage.diff"
48 case "${PV}" in
49 4.4.0_rc*)
52 EPATCH_EXCLUDE="${EPATCH_EXCLUDE} 0221_all__qdbus_to_dbus_fix.diff"
54 esac
55 else
56 EPATCH_SOURCE="${WORKDIR}/qt-copy-${PV}-patches-${QT_COPY_SNAP}"
58 EPATCH_SUFFIX="diff" epatch
61 qt4-qt-copy_src_unpack() {
62 qt4-build_src_unpack
63 use qt-copy && qt4_qt-copy
66 qt4-qt-copy_pkg_postinst() {
67 qt4-build_pkg_postinst
68 if use qt-copy; then
69 ewarn "Do NOT report bugs to Gentoo's bugzilla when built with qt-copy!"
73 EXPORT src_unpack pkg_postinst