/[gentoo-x86]/net-libs/qmf/qmf-2.0_p201143.ebuild
Gentoo

Contents of /net-libs/qmf/qmf-2.0_p201143.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jul 15 16:45:13 2012 UTC (2 years, 5 months ago) by kensington
Branch: MAIN
Changes since 1.2: +5 -5 lines
Add missing slot dependencies on Qt.

(Portage version: 2.1.11.5/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/qmf/qmf-2.0_p201143.ebuild,v 1.2 2012/05/03 13:19:57 pesa Exp $
4
5 EAPI=4
6
7 if [[ ${PV} == *9999 ]]; then
8 EGIT_REPO_URI="git://gitorious.org/qt-labs/messagingframework.git
9 https://git.gitorious.org/qt-labs/messagingframework.git"
10 SCM_ECLASS="git-2"
11 SRC_URI=
12 else
13 YYYYWW="${PV#*_p}"
14 TAG="${YYYYWW:0:4}W${YYYYWW:4:2}"
15 SRC_URI="http://qt.gitorious.org/qt-labs/messagingframework/archive-tarball/${TAG} -> ${P}.tar.gz"
16 S="${WORKDIR}/qt-labs-messagingframework"
17 fi
18
19 inherit qt4-r2 ${SCM_ECLASS}
20
21 DESCRIPTION="The Qt Messaging Framework"
22 HOMEPAGE="http://qt.gitorious.org/qt-labs/messagingframework"
23
24 LICENSE="LGPL-2.1"
25 SLOT="0"
26 KEYWORDS="~amd64 ~x86"
27 IUSE="debug doc examples test"
28
29 RDEPEND="
30 dev-libs/icu
31 sys-libs/zlib
32 >=x11-libs/qt-gui-4.6.0:4
33 >=x11-libs/qt-sql-4.6.0:4
34 examples? ( >=x11-libs/qt-webkit-4.6.0:4 )
35 "
36 DEPEND="${RDEPEND}
37 virtual/pkgconfig
38 test? ( >=x11-libs/qt-test-4.6.0:4 )
39 "
40
41 DOCS="CHANGES"
42 PATCHES=(
43 # http://bugreports.qt.nokia.com/browse/QTMOBILITY-374
44 "${FILESDIR}/${PN}-use-standard-install-paths.patch"
45 )
46
47 src_prepare() {
48 qt4-r2_src_prepare
49
50 sed -i -e '/benchmarks/d' \
51 -e '/tests/d' \
52 messagingframework.pro || die
53
54 if ! use examples; then
55 sed -i -e '/examples/d' messagingframework.pro || die
56 fi
57 }
58
59 src_test() {
60 echo ">>> Test phase [QTest]: ${CATEGORY}/${PF}"
61 cd "${S}"/tests
62
63 einfo "Building tests"
64 eqmake4 && emake
65
66 einfo "Running tests"
67 export QMF_DATA="${T}"
68 local fail=false test=
69 for test in locks longstream longstring python_email qlogsystem \
70 qmailaddress qmailcodec qmaillog qmailmessage \
71 qmailmessagebody qmailmessageheader qmailmessagepart \
72 qmailnamespace qprivateimplementation; do
73 if ! LC_ALL=C ./tst_${test}/tst_${test}; then
74 eerror "'${test}' test failed!"
75 fail=true
76 fi
77 echo
78 done
79 ${fail} && die "some tests have failed!"
80 }
81
82 src_install() {
83 qt4-r2_src_install
84
85 if use doc; then
86 dohtml -r doc/html/*
87 emake qch_docs
88 dodoc doc/html/qmf.qch
89 docompress -x /usr/share/doc/${PF}/qmf.qch
90 fi
91 }

  ViewVC Help
Powered by ViewVC 1.1.20