public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ronny Gutbrod" <gentoo@tastytea.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/nheko/
Date: Fri,  3 Feb 2023 09:47:46 +0000 (UTC)	[thread overview]
Message-ID: <1675417645.9aa8cf24da3f79ac08e799a75a6bc0ead69424e9.tastytea@gentoo> (raw)

commit:     9aa8cf24da3f79ac08e799a75a6bc0ead69424e9
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Feb  3 09:47:25 2023 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Feb  3 09:47:25 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9aa8cf24

net-im/nheko: add 9999

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

 net-im/nheko/nheko-9999.ebuild | 134 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 134 insertions(+)

diff --git a/net-im/nheko/nheko-9999.ebuild b/net-im/nheko/nheko-9999.ebuild
new file mode 100644
index 000000000..fe51d8632
--- /dev/null
+++ b/net-im/nheko/nheko-9999.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake git-r3 optfeature xdg
+
+DESCRIPTION="Native desktop client for Matrix using Qt"
+HOMEPAGE="https://github.com/Nheko-Reborn/nheko"
+EGIT_REPO_URI="https://github.com/Nheko-Reborn/nheko.git"
+# Nheko usually needs a very up-to-date mtxclient which usually needs a very
+# up-to-date coeurl. It is impossible to automatically rebuild other live
+# packages before rebuilding this, so they are bundled.
+MY_DEP_URIS=(
+	"https://github.com/Nheko-Reborn/mtxclient.git"
+	"https://nheko.im/nheko-reborn/coeurl.git"
+)
+
+LICENSE="GPL-3 MIT"
+SLOT="0"
+KEYWORDS=""
+IUSE="X +pie 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/libevent:=
+	dev-libs/libfmt:=
+	dev-libs/olm
+	>=dev-libs/openssl-1.1.0:=
+	>=dev-libs/qtkeychain-0.12.0:=
+	>=dev-libs/re2-0.2022.04.01:=
+	dev-libs/spdlog:=
+	dev-qt/qtconcurrent:5
+	dev-qt/qtdeclarative:5[widgets]
+	dev-qt/qtgraphicaleffects:5
+	dev-qt/qtgui:5[dbus,jpeg,png]
+	dev-qt/qtimageformats
+	dev-qt/qtmultimedia:5[gstreamer,qml,widgets]
+	dev-qt/qtquickcontrols2:5[widgets]
+	dev-qt/qtsvg:5
+	net-misc/curl[ssl]
+	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/libxcb:=
+				x11-libs/xcb-util-wm
+			)
+		)
+	)
+"
+DEPEND="
+	dev-cpp/nlohmann_json
+	${RDEPEND}
+"
+BDEPEND="
+	dev-qt/linguist-tools:5
+	|| (
+		app-text/asciidoc
+		dev-ruby/asciidoctor
+	)
+"
+
+src_unpack() {
+	# Unpack dependencies first. The commit ID of the repo used in the last call
+	# to git-r3_src_unpack is stored and checked by smart-live-rebuild.
+	for repo_uri in ${MY_DEP_URIS[@]}; do
+		EGIT_REPO_URI="${repo_uri}" EGIT_CHECKOUT_DIR="${WORKDIR}/${repo_uri##*/}" git-r3_src_unpack
+	done
+
+	git-r3_src_unpack
+}
+
+src_prepare() {
+	# Don't try to download mtxclient and coeurl.
+	sed -Ei '/GIT_(REPOSITORY|TAG)/d' CMakeLists.txt || die
+	sed -Ei '/GIT_(REPOSITORY|TAG)/d' ../mtxclient.git/CMakeLists.txt || die
+
+	mkdir -p "${WORKDIR}/${P}_build/_deps" || die
+	mv ../mtxclient.git "${WORKDIR}/${P}_build/_deps/matrixclient-src" || die
+	mv ../coeurl.git "${WORKDIR}/${P}_build/_deps/coeurl-src" || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	local -a mycmakeargs=(
+		"-DUSE_BUNDLED_MTXCLIENT=ON"
+		"-DUSE_BUNDLED_COEURL=ON"
+		"-DBUILD_SHARED_LIBS=OFF"
+		"-DVOIP=$(usex voip)"
+		"-DCMAKE_POSITION_INDEPENDENT_CODE=$(usex pie)"
+	)
+	if use video && use X; then
+		mycmakeargs+=("-DSCREENSHARE_X11=yes")
+	else
+		mycmakeargs+=("-DSCREENSHARE_X11=no")
+	fi
+
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+
+	# Remove stuff from bundled libs.
+	rm -r "${D}/usr/$(get_libdir)" || die
+	rm -r "${D}/usr/include" || die
+}
+
+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	other threads:[~2023-02-03  9:47 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03  9:47 Ronny Gutbrod [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-13 10:19 [gentoo-commits] repo/proj/guru:dev commit in: net-im/nheko/ David Roman
2024-09-13  7:21 Ronny Gutbrod
2024-09-12 17:35 David Roman
2024-07-31  2:30 Amano Kenji
2024-07-26  4:00 Joe Kappus
2024-07-26  3:19 Joe Kappus
2024-07-05 16:59 Ronny Gutbrod
2024-06-16 14:55 Ronny Gutbrod
2024-06-13 13:35 Ronny Gutbrod
2024-06-13 13:35 Ronny Gutbrod
2024-06-13 12:55 Ronny Gutbrod
2024-03-24 15:17 Ronny Gutbrod
2024-03-12  9:08 Ronny Gutbrod
2024-02-06 15:14 Anna Vyalkova
2024-02-06 15:14 Anna Vyalkova
2024-02-02  0:38 Ronny Gutbrod
2023-11-29  8:54 Anna Vyalkova
2023-11-29  8:54 Anna Vyalkova
2023-11-27 21:11 Ronny Gutbrod
2023-11-27 18:50 Anna Vyalkova
2023-07-01 17:16 Anna Vyalkova
2023-06-14 11:55 Ronny Gutbrod
2023-06-10 23:39 Joe Kappus
2023-05-01  8:47 Ronny Gutbrod
2023-02-23  9:53 Ronny Gutbrod
2023-02-23  9:53 Ronny Gutbrod
2023-02-21 15:00 Ronny Gutbrod
2023-02-21 15:00 Ronny Gutbrod
2023-02-21 15:00 Ronny Gutbrod
2023-01-23 15:56 Ronny Gutbrod
2023-01-17  1:02 Ronny Gutbrod
2023-01-17  1:02 Ronny Gutbrod
2023-01-13 16:50 Ronny Gutbrod
2022-12-06  8:15 Sam James
2022-12-04 12:13 Ronny Gutbrod
2022-10-02 10:02 Ronny Gutbrod
2022-09-28 16:04 Ronny Gutbrod
2022-09-28 16:04 Ronny Gutbrod
2022-09-08  1:46 [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-09-08  0:09 ` [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-09-08  0:09 Ronny Gutbrod
2022-07-23 16:15 Ronny Gutbrod
2022-07-23 16:15 Ronny Gutbrod
2022-03-29  0:23 [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-03-29  0:22 ` [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-03-25 15:17 [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-03-25  9:42 ` [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-03-25  9:42 Ronny Gutbrod
2022-03-10 13:53 Ronny Gutbrod
2022-03-07 16:22 Ronny Gutbrod
2022-01-18 14:41 Ronny Gutbrod
2021-12-21 11:46 Ronny Gutbrod
2021-12-21 11:46 Ronny Gutbrod
2021-12-06  7:19 Ronny Gutbrod
2021-11-21 18:49 Ronny Gutbrod
2021-11-21 18:49 Ronny Gutbrod
2021-11-20  3:01 Ronny Gutbrod
2021-11-19 18:38 Ronny Gutbrod
2021-11-19  1:15 Ronny Gutbrod
2021-11-19  1:15 Ronny Gutbrod
2021-10-16 18:31 Ronny Gutbrod
2021-10-16 16:27 Ronny Gutbrod
2021-10-16 16:27 Ronny Gutbrod
2021-10-04 11:45 Ronny Gutbrod
2021-10-04 11:45 Ronny Gutbrod
2021-06-24  9:27 Ronny Gutbrod
2021-04-23 10:56 Ronny Gutbrod
2021-04-23 10:56 Ronny Gutbrod
2021-04-21  6:21 Ronny Gutbrod
2021-04-09 16:46 Ronny Gutbrod
2021-01-28  1:44 Ronny Gutbrod
2021-01-28  1:44 Ronny Gutbrod
2021-01-20  3:39 Ronny Gutbrod
2021-01-20  3:39 Ronny Gutbrod
2020-08-15 12:18 Ronny Gutbrod
2020-08-15 12:18 Ronny Gutbrod
2020-07-19 22:07 Ronny Gutbrod
2020-06-13  1:28 Ronny Gutbrod
2020-05-25  1:03 Ronny Gutbrod

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1675417645.9aa8cf24da3f79ac08e799a75a6bc0ead69424e9.tastytea@gentoo \
    --to=gentoo@tastytea.de \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox