summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-12-02 21:47:02 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-12-03 00:13:04 +0100
commitb6cc3b488b6a9c2c2901537f7da6c9cae99aa70a (patch)
tree7bc539f20fdcadda4548c70ffbf730a408191545
parent*/*: Drop ~alpha from all dev-qt/* and revdeps (diff)
downloadkde-sunset-b6cc3b488b6a9c2c2901537f7da6c9cae99aa70a.tar.gz
kde-sunset-b6cc3b488b6a9c2c2901537f7da6c9cae99aa70a.tar.bz2
kde-sunset-b6cc3b488b6a9c2c2901537f7da6c9cae99aa70a.zip
app-text/kchmviewer: Drop fdo-mime and base, use epatch and desktop instead
- Drop ~ppc ~ppc64 from KEYWORDS - Drop KDE_LINGUAS - Fix HOMEPAGE - Fix metadata indendation - Add missing || die - Move blocker to RDEPEND-only Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--app-text/kchmviewer/kchmviewer-6.0-r1.ebuild37
-rw-r--r--app-text/kchmviewer/metadata.xml22
2 files changed, 27 insertions, 32 deletions
diff --git a/app-text/kchmviewer/kchmviewer-6.0-r1.ebuild b/app-text/kchmviewer/kchmviewer-6.0-r1.ebuild
index a4a35f16..64f2f7e4 100644
--- a/app-text/kchmviewer/kchmviewer-6.0-r1.ebuild
+++ b/app-text/kchmviewer/kchmviewer-6.0-r1.ebuild
@@ -1,41 +1,43 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=6
KDE_REQUIRED="optional"
-KDE_LINGUAS="cs fr hu it nl pt_BR ru sv tr uk zh_CN zh_TW"
KDE_LINGUAS_DIR="po"
-inherit base eutils fdo-mime qt4-r2 kde4-base
+inherit desktop kde4-base xdg-utils
DESCRIPTION="A feature rich chm file viewer, based on Qt"
-HOMEPAGE="http://www.kchmviewer.net/"
+HOMEPAGE="https://www.ulduzsoft.com/linux/kchmviewer/"
SRC_URI="mirror://sourceforge/kchmviewer/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="amd64 ~ppc ~ppc64 x86"
+KEYWORDS="amd64 x86"
IUSE="debug kde"
-RDEPEND="
+DEPEND="
dev-libs/chmlib
dev-qt/qtcore:4
dev-qt/qtdbus:4
dev-qt/qtgui:4
dev-qt/qtwebkit:4
- kde? (
- kde-frameworks/kdelibs:4
- !kde-apps/okular[chm]
- )
+ kde? ( kde-frameworks/kdelibs:4 )
+"
+RDEPEND="${DEPEND}
+ kde? ( !kde-apps/okular[chm] )
"
-DEPEND="${RDEPEND}"
pkg_setup() {
use kde && kde4-base_pkg_setup
}
src_prepare() {
- base_src_prepare
+ if use kde; then
+ kde4-base_src_prepare
+ else
+ default
+ fi
sed -e "s:KDE4_ICON_INSTALL_DIR:ICON_INSTALL_DIR:" \
-e "s:KDE4_XDG_APPS_INSTALL_DIR:XDG_APPS_INSTALL_DIR:" \
-i packages/CMakeLists.txt || die
@@ -45,13 +47,6 @@ src_prepare() {
sed -e "/Encoding=UTF-8/d" \
-i packages/kchmviewer.desktop || die "fixing .desktop file failed"
-
- local lang
- for lang in ${KDE_LINGUAS} ; do
- if ! use linguas_${lang} ; then
- rm ${KDE_LINGUAS_DIR}/${PN}_${lang}.po
- fi
- done
}
src_configure() {
@@ -84,10 +79,10 @@ src_install() {
pkg_postinst() {
use kde && kde4-base_pkg_postinst
- fdo-mime_desktop_database_update
+ xdg_desktop_database_update
}
pkg_postrm() {
use kde && kde4-base_pkg_postrm
- fdo-mime_desktop_database_update
+ xdg_desktop_database_update
}
diff --git a/app-text/kchmviewer/metadata.xml b/app-text/kchmviewer/metadata.xml
index 1fea2d54..8a914ee0 100644
--- a/app-text/kchmviewer/metadata.xml
+++ b/app-text/kchmviewer/metadata.xml
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- <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>
+ <!-- maintainer-needed -->
+ <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>
</pkgmetadata>