Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/konqueror/files/, kde-apps/konqueror/
Date: Sun, 18 Nov 2018 19:05:04
Message-Id: 1542567877.be2e1a24cd6c969690ca7a2bc40d98203fbee551.asturm@gentoo
1 commit: be2e1a24cd6c969690ca7a2bc40d98203fbee551
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 18 18:04:26 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 18 19:04:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be2e1a24
7
8 kde-apps/konqueror: Switch USE tidy to app-text/tidy-html5
9
10 Bug: https://bugs.gentoo.org/671450
11 Package-Manager: Portage-2.3.51, Repoman-2.3.12
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 .../files/konqueror-18.08.3-tidyhtml5.patch | 46 +++++++++
15 kde-apps/konqueror/konqueror-18.08.3-r1.ebuild | 113 +++++++++++++++++++++
16 2 files changed, 159 insertions(+)
17
18 diff --git a/kde-apps/konqueror/files/konqueror-18.08.3-tidyhtml5.patch b/kde-apps/konqueror/files/konqueror-18.08.3-tidyhtml5.patch
19 new file mode 100644
20 index 00000000000..dae1486d580
21 --- /dev/null
22 +++ b/kde-apps/konqueror/files/konqueror-18.08.3-tidyhtml5.patch
23 @@ -0,0 +1,46 @@
24 +From 29955abce07526d01f3298da9d2f15bd9eb5e6f4 Mon Sep 17 00:00:00 2001
25 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
26 +Date: Sun, 18 Nov 2018 18:07:32 +0100
27 +Subject: [PATCH] Switch to tidy-html5 and use tidybuffio.h instead of buffio.h
28 +
29 +Summary: Header was renamed a few years ago.
30 +
31 +Test Plan: Builds and validates fine.
32 +
33 +Reviewers: #konqueror
34 +
35 +Differential Revision: https://phabricator.kde.org/D16982
36 +---
37 + plugins/validators/CMakeLists.txt | 2 +-
38 + plugins/validators/tidy_validator.cpp | 2 +-
39 + 2 files changed, 2 insertions(+), 2 deletions(-)
40 +
41 +diff --git a/plugins/validators/CMakeLists.txt b/plugins/validators/CMakeLists.txt
42 +index cf3b70694..7f6060e9c 100644
43 +--- a/plugins/validators/CMakeLists.txt
44 ++++ b/plugins/validators/CMakeLists.txt
45 +@@ -4,7 +4,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
46 + find_package(LibTidy)
47 + find_package(KF5 REQUIRED KHtml WidgetsAddons IconThemes)
48 + set_package_properties(LibTidy PROPERTIES DESCRIPTION "HTML Tidy"
49 +- URL "http://tidy.sourceforge.net"
50 ++ URL "http://www.html-tidy.org/"
51 + TYPE OPTIONAL
52 + PURPOSE "Gives the Konqueror validators plugin the ability to validate HTML"
53 + )
54 +diff --git a/plugins/validators/tidy_validator.cpp b/plugins/validators/tidy_validator.cpp
55 +index 3247199f9..ac22429d0 100644
56 +--- a/plugins/validators/tidy_validator.cpp
57 ++++ b/plugins/validators/tidy_validator.cpp
58 +@@ -25,7 +25,7 @@
59 +
60 + #include <kdebug.h>
61 +
62 +-#include <buffio.h>
63 ++#include <tidybuffio.h>
64 + #include <tidy.h>
65 +
66 + #include <config-konq-validator.h>
67 +--
68 +2.19.1
69 +
70
71 diff --git a/kde-apps/konqueror/konqueror-18.08.3-r1.ebuild b/kde-apps/konqueror/konqueror-18.08.3-r1.ebuild
72 new file mode 100644
73 index 00000000000..c84260236ac
74 --- /dev/null
75 +++ b/kde-apps/konqueror/konqueror-18.08.3-r1.ebuild
76 @@ -0,0 +1,113 @@
77 +# Copyright 1999-2018 Gentoo Authors
78 +# Distributed under the terms of the GNU General Public License v2
79 +
80 +EAPI=6
81 +
82 +KDE_HANDBOOK="forceoptional" # not optional until !kdelibs4support
83 +KDE_TEST="true"
84 +VIRTUALX_REQUIRED="test"
85 +inherit flag-o-matic kde5
86 +
87 +DESCRIPTION="Web browser and file manager based on KDE Frameworks"
88 +HOMEPAGE="
89 + https://www.kde.org/applications/internet/konqueror/
90 + https://konqueror.org/
91 +"
92 +KEYWORDS="~amd64 ~x86"
93 +IUSE="activities speech tidy +webengine X"
94 +# 4 of 4 tests fail. Last checked for 4.0.3
95 +RESTRICT+=" test"
96 +
97 +COMMON_DEPEND="
98 + $(add_frameworks_dep karchive)
99 + $(add_frameworks_dep kbookmarks)
100 + $(add_frameworks_dep kcmutils)
101 + $(add_frameworks_dep kcodecs)
102 + $(add_frameworks_dep kcompletion)
103 + $(add_frameworks_dep kconfig)
104 + $(add_frameworks_dep kconfigwidgets)
105 + $(add_frameworks_dep kcoreaddons)
106 + $(add_frameworks_dep kcrash)
107 + $(add_frameworks_dep kdbusaddons)
108 + $(add_frameworks_dep kdelibs4support)
109 + $(add_frameworks_dep kdesu)
110 + $(add_frameworks_dep kguiaddons)
111 + $(add_frameworks_dep khtml)
112 + $(add_frameworks_dep ki18n)
113 + $(add_frameworks_dep kiconthemes)
114 + $(add_frameworks_dep kio)
115 + $(add_frameworks_dep kitemviews)
116 + $(add_frameworks_dep kjobwidgets)
117 + $(add_frameworks_dep kparts)
118 + $(add_frameworks_dep kservice)
119 + $(add_frameworks_dep kwallet)
120 + $(add_frameworks_dep kwidgetsaddons)
121 + $(add_frameworks_dep kwindowsystem)
122 + $(add_frameworks_dep kxmlgui)
123 + $(add_qt_dep qtdbus)
124 + $(add_qt_dep qtgui)
125 + $(add_qt_dep qtwidgets)
126 + $(add_qt_dep qtxml)
127 + sys-libs/zlib
128 + speech? ( $(add_qt_dep qtspeech) )
129 + tidy? ( app-text/tidy-html5 )
130 + webengine? ( $(add_qt_dep qtwebengine 'widgets') )
131 + X? ( $(add_qt_dep qtx11extras) )
132 +"
133 +DEPEND="${COMMON_DEPEND}
134 + activities? ( $(add_frameworks_dep kactivities) )
135 +"
136 +RDEPEND="${COMMON_DEPEND}
137 + !kde-apps/kfmclient:4
138 + !kde-apps/konq-plugins
139 + !kde-apps/libkonq:5
140 + $(add_kdeapps_dep kfind)
141 + $(add_plasma_dep kde-cli-tools)
142 + !webengine? ( kde-misc/kwebkitpart:5 )
143 +"
144 +
145 +PATCHES=( "${FILESDIR}/${P}-tidyhtml5.patch" )
146 +
147 +src_prepare() {
148 + [[ ${CHOST} == *-solaris* ]] && append-ldflags -lmalloc
149 +
150 + if ! use webengine; then
151 + punt_bogus_dep Qt5 WebEngineWidgets
152 + cmake_comment_add_subdirectory webenginepart
153 + fi
154 +
155 + kde5_src_prepare
156 +}
157 +
158 +src_configure() {
159 + local mycmakeargs=(
160 + $(cmake-utils_use_find_package activities KF5Activities)
161 + $(cmake-utils_use_find_package speech Qt5TextToSpeech)
162 + $(cmake-utils_use_find_package tidy LibTidy)
163 + $(cmake-utils_use_find_package X X11)
164 + )
165 + kde5_src_configure
166 +}
167 +
168 +pkg_postinst() {
169 + kde5_pkg_postinst
170 +
171 + if ! has_version kde-apps/keditbookmarks:${SLOT} ; then
172 + elog "For bookmarks support, install keditbookmarks:"
173 + elog "kde-apps/keditbookmarks:${SLOT}"
174 + fi
175 +
176 + if ! has_version kde-apps/dolphin:${SLOT} ; then
177 + elog "If you want to use konqueror as a filemanager, install the dolphin kpart:"
178 + elog "kde-apps/dolphin:${SLOT}"
179 + fi
180 +
181 + if ! has_version kde-apps/svg:${SLOT} ; then
182 + elog "For konqueror to view SVGs, install the svg kpart:"
183 + elog "kde-apps/svgpart:${SLOT}"
184 + fi
185 +
186 + if ! has_version virtual/jre ; then
187 + elog "To use Java on webpages install virtual/jre."
188 + fi
189 +}