aboutsummaryrefslogtreecommitdiff
blob: 4fdeb6fbd624c55f5dd00831dba72e3e7578b8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit cmake-utils xdg-utils

DESCRIPTION="Desktop client for the Matrix protocol"
HOMEPAGE="https://github.com/Nheko-Reborn/nheko"
SRC_URI="https://github.com/Nheko-Reborn/nheko/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="app-text/cmark
	dev-db/lmdb++
	>=dev-libs/mtxclient-0.3.1
	dev-libs/tweeny
	dev-qt/qtconcurrent
	>=dev-qt/qtgui-5.7.1
	>=dev-qt/qtnetwork-5.7.1
	dev-qt/qtmultimedia
	dev-qt/qtsvg
	dev-qt/qtwidgets
	media-libs/fontconfig"
DEPEND="${RDEPEND}
	>=dev-qt/linguist-tools-5.7.1
	dev-util/ninja"

CMAKE_BUILD_TYPE=Release

src_prepare() {
	sed -i '/-Werror/d' CMakeLists.txt || die
	cmake-utils_src_prepare
}

pkg_postinst() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_desktop_database_update
	xdg_icon_cache_update
}