summaryrefslogtreecommitdiff
path: root/app-text/kchmviewer
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/kchmviewer')
-rw-r--r--app-text/kchmviewer/Manifest5
-rw-r--r--app-text/kchmviewer/files/kchmviewer-7.7-force-qtwebkit.patch26
-rw-r--r--app-text/kchmviewer/files/kchmviewer-7.7-underlinking.patch11
-rw-r--r--app-text/kchmviewer/kchmviewer-7.7-r1.ebuild53
-rw-r--r--app-text/kchmviewer/metadata.xml21
5 files changed, 116 insertions, 0 deletions
diff --git a/app-text/kchmviewer/Manifest b/app-text/kchmviewer/Manifest
new file mode 100644
index 000000000000..366f626ec757
--- /dev/null
+++ b/app-text/kchmviewer/Manifest
@@ -0,0 +1,5 @@
+AUX kchmviewer-7.7-force-qtwebkit.patch 960 BLAKE2B da573cf4eb4a2668b7d37356df270f002cda5f1ca54055fbed36dc9f95bd8373934d8befa2b635f23074e0ce69cb9707cfd41cfab223c6254cb68c4fdade8a3b SHA512 bb93256211bc7390acb52b142da5cd12dc4c8220fdf745c6b5dcc93bfba8880272ad0134c868409afe5fe6ea3bcae47cebe1aaab13cdead6556bf15bd838b549
+AUX kchmviewer-7.7-underlinking.patch 300 BLAKE2B 02d86fad61fe727e5bebdd8b340bd9a70ccde78d04ef65b2dcbc517a76304b5788412d16ba727bc7575087a9c0229c814550c25f80edba6ca6332a9dfd366f8d SHA512 004056e7ba232a80f76fe7a8955a2ef621d8148f7c594c78ae3136dca7ca8d3c39e8ab3081f75b3181bef3c9a720601cc7e65ba371b95853faa4bf845e80d0ec
+DIST kchmviewer-7.7.tar.gz 345952 BLAKE2B 7c42f3d05c7a46163d4e63af271ba73932dc2f7eb20e4e0c2c5dc2b335f488593288e4dd5b0a03b75ee7a008836a16b86ec8f47aa6d076b6351d48290a23bdef SHA512 e217db388f99142114e4de6735916d46c9d89f144390b58dffd739ed7246048c23af75c2eb9effba3e942a21564f9205265155a93a21d6343bea83a26fd99070
+EBUILD kchmviewer-7.7-r1.ebuild 958 BLAKE2B f0eb5ffbe23d8bebab285411619f6cb7347461558a1bde4d1b487eb3408349d2012a0c73d31e2026269ca33371304ee417125d3accd040862ade78edac84d04d SHA512 960de65730bdd95a7db91a6d77f90f3b547050ec9f74246053d6fbf6daf57ef885b8d85c20d6bf7fe5276b94fca6254706fad64cca29e229b0f4b9bf87a29b8b
+MISC metadata.xml 979 BLAKE2B 0b17a5a299dbe5f72ee4a1bfd7262447325ca4276400e0bd159af969e4f9590a47c20d777121b31496e5c2b51e4d8684662dd79c4ee6bc116c71453cd7639834 SHA512 e7786881fccd93bebb9ee1e0904d18b9eb1c6604f36aecd44673f3cd59c09955a9bde08bf765efee3422bc9c514d59040375e770f960163640acc0577642d399
diff --git a/app-text/kchmviewer/files/kchmviewer-7.7-force-qtwebkit.patch b/app-text/kchmviewer/files/kchmviewer-7.7-force-qtwebkit.patch
new file mode 100644
index 000000000000..897c62a998c2
--- /dev/null
+++ b/app-text/kchmviewer/files/kchmviewer-7.7-force-qtwebkit.patch
@@ -0,0 +1,26 @@
+Gentoo still ships QtWebKit in 5.6 and later, so don't try and fail to use QtWebEngine.
+
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -113,21 +113,11 @@
+ }
+
+ greaterThan(QT_MAJOR_VERSION, 4) {
+- # Qt 5
+- greaterThan(QT_MINOR_VERSION, 5) {
+- # Qt 5.6+
+- error("You use Qt5.6+ - QWebEngine is not yet suitable for kchmviewer and is not supported")
+- QT += webengine webenginewidgets
+- DEFINES += USE_WEBENGINE
+- SOURCES += viewwindow_webengine.cpp dataprovider_qwebengine.cpp
+- HEADERS += dataprovider_qwebengine.h viewwindow_webengine.h
+- } else {
+ # Qt 5.0-5.5
+ QT += webkit webkitwidgets
+ DEFINES += USE_WEBKIT
+ SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
+ HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
+- }
+ } else {
+ message("Qt4 is not supported anymore, please do not report any errors")
+ QT += webkit webkitwidgets
diff --git a/app-text/kchmviewer/files/kchmviewer-7.7-underlinking.patch b/app-text/kchmviewer/files/kchmviewer-7.7-underlinking.patch
new file mode 100644
index 000000000000..75bfed89cbdd
--- /dev/null
+++ b/app-text/kchmviewer/files/kchmviewer-7.7-underlinking.patch
@@ -0,0 +1,11 @@
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -108,7 +108,7 @@
+ HEADERS += dbus_interface.h
+ SOURCES += dbus_interface.cpp
+ CONFIG += dbus
+- LIBS += ../lib/libebook/libebook.a
++ LIBS += ../lib/libebook/libebook.a -lchm -lzip
+ POST_TARGETDEPS += ../lib/libebook/libebook.a
+ }
+
diff --git a/app-text/kchmviewer/kchmviewer-7.7-r1.ebuild b/app-text/kchmviewer/kchmviewer-7.7-r1.ebuild
new file mode 100644
index 000000000000..f9d3ca256aad
--- /dev/null
+++ b/app-text/kchmviewer/kchmviewer-7.7-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils qmake-utils xdg-utils
+
+DESCRIPTION="Feature rich chm file viewer, based on Qt"
+HOMEPAGE="https://www.ulduzsoft.com/kchmviewer/"
+SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ dev-libs/chmlib
+ dev-libs/libzip:=
+ 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
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-force-qtwebkit.patch"
+ "${FILESDIR}/${P}-underlinking.patch"
+)
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ dodoc ChangeLog DBUS-bindings FAQ README
+ doicon packages/kchmviewer.png
+ dobin bin/kchmviewer
+ domenu packages/kchmviewer.desktop
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/app-text/kchmviewer/metadata.xml b/app-text/kchmviewer/metadata.xml
new file mode 100644
index 000000000000..2c14212dc2e8
--- /dev/null
+++ b/app-text/kchmviewer/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ KchmViewer is a chm (MS HTML help file format) viewer It uses Trolltech Qt
+ widget library with optional KDE libraries. It does not require KDE, but may
+ be compiled with full KDE support, including KDE widgets and KIO/KHTML. The
+ main advantage of KchmViewer is extra support for non-English languages.
+ Unlike other viewers, KchmViewer in most cases is able to detect help file
+ encoding, correctly shows tables of context of Russian, Korean, Chinese and
+ Japanese help files, and does correct search in non-English help files
+ (search for MBCS languages - ja/ko/ch is still in progress).
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">kchmviewer</remote-id>
+ </upstream>
+</pkgmetadata>