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