summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-03-19 12:00:31 +0100
committerGuilherme Amadio <amadio@gentoo.org>2018-03-19 19:05:10 +0100
commit70da1fa7589d67af745b34a080eb7dab865fbfe5 (patch)
treed061d07c28d3f0c4582fe79343b7adcfed278ca7 /net-libs/davix
parentsys-libs/libcap-ng: prefix support (diff)
downloadgentoo-70da1fa7589d67af745b34a080eb7dab865fbfe5.tar.gz
gentoo-70da1fa7589d67af745b34a080eb7dab865fbfe5.tar.bz2
gentoo-70da1fa7589d67af745b34a080eb7dab865fbfe5.zip
net-libs/davix: new package
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'net-libs/davix')
-rw-r--r--net-libs/davix/Manifest1
-rw-r--r--net-libs/davix/davix-0.6.7.ebuild67
-rw-r--r--net-libs/davix/files/davix-0.6.7-uio.patch12
-rw-r--r--net-libs/davix/metadata.xml11
4 files changed, 91 insertions, 0 deletions
diff --git a/net-libs/davix/Manifest b/net-libs/davix/Manifest
new file mode 100644
index 000000000000..4b0c3a49ff1d
--- /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 000000000000..cbb209485955
--- /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 000000000000..fc7194d05d3d
--- /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 000000000000..74c9ee6f13b6
--- /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>