1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="High-performance file management over WebDAV/HTTP"
9 HOMEPAGE="https://dmc.web.cern.ch/projects/davix"
10 SRC_URI="http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/tar/${PN}/${PV}/${P}.tar.gz -> ${P}.tar"
15 IUSE="doc ipv6 kernel_linux test tools"
16 RESTRICT="!test? ( test )"
21 kernel_linux? ( sys-apps/util-linux )
35 "${FILESDIR}"/${P}-uio.patch
36 "${FILESDIR}"/${P}-uuid.patch
39 REQUIRED_USE="test? ( tools )"
43 -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
44 -DDOC_INSTALL_DIR="${EPREFIX}/usr/share/doc/${P}"
45 -DENABLE_HTML_DOCS=$(usex doc)
46 -DENABLE_IPV6=$(usex ipv6)
47 -DENABLE_TOOLS=$(usex tools)
48 -DHTML_INSTALL_DIR="${EPREFIX}/usr/share/doc/${P}/html"
49 -DSOUND_INSTALL_DIR="${EPREFIX}/usr/share/${PN}/sounds"
51 -DSYSCONF_INSTALL_DIR="${EPREFIX}/etc"
52 -DBUILD_TESTING=$(usex test)
53 -DUNIT_TESTS=$(usex test)
55 cmake-utils_src_configure
59 cmake-utils_src_compile
61 cmake-utils_src_compile doc
66 cmake-utils_src_install
69 rm -rf "${ED}/usr/share/man/man1"