matrixion/dist/Gentoo/nheko-9999.ebuild

48 lines
950 B
Bash
Raw Permalink Normal View History

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Desktop client for the Matrix protocol"
HOMEPAGE="https://github.com/mujx/nheko"
inherit git-r3 eutils cmake-utils
if [[ ${PV} == "9999" ]]; then
2017-07-09 22:27:20 +03:00
SRC_URI=""
EGIT_REPO_URI="git://github.com/mujx/nheko.git"
fi
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND=">=dev-qt/qtgui-5.7.1
>=dev-qt/qtnetwork-5.7.1
>=dev-qt/linguist-tools-5.7.1
media-libs/fontconfig
dev-db/lmdb"
DEPEND="${RDEPEND}
dev-util/ninja"
src_configure() {
2017-07-09 22:27:20 +03:00
cmake-utils_src_configure
}
src_compile() {
2017-07-09 22:27:20 +03:00
emake DESTDIR="${D}"
}
src_install() {
2017-07-09 22:27:20 +03:00
local icon_size
for icon_size in 16 32 48 64 128 256 512; do
newicon -s "${icon_size}" \
2017-07-09 22:27:20 +03:00
"${S}/resources/nheko-${icon_size}.png" \
nheko.png
done
2017-07-09 22:27:20 +03:00
domenu ${S}/resources/nheko.desktop
2017-07-09 22:27:20 +03:00
dobin ${S}/build/nheko
}