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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 11 21:28:50 2015 UTC (5 years, 10 months ago) by maksbotan
Branch: MAIN
CVS Tags: HEAD
Bump to 0.8.2, change SRC_URI and HOMEPAGE, add opus use flag.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)

1 # Copyright 1999-2015 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.3 2014/08/10 20:50:11 slyfox 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="https://github.com/qxmpp-project/qxmpp/"
11 SRC_URI="https://github.com/${PN}-project/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86 ~amd64-linux"
16 IUSE="debug doc opus +speex test theora vpx"
17
18 RDEPEND="dev-qt/qtcore:4
19 opus? ( media-libs/opus )
20 speex? ( media-libs/speex )
21 theora? ( media-libs/libtheora )
22 vpx? ( media-libs/libvpx )"
23 DEPEND="${RDEPEND}
24 test? ( dev-qt/qttest:4 )"
25
26 src_prepare(){
27 if ! use doc; then
28 sed -i \
29 -e '/SUBDIRS/s/doc//' \
30 -e '/INSTALLS/d' \
31 qxmpp.pro || die "sed for removing docs failed"
32 fi
33 if ! use test; then
34 sed -i -e '/SUBDIRS/s/tests//' \
35 qxmpp.pro || die "sed for removing tests failed"
36 fi
37 # There is no point in building examples. Also, they require dev-qt/qtgui
38 sed -i -e '/SUBDIRS/s/examples//' \
39 qxmpp.pro || die "sed for removing examples failed"
40 qt4-r2_src_prepare
41 }
42
43 src_configure(){
44 local conf_speex
45 local conf_theora
46 local conf_vpx
47
48 use opus && conf_opus="QXMPP_USE_OPUS=1"
49 use speex && conf_speex="QXMPP_USE_SPEEX=1"
50 use theora && conf_theora="QXMPP_USE_THEORA=1"
51 use vpx && conf_vpx="QXMPP_USE_VPX=1"
52
53 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_opus}" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
54 }
55
56 src_install() {
57 qt4-r2_src_install
58 if use doc; then
59 # Use proper path for documentation
60 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20