diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-01-11 22:36:47 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-01-11 23:48:52 +0100 |
commit | bb5d045ea90c4105430a91347f7fdfcc99319339 (patch) | |
tree | 686b6b21a6e3bc1c7c3d2d4917f319aa225459da /net-libs | |
parent | kde-apps/kio-extras: Add qt5 USEdep on net-libs/kdsoap (diff) | |
download | gentoo-bb5d045ea90c4105430a91347f7fdfcc99319339.tar.gz gentoo-bb5d045ea90c4105430a91347f7fdfcc99319339.tar.bz2 gentoo-bb5d045ea90c4105430a91347f7fdfcc99319339.zip |
net-libs/kdsoap: add 2.2.0, add github upstream metadata
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/kdsoap/Manifest | 1 | ||||
-rw-r--r-- | net-libs/kdsoap/kdsoap-2.2.0.ebuild | 69 | ||||
-rw-r--r-- | net-libs/kdsoap/metadata.xml | 3 |
3 files changed, 73 insertions, 0 deletions
diff --git a/net-libs/kdsoap/Manifest b/net-libs/kdsoap/Manifest index c4051e21a521..43281d3308a9 100644 --- a/net-libs/kdsoap/Manifest +++ b/net-libs/kdsoap/Manifest @@ -1 +1,2 @@ DIST kdsoap-2.1.1.tar.gz 948277 BLAKE2B 6daec26426bb6becc78400877ad221b929f0c30e45755644258eca864617d20b9d1269d8a964d38d40e9f5eb93ae213a95e05deb0a34dd3817261096178815a2 SHA512 12224f664dcae7ceb7395a7c3de48a208ae81c10f6fba4d0db233613472c6b9cdbea6375297c27b58fe7338d7db27a4447844f4e8f40a24ec1b4dd3fa38d20bb +DIST kdsoap-2.2.0.tar.gz 11918875 BLAKE2B 0cce6af5ee08948d8029a2302174e0faa9cc06a7c813cb914a5395078a27b23d3c10ccc63f50831ecbd8f8958cb2eb5620b460d78cd6e63480e17580a331a8f9 SHA512 6ed5cd6a0d02a9faf6881facbd28391c553b3671512153ecd058ab53bfbe9d3f0afa3704d580e66010ddf6a3de7e578a632339f8c1ae7529c28f9d5fd7d1eb5f diff --git a/net-libs/kdsoap/kdsoap-2.2.0.ebuild b/net-libs/kdsoap/kdsoap-2.2.0.ebuild new file mode 100644 index 000000000000..64e1ce941828 --- /dev/null +++ b/net-libs/kdsoap/kdsoap-2.2.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/KDAB/KDSoap/releases/download/${P}/${P}.tar.gz" + 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 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="+qt5 qt6" +REQUIRED_USE="|| ( qt5 qt6 )" + +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() { + 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 +} diff --git a/net-libs/kdsoap/metadata.xml b/net-libs/kdsoap/metadata.xml index 8641e5bdd399..77493fa9cc4b 100644 --- a/net-libs/kdsoap/metadata.xml +++ b/net-libs/kdsoap/metadata.xml @@ -5,4 +5,7 @@ <email>kde@gentoo.org</email> <name>Gentoo KDE Project</name> </maintainer> + <upstream> + <remote-id type="github">KDAB/KDSoap</remote-id> + </upstream> </pkgmetadata> |