summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-03-02 11:01:55 +0100
committerJeroen Roovers <jer@gentoo.org>2018-03-02 11:02:06 +0100
commitbfeafd6b3d8278c2eadcd35d296fe88b3f1b917d (patch)
treef5932ea33bfed1d810f7f7bae827c414c87ae598 /www-client/otter
parentmedia-libs/libepoxy: Revert "Drop old version" (diff)
downloadgentoo-bfeafd6b3d8278c2eadcd35d296fe88b3f1b917d.tar.gz
gentoo-bfeafd6b3d8278c2eadcd35d296fe88b3f1b917d.tar.bz2
gentoo-bfeafd6b3d8278c2eadcd35d296fe88b3f1b917d.zip
www-client/otter: Add USE=webengine (bug #649170).
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'www-client/otter')
-rw-r--r--www-client/otter/Manifest1
-rw-r--r--www-client/otter/metadata.xml3
-rw-r--r--www-client/otter/otter-0.9.96.ebuild90
3 files changed, 94 insertions, 0 deletions
diff --git a/www-client/otter/Manifest b/www-client/otter/Manifest
index cce333628673..d39b56b10176 100644
--- a/www-client/otter/Manifest
+++ b/www-client/otter/Manifest
@@ -1,2 +1,3 @@
DIST otter-0.9.94.tar.gz 4585316 BLAKE2B 7fd450b1cb0102006680964fa9f858b5bed12094e076b4ab5a0cfdb9f790f5627b67d1521d2715919ff3d469b7c953680833e0f091be1320dade9cfc4ea844a4 SHA512 33943c145d40b9fed0afdfa90cf46d2604978347421ac39bfa7d1e9a90c61542fcd8899d039a4b68fc4e7cd6f9175ac9381966e3bc4a822d45ca70a66b6e9f95
DIST otter-0.9.95.tar.gz 4592078 BLAKE2B 075a8f7bb9e2e88c4f797328052f3139dc7bbb122d7a5c8485ff8ea7fa111fcabf39863bb5d4fe8a8a3c5883ed78174cd7efa05087bf2dd599c2e23f330e0f36 SHA512 cda1c4e0e8e9fbb78eaaf9317749b5513d972a450a2c88936c120de9646452315067b308c63c8b61c98eff22c4fb7d9e75ca69054b87acd6706a9731f37a1b80
+DIST otter-0.9.96.tar.gz 4654502 BLAKE2B e56914aa0926c29de36cee5020b030d488c97801a5186e453941abaf9010cacc598b14ab43eba1d30a1bfc240188eec8d46138a635cd7b240eac40832cdfdd8b SHA512 3ced414122d912a61dca12dcf9e7477ff9eea209c6fa72bad4fbe100f2066e958de09f0d4d986ac1cf0b184f55169966669bebb998cdd033a01a6e3e6df1160b
diff --git a/www-client/otter/metadata.xml b/www-client/otter/metadata.xml
index 7c78c00a46c8..2fe0e982fcf1 100644
--- a/www-client/otter/metadata.xml
+++ b/www-client/otter/metadata.xml
@@ -5,6 +5,9 @@
<email>jer@gentoo.org</email>
<name>Jeroen Roovers</name>
</maintainer>
+<use>
+<flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> as backend instead of <pkg>dev-qt/qtwebkit</pkg> (experimental)</flag>
+</use>
<upstream>
<remote-id type="github">OtterBrowser/otter-browser</remote-id>
</upstream>
diff --git a/www-client/otter/otter-0.9.96.ebuild b/www-client/otter/otter-0.9.96.ebuild
new file mode 100644
index 000000000000..8796679bc7db
--- /dev/null
+++ b/www-client/otter/otter-0.9.96.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils cmake-utils gnome2-utils xdg-utils
+
+DESCRIPTION="Project aiming to recreate classic Opera (12.x) UI using Qt5"
+HOMEPAGE="http://otter-browser.org/"
+SRC_URI="https://github.com/OtterBrowser/${PN}-browser/archive/v${PV/_p/-dev}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="webengine spell"
+
+DEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtdbus:5
+ dev-qt/qtdeclarative:5
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtnetwork:5[ssl]
+ dev-qt/qtprintsupport:5
+ dev-qt/qtscript:5
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwebkit:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxmlpatterns:5
+ spell? ( kde-frameworks/sonnet )
+ webengine? ( >=dev-qt/qtwebengine-5.9:5[widgets] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+S=${WORKDIR}/${PN}-browser-${PV/_p/-dev}
+DOCS=( CHANGELOG CONTRIBUTING.md TODO )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ if [[ -n ${LINGUAS} ]]; then
+ local lingua
+ for lingua in resources/translations/*.qm; do
+ lingua=$(basename ${lingua})
+ lingua=${lingua/otter-browser_/}
+ lingua=${lingua/.qm/}
+ if ! has ${lingua} ${LINGUAS}; then
+ rm resources/translations/otter-browser_${lingua}.qm || die
+ fi
+ done
+ fi
+
+ if ! use spell; then
+ sed -i -e '/find_package(KF5Sonnet)/d' CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ if use webengine; then
+ mycmakeargs=(
+ -DENABLE_QTWEBENGINE=yes
+ -DENABLE_QTWEBKIT=no
+ )
+ else
+ mycmakeargs=(
+ -DENABLE_QTWEBENGINE=no
+ -DENABLE_QTWEBKIT=yes
+ )
+ fi
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ domenu ${PN}-browser.desktop
+}
+
+pkg_postinst() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+ xdg_desktop_database_update
+}