summaryrefslogtreecommitdiff
path: root/net-libs/davix
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/davix')
-rw-r--r--net-libs/davix/Manifest3
-rw-r--r--net-libs/davix/davix-0.8.3.ebuild88
-rw-r--r--net-libs/davix/files/davix-0.8.3-enable-ctest.patch25
3 files changed, 116 insertions, 0 deletions
diff --git a/net-libs/davix/Manifest b/net-libs/davix/Manifest
index ba2d01b7ad59..370dd7757f06 100644
--- a/net-libs/davix/Manifest
+++ b/net-libs/davix/Manifest
@@ -1,3 +1,6 @@
+AUX davix-0.8.3-enable-ctest.patch 639 BLAKE2B d88b3483f006057c2b91b70591af18f9922abab94c9423c7304663d66d7f6fa3bc61da9780ea6776bd2df998d783a90fb85357cbc1390ec45081c37f1eb84485 SHA512 636b0797206697c9141b1a22c0778fa448b896f1fcd0b115f58848895c3fecfdd47b95b99cd669fc49f3e5a5ef54df24c7fc523bc719a6d3c2a5c4b2892f87bb
DIST davix-0.7.6.tar 4338692 BLAKE2B 72a918f52993ea358f243df671823a4624ac5650753e06c8f70f75a800f10adfe7f6c63d9c8fdcefb94874e3c60c3909e7aa96969af1210347ea941a42f4b9df SHA512 3e379acc763e72e2e1684121e2688da6c617b2c1f52ffd7a2a2559998a64aba957f09f7b138c57f8f4d7a26caff4fef09952cca48585bb4f6aea1f071aa9a7b7
+DIST davix-0.8.3.tar.gz 7615016 BLAKE2B 7bb9ba6e267439db0f8b42d2a2b48ded801e3a10d6443101918514f999922e9cabce485b7a666ee0c1fb60d18cd537aa76b93096eeb0445b5ce4b25e214496d4 SHA512 ce5c66e8d59710e5658a6bb9bebdce3749843ab672274171f936cc533ce42689e1f75454de2a71529df97eb182d996c4ade00f30e1b21891fbfe4a40b1dd2dc5
EBUILD davix-0.7.6.ebuild 1633 BLAKE2B def402dfcbdfa44d7eb59b80e7e0a382d9d57bba31fa7606460c3617f83af20c7bac3e9a6738ac2348db8740d5f118b5dea411c214364ba3c252b94c599c0999 SHA512 63c22c21153d3bd8dfdc4e98e8643afebfd0e18714ff984a85267f920c710a32c6abd4cb789297ef21493af8a071881ed7662abfb69ee035765e89ed82fd7a9f
+EBUILD davix-0.8.3.ebuild 1781 BLAKE2B 4588f0780b12c9e1ff156495a04eead155c514a4c2b2ae3f69fa4a4367c9531096911b308b6de7d0df447423a62fb0d74bcc33ebfc3b776eb1f396a45b16baf4 SHA512 4d4a8b843ff629dd4d2938e08417028310b23f0966d75971e70f1787d765385fd4ce16807d59ae074ee976ce5ba087e79abe49e996987209f879da72f25a9aeb
MISC metadata.xml 328 BLAKE2B e7f21fc1dad2a970911a75c9d239071b31447bc7707b0f534d447e723d3d567d46a10cea2164138ab30e6de7bda77fdfc7f8c860d1be8ea9921fc864db7e0018 SHA512 9701f7b63e1a203c6810f51a6c107f99bad9a67eac56566831be2b1930a0759aff15b3a02598a2814dfe46fb28ed28fed12e7d45a7614b623cb05ac90345f76a
diff --git a/net-libs/davix/davix-0.8.3.ebuild b/net-libs/davix/davix-0.8.3.ebuild
new file mode 100644
index 000000000000..225557b09fd3
--- /dev/null
+++ b/net-libs/davix/davix-0.8.3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit cmake python-any-r1
+
+DESCRIPTION="High-performance file management over WebDAV/HTTP"
+HOMEPAGE="https://github.com/cern-fts/davix"
+SRC_URI="https://github.com/cern-fts/${PN}/releases/download/R_${PV//./_}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ipv6 test tools"
+RESTRICT="!test? ( test )"
+
+CDEPEND="
+ dev-libs/libxml2:2=
+ dev-libs/openssl:0=
+ net-libs/gsoap[ssl,-gnutls]
+ net-misc/curl:0=
+ kernel_linux? ( sys-apps/util-linux )
+"
+
+DEPEND="${CDEPEND}"
+BDEPEND="
+ doc? (
+ app-doc/doxygen[dot]
+ dev-python/sphinx
+ )
+ virtual/pkgconfig
+ ${PYTHON_DEPS}
+"
+
+RDEPEND="${CDEPEND}"
+
+REQUIRED_USE="test? ( tools )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.3-enable-ctest.patch
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ for x in doc test; do
+ if ! use $x; then
+ sed -i -e "/add_subdirectory ($x)/d" CMakeLists.txt
+ fi
+ done
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DPython_EXECUTABLE="${PYTHON}"
+ -DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${P}"
+ -DEMBEDDED_LIBCURL=OFF
+ -DLIBCURL_BACKEND_BY_DEFAULT=OFF
+ -DENABLE_HTML_DOCS=$(usex doc)
+ -DENABLE_IPV6=$(usex ipv6)
+ -DENABLE_TCP_NODELAY=TRUE
+ -DENABLE_THIRD_PARTY_COPY=TRUE
+ -DENABLE_TOOLS=$(usex tools)
+ -DHTML_INSTALL_DIR="${EPREFIX}/usr/share/doc/${P}/html"
+ -DSOUND_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/sounds"
+ -DSTATIC_LIBRARY=OFF
+ -DSYSCONF_INSTALL_DIR="${EPREFIX}/etc"
+ -DBUILD_TESTING=$(usex test)
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ if use doc; then
+ cmake_src_compile doc
+ fi
+}
+
+src_install() {
+ cmake_src_install
+ if use test; then
+ rm "${ED}/usr/bin/davix-unit-tests" || die
+ fi
+}
diff --git a/net-libs/davix/files/davix-0.8.3-enable-ctest.patch b/net-libs/davix/files/davix-0.8.3-enable-ctest.patch
new file mode 100644
index 000000000000..cbf6fc0663ae
--- /dev/null
+++ b/net-libs/davix/files/davix-0.8.3-enable-ctest.patch
@@ -0,0 +1,25 @@
+From f72e33a2877a2e26279b64c61e5d04249529727a Mon Sep 17 00:00:00 2001
+From: Guilherme Amadio <amadio@cern.ch>
+Date: Fri, 16 Sep 2022 15:22:31 +0200
+Subject: [PATCH] Include CTest in main CMakeLists.txt
+
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ddd6a391..cb87ffc1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -126,6 +126,8 @@ endif()
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/deps/libneon/src/ ${UUID_INCLUDE_DIRS})
+ include_directories(${CMAKE_SOURCE_DIR}/include/davix)
+
++include(CTest)
++
+ add_subdirectory (src)
+ add_subdirectory (doc)
+
+--
+2.37.3
+