aboutsummaryrefslogtreecommitdiff
blob: 31bca77324b86bf5e1e786a56346527864c00f53 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PLUGINS_HASH="80fea7df7765fdf9c9c64fdb667052b25f1c0a22"
PLUGINS_VERSION="2017.03.26" # if there are no updates, we can use the older archive
# QT_MINIMAL="5.9.2"
inherit kde5

DESCRIPTION="Cross-platform web browser using QtWebEngine"
HOMEPAGE="https://www.qupzilla.com/"
SRC_URI+=" https://github.com/QupZilla/qupzilla-plugins/archive/${PLUGINS_HASH}.tar.gz -> qupzilla-plugins-${PLUGINS_VERSION}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="dbus gnome-keyring kwallet libressl nonblockdialogs +X"

RDEPEND="
	$(add_qt_dep qtdeclarative 'widgets')
	$(add_qt_dep qtgui)
	$(add_qt_dep qtnetwork 'ssl')
	$(add_qt_dep qtprintsupport)
	$(add_qt_dep qtsql 'sqlite')
	$(add_qt_dep qtwebchannel)
	$(add_qt_dep qtwebengine 'widgets')
	$(add_qt_dep qtwidgets)
	dbus? ( $(add_qt_dep qtdbus) )
	gnome-keyring? ( gnome-base/gnome-keyring )
	kwallet? ( $(add_frameworks_dep kwallet) )
	libressl? ( dev-libs/libressl:= )
	!libressl? ( dev-libs/openssl:0= )
	X? (
		$(add_qt_dep qtx11extras)
		x11-libs/libxcb:=
	)
"
DEPEND="${RDEPEND}
	$(add_qt_dep linguist-tools)
	$(add_qt_dep qtconcurrent)
	gnome-keyring? ( virtual/pkgconfig )
"

DOCS=( BUILDING.md CHANGELOG README.md )

src_unpack() {
	kde5_src_unpack
	[[ ${KDE_BUILD_TYPE} = live && -n ${A} ]] && default
}

src_prepare() {
	kde5_src_prepare
	# get extra plugins into qupzilla build tree
	mv "${WORKDIR}"/qupzilla-plugins-${PLUGINS_HASH}/plugins/* "${S}"/src/plugins/ || die
}

src_configure() {
	local mycmakeargs=(
		-DDISABLE_DBUS=$(usex dbus)
		-DBUILD_KEYRING=$(usex gnome-keyring)
		$(cmake-utils_use_find_package kwallet KF5Wallet)
		-DNONBLOCK_JS_DIALOGS=$(usex nonblockdialogs)
		-DNOT_X11=$(usex !X)
		-DDISABLE_UPDATES_CHECK=OFF
	)
	kde5_src_configure
}