1 |
commit: f255c630063dc35f7f9f2689075ef4346d3fd48d |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Sun Nov 21 18:23:01 2021 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Sun Nov 21 18:23:01 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f255c630 |
7 |
|
8 |
net-im/nheko: Run xdg_pkg_postinst to update desktop mimeinfo cache. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/825454 |
11 |
|
12 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
13 |
|
14 |
net-im/nheko/nheko-0.9.0-r1.ebuild | 75 ++++++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 75 insertions(+) |
16 |
|
17 |
diff --git a/net-im/nheko/nheko-0.9.0-r1.ebuild b/net-im/nheko/nheko-0.9.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000..5116dd7c8 |
20 |
--- /dev/null |
21 |
+++ b/net-im/nheko/nheko-0.9.0-r1.ebuild |
22 |
@@ -0,0 +1,75 @@ |
23 |
+# Copyright 2020-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+inherit cmake optfeature xdg |
29 |
+ |
30 |
+DESCRIPTION="Desktop client for Matrix using Qt and C++14" |
31 |
+HOMEPAGE="https://github.com/Nheko-Reborn/nheko" |
32 |
+SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-3" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64" |
37 |
+IUSE="X pipewire video voip" |
38 |
+REQUIRED_USE="video? ( voip )" |
39 |
+ |
40 |
+MY_GST_V="1.18" |
41 |
+RDEPEND=" |
42 |
+ app-text/cmark |
43 |
+ dev-cpp/qt-jdenticon |
44 |
+ >=dev-db/lmdb++-1.0.0 |
45 |
+ >=dev-libs/mtxclient-0.6.0 |
46 |
+ >=dev-libs/qtkeychain-0.12.0 |
47 |
+ dev-libs/spdlog |
48 |
+ dev-qt/qtconcurrent:5 |
49 |
+ dev-qt/qtgraphicaleffects:5 |
50 |
+ dev-qt/qtgui:5[gif,jpeg,png] |
51 |
+ dev-qt/qtimageformats |
52 |
+ dev-qt/qtmultimedia:5[gstreamer,qml] |
53 |
+ dev-qt/qtquickcontrols2:5 |
54 |
+ dev-qt/qtsvg:5 |
55 |
+ pipewire? ( media-video/pipewire[gstreamer] ) |
56 |
+ voip? ( |
57 |
+ >=media-plugins/gst-plugins-dtls-${MY_GST_V} |
58 |
+ media-plugins/gst-plugins-libnice |
59 |
+ >=media-plugins/gst-plugins-meta-${MY_GST_V}[opus] |
60 |
+ >=media-plugins/gst-plugins-srtp-${MY_GST_V} |
61 |
+ >=media-plugins/gst-plugins-webrtc-${MY_GST_V} |
62 |
+ video? ( |
63 |
+ >=media-libs/gst-plugins-base-${MY_GST_V}[opengl] |
64 |
+ >=media-plugins/gst-plugins-meta-${MY_GST_V}[v4l,vpx] |
65 |
+ >=media-plugins/gst-plugins-qt5-${MY_GST_V} |
66 |
+ X? ( |
67 |
+ >=media-plugins/gst-plugins-ximagesrc-${MY_GST_V} |
68 |
+ x11-libs/xcb-util-wm |
69 |
+ ) |
70 |
+ ) |
71 |
+ ) |
72 |
+" |
73 |
+DEPEND=" |
74 |
+ dev-cpp/nlohmann_json |
75 |
+ ${RDEPEND} |
76 |
+" |
77 |
+BDEPEND="dev-qt/linguist-tools:5" |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local -a mycmakeargs=( |
81 |
+ "-DVOIP=$(usex voip)" |
82 |
+ ) |
83 |
+ if use video && use X; then |
84 |
+ mycmakeargs+=("-DSCREENSHARE_X11=yes") |
85 |
+ else |
86 |
+ mycmakeargs+=("-DSCREENSHARE_X11=no") |
87 |
+ fi |
88 |
+ |
89 |
+ cmake_src_configure |
90 |
+} |
91 |
+ |
92 |
+pkg_postinst() { |
93 |
+ optfeature "Audio & video file playback support" \ |
94 |
+ "media-plugins/gst-plugins-meta[ffmpeg]" |
95 |
+ |
96 |
+ xdg_pkg_postinst |
97 |
+} |