summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2018-08-07 09:55:39 +0200
committerJeroen Roovers <jer@gentoo.org>2018-08-07 11:54:31 +0200
commit2a62033eb1ef6738722a8d940f6949fcbf22e8bb (patch)
tree51eecd980b78c18ab4d3aa6f5c4de1c4aae9b41e
parentx11-misc/kdocker: version bump to 5.2 (diff)
downloadgentoo-2a62033eb1ef6738722a8d940f6949fcbf22e8bb.tar.gz
gentoo-2a62033eb1ef6738722a8d940f6949fcbf22e8bb.tar.bz2
gentoo-2a62033eb1ef6738722a8d940f6949fcbf22e8bb.zip
www-client/otter: Version 0.9.99.2.
Package-Manager: Portage-2.3.44, Repoman-2.3.10
-rw-r--r--www-client/otter/Manifest1
-rw-r--r--www-client/otter/otter-0.9.99.2.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/www-client/otter/Manifest b/www-client/otter/Manifest
index 090d0f596131..6854c7c1498c 100644
--- a/www-client/otter/Manifest
+++ b/www-client/otter/Manifest
@@ -1,2 +1,3 @@
DIST otter-0.9.99.1.tar.gz 4815838 BLAKE2B 466193891c13d1ac1837dbf4d845fe26fe1c2456afc20b31e75d5ae1d8579d0b80a87a5ac0cd8ae778a23db997dfcf438169634776da97d65a49e13d44a240d4 SHA512 333759ee0f846ce503d7a96ba7ce69fb7bfc4c08e8872b80f6230966d5d8f4c3d85b98b8e636500cc4e100f5c2d400ac7f622fbeb15ec1100614fe53fe73f88d
+DIST otter-0.9.99.2.tar.gz 4857916 BLAKE2B c6009c29c8740e9159dd874eb76db1245c3eae64f1f795a1dda0a6bb0f99f9d82595efa76ea1fdea0043e1131464718520d08b82d503c0ac07162f8631a499bf SHA512 5d30e826a011847be8f2df53efa3d389be350d139ed39abbd21fa7de2555769b5098a6f7849794463866be793365b3c91c527cfd3b17e06f32f61ec526756139
DIST otter-0.9.99.tar.gz 4758228 BLAKE2B 503f94bb341e4a1701b8935cb14d7b972f0a212a1c626743a2758e95d864be534737d320daf142738a983a95512c1985aa035afdd33ac62ac2947a68403c49dd SHA512 7178dc9e7b7ecb9a1e9e4910616366f7e4186be592795cd6f9674238b1f94855cec2fa4065651491265f9d713ca8149aca225feff85fff62938580a050ca1afc
diff --git a/www-client/otter/otter-0.9.99.2.ebuild b/www-client/otter/otter-0.9.99.2.ebuild
new file mode 100644
index 000000000000..a354d54d965f
--- /dev/null
+++ b/www-client/otter/otter-0.9.99.2.ebuild
@@ -0,0 +1,86 @@
+# 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 ~ppc64 ~x86"
+IUSE="webengine +webkit spell"
+REQUIRED_USE="
+ || ( webengine webkit )
+"
+
+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/qtwidgets:5
+ dev-qt/qtxmlpatterns:5
+ spell? ( kde-frameworks/sonnet )
+ webengine? ( >=dev-qt/qtwebengine-5.9:5[widgets] )
+ webkit? ( dev-qt/qtwebkit:5 )
+"
+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() {
+ mycmakeargs=(
+ -DENABLE_QTWEBENGINE="$(usex webengine)"
+ -DENABLE_QTWEBKIT="$(usex webkit)"
+ )
+
+ 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
+}