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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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.8.0.ebuild,v 1.2 2014/06/28 12:58:19 maksbotan 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://download.qxmpp.org/${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 # There is no point in building examples. Also, they require dev-qt/qtgui
37 sed -i -e '/SUBDIRS/s/examples//' \
38 qxmpp.pro || die "sed for removing examples failed"
39 qt4-r2_src_prepare
40 }
41
42 src_configure(){
43 local conf_speex
44 local conf_theora
45 local conf_vpx
46
47 use speex && conf_speex="QXMPP_USE_SPEEX=1"
48 use theora && conf_theora="QXMPP_USE_THEORA=1"
49 use vpx && conf_vpx="QXMPP_USE_VPX=1"
50
51 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
52 }
53
54 src_install() {
55 qt4-r2_src_install
56 if use doc; then
57 # Use proper path for documentation
58 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20