--- /usr/portage/mail-client/trojita/trojita-0.3.90.ebuild 2012-12-10 20:31:18.000000000 +0100 +++ trojita-9999.ebuild 2013-01-11 02:04:25.932404101 +0100 @@ -1,13 +1,14 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-client/trojita/trojita-0.3.90.ebuild,v 1.2 2012/12/10 19:13:02 ago Exp $ +# $Header$ EAPI=4 QT_REQUIRED="4.6.0" -EGIT_REPO_URI="git://gitorious.org/${PN}/${PN}.git" +EGIT_REPO_URI="git://anongit.kde.org/${PN}" +VIRTUALX_REQUIRED=test [[ ${PV} == "9999" ]] && GIT_ECLASS="git-2" -inherit qt4-r2 ${GIT_ECLASS} +inherit qt4-r2 ${GIT_ECLASS} virtualx DESCRIPTION="A Qt IMAP e-mail client" HOMEPAGE="http://trojita.flaska.net/" @@ -17,11 +18,15 @@ else SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" KEYWORDS="~amd64 ~ppc ~x86" + MY_LANGS="bs cs de es et ga gl hu ia lt nl pt pt_BR sk sv uk zh_CN" fi LICENSE="|| ( GPL-2 GPL-3 )" SLOT="0" IUSE="debug test +zlib" +for MY_LANG in ${MY_LANGS} ; do + IUSE="${IUSE} linguas_${MY_LANG}" +done RDEPEND=" >=x11-libs/qt-gui-${QT_REQUIRED}:4 @@ -41,5 +46,18 @@ use debug && myopts="$myopts CONFIG+=debug" use test || myopts="$myopts CONFIG+=disable_tests" use zlib || myopts="$myopts CONFIG+=disable_zlib" + if [[ ${MY_LANGS} ]]; then + rm po/trojita_common_x-test.po + for x in po/*.po; do + mylang=${x#po/trojita_common_} + mylang=${mylang%.po} + use linguas_$mylang || rm $x + done + fi + eqmake4 PREFIX=/usr $myopts } + +src_test() { + Xemake test +}