49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# Copyright 2020 rexy712
|
|
# Distributed under the terms of the GNU General Public License v3
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake-utils
|
|
|
|
S="${WORKDIR}/libQuotient-${PV}"
|
|
|
|
DESCRIPTION="A Qt5 library to write cross-platform clients for Matrix"
|
|
HOMEPAGE="https://github.com/quotient-im/libQuotient"
|
|
SRC_URI="https://github.com/quotient-im/libQuotient/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0/5"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="static-libs"
|
|
|
|
RDEPEND="
|
|
>=dev-qt/qtcore-5.12:=
|
|
>=dev-qt/qtgui-5.12:=
|
|
>=dev-qt/qtmultimedia-5.12:=
|
|
>=dev-qt/qtnetwork-5.12:=
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
dev-util/cmake
|
|
dev-util/ninja
|
|
>=sys-devel/gcc-7
|
|
"
|
|
PATCHES=("${FILESDIR}/quotient-fix-pc-include-path.patch")
|
|
|
|
src_prepare(){
|
|
cmake-utils_src_prepare
|
|
}
|
|
src_configure(){
|
|
local mycmakeargs=(
|
|
-DQMATRIXCLIENT_INSTALL_EXAMPLE=OFF
|
|
-DBUILD_SHARED_LIBS=$(usex static-libs OFF ON)
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|
|
src_install(){
|
|
cmake-utils_src_install
|
|
mkdir "${T}/quotient" || die
|
|
mv "${D}"/usr/include/* "${T}/quotient" || die
|
|
mv "${T}/quotient" "${D}/usr/include/" || die
|
|
}
|