Install this version:
emerge -a =net-im/nexussnheko-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =net-im/nexussnheko-9999
Or alternatively:
emerge --autounmask-write -a =net-im/nexussnheko-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 2020-2026 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, with improvements from NexusSfan"
HOMEPAGE="https://git.plan9.rocks/NexusSfan/NexusSnheko"
EGIT_REPO_URI="https://git.plan9.rocks/NexusSfan/NexusSnheko.git"
LICENSE="GPL-3 MIT"
SLOT="0"
IUSE="X +pie"
RDEPEND="
app-text/cmark:=
dev-cpp/cpp-httplib:=
dev-db/lmdb:=
>=dev-db/lmdb++-1.0.0
dev-libs/libevent:=
dev-libs/libfmt:=
>=dev-libs/kdsingleapplication-1.1.0
dev-libs/olm
>=dev-libs/openssl-1.1.0:=
>=dev-libs/qtkeychain-0.14.1-r1:=
>=dev-libs/re2-0.2022.04.01:=
dev-libs/spdlog:=
dev-qt/qtbase:6[concurrent,dbus,gui,widgets]
dev-qt/qtdeclarative:6[widgets]
dev-qt/qtimageformats:6
dev-qt/qtmultimedia:6[gstreamer]
dev-qt/qtsvg:6
net-misc/curl[ssl]
virtual/notification-daemon
X? (
x11-libs/libxcb:=
x11-libs/xcb-util-wm
)
"
# TODO: gst-plugins-qt6
DEPEND="
dev-cpp/nlohmann_json
${RDEPEND}
"
BDEPEND="
dev-qt/qttools:6[linguist]
|| (
app-text/asciidoc
dev-ruby/asciidoctor
)
"
src_unpack() {
EGIT_REPO_URI="${EGIT_OVERRIDE_REPO_NEXUSSFAN_MTXCLIENT}" EGIT_CHECKOUT_DIR="${WORKDIR}/mtxclient.git" git-r3_src_unpack
EGIT_REPO_URI="https://nheko.im/nheko-reborn/coeurl.git" EGIT_CHECKOUT_DIR="${WORKDIR}/coeurl.git" git-r3_src_unpack
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=yes
-DUSE_BUNDLED_COEURL=yes
-DBUILD_SHARED_LIBS=no
-DCMAKE_POSITION_INDEPENDENT_CODE=$(usex pie)
-DUSE_BUNDLED_CPPHTTPLIB=no
-DX11=$(usex X)
)
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[keyring]"
optfeature "additional, less common, image format support" \
"kde-frameworks/kimageformats:6"
optfeature "identicons support" dev-cpp/qt-jdenticon:6
xdg_pkg_postinst
ewarn "since Nheko migrated to Qt 6 video streams will not work for now because"
ewarn "we are missing a dependency. see <https://bugs.gentoo.org/810814> for details"
}
Manage flags for this package:
euse -i <flag> -p net-im/nexussnheko |
euse -E <flag> -p net-im/nexussnheko |
euse -D <flag> -p net-im/nexussnheko
dev-cpp/nlohmann_json app-text/cmark:= dev-cpp/cpp-httplib:= dev-db/lmdb:= >=dev-db/lmdb++-1.0.0 dev-libs/libevent:= dev-libs/libfmt:= >=dev-libs/kdsingleapplication-1.1.0 dev-libs/olm >=dev-libs/openssl-1.1.0:= >=dev-libs/qtkeychain-0.14.1-r1:= >=dev-libs/re2-0.2022.04.01:= dev-libs/spdlog:= dev-qt/qtbase:6[concurrent,dbus,gui,widgets] dev-qt/qtdeclarative:6[widgets] dev-qt/qtimageformats:6 dev-qt/qtmultimedia:6[gstreamer] dev-qt/qtsvg:6 net-misc/curl[ssl] virtual/notification-daemon X? ( x11-libs/libxcb:= x11-libs/xcb-util-wm )
app-text/cmark:= dev-cpp/cpp-httplib:= dev-db/lmdb:= >=dev-db/lmdb++-1.0.0 dev-libs/libevent:= dev-libs/libfmt:= >=dev-libs/kdsingleapplication-1.1.0 dev-libs/olm >=dev-libs/openssl-1.1.0:= >=dev-libs/qtkeychain-0.14.1-r1:= >=dev-libs/re2-0.2022.04.01:= dev-libs/spdlog:= dev-qt/qtbase:6[concurrent,dbus,gui,widgets] dev-qt/qtdeclarative:6[widgets] dev-qt/qtimageformats:6 dev-qt/qtmultimedia:6[gstreamer] dev-qt/qtsvg:6 net-misc/curl[ssl] virtual/notification-daemon X? ( x11-libs/libxcb:= x11-libs/xcb-util-wm )
dev-qt/qttools:6[linguist] || ( app-text/asciidoc dev-ruby/asciidoctor )