diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-07-08 14:53:56 +0200 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-07-08 14:56:28 +0200 |
commit | 37bd9307e7cb7104a1f12fb17f903e047026535a (patch) | |
tree | 35d8800c399862e5bcc6810927002d8d0d440dc5 /net-libs | |
parent | dev-python/deprecated: Stabilize 1.2.10 ALLARCHES, #731358 (diff) | |
download | gentoo-37bd9307e7cb7104a1f12fb17f903e047026535a.tar.gz gentoo-37bd9307e7cb7104a1f12fb17f903e047026535a.tar.bz2 gentoo-37bd9307e7cb7104a1f12fb17f903e047026535a.zip |
net-libs/xrootd: bump to 5.0.0
Tested with USE="python python_single_target_pypy3" as well and it
does *not* work, the ebuild emerges without errors but no Python
bindings are installed.
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/xrootd/Manifest | 1 | ||||
-rw-r--r-- | net-libs/xrootd/xrootd-5.0.0.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest index ed8b0fab993e..1468396eec70 100644 --- a/net-libs/xrootd/Manifest +++ b/net-libs/xrootd/Manifest @@ -1,2 +1,3 @@ DIST xrootd-4.12.0.tar.gz 2564041 BLAKE2B 6ea9c379aa482c81279168baa3e1381e880d34014fb3516c96961da64d54faf649295f024313ece445df9a62b6b5c818b7aa8a987025d3cd969188de072648c9 SHA512 5338c4fb5461918473dd4f41f4d29fae09a8fc6a9e2d8f00bb74d929dc5396fef73643462d1a4f1ba71ffe5cf92a1695a167ca3a766c674a9377dcf99aaa1778 DIST xrootd-4.12.3.tar.gz 2574996 BLAKE2B 1ba6ecdee473fbe1f6367459dfe8324f38e2d72aa64ed349ccdcaa7616a3d70f0b647d2eac6babbcc0e1b673ff44a050c05f23e80fb89161f121fa6dd3484311 SHA512 e4f4ad744a71a7fc69a16f2114b6d5962ddf0b22bd86f7eb19703313d55242813f13be1a1f23c541b966674bdb4854f955843322525f37bc83647e8f2fbe076d +DIST xrootd-5.0.0.tar.gz 2754256 BLAKE2B c80a38ede3263ae669181f2173f6ee2bb0a347dc973cecc9dedf00867041190f7bceb7f475696e8cd3921c57d4c197b73ee57b29c9e78a027393ca61dca1b6d3 SHA512 75b69d3da2a6e477edbf5588afd943a91a2e1e86fcc98afc34d964c9231fc0224b4eec82336e9a7d5bd8bd0cd5c20e442ee37b8f6239f417b05efdf39038d93c diff --git a/net-libs/xrootd/xrootd-5.0.0.ebuild b/net-libs/xrootd/xrootd-5.0.0.ebuild new file mode 100644 index 000000000000..b96f560be940 --- /dev/null +++ b/net-libs/xrootd/xrootd-5.0.0.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +# Upstream does not support the building of Python bindings +# via CMake for more than one implementation at a time. +inherit cmake python-single-r1 + +DESCRIPTION="Extended ROOT remote file server" +HOMEPAGE="http://xrootd.org/" +SRC_URI="http://xrootd.org/download/v${PV}/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples fuse http kerberos python readline ssl test" +RESTRICT="!test? ( test )" + +CDEPEND="acct-group/xrootd + acct-user/xrootd + sys-libs/zlib + fuse? ( sys-fs/fuse:= ) + kerberos? ( virtual/krb5 ) + python? ( ${PYTHON_DEPS} ) + readline? ( sys-libs/readline:0= ) + ssl? ( dev-libs/openssl:0= ) +" +DEPEND="${CDEPEND}" +BDEPEND=" + doc? ( + app-doc/doxygen[dot] + python? ( dev-python/sphinx ) + ) + test? ( dev-util/cppunit ) +" +RDEPEND="${CDEPEND} + dev-lang/perl +" +REQUIRED_USE=" + http? ( kerberos ssl ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +PATCHES=( "${FILESDIR}"/xrootd-4.8.3-crc32.patch ) + +# xrootd plugins are not intended to be linked with, +# they are to be loaded at runtime by xrootd, +# see https://github.com/xrootd/xrootd/issues/447 +QA_SONAME="/usr/lib.*/libXrd.*-$(ver_cut 1)\.so + /usr/lib.*/libXrdClTests\.so" + +pkg_setup() { + use python && python_setup +} + +src_configure() { + local mycmakeargs=( + -DENABLE_CRYPTO=$(usex ssl) + -DENABLE_FUSE=$(usex fuse) + -DENABLE_HTTP=$(usex http) + -DENABLE_KRB5=$(usex kerberos) + -DENABLE_PYTHON=$(usex python) + -DENABLE_READLINE=$(usex readline) + -DENABLE_TESTS=$(usex test) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + if use doc; then + doxygen Doxyfile || die + if use python; then + emake -C bindings/python/docs html + fi + fi +} + +src_install() { + use doc && HTML_DOCS=( doxydoc/html/. ) + dodoc docs/ReleaseNotes.txt + cmake_src_install + find "${D}" \( -iname '*.md5' -o -iname '*.map' \) -delete || die + + # base configs + insinto /etc/xrootd + doins packaging/common/*.cfg + + fowners root:xrootd /etc/xrootd + keepdir /var/log/xrootd + fowners xrootd:xrootd /var/log/xrootd + + local i + for i in cmsd frm_purged frm_xfrd xrootd; do + newinitd "${FILESDIR}"/${i}.initd ${i} + done + # all daemons MUST use single master config file + newconfd "${FILESDIR}"/xrootd.confd xrootd + + if use python; then + python_optimize "${D}/$(python_get_sitedir)" + + if use doc; then + docinto python + docompress -x "/usr/share/doc/${PF}/python/html" + dodoc -r bindings/python/docs/build/html + fi + if use examples; then + docinto python + dodoc -r bindings/python/examples + fi + fi +} |