public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-im/nheko/
Date: Fri,  3 Feb 2023 21:15:26 +0000 (UTC)	[thread overview]
Message-ID: <1675417645.9aa8cf24da3f79ac08e799a75a6bc0ead69424e9.andrewammerlaan@gentoo> (raw)

commit:     9aa8cf24da3f79ac08e799a75a6bc0ead69424e9
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Feb  3 09:47:25 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
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 21:15 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 21:15 Andrew Ammerlaan [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 10:22 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-09-13  9:24 David Roman
2024-09-12 17:35 [gentoo-commits] repo/proj/guru:dev " David Roman
2024-09-12 17:54 ` [gentoo-commits] repo/proj/guru:master " David Roman
2024-07-31  9:16 David Roman
2024-07-26 20:29 David Roman
2024-07-26 20:29 David Roman
2024-07-08 16:36 David Roman
2024-06-17 21:40 Julien Roy
2024-03-24 19:31 Julien Roy
2024-03-12 14:48 Haelwenn Monnier
2024-02-07 10:10 David Roman
2024-02-07 10:10 David Roman
2023-11-30 10:44 Andrew Ammerlaan
2023-11-30 10:44 Andrew Ammerlaan
2023-07-01 18:15 Haelwenn Monnier
2023-06-15  9:33 Florian Schmaus
2023-06-11 11:47 Viorel Munteanu
2023-02-24  7:41 Viorel Munteanu
2023-02-24  7:41 Viorel Munteanu
2023-02-23  9:24 Viorel Munteanu
2023-02-23  9:24 Viorel Munteanu
2023-02-23  9:24 Viorel Munteanu
2023-01-24  9:10 Florian Schmaus
2023-01-14 18:43 Andrew Ammerlaan
2022-12-07 19:50 Ronny Gutbrod
2022-12-05  9:20 Viorel Munteanu
2022-10-04  2:54 Haelwenn Monnier
2022-09-28 16:04 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-09-28 16:05 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-09-28 16:04 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-09-28 16:05 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-09-08  1:46 Ronny Gutbrod
2022-09-08  0:09 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-09-08  1:46 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-07-23 17:37 Haelwenn Monnier
2022-07-23 17:37 Haelwenn Monnier
2022-03-29  0:23 Ronny Gutbrod
2022-03-25 15:17 Ronny Gutbrod
2022-03-25  9:42 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-03-25 15:17 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-03-10 13:53 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-03-10 14:03 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-03-07 16:22 [gentoo-commits] repo/proj/guru:dev " Ronny Gutbrod
2022-03-07 21:21 ` [gentoo-commits] repo/proj/guru:master " Ronny Gutbrod
2022-01-20 19:21 Andrew Ammerlaan
2021-11-20 13:05 Haelwenn Monnier
2021-11-20 13:05 Haelwenn Monnier
2021-11-20 13:05 Haelwenn Monnier
2021-11-20 13:05 Haelwenn Monnier
2021-06-24 12:22 Jian Lin
2021-04-23 12:25 Andrew Ammerlaan
2021-04-23 12:25 Andrew Ammerlaan
2021-04-21  7:32 Andrew Ammerlaan
2021-04-10 10:07 Andrew Ammerlaan
2021-01-28 11:45 Andrew Ammerlaan
2021-01-28 11:45 Andrew Ammerlaan
2021-01-23 11:49 Michał Górny
2021-01-23 11:49 Michał Górny
2020-08-15 18:15 Andrew Ammerlaan
2020-08-15 18:15 Andrew Ammerlaan
2020-07-20 11:40 Andrew Ammerlaan
2020-06-13 13:13 Andrew Ammerlaan
2020-05-26 10:49 Andrew Ammerlaan

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.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --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