summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Huber <johu@gentoo.org>2016-04-19 15:03:39 +0200
committerJohannes Huber <johu@gentoo.org>2016-04-19 15:03:50 +0200
commitd46205cf6f5dc66a61fb39f4ca63acdc7b8765c3 (patch)
tree63a8953554b95e2f6cde7df5745601b566e8e956 /app-text
parentxfce-extra/xfce4-pulseaudio-plugin: Fix typo in metadata.xml (diff)
downloadgentoo-d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3.tar.gz
gentoo-d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3.tar.bz2
gentoo-d46205cf6f5dc66a61fb39f4ca63acdc7b8765c3.zip
app-text/kchmviewer: Fix desktop file
Gentoo-bug: 579430 Package-Manager: portage-2.2.28
Diffstat (limited to 'app-text')
-rw-r--r--app-text/kchmviewer/kchmviewer-7.5-r1.ebuild76
1 files changed, 76 insertions, 0 deletions
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 000000000000..2b68130c2263
--- /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
+}