public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Palimaka" <kensington@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/trojita/
Date: Fri, 29 Jan 2016 08:39:37 +0000 (UTC)	[thread overview]
Message-ID: <1454056766.c04c058c778515b4757693f8371ebcf801b23772.kensington@gentoo> (raw)

commit:     c04c058c778515b4757693f8371ebcf801b23772
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 29 07:50:11 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 08:39:26 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c04c058c

mail-client/trojita: various live ebuild updates

* Port to EAPI 6
* Drop Qt 4 support as it is being removed upstream
* Drop linguas USE flags as they only control small text iles
* Introduce dbus USE flag
* Add missing dev-qt/qtnetwork USE dependency
* Update icon and mime caches

Gentoo-bug: 572894

Package-Manager: portage-2.2.27

 mail-client/trojita/trojita-9999.ebuild | 103 ++++++++++++++------------------
 1 file changed, 45 insertions(+), 58 deletions(-)

diff --git a/mail-client/trojita/trojita-9999.ebuild b/mail-client/trojita/trojita-9999.ebuild
index e7c71ee..32da654 100644
--- a/mail-client/trojita/trojita-9999.ebuild
+++ b/mail-client/trojita/trojita-9999.ebuild
@@ -1,89 +1,76 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-QT4_REQUIRED="4.8.0"
 EGIT_REPO_URI="git://anongit.kde.org/${PN}.git"
-[[ ${PV} == "9999" ]] && GIT_ECLASS="git-2"
-
-inherit cmake-utils virtualx ${GIT_ECLASS}
+inherit cmake-utils fdo-mime gnome2-utils virtualx
+[[ ${PV} == 9999 ]] && inherit git-r3
 
 DESCRIPTION="A Qt IMAP e-mail client"
 HOMEPAGE="http://trojita.flaska.net/"
-if [[ ${PV} == "9999" ]]; then
-	SRC_URI=""
-	KEYWORDS=""
-else
+if [[ ${PV} != 9999 ]]; then
 	SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
-	KEYWORDS="~amd64 ~ppc ~x86"
-	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"
+	KEYWORDS="~amd64 ~x86"
 fi
 
 LICENSE="|| ( GPL-2 GPL-3 )"
 SLOT="0"
-IUSE="debug +password qt5 test +zlib"
-for MY_LANG in ${MY_LANGS} ; do
-	IUSE="${IUSE} linguas_${MY_LANG}"
-done
+IUSE="debug +dbus +password test +zlib"
 
 RDEPEND="
-	qt5? (
-		dev-qt/qtgui:5
-		dev-qt/qtnetwork:5
-		dev-qt/qtsql:5[sqlite]
-		dev-qt/qtwebkit:5
-		dev-qt/qtwidgets:5
-	)
-	!qt5? (
-		>=dev-qt/qtbearer-${QT4_REQUIRED}:4
-		>=dev-qt/qtgui-${QT4_REQUIRED}:4
-		>=dev-qt/qtsql-${QT4_REQUIRED}:4[sqlite]
-		>=dev-qt/qtwebkit-${QT4_REQUIRED}:4
-	)
+	dev-qt/qtcore:5
+	dev-qt/qtgui:5
+	dev-qt/qtnetwork:5[ssl]
+	dev-qt/qtsql:5[sqlite]
+	dev-qt/qtwebkit:5
+	dev-qt/qtwidgets:5
+	dbus? ( dev-qt/qtdbus:5 )
+	password? ( dev-libs/qtkeychain[qt5] )
+	zlib? ( sys-libs/zlib )
 "
 DEPEND="${RDEPEND}
-	password? (
-		qt5?	( dev-libs/qtkeychain[qt5] )
-		!qt5?	( dev-libs/qtkeychain[qt4] )
-	)
-	qt5? ( dev-qt/linguist-tools:5 )
-	test? (
-		qt5?	( dev-qt/qttest:5 )
-		!qt5?	( >=dev-qt/qttest-${QT4_REQUIRED}:4 )
-	)
-	zlib? (
-		virtual/pkgconfig
-		sys-libs/zlib
-	)
+	dev-qt/linguist-tools:5
+	test? ( dev-qt/qttest:5 )
+	zlib? ( virtual/pkgconfig )
 "
 
 DOCS="README LICENSE"
 
-src_configure() {
-	local mycmakeargs=(
-		$(cmake-utils_use_with qt5 QT5)
-		$(cmake-utils_use_with password QTKEYCHAIN_PLUGIN)
-		$(cmake-utils_use_with test TESTS)
-		$(cmake-utils_use_with zlib 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
+src_prepare() {
+	cmake-utils_src_prepare
 
 	# the build system is taking a look at `git describe ... --dirty` and
 	# gentoo's modifications to CMakeLists.txt break these
 	sed -i "s/--dirty//" "${S}/cmake/TrojitaVersion.cmake" || die "Cannot fix the version check"
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DWITH_DBUS=$(usex dbus)
+		-DWITH_QTKEYCHAINPLUGIN=$(usex password)
+		-DWITH_TESTS=$(usex test)
+		-DWITH_ZLIB=$(usex zlib)
+	)
 
 	cmake-utils_src_configure
 }
 
 src_test() {
-	VIRTUALX_COMMAND=cmake-utils_src_test virtualmake
+	virtx cmake-utils_src_test
+}
+
+pkg_preinst() {
+	gnome2_icon_savelist
+}
+
+pkg_postinst() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+	fdo-mime_desktop_database_update
+	gnome2_icon_cache_update
 }


             reply	other threads:[~2016-01-29  8:39 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-29  8:39 Michael Palimaka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-07 19:10 [gentoo-commits] repo/gentoo:master commit in: mail-client/trojita/ Andreas Sturmlechner
2020-06-30 19:56 Andreas Sturmlechner
2020-06-29 17:37 Andreas Sturmlechner
2020-06-29 13:40 Agostino Sarubbo
2020-06-29 13:35 Agostino Sarubbo
2020-06-28 21:55 Andreas Sturmlechner
2020-04-19 12:01 Andreas Sturmlechner
2019-09-08 16:31 Andreas Sturmlechner
2019-09-08 16:29 Andreas Sturmlechner
2019-09-08 16:29 Andreas Sturmlechner
2019-05-21 18:41 Andreas Sturmlechner
2019-05-21 18:41 Andreas Sturmlechner
2019-05-21 18:41 Andreas Sturmlechner
2019-02-14 18:37 Andreas Sturmlechner
2018-04-18 17:49 Andreas Sturmlechner
2018-04-10  9:22 Andreas Sturmlechner
2018-04-10  9:22 Andreas Sturmlechner
2018-03-14 10:45 Michael Palimaka
2017-09-19 12:19 Michael Palimaka
2017-05-11 18:43 Andreas Sturmlechner
2017-05-11  8:37 Agostino Sarubbo
2017-05-11  7:51 Agostino Sarubbo
2016-12-21 12:27 Michael Palimaka
2016-07-17 18:59 Michael Palimaka
2016-06-22 11:33 Michael Palimaka
2016-06-15 13:20 Michael Palimaka
2016-06-15 13:20 Michael Palimaka
2016-03-18 11:17 Michael Palimaka
2016-03-05 22:51 Mikle Kolyada
2016-01-29  8:39 Michael Palimaka
2016-01-05 10:55 Agostino Sarubbo
2015-10-01 14:21 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1454056766.c04c058c778515b4757693f8371ebcf801b23772.kensington@gentoo \
    --to=kensington@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox