/[gentoo-x86]/net-libs/qxmpp/qxmpp-9999.ebuild
Gentoo

Contents of /net-libs/qxmpp/qxmpp-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Oct 14 18:46:13 2012 UTC (2 years ago) by pinkbyte
Branch: MAIN
Changes since 1.10: +2 -2 lines
Fix prefix path for Gentoo Prefix compatibility

(Portage version: 2.2.0_alpha134/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/qxmpp/qxmpp-9999.ebuild,v 1.10 2012/10/14 18:10:36 pinkbyte Exp $
4
5 EAPI=4
6
7 EGIT_REPO_URI="https://code.google.com/p/qxmpp"
8
9 inherit qt4-r2 multilib git-2
10
11 DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework."
12 HOMEPAGE="http://code.google.com/p/qxmpp/"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS=""
17 IUSE="debug doc test"
18
19 RDEPEND="x11-libs/qt-core:4
20 x11-libs/qt-gui:4
21 media-libs/speex"
22 DEPEND="${RDEPEND}
23 test? ( x11-libs/qt-test:4 )"
24
25 src_prepare(){
26 if ! use doc; then
27 sed -i \
28 -e '/SUBDIRS/s/doc//' \
29 -e '/INSTALLS/d' \
30 qxmpp.pro || die "sed for removing docs failed"
31 fi
32 if ! use test; then
33 sed -i -e '/SUBDIRS/s/tests//' \
34 qxmpp.pro || die "sed for removing tests failed"
35 fi
36 qt4-r2_src_prepare
37 }
38
39 src_configure(){
40 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)"
41 }
42
43 src_install() {
44 qt4-r2_src_install
45 if use doc; then
46 # Use proper path for documentation
47 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${P} || die "doc mv failed"
48 fi
49 }

  ViewVC Help
Powered by ViewVC 1.1.20