commit:     61cd00b40223f6ffe8e4168a4f6c15a83770def2
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Thu Sep  8 00:08:10 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Thu Sep  8 00:08:10 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=61cd00b4

net-im/nheko: add 0.10.1

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

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

diff --git a/net-im/nheko/Manifest b/net-im/nheko/Manifest
index e27ef876c..be5f241a4 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.10.1.tar.gz 1608578 BLAKE2B 
328255d6ea8ce3fd0d1bbe9f20bb9608eba4c479b6969db7bebc67f3406ae8c6e9d69432d304b28e49b8547cf293e4f103d3f8257df4fbc676db9e6ca037ff48
 SHA512 
898582c1a09ad9cfac3285f0bc5e80bb5e69b1d744118822167bbe09e9aa44c2b28438db2d3b6e1fa88835de2b0e2f58726d3876661f28c5eb46475e2f54bc20
 DIST nheko-0.9.3.tar.gz 1455446 BLAKE2B 
da68617e8cd2a74a41b9a14e107fdbc58a667ef2187e9680bb4514d2542ad99176aaed9bcc1184ec3cbd10b258b3910da99a0e63dfe82ccfc1c7e4f7715d4d95
 SHA512 
187348e8e274f727a638ca3cb3ed015b9f7cbb50eea2e33bc519cd216a74763cab265466001a82c584dcf91f950c41c3f7a4f3c1ac1f1564a8d5f7711eb37d5a

diff --git a/net-im/nheko/nheko-0.10.1.ebuild b/net-im/nheko/nheko-0.10.1.ebuild
new file mode 100644
index 000000000..5e4e00a92
--- /dev/null
+++ b/net-im/nheko/nheko-0.10.1.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.1:=
+       >=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