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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 10 20:50:11 2014 UTC (5 years, 10 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 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.5.ebuild,v 1.5 2013/03/02 22:58:08 hwoarang 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 test"
17
18 RDEPEND="dev-qt/qtcore:4
19 dev-qt/qtgui:4
20 media-libs/speex"
21 DEPEND="${RDEPEND}
22 test? ( dev-qt/qttest: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/${PF} || die "doc mv failed"
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20