summaryrefslogtreecommitdiff
path: root/net-libs/accounts-qt/accounts-qt-9999.ebuild
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-12-08 10:56:40 +0000
committerSam James <sam@gentoo.org>2023-12-17 12:04:30 +0000
commitb47f4d80795cac60305f1c0da7d138e5ada6b803 (patch)
tree42f93e45dadb5ff5ffad55b93b65687e4b43f595 /net-libs/accounts-qt/accounts-qt-9999.ebuild
parent216ccc584087094ed186f7968c368c6904b676ef (diff)
downloadkde-b47f4d80795cac60305f1c0da7d138e5ada6b803.tar.gz
kde-b47f4d80795cac60305f1c0da7d138e5ada6b803.tar.bz2
kde-b47f4d80795cac60305f1c0da7d138e5ada6b803.zip
net-libs/accounts-qt: fix multibuild
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/accounts-qt/accounts-qt-9999.ebuild')
-rw-r--r--net-libs/accounts-qt/accounts-qt-9999.ebuild17
1 files changed, 15 insertions, 2 deletions
diff --git a/net-libs/accounts-qt/accounts-qt-9999.ebuild b/net-libs/accounts-qt/accounts-qt-9999.ebuild
index 8147971f055..1cdc4f1adba 100644
--- a/net-libs/accounts-qt/accounts-qt-9999.ebuild
+++ b/net-libs/accounts-qt/accounts-qt-9999.ebuild
@@ -21,6 +21,7 @@ HOMEPAGE="https://accounts-sso.gitlab.io"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="doc +qt5 qt6 test"
+REQUIRED_USE="|| ( qt5 qt6 )"
# dbus problems
RESTRICT="test"
@@ -79,10 +80,14 @@ src_prepare() {
sed -e '/^SUBDIRS/s/tests//' \
-i accounts-qt.pro || die "couldn't disable tests"
fi
+
+ multibuild_copy_sources
}
src_configure() {
my_src_configure() {
+ cd "${BUILD_DIR}" || die
+
if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then
eqmake6 PREFIX="${EPREFIX}"/usr LIBDIR=$(get_libdir)
else
@@ -94,9 +99,17 @@ src_configure() {
}
src_compile() {
- multibuild_foreach_variant default
+ my_src_compile() {
+ emake -C "${BUILD_DIR}"
+ }
+
+ multibuild_foreach_variant my_src_compile
}
src_install() {
- multibuild_foreach_variant emake INSTALL_ROOT="${D}" install
+ my_src_install() {
+ emake -C "${BUILD_DIR}" INSTALL_ROOT="${D}" install
+ }
+
+ multibuild_foreach_variant my_src_install
}