/[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.18 - (show annotations) (download)
Thu Jan 29 18:39:53 2015 UTC (5 years, 10 months ago) by pinkbyte
Branch: MAIN
CVS Tags: HEAD
Changes since 1.17: +3 -3 lines
Adjust remaining obsolete HOMEPAGE links and metadata

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

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=5
6
7 EGIT_REPO_URI="https://github.com/qxmpp-project/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="https://github.com/qxmpp-project/qxmpp/"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS=""
17 IUSE="debug doc +speex test theora vpx"
18
19 RDEPEND="dev-qt/qtcore:4
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 qt4-r2_src_prepare
38 }
39
40 src_configure(){
41 local conf_speex
42 local conf_theora
43 local conf_vpx
44
45 use speex && conf_speex="QXMPP_USE_SPEEX=1"
46 use theora && conf_theora="QXMPP_USE_THEORA=1"
47 use vpx && conf_vpx="QXMPP_USE_VPX=1"
48
49 eqmake4 "${S}"/qxmpp.pro "PREFIX=${EPREFIX}/usr" "LIBDIR=$(get_libdir)" "${conf_speex}" "${conf_theora}" "${conf_vpx}"
50 }
51
52 src_install() {
53 qt4-r2_src_install
54 if use doc; then
55 # Use proper path for documentation
56 mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die "doc mv failed"
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20