From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB009138330 for ; Sat, 13 Jan 2018 11:13:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE4D8E0A8B; Sat, 13 Jan 2018 11:13:25 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B9ADAE0A8B for ; Sat, 13 Jan 2018 11:13:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 113F9335C4D for ; Sat, 13 Jan 2018 11:13:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 54320186 for ; Sat, 13 Jan 2018 11:13:22 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1515842000.b4f6f083191be5038f194b2ce070b0fc7d8ad9f7.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/qtfm/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-misc/qtfm/Manifest x11-misc/qtfm/qtfm-5.9.ebuild X-VCS-Directories: x11-misc/qtfm/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: b4f6f083191be5038f194b2ce070b0fc7d8ad9f7 X-VCS-Branch: master Date: Sat, 13 Jan 2018 11:13:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8124f573-7679-45f9-b518-d10db4348e8a X-Archives-Hash: 2c6b0036db35d9ed16011ac3c244612a commit: b4f6f083191be5038f194b2ce070b0fc7d8ad9f7 Author: Jeroen Roovers gentoo org> AuthorDate: Sat Jan 13 11:12:54 2018 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sat Jan 13 11:13:20 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f6f083 x11-misc/qtfm: Version 5.9 (bug #592194 by Vincent Hardy). Package-Manager: Portage-2.3.19, Repoman-2.3.6 x11-misc/qtfm/Manifest | 1 + x11-misc/qtfm/qtfm-5.9.ebuild | 76 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) diff --git a/x11-misc/qtfm/Manifest b/x11-misc/qtfm/Manifest index 1170598aa4e..aa2a3a071e5 100644 --- a/x11-misc/qtfm/Manifest +++ b/x11-misc/qtfm/Manifest @@ -1 +1,2 @@ DIST qtfm-5.5.tar.gz 149667 BLAKE2B f369495fd5fba183e7bb5b38db61a8a667d5835b42cf78f424d0db4bb4f0c7fcb0856578df30cb50547c7799fa16147d17951b72d99398937774bd097487ccbf SHA512 0d592b482f35c76b424cc581394d34299bb93367f287f57718d640df256f352fef7e389a8370889d0d78ca8afb9868cdfb56ae15671614e279365b72f9e629e0 +DIST qtfm-5.9.zip 172616 BLAKE2B 50219cb9afbca78b4fe7767631e91008254f6a4e745c3f1b87b821dc49655117d6d61a0aeb37cb1771641aac6b5ccfa8eefaa6e2f6d453c68061594e47bf5c5e SHA512 7686a84f1678e1f04f439d65290f5c93da25fbe80487a37f4ce32eae0d29d7a03a169d3dd9cbc81c2b678f54d9fdc01967b6c1b1cb8a19cf37a910a19918a2ba diff --git a/x11-misc/qtfm/qtfm-5.9.ebuild b/x11-misc/qtfm/qtfm-5.9.ebuild new file mode 100644 index 00000000000..b6555362773 --- /dev/null +++ b/x11-misc/qtfm/qtfm-5.9.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit qmake-utils xdg-utils + +DESCRIPTION="A small, lightweight file manager for desktops based on pure Qt" +HOMEPAGE="http://www.qtfm.org/" +SRC_URI="https://dev.gentoo.org/~jer/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + sys-apps/file +" +DEPEND=" + ${RDEPEND} + dev-qt/qtchooser +" +PATCHES=( "${FILESDIR}"/${PN}-5.5-gcc6.patch ) +S=${WORKDIR}/${PN}-master + +QTFM_LINGUAS=" + da de es fr it pl ru sr sv zh zh_TW +" +for lingua in ${QTFM_LINGUAS}; do + IUSE+=" l10n_${lingua/_/-}" +done + +src_prepare() { + rm translations/${PN}_XX.ts || die + + default + + sed -i \ + -e '/MimeType=/s|$|;|' \ + -e '/Categories=/s|$|;System;FileTools;|' \ + ${PN}.desktop || die +} + +src_configure() { + if [[ -n "${L10N}" ]]; then + local lingua + for lingua in ${QTFM_LINGUAS}; do + if ! use l10n_${lingua/_/-}; then + sed -i -e "s:translations/${PN}_${lingua}.qm::g" ${PN}.pro || die + rm translations/${PN}_${lingua}.ts || die + fi + done + fi + + lrelease translations/*.ts || die + eqmake5 +} + +src_install() { + emake INSTALL_ROOT="${D}" install + + einstalldocs +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +}