48 lines
897 B
Bash
48 lines
897 B
Bash
# Copyright 2020 rexy712
|
|
# Distributed under the terms of the GNU General Public License v3
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake-utils
|
|
|
|
MY_PV="${PV}e"
|
|
|
|
S="${WORKDIR}/Quaternion-${MY_PV}"
|
|
|
|
DESCRIPTION="A Qt5-based IM client for Matrix"
|
|
HOMEPAGE="https://github.com/quotient-im/Quaternion"
|
|
SRC_URI="https://github.com/quotient-im/Quaternion/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
>=dev-qt/qtcore-5.12:=
|
|
>=dev-qt/qtgui-5.12:=
|
|
>=dev-qt/qtmultimedia-5.12:=
|
|
>=dev-qt/qtnetwork-5.12:=
|
|
>=dev-libs/libquotient-0.5.3.2:=
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
virtual/pkgconfig
|
|
"
|
|
BDEPEND="
|
|
dev-util/cmake
|
|
dev-util/ninja
|
|
>=sys-devel/gcc-7
|
|
"
|
|
|
|
src_prepare(){
|
|
cmake-utils_src_prepare
|
|
}
|
|
src_configure(){
|
|
local quotientflags="$(pkg-config QMatrixClient --cflags)"
|
|
local mycmakeargs=(
|
|
-DCMAKE_CXX_FLAGS="${quotientflags}"
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|