2020-05-31 21:27:02 +02:00
|
|
|
# Copyright 2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
DESCRIPTION="A glossy client for Matrix, written in QtQuick Controls 2 and C++."
|
2020-06-01 14:32:29 +02:00
|
|
|
HOMEPAGE="https://gitlab.com/spectral-im/spectral"
|
|
|
|
|
2020-06-10 21:49:03 +02:00
|
|
|
inherit cmake
|
2020-06-01 14:32:29 +02:00
|
|
|
|
|
|
|
COMMON_URI="https://github.com/oKcerG/SortFilterProxyModel/archive/36befddf5d57faad990e72c88c5844794f274145.tar.gz"
|
|
|
|
|
|
|
|
if [[ ${PV} == 9999 ]]
|
|
|
|
then
|
|
|
|
EGIT_REPO_URI="https://gitlab.com/b0/spectral.git"
|
|
|
|
inherit git-r3
|
|
|
|
else
|
|
|
|
SRC_URI="https://gitlab.com/spectral-im/spectral/-/archive/${PV}/${P}.tar.gz
|
|
|
|
${COMMON_URI}"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
2020-05-31 21:27:02 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
app-text/cmark
|
|
|
|
dev-qt/qtdeclarative
|
|
|
|
dev-qt/qtgui
|
|
|
|
dev-qt/qtmultimedia[qml]
|
|
|
|
dev-qt/qtwidgets
|
|
|
|
>=dev-qt/qtquickcontrols2-5.12
|
|
|
|
>=dev-libs/libQuotient-0.6_beta1
|
|
|
|
dev-libs/libQtOlm
|
|
|
|
dev-libs/qtkeychain
|
|
|
|
|| ( media-fonts/roboto media-fonts/noto )
|
|
|
|
dev-qt/qtsvg
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
>=dev-qt/qtcore-5.12
|
|
|
|
"
|
|
|
|
|
2020-06-01 14:32:29 +02:00
|
|
|
src_prepare() {
|
|
|
|
if [[ ${PV} != 9999 ]]
|
|
|
|
then
|
|
|
|
move_lib() {
|
|
|
|
local IN_DIR="${1}"
|
|
|
|
local OUT_DIR[ -z "${2}" ] && OUT_DIR="${IN_DIR}" || OUT_DIR="${2%/}/${IN_DIR}"
|
|
|
|
mv "${WORKDIR}/${IN_DIR}"*/* "${S}/${OUT_DIR}" || die
|
|
|
|
}
|
|
|
|
|
|
|
|
local thirdparty_libs=" SortFilterProxyModel"
|
|
|
|
for thirdparty_lib in ${thirdparty_libs} ; do
|
|
|
|
move_lib "${thirdparty_lib}" include
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
2020-06-10 21:49:03 +02:00
|
|
|
cmake_src_prepare
|
2020-06-01 14:32:29 +02:00
|
|
|
}
|
|
|
|
|
2020-05-31 21:27:02 +02:00
|
|
|
pkg_postinst() {
|
|
|
|
xdg_icon_cache_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
xdg_icon_cache_update
|
|
|
|
}
|