commit:     417eca12c16d84afa272f0db0870bc1a0c02ac6d
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Sat Jul 23 10:42:07 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Sat Jul 23 15:50:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=417eca12

net-im/nheko: add 0.10.0, fix deps

Add := to dependencies that need it, add dep to notification daemon.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 net-im/nheko/Manifest            |  1 +
 net-im/nheko/nheko-0.10.0.ebuild | 88 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/net-im/nheko/Manifest b/net-im/nheko/Manifest
index 9d1a22a42..916e18aeb 100644
--- a/net-im/nheko/Manifest
+++ b/net-im/nheko/Manifest
@@ -1,2 +1,3 @@
+DIST nheko-0.10.0.tar.gz 1587008 BLAKE2B 
207622bcc0fcbf4f1760481d3bdf35d5c025d9aa7d553c2dc4649841426481c88292966c35d44944434c1628c34017bb76f84136b6bcc8f8c3f32478156ac713
 SHA512 
c0aaf0f9ea657c43867fbb6857db45cac30f0cbaeaf8ad6a20a1a3e1ab9e6cf15266444eada060666db5b94be5a72b95b371a4da62e6705eed49f9907c576954
 DIST nheko-0.9.2.tar.gz 1418814 BLAKE2B 
e3f2f9358dd39d648c219eddea93f48ff7574cd954189f6c08bc7ace0429602acd1b859bb4987b1a34c93e17f8e547f6b0fb3c2a113a3a8a060dec5e25adbcc5
 SHA512 
86c0b5bf8e767125cc9e78c3a898df35fae5b34277253c8c98777f1814fcab36ff558576fa5b71de05df63223a866671473674fb8250eeee905a979dd0c978a9
 DIST nheko-0.9.3.tar.gz 1455446 BLAKE2B 
da68617e8cd2a74a41b9a14e107fdbc58a667ef2187e9680bb4514d2542ad99176aaed9bcc1184ec3cbd10b258b3910da99a0e63dfe82ccfc1c7e4f7715d4d95
 SHA512 
187348e8e274f727a638ca3cb3ed015b9f7cbb50eea2e33bc519cd216a74763cab265466001a82c584dcf91f950c41c3f7a4f3c1ac1f1564a8d5f7711eb37d5a

diff --git a/net-im/nheko/nheko-0.10.0.ebuild b/net-im/nheko/nheko-0.10.0.ebuild
new file mode 100644
index 000000000..40d6f8c73
--- /dev/null
+++ b/net-im/nheko/nheko-0.10.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake optfeature xdg
+
+DESCRIPTION="Native desktop client for Matrix using Qt"
+HOMEPAGE="https://github.com/Nheko-Reborn/nheko";
+SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="X video voip"
+REQUIRED_USE="video? ( voip )"
+
+MY_GST_V="1.18"
+RDEPEND="
+       app-text/cmark:=
+       dev-cpp/qt-jdenticon
+       dev-db/lmdb:=
+       >=dev-db/lmdb++-1.0.0
+       dev-libs/libfmt:=
+       >=dev-libs/mtxclient-0.8.0:=
+       >=dev-libs/qtkeychain-0.12.0:=
+       dev-libs/spdlog:=
+       dev-qt/qtconcurrent:5
+       dev-qt/qtdeclarative:5[widgets]
+       dev-qt/qtgraphicaleffects:5
+       dev-qt/qtgui:5[dbus,gif,jpeg,png]
+       dev-qt/qtimageformats
+       dev-qt/qtmultimedia:5[gstreamer,qml,widgets]
+       dev-qt/qtquickcontrols2:5[widgets]
+       dev-qt/qtsvg:5
+       virtual/notification-daemon
+       voip? (
+               >=media-plugins/gst-plugins-dtls-${MY_GST_V}
+               media-plugins/gst-plugins-libnice
+               >=media-plugins/gst-plugins-meta-${MY_GST_V}[opus]
+               >=media-plugins/gst-plugins-srtp-${MY_GST_V}
+               >=media-plugins/gst-plugins-webrtc-${MY_GST_V}
+               video? (
+                       >=media-libs/gst-plugins-base-${MY_GST_V}[opengl]
+                       >=media-plugins/gst-plugins-meta-${MY_GST_V}[v4l,vpx]
+                       >=media-plugins/gst-plugins-qt5-${MY_GST_V}
+                       X? (
+                               
>=media-plugins/gst-plugins-ximagesrc-${MY_GST_V}
+                               x11-libs/xcb-util-wm
+                       )
+               )
+       )
+"
+DEPEND="
+       dev-cpp/nlohmann_json
+       ${RDEPEND}
+"
+BDEPEND="
+       dev-qt/linguist-tools:5
+       || (
+               app-text/asciidoc
+               dev-ruby/asciidoctor
+       )
+"
+
+src_configure() {
+       local -a mycmakeargs=(
+               "-DVOIP=$(usex voip)"
+       )
+       if use video && use X; then
+               mycmakeargs+=("-DSCREENSHARE_X11=yes")
+       else
+               mycmakeargs+=("-DSCREENSHARE_X11=no")
+       fi
+
+       cmake_src_configure
+}
+
+pkg_postinst() {
+       optfeature "audio & video file playback support" \
+               "media-plugins/gst-plugins-meta[ffmpeg]"
+       optfeature "secrets storage support other than kwallet (for example 
gnome-keyring or keepassxc)" \
+               "dev-libs/qtkeychain[gnome-keyring]"
+       optfeature "additional, less common, image format support" \
+               "kde-frameworks/kimageformats"
+
+       xdg_pkg_postinst
+}

Reply via email to