blob: 943d50f9fb95c3d7265433696bbc41fa11319e31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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 kernel_linux test tools"
CDEPEND="
dev-libs/libxml2:2=
dev-libs/openssl:0=
kernel_linux? ( sys-apps/util-linux )
"
DEPEND="${CDEPEND}
doc? (
app-doc/doxygen[dot]
dev-python/sphinx
)
virtual/pkgconfig
"
RDEPEND="${CDEPEND}"
REQUIRED_USE="test? ( tools )"
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
}
|