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, 27 Dec 2019 13:58:56
Message-Id: 1577455117.7fcd023a16a741871c4471f9920e474ce28607a3.marecki@gentoo
1 commit: 7fcd023a16a741871c4471f9920e474ce28607a3
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 27 13:58:37 2019 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 27 13:58:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fcd023a
7
8 net-libs/xrootd: bump to 4.11.1 and EAPI 7
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
12
13 net-libs/xrootd/Manifest | 1 +
14 net-libs/xrootd/xrootd-4.11.1.ebuild | 113 +++++++++++++++++++++++++++++++++++
15 2 files changed, 114 insertions(+)
16
17 diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
18 index a2033c81970..c776a8f373b 100644
19 --- a/net-libs/xrootd/Manifest
20 +++ b/net-libs/xrootd/Manifest
21 @@ -1,3 +1,4 @@
22 DIST xrootd-4.10.1.tar.gz 2532982 BLAKE2B 79cc334c631060e9be48c4f443837065e786f49513e535150f7490a9a5a17ec91f4f5dd054b0f15cb6b60ecfc18a1447e28825dc7d6665ef59004ab11665f9e2 SHA512 49234db532292c6ef04d455a1a6a5d1ff4d6705c088d5c2571602f444cb9bf03699e63a12ba962a6d3a8b9cc9f43635889ec33976840326a8301c81da7099397
23 +DIST xrootd-4.11.1.tar.gz 2549971 BLAKE2B e131769291d33d2198c4afdedd0d9f9a0eac9459654277763554d2dfba211b7123f3d0dfc90fe365c7f4da2590d9bec6daf994ee7ae241897aa10b4500362c3c SHA512 7853de40d40f28177f70a18f17ee99f83c8b6c6ddf0b5e7ef64df83c5457bad11e6249c75f985c207c3292fab73a2181730ce9c8bf11979535a566c5364de8a1
24 DIST xrootd-4.8.3.tar.gz 2390520 BLAKE2B 1b97225c41f6a3a751f55a4d357f53fac2e4cc24f2456962a6d6282b78faaeb844db5d69bff34437acd2c015dbff4a2a5047d6295770abd200d3e5bedd89d4fe SHA512 6f605131be18f35115bf7cf5d829dfd5a36e004ac69aa77dd0cb34ab70f2b89ff07e7b3e3259fe672d81b6241596c78a537de02e5abad4537dc92ae745ae8911
25 DIST xrootd-4.9.0.tar.gz 2517614 BLAKE2B 5f1ce6f599fdf5b1f9b4fa078d9b306be241757f95e9b5e9bc0a6f06450a21315778428d8c1d1ffd28ef0841bc50fca387036740bb707d9a96b7f07e94e15540 SHA512 a956262a8adae4c9cb9a91275d4207943cf43251fc61ade111c91152c62baf06c1cbdf1d659c6d792703045a4c2a82bac732220ecfd2fa707e445d6fc66ee047
26
27 diff --git a/net-libs/xrootd/xrootd-4.11.1.ebuild b/net-libs/xrootd/xrootd-4.11.1.ebuild
28 new file mode 100644
29 index 00000000000..4035ca38726
30 --- /dev/null
31 +++ b/net-libs/xrootd/xrootd-4.11.1.ebuild
32 @@ -0,0 +1,113 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} )
39 +
40 +inherit cmake-utils 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*-4.so"
83 +
84 +pkg_setup() {
85 + use python && python_setup
86 +}
87 +
88 +src_configure() {
89 + local mycmakeargs=(
90 + -DENABLE_CRYPTO=$(usex ssl)
91 + -DENABLE_FUSE=$(usex fuse)
92 + -DENABLE_HTTP=$(usex http)
93 + -DENABLE_KRB5=$(usex kerberos)
94 + -DENABLE_PYTHON=$(usex python)
95 + -DENABLE_READLINE=$(usex readline)
96 + -DENABLE_TESTS=$(usex test)
97 + )
98 + cmake-utils_src_configure
99 +}
100 +
101 +src_compile() {
102 + cmake-utils_src_compile
103 + if use doc; then
104 + doxygen Doxyfile || die
105 + if use python; then
106 + emake -C bindings/python/docs html
107 + fi
108 + fi
109 +}
110 +
111 +src_install() {
112 + use doc && HTML_DOCS=( doxydoc/html/. )
113 + dodoc docs/ReleaseNotes.txt
114 + cmake-utils_src_install
115 + find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die
116 +
117 + # base configs
118 + insinto /etc/xrootd
119 + doins packaging/common/*.cfg
120 +
121 + fowners root:xrootd /etc/xrootd
122 + keepdir /var/log/xrootd
123 + fowners xrootd:xrootd /var/log/xrootd
124 +
125 + local i
126 + for i in cmsd frm_purged frm_xfrd xrootd; do
127 + newinitd "${FILESDIR}"/${i}.initd ${i}
128 + done
129 + # all daemons MUST use single master config file
130 + newconfd "${FILESDIR}"/xrootd.confd xrootd
131 +
132 + if use python; then
133 + python_optimize "${D}/$(python_get_sitedir)"
134 +
135 + if use doc; then
136 + docinto python
137 + docompress -x "/usr/share/doc/${PF}/python/html"
138 + dodoc -r bindings/python/docs/build/html
139 + fi
140 + if use examples; then
141 + docinto python
142 + dodoc -r bindings/python/examples
143 + fi
144 + fi
145 +}