Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/nheko/
Date: Wed, 28 Sep 2022 16:05:06
Message-Id: 1664380172.0fbfa0c18d5707d49fac4838101c2feec1648cca.tastytea@gentoo
1 commit: 0fbfa0c18d5707d49fac4838101c2feec1648cca
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Wed Sep 28 15:40:10 2022 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Wed Sep 28 15:49:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0fbfa0c1
7
8 net-im/nheko: add 0.10.2
9
10 fixes a security issue:
11 <https://github.com/Nheko-Reborn/nheko/commit/67bee15>
12
13 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
14
15 net-im/nheko/Manifest | 1 +
16 net-im/nheko/nheko-0.10.2.ebuild | 88 ++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 89 insertions(+)
18
19 diff --git a/net-im/nheko/Manifest b/net-im/nheko/Manifest
20 index 5734fb832..5e1165ff7 100644
21 --- a/net-im/nheko/Manifest
22 +++ b/net-im/nheko/Manifest
23 @@ -1,2 +1,3 @@
24 DIST nheko-0.10.0.tar.gz 1587008 BLAKE2B 207622bcc0fcbf4f1760481d3bdf35d5c025d9aa7d553c2dc4649841426481c88292966c35d44944434c1628c34017bb76f84136b6bcc8f8c3f32478156ac713 SHA512 c0aaf0f9ea657c43867fbb6857db45cac30f0cbaeaf8ad6a20a1a3e1ab9e6cf15266444eada060666db5b94be5a72b95b371a4da62e6705eed49f9907c576954
25 DIST nheko-0.10.1.tar.gz 1608578 BLAKE2B 328255d6ea8ce3fd0d1bbe9f20bb9608eba4c479b6969db7bebc67f3406ae8c6e9d69432d304b28e49b8547cf293e4f103d3f8257df4fbc676db9e6ca037ff48 SHA512 898582c1a09ad9cfac3285f0bc5e80bb5e69b1d744118822167bbe09e9aa44c2b28438db2d3b6e1fa88835de2b0e2f58726d3876661f28c5eb46475e2f54bc20
26 +DIST nheko-0.10.2.tar.gz 1608905 BLAKE2B 10b7b7d1f3e7525ae5ec4b78af228382440c5c64a3716b530506346372856035435d6e2d4e1724f2580ee384852ab0dd4e4b728eed92df827dc5cb3f2853b30b SHA512 b00c45115ab52f9cce5958aa594f6d316bdb917004e284d28ba3003c815bdc532ff1e7bbd5e542bb89a43fd552af3fa44b70ce66eb26b0bcff65beaea1f6b3cd
27
28 diff --git a/net-im/nheko/nheko-0.10.2.ebuild b/net-im/nheko/nheko-0.10.2.ebuild
29 new file mode 100644
30 index 000000000..5e4e00a92
31 --- /dev/null
32 +++ b/net-im/nheko/nheko-0.10.2.ebuild
33 @@ -0,0 +1,88 @@
34 +# Copyright 2020-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit cmake optfeature xdg
40 +
41 +DESCRIPTION="Native desktop client for Matrix using Qt"
42 +HOMEPAGE="https://github.com/Nheko-Reborn/nheko"
43 +SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="X video voip"
49 +REQUIRED_USE="video? ( voip )"
50 +
51 +MY_GST_V="1.18"
52 +RDEPEND="
53 + app-text/cmark:=
54 + dev-cpp/qt-jdenticon
55 + dev-db/lmdb:=
56 + >=dev-db/lmdb++-1.0.0
57 + dev-libs/libfmt:=
58 + >=dev-libs/mtxclient-0.8.1:=
59 + >=dev-libs/qtkeychain-0.12.0:=
60 + dev-libs/spdlog:=
61 + dev-qt/qtconcurrent:5
62 + dev-qt/qtdeclarative:5[widgets]
63 + dev-qt/qtgraphicaleffects:5
64 + dev-qt/qtgui:5[dbus,gif,jpeg,png]
65 + dev-qt/qtimageformats
66 + dev-qt/qtmultimedia:5[gstreamer,qml,widgets]
67 + dev-qt/qtquickcontrols2:5[widgets]
68 + dev-qt/qtsvg:5
69 + virtual/notification-daemon
70 + voip? (
71 + >=media-plugins/gst-plugins-dtls-${MY_GST_V}
72 + media-plugins/gst-plugins-libnice
73 + >=media-plugins/gst-plugins-meta-${MY_GST_V}[opus]
74 + >=media-plugins/gst-plugins-srtp-${MY_GST_V}
75 + >=media-plugins/gst-plugins-webrtc-${MY_GST_V}
76 + video? (
77 + >=media-libs/gst-plugins-base-${MY_GST_V}[opengl]
78 + >=media-plugins/gst-plugins-meta-${MY_GST_V}[v4l,vpx]
79 + >=media-plugins/gst-plugins-qt5-${MY_GST_V}
80 + X? (
81 + >=media-plugins/gst-plugins-ximagesrc-${MY_GST_V}
82 + x11-libs/xcb-util-wm
83 + )
84 + )
85 + )
86 +"
87 +DEPEND="
88 + dev-cpp/nlohmann_json
89 + ${RDEPEND}
90 +"
91 +BDEPEND="
92 + dev-qt/linguist-tools:5
93 + || (
94 + app-text/asciidoc
95 + dev-ruby/asciidoctor
96 + )
97 +"
98 +
99 +src_configure() {
100 + local -a mycmakeargs=(
101 + "-DVOIP=$(usex voip)"
102 + )
103 + if use video && use X; then
104 + mycmakeargs+=("-DSCREENSHARE_X11=yes")
105 + else
106 + mycmakeargs+=("-DSCREENSHARE_X11=no")
107 + fi
108 +
109 + cmake_src_configure
110 +}
111 +
112 +pkg_postinst() {
113 + optfeature "audio & video file playback support" \
114 + "media-plugins/gst-plugins-meta[ffmpeg]"
115 + optfeature "secrets storage support other than kwallet (for example gnome-keyring or keepassxc)" \
116 + "dev-libs/qtkeychain[gnome-keyring]"
117 + optfeature "additional, less common, image format support" \
118 + "kde-frameworks/kimageformats"
119 +
120 + xdg_pkg_postinst
121 +}