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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Oct 14 18:46:13 2012 UTC (22 months, 1 week ago) by pinkbyte
Branch: MAIN
Changes since 1.5: +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-0.7.4.ebuild,v 1.5 2012/10/14 18:39:28 pinkbyte Exp $
4
5 EAPI=4
6
7 inherit qt4-r2 multilib
8
9 DESCRIPTION="A cross-platform C++ XMPP client library based on the Qt framework."
10 HOMEPAGE="http://code.google.com/p/qxmpp/"
11 SRC_URI="http://qxmpp.googlecode.com/files/${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux"
16 IUSE="debug doc test"
17
18 RDEPEND="x11-libs/qt-core:4
19 x11-libs/qt-gui:4
20 media-libs/speex"
21 DEPEND="${RDEPEND}
22 test? ( x11-libs/qt-test:4 )"
23
24 src_prepare(){
25 if ! use doc; then
26 sed -i \
27 -e '/SUBDIRS/s/doc//' \
28 -e '/INSTALLS/d' \
29 qxmpp.pro || die "sed for removing docs failed"
30 fi
31 if ! use test; then
32 sed -i -e '/SUBDIRS/s/tests//' \
33 qxmpp.pro || die "sed for removing tests failed"
34 fi
35 qt4-r2_src_prepare
36 }
37
38 src_configure(){
39 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)"
40 }
41
42 src_install() {
43 qt4-r2_src_install
44 if use doc; then
45 # Use proper path for documentation
46 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${P} || die "doc mv failed"
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20