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

Contents of /net-libs/qxmpp/qxmpp-0.7.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Aug 10 20:50:11 2014 UTC (6 years, 3 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2014 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.6-r1.ebuild,v 1.3 2014/04/03 07:56:27 zlogene Exp $
4
5 EAPI=5
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 +speex test theora vpx"
17
18 RDEPEND="dev-qt/qtcore:4
19 speex? ( media-libs/speex )
20 theora? ( media-libs/libtheora )
21 vpx? ( media-libs/libvpx )"
22 DEPEND="${RDEPEND}
23 test? ( dev-qt/qttest: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 local conf_speex
41 local conf_theora
42 local conf_vpx
43
44 use speex && conf_speex="QXMPP_USE_SPEEX=1"
45 use theora && conf_theora="QXMPP_USE_THEORA=1"
46 use vpx && conf_vpx="QXMPP_USE_VPX=1"
47
48 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
49 }
50
51 src_install() {
52 qt4-r2_src_install
53 if use doc; then
54 # Use proper path for documentation
55 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20