/[gentoo-x86]/mail-client/trojita/trojita-0.3.96.ebuild
Gentoo

Contents of /mail-client/trojita/trojita-0.3.96.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Oct 4 11:38:32 2013 UTC (6 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Properly using an array instead of bash string and setting up correct flag names, wrt bug #486632 by Matthew Thode and Jan Kundrat

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-client/trojita/trojita-0.3.96.ebuild,v 1.1 2013/09/30 17:04:13 ago Exp $
4
5 EAPI=5
6
7 QT_REQUIRED="4.6.0"
8 EGIT_REPO_URI="git://anongit.kde.org/${PN}.git"
9 [[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
10
11 inherit qt4-r2 virtualx cmake-utils ${GIT_ECLASS}
12
13 DESCRIPTION="A Qt IMAP e-mail client"
14 HOMEPAGE="http://trojita.flaska.net/"
15 if [[ ${PV} == "9999" ]]; then
16 SRC_URI=""
17 KEYWORDS=""
18 else
19 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
20 KEYWORDS="~amd64 ~ppc ~x86"
21 MY_LANGS="bs cs da de el es et fr ga gl hu ia lt mr nl pl pt pt_BR ro sk sv tr ug uk zh_CN zh_TW"
22 fi
23
24 LICENSE="|| ( GPL-2 GPL-3 )"
25 SLOT="0"
26 IUSE="debug test +zlib"
27 for MY_LANG in ${MY_LANGS} ; do
28 IUSE="${IUSE} linguas_${MY_LANG}"
29 done
30
31 RDEPEND="
32 >=dev-qt/qtgui-${QT_REQUIRED}:4
33 >=dev-qt/qtsql-${QT_REQUIRED}:4[sqlite]
34 >=dev-qt/qtwebkit-${QT_REQUIRED}:4
35 "
36 DEPEND="${RDEPEND}
37 test? ( >=dev-qt/qttest-${QT_REQUIRED}:4 )
38 zlib? (
39 virtual/pkgconfig
40 sys-libs/zlib
41 )
42 "
43
44 DOCS="README LICENSE"
45
46 src_configure() {
47 local mycmakeargs=""
48 use test || mycmakeargs="$mycmakeargs -DWITHOUT_TESTS=1"
49 use zlib || mycmakeargs="$mycmakeargs -DWITHOUT_ZLIB=1"
50 if [[ ${MY_LANGS} ]]; then
51 rm po/trojita_common_x-test.po
52 for x in po/*.po; do
53 mylang=${x#po/trojita_common_}
54 mylang=${mylang%.po}
55 use linguas_$mylang || rm $x
56 done
57 fi
58
59 # the build system is taking a look at `git describe ... --dirty` and
60 # gentoo's modifications to CMakeLists.txt break these
61 sed -i "s/--dirty//" "${S}/cmake/TrojitaVersion.cmake" || die "Cannot fix the version check"
62
63 cmake-utils_src_configure
64 }
65
66 src_test() {
67 VIRTUALX_COMMAND=cmake-utils_src_test virtualmake
68 }

  ViewVC Help
Powered by ViewVC 1.1.20