app-office/lyx: LyX's PCH only slow compliation down - disable them
[gentoo-soor-overlay.git] / eclass / qca-plugin.eclass
bloba7336c9eda336d94d18a8b02107ffb3be3f37472
1 # Copyright 2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/qt4.eclass,v 1.38 2008/03/26 01:23:13 rion Exp $
5 # @ECLASS: qca-plugin.eclass
6 # @MAINTAINER:
7 # Rion <rion@plotinka.ru>
8 # @BLURB: Eclass for QCA plugins
9 # @DESCRIPTION:
10 # This eclass will be used to build all svn qca plugins
12 inherit eutils qt4 subversion
14 IUSE="debug"
15 SLOT="2"
16 ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/kdesupport/qca/"
17 ESVN_PROJECT="qca"
18 DEPEND=">=app-crypt/qca-${PV}"
19 RDEPEND="${RDEPEND} >=app-crypt/qca-${PV}"
21 # @FUNCTION: qca-plugin_pkg_setup
22 # @MAINTAINER:
23 # rion <rion@plotinka.ru>
24 # @DESCRIPTION:
25 # Default pkg_setup function for packages that depends on qt-plugin
26 qca-plugin_pkg_setup() {
27 if use debug && ! built_with_use ">=app-crypt/qca-9999" debug; then
28 echo
29 eerror "You are trying to compile ${PN} with USE=\"debug\""
30 eerror "while qca is built without this flag. It will not work."
31 echo
32 eerror "Possible solutions to this problem are:"
33 eerror "a) install ${PN} without debug USE flag"
34 eerror "b) re-emerge qca with debug USE flag"
35 echo
36 die "can't emerge ${PN} with debug USE flag"
41 # @FUNCTION: qca-plugin_src_unpack
42 # @MAINTAINER:
43 # rion <rion@plotinka.ru>
44 # @DESCRIPTION:
45 # Default pkg_setup function for packages that depends on qt-plugin
46 qca-plugin_src_unpack() {
47 subversion_src_unpack
48 cd "${S}/plugins/${PN}"
49 qconf
53 # @FUNCTION: qca-plugin_src_compile
54 # @MAINTAINER:
55 # rion <rion@plotinka.ru>
56 # @DESCRIPTION:
57 # Default src_compile function for packages that depends on qt-plugin
58 qca-plugin_src_compile() {
59 cd "${S}/plugins/${PN}"
60 # cannot use econf because of non-standard configure script
61 ./configure \
62 --qtdir=/usr \
63 $(use debug && echo "--debug" || echo "--release") \
64 --no-separate-debug-info \
65 || die "configure failed"
67 eqmake4 ${PN}.pro
68 emake || die "make failed"
72 # @FUNCTION: qca-plugin_src_install
73 # @MAINTAINER:
74 # rion <rion@plotinka.ru>
75 # @DESCRIPTION:
76 # Default src_install function for packages that depends on qt-plugin
77 qca-plugin_src_install() {
78 cd "${S}/plugins/${PN}"
79 emake INSTALL_ROOT="${D}" install || die "make install failed"
82 EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install