summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-01-06 19:32:41 +0100
committerJeroen Roovers <jer@gentoo.org>2019-01-06 19:33:42 +0100
commit1997fe649efbf76893e60518cd84eb4c8a2da74c (patch)
tree41d083ebb2f83cbb3e91cd16a3146a302b4eae0a /www-client/otter
parentwww-client/opera: Old (diff)
downloadgentoo-1997fe649efbf76893e60518cd84eb4c8a2da74c.tar.gz
gentoo-1997fe649efbf76893e60518cd84eb4c8a2da74c.tar.bz2
gentoo-1997fe649efbf76893e60518cd84eb4c8a2da74c.zip
www-client/otter: Version 1.0.01
Package-Manager: Portage-2.3.53, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'www-client/otter')
-rw-r--r--www-client/otter/Manifest1
-rw-r--r--www-client/otter/otter-1.0.01.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/www-client/otter/Manifest b/www-client/otter/Manifest
index ff9a4d1449ad..c3e268eba469 100644
--- a/www-client/otter/Manifest
+++ b/www-client/otter/Manifest
@@ -1,2 +1,3 @@
DIST otter-0.9.99.2.tar.gz 4857916 BLAKE2B c6009c29c8740e9159dd874eb76db1245c3eae64f1f795a1dda0a6bb0f99f9d82595efa76ea1fdea0043e1131464718520d08b82d503c0ac07162f8631a499bf SHA512 5d30e826a011847be8f2df53efa3d389be350d139ed39abbd21fa7de2555769b5098a6f7849794463866be793365b3c91c527cfd3b17e06f32f61ec526756139
DIST otter-0.9.99.3.tar.gz 4861110 BLAKE2B c5672bfbd5bdd39bf294516c4ec3dc9e14a469b999434423c1e938dea6eec2c611a8ae7fdb004f93f122bed14c1c7d64203b73e68f55cd59cea48c2901fd3288 SHA512 35a8f24e6c9daf8cdc7aac8467ac4e3e32ea8447df2ded4effe0f514da2d248fa783e5edec8db910c8374905dc7171c45f4ef2a5f1d1f8b430c459cf15fba6e2
+DIST otter-1.0.01.tar.gz 4866820 BLAKE2B 7e23654142f35e17b4c4a240c4f8b897826229bae7cd5dabebc352a438881ff912829325547ee2a4bc7ec0a2b7c20640cb5e26ba7babb35435e987ebd86d2e75 SHA512 594bbdcbbc3b5fea903cc0beb749cf76be402cb1c2766706750bdbd6aad84f3d9f48687e1b12945f30e40b3876b9fbf511f41915fd276473b259d7311e33f19d
diff --git a/www-client/otter/otter-1.0.01.ebuild b/www-client/otter/otter-1.0.01.ebuild
new file mode 100644
index 000000000000..6b95bdb7e7ad
--- /dev/null
+++ b/www-client/otter/otter-1.0.01.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils desktop 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
+}