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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 4 11:05:42 2015 UTC (4 years, 7 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Version bump wrt bug #541286.

(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-client/trojita/trojita-9999.ebuild,v 1.25 2015/01/29 15:22:13 kensington Exp $
4
5 EAPI=5
6
7 QT4_REQUIRED="4.8.0"
8 EGIT_REPO_URI="git://anongit.kde.org/${PN}.git"
9 [[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
10
11 inherit cmake-utils virtualx ${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 ~x86"
21 MY_LANGS="ar bs ca cs da de el en_GB es et fi fr ga gl hu ia it ja lt mr nb nds 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 +password qt5 test +zlib"
27 for MY_LANG in ${MY_LANGS} ; do
28 IUSE="${IUSE} linguas_${MY_LANG}"
29 done
30
31 RDEPEND="
32 qt5? (
33 dev-qt/linguist-tools:5
34 dev-qt/qtgui:5
35 dev-qt/qtnetwork:5
36 dev-qt/qtsql:5[sqlite]
37 dev-qt/qtwebkit:5
38 dev-qt/qtwidgets:5
39 )
40 !qt5? (
41 >=dev-qt/qtbearer-${QT4_REQUIRED}:4
42 >=dev-qt/qtgui-${QT4_REQUIRED}:4
43 >=dev-qt/qtsql-${QT4_REQUIRED}:4[sqlite]
44 >=dev-qt/qtwebkit-${QT4_REQUIRED}:4
45 )
46 "
47 DEPEND="${RDEPEND}
48 password? (
49 qt5? ( dev-libs/qtkeychain[qt5] )
50 !qt5? ( dev-libs/qtkeychain[qt4] )
51 )
52 test? (
53 qt5? ( dev-qt/qttest:5 )
54 !qt5? ( >=dev-qt/qttest-${QT4_REQUIRED}:4 )
55 )
56 zlib? (
57 virtual/pkgconfig
58 sys-libs/zlib
59 )
60 "
61
62 DOCS="README LICENSE"
63
64 src_configure() {
65 local mycmakeargs=(
66 $(cmake-utils_use_with qt5 QT5)
67 $(cmake-utils_use_with password QTKEYCHAIN_PLUGIN)
68 $(cmake-utils_use_with test TESTS)
69 $(cmake-utils_use_with zlib ZLIB)
70 )
71 if [[ ${MY_LANGS} ]]; then
72 rm po/trojita_common_x-test.po
73 for x in po/*.po; do
74 mylang=${x#po/trojita_common_}
75 mylang=${mylang%.po}
76 use linguas_$mylang || rm $x
77 done
78 fi
79
80 # the build system is taking a look at `git describe ... --dirty` and
81 # gentoo's modifications to CMakeLists.txt break these
82 sed -i "s/--dirty//" "${S}/cmake/TrojitaVersion.cmake" || die "Cannot fix the version check"
83
84 cmake-utils_src_configure
85 }
86
87 src_test() {
88 VIRTUALX_COMMAND=cmake-utils_src_test virtualmake
89 }

  ViewVC Help
Powered by ViewVC 1.1.20