Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/xrootd/
Date: Thu, 27 May 2021 13:48:13
Message-Id: 1622123274.e264a36401d270ba9143833f80e88bc29a72a0fc.marecki@gentoo
1 commit: e264a36401d270ba9143833f80e88bc29a72a0fc
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 27 11:34:46 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Thu May 27 13:47:54 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e264a364
7
8 net-libs/xrootd: add 5.2.0
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 net-libs/xrootd/Manifest | 1 +
13 net-libs/xrootd/xrootd-5.2.0.ebuild | 116 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
17 index d8590e860d5..3fb6eed8878 100644
18 --- a/net-libs/xrootd/Manifest
19 +++ b/net-libs/xrootd/Manifest
20 @@ -1,2 +1,3 @@
21 DIST xrootd-5.0.3.tar.gz 2766694 BLAKE2B 1fe7743de4d09c95257c3d761c2056024ba3ba59b7cd86b5926f2d32cc2f85dcd0af69e6e5969967591a2bba293902b757395e0f9375cbbbb39577eed9e450eb SHA512 e085af48e4196a44e9ebd63bf1234cf4401f158d23d03ffb38fcfe43284d025abe6c0b5e46b2808b28f300b933ff12523f64ac2d86d3f344aa2e0aea95e30cb0
22 DIST xrootd-5.1.1.tar.gz 2869346 BLAKE2B daad5f4e1253dce7d83d144aabbbd24afca9affafc6643b8e7124c68ff8651a3a15ed1b40680a40b737411132ccd0b697d4cacfcdd2bd64d5b5640875684c464 SHA512 aee5373f2064eaa489abc7a560ca61b98f824e8f0b3665dbea82e0362a91a3b4f9e6457d0a304692ae58619ef7c16333a8c69a69d282bd48948a968dd4a06e4f
23 +DIST xrootd-5.2.0.tar.gz 2935040 BLAKE2B 1aa58ea188faef3e3691e77b08529d14e0bf04c18127b8b8ae6a7154700af67b1d900b64cf4f505b90963e2925e32935d4bcf9d1d913ba0973713b5c69301dd2 SHA512 cfd41d2e678ad339677abb62f329828de368ea5af9c9103722b75bcbb0812a2f1695986ca953651e2418fc839d7a50072635b806c9292aeaff702e269bbc11da
24
25 diff --git a/net-libs/xrootd/xrootd-5.2.0.ebuild b/net-libs/xrootd/xrootd-5.2.0.ebuild
26 new file mode 100644
27 index 00000000000..e5ab9108cfa
28 --- /dev/null
29 +++ b/net-libs/xrootd/xrootd-5.2.0.ebuild
30 @@ -0,0 +1,116 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..10} )
37 +
38 +# Upstream does not support the building of Python bindings
39 +# via CMake for more than one implementation at a time.
40 +inherit cmake python-single-r1
41 +
42 +DESCRIPTION="Extended ROOT remote file server"
43 +HOMEPAGE="http://xrootd.org/"
44 +SRC_URI="http://xrootd.org/download/v${PV}/${P}.tar.gz"
45 +
46 +LICENSE="LGPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
49 +IUSE="doc examples fuse http kerberos python readline ssl test"
50 +RESTRICT="!test? ( test )"
51 +
52 +CDEPEND="acct-group/xrootd
53 + acct-user/xrootd
54 + sys-libs/zlib
55 + fuse? ( sys-fs/fuse:= )
56 + kerberos? ( virtual/krb5 )
57 + python? ( ${PYTHON_DEPS} )
58 + readline? ( sys-libs/readline:0= )
59 + ssl? ( dev-libs/openssl:0= )
60 +"
61 +DEPEND="${CDEPEND}"
62 +BDEPEND="
63 + doc? (
64 + app-doc/doxygen[dot]
65 + python? ( dev-python/sphinx )
66 + )
67 + test? ( dev-util/cppunit )
68 +"
69 +RDEPEND="${CDEPEND}
70 + dev-lang/perl
71 +"
72 +REQUIRED_USE="
73 + http? ( kerberos ssl )
74 + python? ( ${PYTHON_REQUIRED_USE} )
75 +"
76 +
77 +PATCHES=( "${FILESDIR}"/xrootd-4.8.3-crc32.patch )
78 +
79 +# xrootd plugins are not intended to be linked with,
80 +# they are to be loaded at runtime by xrootd,
81 +# see https://github.com/xrootd/xrootd/issues/447
82 +QA_SONAME="/usr/lib.*/libXrd.*-$(ver_cut 1)\.so
83 + /usr/lib.*/libXrdClTests\.so"
84 +
85 +pkg_setup() {
86 + use python && python_setup
87 +}
88 +
89 +src_configure() {
90 + local mycmakeargs=(
91 + -DENABLE_CRYPTO=$(usex ssl)
92 + -DENABLE_FUSE=$(usex fuse)
93 + -DENABLE_HTTP=$(usex http)
94 + -DENABLE_KRB5=$(usex kerberos)
95 + -DENABLE_PYTHON=$(usex python)
96 + -DENABLE_READLINE=$(usex readline)
97 + -DENABLE_TESTS=$(usex test)
98 + )
99 + cmake_src_configure
100 +}
101 +
102 +src_compile() {
103 + cmake_src_compile
104 + if use doc; then
105 + doxygen Doxyfile || die
106 + if use python; then
107 + emake -C bindings/python/docs html
108 + fi
109 + fi
110 +}
111 +
112 +src_install() {
113 + use doc && HTML_DOCS=( doxydoc/html/. )
114 + dodoc docs/ReleaseNotes.txt
115 + cmake_src_install
116 + find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
117 +
118 + # base configs
119 + insinto /etc/xrootd
120 + doins packaging/common/*.cfg
121 +
122 + fowners root:xrootd /etc/xrootd
123 + keepdir /var/log/xrootd
124 + fowners xrootd:xrootd /var/log/xrootd
125 +
126 + local i
127 + for i in cmsd frm_purged frm_xfrd xrootd; do
128 + newinitd "${FILESDIR}"/${i}.initd ${i}
129 + done
130 + # all daemons MUST use single master config file
131 + newconfd "${FILESDIR}"/xrootd.confd xrootd
132 +
133 + if use python; then
134 + python_optimize "${D}/$(python_get_sitedir)"
135 +
136 + if use doc; then
137 + docinto python
138 + docompress -x "/usr/share/doc/${PF}/python/html"
139 + dodoc -r bindings/python/docs/build/html
140 + fi
141 + if use examples; then
142 + docinto python
143 + dodoc -r bindings/python/examples
144 + fi
145 + fi
146 +}