# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/qmf/qmf-4.0.3.ebuild,v 1.3 2013/09/14 10:06:29 ago Exp $ EAPI=5 inherit qt4-r2 if [[ ${PV} == *9999* ]]; then inherit git-2 EGIT_REPO_URI="git://gitorious.org/qt-labs/messagingframework.git https://git.gitorious.org/qt-labs/messagingframework.git" else SRC_URI="http://dev.gentoo.org/~pesa/distfiles/${P}.tar.gz" S=${WORKDIR}/qt-labs-messagingframework fi DESCRIPTION="The Qt Messaging Framework" HOMEPAGE="http://qt.gitorious.org/qt-labs/messagingframework" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="amd64 x86" IUSE="debug doc examples icu test zlib" RDEPEND=" >=dev-qt/qtcore-4.8:4 >=dev-qt/qtgui-4.8:4 >=dev-qt/qtsql-4.8:4 examples? ( >=dev-qt/qtwebkit-4.8:4 ) icu? ( dev-libs/icu:= ) zlib? ( sys-libs/zlib ) " DEPEND="${RDEPEND} virtual/pkgconfig test? ( >=dev-qt/qttest-4.8:4 ) !!>> Test phase [QTest]: ${CATEGORY}/${PF}" cd "${S}"/tests export QMF_DATA=${T} local fail=false test= for test in tst_*; do # skip test that requires messageserver to be running [[ ${test} == tst_qmailstorageaction ]] && continue if ! LC_ALL=C ./${test}/${test}; then eerror "${test#tst_} test failed!" fail=true fi echo done ${fail} && die "some tests have failed!" } src_install() { qt4-r2_src_install if use doc; then emake docs dohtml -r doc/html/* dodoc doc/html/qmf.qch docompress -x /usr/share/doc/${PF}/qmf.qch fi }