blob: b032e21dc2cfa930db9b4d84f2d50418725ba17b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
KDE_HANDBOOK="forceoptional" # not optional until !kdelibs4support
KDE_TEST="true"
VIRTUALX_REQUIRED="test"
inherit flag-o-matic kde5
DESCRIPTION="Web browser and file manager based on KDE Frameworks"
HOMEPAGE="
https://www.kde.org/applications/internet/konqueror/
https://konqueror.org/
"
KEYWORDS=""
IUSE="activities speech tidy +webengine X"
# 4 of 4 tests fail. Last checked for 4.0.3
RESTRICT+=" test"
COMMON_DEPEND="
$(add_frameworks_dep karchive)
$(add_frameworks_dep kbookmarks)
$(add_frameworks_dep kcmutils)
$(add_frameworks_dep kcodecs)
$(add_frameworks_dep kcompletion)
$(add_frameworks_dep kconfig)
$(add_frameworks_dep kconfigwidgets)
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep kcrash)
$(add_frameworks_dep kdbusaddons)
$(add_frameworks_dep kdelibs4support)
$(add_frameworks_dep kdesu)
$(add_frameworks_dep kguiaddons)
$(add_frameworks_dep khtml)
$(add_frameworks_dep ki18n)
$(add_frameworks_dep kiconthemes)
$(add_frameworks_dep kio)
$(add_frameworks_dep kitemviews)
$(add_frameworks_dep kjobwidgets)
$(add_frameworks_dep kparts)
$(add_frameworks_dep kservice)
$(add_frameworks_dep kwallet)
$(add_frameworks_dep kwidgetsaddons)
$(add_frameworks_dep kwindowsystem)
$(add_frameworks_dep kxmlgui)
$(add_qt_dep qtdbus)
$(add_qt_dep qtgui)
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
sys-libs/zlib
speech? ( $(add_qt_dep qtspeech) )
tidy? ( app-text/tidy-html5 )
webengine? ( $(add_qt_dep qtwebengine 'widgets') )
X? ( $(add_qt_dep qtx11extras) )
"
DEPEND="${COMMON_DEPEND}
activities? ( $(add_frameworks_dep kactivities) )
"
RDEPEND="${COMMON_DEPEND}
!kde-apps/kfmclient:4
!kde-apps/konq-plugins
!kde-apps/libkonq:5
$(add_kdeapps_dep kfind)
$(add_plasma_dep kde-cli-tools)
!webengine? ( kde-misc/kwebkitpart:5 )
"
src_prepare() {
[[ ${CHOST} == *-solaris* ]] && append-ldflags -lmalloc
if ! use webengine; then
punt_bogus_dep Qt5 WebEngineWidgets
cmake_comment_add_subdirectory webenginepart
fi
kde5_src_prepare
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package activities KF5Activities)
$(cmake-utils_use_find_package speech Qt5TextToSpeech)
$(cmake-utils_use_find_package tidy LibTidy)
$(cmake-utils_use_find_package X X11)
)
kde5_src_configure
}
pkg_postinst() {
kde5_pkg_postinst
if [[ -z "${REPLACING_VERSIONS}" ]]; then
if ! has_version kde-apps/keditbookmarks:${SLOT} ; then
elog "For bookmarks support, install keditbookmarks:"
elog "kde-apps/keditbookmarks:${SLOT}"
fi
if ! has_version kde-apps/dolphin:${SLOT} ; then
elog "If you want to use konqueror as a filemanager, install the dolphin kpart:"
elog "kde-apps/dolphin:${SLOT}"
fi
if ! has_version kde-apps/svg:${SLOT} ; then
elog "For konqueror to view SVGs, install the svg kpart:"
elog "kde-apps/svgpart:${SLOT}"
fi
if ! has_version virtual/jre ; then
elog "To use Java on webpages install virtual/jre."
fi
fi
}
|