From 9b2dd2c3a6b5100dbb638eb799abd0986c0bd72b Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Mon, 2 Mar 2020 23:22:34 +0100 Subject: net-libs/kdsoap-ws-discovery-client: New package Bug: https://bugs.gentoo.org/710936 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner --- .../kdsoap-ws-discovery-client-9999-deps.patch | 9 ++++ ...-ws-discovery-client-9999-no-install-docs.patch | 13 ++++++ .../kdsoap-ws-discovery-client-9999.ebuild | 54 ++++++++++++++++++++++ net-libs/kdsoap-ws-discovery-client/metadata.xml | 8 ++++ 4 files changed, 84 insertions(+) create mode 100644 net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-deps.patch create mode 100644 net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-no-install-docs.patch create mode 100644 net-libs/kdsoap-ws-discovery-client/kdsoap-ws-discovery-client-9999.ebuild create mode 100644 net-libs/kdsoap-ws-discovery-client/metadata.xml (limited to 'net-libs') diff --git a/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-deps.patch b/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-deps.patch new file mode 100644 index 0000000000..f8f6c08c5f --- /dev/null +++ b/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-deps.patch @@ -0,0 +1,9 @@ +--- a/KDSoapWSDiscoveryClientConfig.cmake.in 2020-03-02 23:38:05.253097303 +0100 ++++ b/KDSoapWSDiscoveryClientConfig.cmake.in 2020-03-02 23:39:03.346641208 +0100 +@@ -5,5 +5,6 @@ + @PACKAGE_INIT@ + + find_dependency(Qt5Core @REQUIRED_QT_VERSION@) ++find_dependency(KDSoap) + + include("${CMAKE_CURRENT_LIST_DIR}/KDSoapWSDiscoveryClientTargets.cmake") diff --git a/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-no-install-docs.patch b/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-no-install-docs.patch new file mode 100644 index 0000000000..5e2cb6dcb6 --- /dev/null +++ b/net-libs/kdsoap-ws-discovery-client/files/kdsoap-ws-discovery-client-9999-no-install-docs.patch @@ -0,0 +1,13 @@ +Do not trigger QA with the paths we want our docs in. + +--- a/docs/CMakeLists.txt 2020-03-02 23:10:28.358584552 +0100 ++++ b/docs/CMakeLists.txt 2020-03-02 23:11:52.228369765 +0100 +@@ -29,8 +29,4 @@ + USE_STAMP_FILE + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/.. + ) +- install(DIRECTORY +- ${CMAKE_CURRENT_BINARY_DIR}/html/ +- DESTINATION ${KDE_INSTALL_DATADIR}/doc/KDSoapWSDiscoveryClient +- COMPONENT Devel) + endif() diff --git a/net-libs/kdsoap-ws-discovery-client/kdsoap-ws-discovery-client-9999.ebuild b/net-libs/kdsoap-ws-discovery-client/kdsoap-ws-discovery-client-9999.ebuild new file mode 100644 index 0000000000..6c7bb08af3 --- /dev/null +++ b/net-libs/kdsoap-ws-discovery-client/kdsoap-ws-discovery-client-9999.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +ECM_QTHELP="false" +ECM_TEST="forceoptional" +EGIT_REPO_URI="https://gitlab.com/caspermeijn/${PN}.git" +inherit ecm git-r3 + +DESCRIPTION="WS-Discovery client library based on KDSoap" +HOMEPAGE="https://gitlab.com/caspermeijn/kdsoap-ws-discovery-client +https://caspermeijn.gitlab.io/kdsoap-ws-discovery-client" + +LICENSE="CC0-1.0 GPL-3+" +SLOT="0" +KEYWORDS="" +IUSE="doc" + +BDEPEND=" + doc? ( app-doc/doxygen[dot] ) +" +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtnetwork:5 + >=net-libs/kdsoap-1.9.0" +DEPEND="${RDEPEND} + test? ( dev-qt/qtxml:5 ) +" + +RESTRICT+=" test" + +PATCHES=( + "${FILESDIR}"/${P}-no-install-docs.patch + "${FILESDIR}"/${P}-deps.patch +) + +src_prepare() { + ecm_src_prepare + use test || ecm_punt_bogus_dep Qt5 Xml +} + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package doc Doxygen) + -DBUILD_QCH=OFF # does not use ecm_add_qch from ECMAddQch + ) + ecm_src_configure +} + +src_install() { + use doc && local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. ) + ecm_src_install +} diff --git a/net-libs/kdsoap-ws-discovery-client/metadata.xml b/net-libs/kdsoap-ws-discovery-client/metadata.xml new file mode 100644 index 0000000000..2fdbf33d96 --- /dev/null +++ b/net-libs/kdsoap-ws-discovery-client/metadata.xml @@ -0,0 +1,8 @@ + + + + + kde@gentoo.org + Gentoo KDE Project + + -- cgit v1.2.3-65-gdbad