From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A9EED59CB4 for ; Tue, 19 Apr 2016 13:04:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6044721C089; Tue, 19 Apr 2016 13:04:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0890021C089 for ; Tue, 19 Apr 2016 13:04:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 27E3C340961 for ; Tue, 19 Apr 2016 13:04:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 92E5F16C4 for ; Tue, 19 Apr 2016 13:03:58 +0000 (UTC) From: "Johannes Huber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Johannes Huber" Message-ID: <1461071030.d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3.johu@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/kchmviewer/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/kchmviewer/kchmviewer-7.5-r1.ebuild X-VCS-Directories: app-text/kchmviewer/ X-VCS-Committer: johu X-VCS-Committer-Name: Johannes Huber X-VCS-Revision: d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3 X-VCS-Branch: master Date: Tue, 19 Apr 2016 13:03:58 +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: 97ae95c5-01e2-401d-87f3-9ea33743e3d0 X-Archives-Hash: b061bd5e277dbe2a12ad94441bded3e4 commit: d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3 Author: Johannes Huber gentoo org> AuthorDate: Tue Apr 19 13:03:39 2016 +0000 Commit: Johannes Huber gentoo org> CommitDate: Tue Apr 19 13:03:50 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d46205cf app-text/kchmviewer: Fix desktop file Gentoo-bug: 579430 Package-Manager: portage-2.2.28 app-text/kchmviewer/kchmviewer-7.5-r1.ebuild | 76 ++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/app-text/kchmviewer/kchmviewer-7.5-r1.ebuild b/app-text/kchmviewer/kchmviewer-7.5-r1.ebuild new file mode 100644 index 0000000..2b68130 --- /dev/null +++ b/app-text/kchmviewer/kchmviewer-7.5-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit fdo-mime qmake-utils + +DESCRIPTION="Feature rich chm file viewer, based on Qt" +HOMEPAGE="http://www.kchmviewer.net/" +SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="qt5" + +RDEPEND=" + dev-libs/chmlib + dev-libs/libzip + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtdbus:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwebkit:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + ) + !qt5? ( + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + dev-qt/qtwebkit:4 + ) + +" +DEPEND="${RDEPEND}" + +src_prepare() { + # fix parallel build wrt bug #527192 + echo "src.depends = lib" >> ${PN}.pro || die + + # bug #579430 + sed -i \ + -e "s:zip:zip;:g" \ + packages/kchmviewer.desktop || die "Failed to fix desktop file" + + eapply_user +} + +src_configure() { + if use qt5; then + eqmake5 + else + eqmake4 + fi +} + +src_install() { + dodoc ChangeLog DBUS-bindings FAQ README + doicon packages/kchmviewer.png + + dobin bin/kchmviewer + domenu packages/kchmviewer.desktop + +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +}