public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-libs/davix/, net-libs/davix/files/
@ 2018-03-19 18:06 Guilherme Amadio
  0 siblings, 0 replies; 3+ messages in thread
From: Guilherme Amadio @ 2018-03-19 18:06 UTC (permalink / raw
  To: gentoo-commits

commit:     70da1fa7589d67af745b34a080eb7dab865fbfe5
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 19 11:00:31 2018 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Mon Mar 19 18:05:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70da1fa7

net-libs/davix: new package

Package-Manager: Portage-2.3.24, Repoman-2.3.6

 net-libs/davix/Manifest                    |  1 +
 net-libs/davix/davix-0.6.7.ebuild          | 67 ++++++++++++++++++++++++++++++
 net-libs/davix/files/davix-0.6.7-uio.patch | 12 ++++++
 net-libs/davix/metadata.xml                | 11 +++++
 4 files changed, 91 insertions(+)

diff --git a/net-libs/davix/Manifest b/net-libs/davix/Manifest
new file mode 100644
index 00000000000..4b0c3a49ff1
--- /dev/null
+++ b/net-libs/davix/Manifest
@@ -0,0 +1 @@
+DIST davix-0.6.7.tar 3346429 BLAKE2B 7510c628cd1d346ed5f4dca6100207e5e2efa3a98d0caf63dbe3ba39f58a9b11c330c95cd2d40d60d8f2497355d4cb2f2d7537babfef287a5905f32322363d90 SHA512 5cb830e415a4ab87b7b046fbd8ba615379766f4fa4b886a271b0c248c05968b9a3cb144751b44d5fd62f5e07bdb7610c0505e44f2702147f6f006b49a4b3d8ce

diff --git a/net-libs/davix/davix-0.6.7.ebuild b/net-libs/davix/davix-0.6.7.ebuild
new file mode 100644
index 00000000000..cbb20948595
--- /dev/null
+++ b/net-libs/davix/davix-0.6.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="High-performance file management over WebDAV/HTTP"
+HOMEPAGE="https://dmc.web.cern.ch/projects/davix"
+SRC_URI="http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/${PN}/${PV}/${P}.tar.gz -> ${P}.tar"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc ipv6 test tools"
+
+CDEPEND="
+		dev-libs/libxml2:2=
+		dev-libs/openssl:0=
+		sys-apps/util-linux:0=
+"
+
+DEPEND="${CDEPEND}
+		doc? (
+			app-doc/doxygen[dot]
+			dev-python/sphinx
+		)
+		virtual/pkgconfig
+"
+
+RDEPEND="${CDEPEND}"
+
+PATCHES=(
+		"${FILESDIR}"/${P}-uio.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+		-DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${P}"
+		-DENABLE_HTML_DOCS=$(usex doc)
+		-DENABLE_IPV6=$(usex ipv6)
+		-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)
+		-DUNIT_TESTS=$(usex test)
+	)
+	cmake-utils_src_configure
+}
+
+src_compile() {
+	cmake-utils_src_compile
+	if use doc; then
+		cmake-utils_src_compile doc
+	fi
+}
+
+src_install() {
+	cmake-utils_src_install
+
+	if ! use tools; then
+		rm -rf "${ED}/usr/share/man/man1"
+	fi
+}

diff --git a/net-libs/davix/files/davix-0.6.7-uio.patch b/net-libs/davix/files/davix-0.6.7-uio.patch
new file mode 100644
index 00000000000..fc7194d05d3
--- /dev/null
+++ b/net-libs/davix/files/davix-0.6.7-uio.patch
@@ -0,0 +1,12 @@
+diff --git a/deps/libneon/src/ne_socket.c b/deps/libneon/src/ne_socket.c
+index affc8d7..b4f8ea1 100644
+--- a/deps/libneon/src/ne_socket.c
++++ b/deps/libneon/src/ne_socket.c
+@@ -34,6 +34,7 @@
+ #ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+ #endif
++#include <sys/uio.h>
+ 
+ #ifdef __linux__
+ #include <sys/ioctl.h>

diff --git a/net-libs/davix/metadata.xml b/net-libs/davix/metadata.xml
new file mode 100644
index 00000000000..74c9ee6f13b
--- /dev/null
+++ b/net-libs/davix/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="person">
+    <email>amadio@gentoo.org</email>
+    <name>Guilherme Amadio</name>
+  </maintainer>
+  <use>
+    <flag name="tools">Install additional tools</flag>
+  </use>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/davix/, net-libs/davix/files/
@ 2022-09-19 12:11 Guilherme Amadio
  0 siblings, 0 replies; 3+ messages in thread
From: Guilherme Amadio @ 2022-09-19 12:11 UTC (permalink / raw
  To: gentoo-commits

commit:     2c3112a75d4776c1082827174bd42415da15cf9a
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 19 10:15:26 2022 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Mon Sep 19 12:11:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c3112a7

net-libs/davix: version bump to 0.8.3

Closes: https://bugs.gentoo.org/763645
Closes: https://bugs.gentoo.org/831849
Closes: https://bugs.gentoo.org/840209
Closes: https://bugs.gentoo.org/861473

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 net-libs/davix/Manifest                            |  1 +
 net-libs/davix/davix-0.8.3.ebuild                  | 88 ++++++++++++++++++++++
 .../davix/files/davix-0.8.3-enable-ctest.patch     | 25 ++++++
 3 files changed, 114 insertions(+)

diff --git a/net-libs/davix/Manifest b/net-libs/davix/Manifest
index 597a524ae88d..7e03c70554eb 100644
--- a/net-libs/davix/Manifest
+++ b/net-libs/davix/Manifest
@@ -1 +1,2 @@
 DIST davix-0.7.6.tar 4338692 BLAKE2B 72a918f52993ea358f243df671823a4624ac5650753e06c8f70f75a800f10adfe7f6c63d9c8fdcefb94874e3c60c3909e7aa96969af1210347ea941a42f4b9df SHA512 3e379acc763e72e2e1684121e2688da6c617b2c1f52ffd7a2a2559998a64aba957f09f7b138c57f8f4d7a26caff4fef09952cca48585bb4f6aea1f071aa9a7b7
+DIST davix-0.8.3.tar.gz 7615016 BLAKE2B 7bb9ba6e267439db0f8b42d2a2b48ded801e3a10d6443101918514f999922e9cabce485b7a666ee0c1fb60d18cd537aa76b93096eeb0445b5ce4b25e214496d4 SHA512 ce5c66e8d59710e5658a6bb9bebdce3749843ab672274171f936cc533ce42689e1f75454de2a71529df97eb182d996c4ade00f30e1b21891fbfe4a40b1dd2dc5

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
+


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/davix/, net-libs/davix/files/
@ 2024-03-10 18:04 Guilherme Amadio
  0 siblings, 0 replies; 3+ messages in thread
From: Guilherme Amadio @ 2024-03-10 18:04 UTC (permalink / raw
  To: gentoo-commits

commit:     f6f1a18114dae011613b5bf4c2ab5eaf7b004397
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 10 18:03:59 2024 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Sun Mar 10 18:03:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f1a181

net-libs/davix: fix build with GCC 14, bug 919374

Closes: https://bugs.gentoo.org/919374

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 net-libs/davix/davix-0.8.5.ebuild            |  4 ++++
 net-libs/davix/files/davix-0.8.5-gcc14.patch | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/net-libs/davix/davix-0.8.5.ebuild b/net-libs/davix/davix-0.8.5.ebuild
index 3db5aa1aa72f..61e8ecd0f6ec 100644
--- a/net-libs/davix/davix-0.8.5.ebuild
+++ b/net-libs/davix/davix-0.8.5.ebuild
@@ -39,6 +39,10 @@ RDEPEND="${CDEPEND}"
 
 REQUIRED_USE="test? ( tools )"
 
+PATCHES=(
+		"${FILESDIR}/${P}-gcc14.patch"
+)
+
 src_prepare() {
 	cmake_src_prepare
 

diff --git a/net-libs/davix/files/davix-0.8.5-gcc14.patch b/net-libs/davix/files/davix-0.8.5-gcc14.patch
new file mode 100644
index 000000000000..2e2c8bd663ac
--- /dev/null
+++ b/net-libs/davix/files/davix-0.8.5-gcc14.patch
@@ -0,0 +1,12 @@
+Fix bundled rapidjson build with GCC 14.
+
+--- a/src/libs/rapidjson/document.h
++++ b/src/libs/rapidjson/document.h
+@@ -316,8 +316,6 @@ struct GenericStringRef {
+ 
+     GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), length(rhs.length) {}
+ 
+-    GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
+-
+     //! implicit conversion to plain CharType pointer
+     operator const Ch *() const { return s; }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-03-10 18:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-19 12:11 [gentoo-commits] repo/gentoo:master commit in: net-libs/davix/, net-libs/davix/files/ Guilherme Amadio
  -- strict thread matches above, loose matches on Subject: below --
2024-03-10 18:04 Guilherme Amadio
2018-03-19 18:06 Guilherme Amadio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox