From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: net-libs/kdsoap/
Date: Thu, 11 Jan 2024 22:49:07 +0000 (UTC) [thread overview]
Message-ID: <1705013272.2519a0ed7d2ab40a2be18a45a67a70c88bb33250.asturm@gentoo> (raw)
commit: 2519a0ed7d2ab40a2be18a45a67a70c88bb33250
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 3 17:44:56 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan 11 22:47:52 2024 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=2519a0ed
net-libs/kdsoap: Add IUSE qt5,qt6
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
net-libs/kdsoap/kdsoap-9999.ebuild | 50 +++++++++++++++++++++++++++++---------
1 file changed, 39 insertions(+), 11 deletions(-)
diff --git a/net-libs/kdsoap/kdsoap-9999.ebuild b/net-libs/kdsoap/kdsoap-9999.ebuild
index f066e53528..64e1ce9418 100644
--- a/net-libs/kdsoap/kdsoap-9999.ebuild
+++ b/net-libs/kdsoap/kdsoap-9999.ebuild
@@ -5,37 +5,65 @@ EAPI=8
if [[ ${PV} != *9999* ]]; then
SRC_URI="https://github.com/KDAB/KDSoap/releases/download/${P}/${P}.tar.gz"
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
else
EGIT_REPO_URI="https://github.com/KDAB/KDSoap.git"
EGIT_SUBMODULES=( kdwsdl2cpp/libkode -autogen )
inherit git-r3
fi
-inherit cmake
+inherit cmake multibuild
DESCRIPTION="Qt-based client-side and server-side SOAP component"
HOMEPAGE="https://www.kdab.com/development-resources/qt-tools/kd-soap/"
LICENSE="GPL-3 AGPL-3"
SLOT="0/2"
-IUSE=""
+IUSE="+qt5 qt6"
+REQUIRED_USE="|| ( qt5 qt6 )"
-RDEPEND="dev-qt/qtbase:6[network,xml]"
+RDEPEND="
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtxml:5
+ )
+ qt6? ( dev-qt/qtbase:6[network,xml] )"
DEPEND="${RDEPEND}
dev-libs/boost
"
+pkg_setup() {
+ MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) )
+}
+
src_prepare() {
cmake_src_prepare
sed -e "/install.*INSTALL_DOC_DIR/d" -i CMakeLists.txt || die
}
src_configure() {
- local mycmakeargs=(
- -DKDSoap_DOCS=OFF
- -DKDSoap_EXAMPLES=OFF # no install targets
- -DKDSoap_QT6=ON
- -DKDSoap_STATIC=OFF
- )
- cmake_src_configure
+ my_src_configure() {
+ local mycmakeargs=(
+ -DKDSoap_DOCS=OFF
+ -DKDSoap_EXAMPLES=OFF # no install targets
+ -DKDSoap_STATIC=OFF
+ )
+
+ if [[ ${MULTIBUILD_VARIANT} == qt6 ]]; then
+ mycmakeargs+=( -DKDSoap_QT6=ON )
+ else
+ mycmakeargs+=( -DKDSoap_QT6=OFF )
+ fi
+ cmake_src_configure
+ }
+
+ multibuild_foreach_variant my_src_configure
+}
+
+src_compile() {
+ multibuild_foreach_variant cmake_src_compile
+}
+
+src_install() {
+ multibuild_foreach_variant cmake_src_install
}
next reply other threads:[~2024-01-11 22:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-11 22:49 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-09 14:39 [gentoo-commits] proj/kde:master commit in: net-libs/kdsoap/ Andreas Sturmlechner
2023-12-09 11:59 Andreas Sturmlechner
2022-09-14 12:22 Andreas Sturmlechner
2020-03-19 17:53 Andreas Sturmlechner
2020-03-19 0:00 Andreas Sturmlechner
2020-03-19 0:00 Andreas Sturmlechner
2020-03-02 22:47 Andreas Sturmlechner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1705013272.2519a0ed7d2ab40a2be18a45a67a70c88bb33250.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox