You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit qmake-utils
|
|
|
|
DESCRIPTION="Qt5 bindings for libaccounts-glib"
|
|
HOMEPAGE="https://accounts-sso.gitlab.io/"
|
|
SRC_URI="https://gitlab.com/accounts-sso/lib${PN}/-/archive/VERSION_${PV}/lib${PN}-VERSION_${PV}.tar.gz -> ${P}a.tar.gz"
|
|
S="${WORKDIR}/lib${PN}-VERSION_${PV}"
|
|
|
|
LICENSE="LGPL-2.1"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 ~arm arm64 ~loong ~ppc64 ~riscv x86"
|
|
IUSE="doc test"
|
|
|
|
# dbus problems
|
|
RESTRICT="test"
|
|
|
|
RDEPEND="
|
|
dev-libs/glib:2
|
|
dev-qt/qtcore:5
|
|
dev-qt/qtxml:5
|
|
>=net-libs/libaccounts-glib-1.23:=
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
test? ( dev-qt/qttest:5 )
|
|
"
|
|
BDEPEND="
|
|
doc? (
|
|
app-doc/doxygen[dot]
|
|
dev-qt/qthelp:5
|
|
)
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -e "s|share/doc/\$\${PROJECT_NAME}|share/doc/${PF}|" \
|
|
-i doc/doc.pri || die
|
|
sed -e "/QHG_LOCATION/s|qhelpgenerator|$(qt5_get_bindir)/&|" \
|
|
-i doc/doxy.conf || die
|
|
if ! use doc; then
|
|
sed -e "/include( doc\/doc.pri )/d" -i ${PN}.pro || die
|
|
fi
|
|
if ! use test; then
|
|
sed -e '/^SUBDIRS/s/tests//' \
|
|
-i accounts-qt.pro || die "couldn't disable tests"
|
|
fi
|
|
}
|
|
|
|
src_configure() {
|
|
eqmake5 LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
|
}
|
|
|
|
src_install() {
|
|
emake INSTALL_ROOT="${D}" install
|
|
}
|