diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2023-10-26 09:21:49 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2023-10-27 08:42:15 +0200 |
commit | fd232fde4b6f3373b04473ff8de70501bd9f2461 (patch) | |
tree | c740dbca29b928a4524ff0ecc51da778f758274e /net-libs/davix | |
parent | dev-libs/vc: add 1.4.4 (diff) | |
download | gentoo-fd232fde4b6f3373b04473ff8de70501bd9f2461.tar.gz gentoo-fd232fde4b6f3373b04473ff8de70501bd9f2461.tar.bz2 gentoo-fd232fde4b6f3373b04473ff8de70501bd9f2461.zip |
net-libs/davix: add 0.8.5
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'net-libs/davix')
-rw-r--r-- | net-libs/davix/Manifest | 1 | ||||
-rw-r--r-- | net-libs/davix/davix-0.8.5.ebuild | 85 |
2 files changed, 86 insertions, 0 deletions
diff --git a/net-libs/davix/Manifest b/net-libs/davix/Manifest index bdebbe9ffc7b..89eacf34a515 100644 --- a/net-libs/davix/Manifest +++ b/net-libs/davix/Manifest @@ -1,2 +1,3 @@ DIST davix-0.8.3.tar.gz 7615016 BLAKE2B 7bb9ba6e267439db0f8b42d2a2b48ded801e3a10d6443101918514f999922e9cabce485b7a666ee0c1fb60d18cd537aa76b93096eeb0445b5ce4b25e214496d4 SHA512 ce5c66e8d59710e5658a6bb9bebdce3749843ab672274171f936cc533ce42689e1f75454de2a71529df97eb182d996c4ade00f30e1b21891fbfe4a40b1dd2dc5 DIST davix-0.8.4.tar.gz 7616367 BLAKE2B 0048d066b5ebae0639ea511dfb9147a5c76b73e5f273e0912abd7a10c40228bbbc60fea56f1b91a1c64b396b5ab67a291b42743e037e1e61a14aee2fbb783e09 SHA512 09a0389788b525e3c29639091c11ab4dacf1668efec42a93f3e995663793467b7aaf43daf66351e8a140f760711e96391c1cce0759a7f198110ebe511c0c7a4d +DIST davix-0.8.5.tar.gz 7371985 BLAKE2B 134c4bd35627edcb46bfa5be3ea56b5a6373ea2bfee0261ede722fb4419808e6050b1846a40acf92da75626289e54a6b83f11dd2145b9d647f7cb370d652b696 SHA512 cddd0d7c08566853bb09efbe83041c9261086f972fd207f1ae2b0099dcf6f5ab51ec3889556ad34e28c0be28afcf86fa8adcdc1806a02a884ec3e76573164fe4 diff --git a/net-libs/davix/davix-0.8.5.ebuild b/net-libs/davix/davix-0.8.5.ebuild new file mode 100644 index 000000000000..a42596f7f80b --- /dev/null +++ b/net-libs/davix/davix-0.8.5.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..12} ) + +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 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 )" + +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=TRUE + -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 + rm "${ED}/usr/bin/davix-tester" || die + fi +} |