Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/XenAPI/
Date: Sun, 03 Apr 2022 23:49:50
Message-Id: 1649029568.558e5df45f1a83dd66e637770b73f5d2ae381370.Alessandro-Barbieri@gentoo
1 commit: 558e5df45f1a83dd66e637770b73f5d2ae381370
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Apr 3 08:24:44 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Apr 3 23:46:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=558e5df4
7
8 dev-python/XenAPI: add 22.14.0
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-python/XenAPI/Manifest | 1 +
13 dev-python/XenAPI/XenAPI-22.14.0.ebuild | 83 +++++++++++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/dev-python/XenAPI/Manifest b/dev-python/XenAPI/Manifest
17 index 430c88992..7f5dd3349 100644
18 --- a/dev-python/XenAPI/Manifest
19 +++ b/dev-python/XenAPI/Manifest
20 @@ -1 +1,2 @@
21 DIST XenAPI-2.14.tar.gz 5110 BLAKE2B 0391ccfffe8c2a264360eef4057a666e92bcbc8b31e7848f15704fff4d554db9758b1aa0b5210d1bfc41c4df261096b04961a4ff6722a8ea25305971b70f8562 SHA512 a56245b617fa049bcc62ee78e85167e322b632e53d2a6bc3e042e1cb0541ea0004aee4b957f9190c30685cef935f236d980a224322ac593896abd7a31e36abd2
22 +DIST XenAPI-22.14.0.tar.gz 3124877 BLAKE2B 2b073e0f713b45b51af1e221aa278841c4a5515c72859c7c95601edeb32ec2b8415c11dec86f79a2ab88265d4303675cf9f0432091c884346a25630a503b5244 SHA512 cc048ede21748e6e60b9e432bb68e0754590e3846277c8bf1fa9000916897353db1b5b39bd7120e7d6c894fc859c8a34129824399cfca0a07c5edf937a6e18ec
23
24 diff --git a/dev-python/XenAPI/XenAPI-22.14.0.ebuild b/dev-python/XenAPI/XenAPI-22.14.0.ebuild
25 new file mode 100644
26 index 000000000..ff82bbb1d
27 --- /dev/null
28 +++ b/dev-python/XenAPI/XenAPI-22.14.0.ebuild
29 @@ -0,0 +1,83 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_OPTIONAL=1
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit bash-completion-r1 distutils-r1 dune pam systemd
39 +
40 +DESCRIPTION="Xen API SDK, for communication with Citrix XenServer and Xen Cloud Platform"
41 +HOMEPAGE="
42 + https://xenproject.org/developers/teams/xen-api
43 + https://github.com/xapi-project/xen-api
44 + https://pypi.org/project/XenAPI
45 +"
46 +SRC_URI="https://github.com/xapi-project/xen-api/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
47 +S="${WORKDIR}/xen-api-${PV}"
48 +
49 +LICENSE="LGPL-2"
50 +SLOT="0"
51 +KEYWORDS=""
52 +IUSE="ocamlopt pam python"
53 +
54 +RDEPEND="
55 + python? ( ${PYTHON_DEPS} )
56 +
57 + dev-libs/xxhash
58 + dev-ml/cstruct
59 + dev-ml/ezjsonm
60 + dev-ml/ezxenstore
61 + dev-ml/mtime
62 + dev-ml/rpc
63 + dev-ml/uuidm
64 + dev-ml/xapi-backtrace
65 + dev-ml/xapi-stdext
66 + dev-ml/xcp-inventory
67 + dev-ml/xcp-rrd
68 + dev-ml/xen-gnt
69 + dev-ml/xenctrl
70 + dev-ml/xenstore
71 + dev-ml/xenstore-clients
72 + dev-ml/xmlm
73 +"
74 +DEPEND="${RDEPEND}"
75 +
76 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
77 +
78 +src_compile() {
79 + dune_src_compile
80 + if use python; then
81 + pushd scripts/examples/python || die
82 + python_foreach_impl distutil-r1_python_compile
83 + popd || die
84 + fi
85 +}
86 +
87 +src_install() {
88 + for p in *.opam ; do
89 + dune_src_install "${p/.opam/}"
90 + done
91 +
92 + pushd scripts || die
93 + emake install
94 + popd || die
95 +
96 + if use python; then
97 + pushd scripts/examples/python || die
98 + python_foreach_impl distutils-r1_python_install
99 + popd || die
100 + fi
101 +
102 +# newbashcomp scripts/xe-switch-network-backend-bash-completion xe-switch-network-backend
103 +#
104 +# insinto /etc/logrotate
105 +# newins scripts/audit-logrotate audit.conf
106 +#
107 +# for s in scripts/*.service ; do
108 +# systemd_dounit "${s}"
109 +# done
110 +#
111 +# use pam && newpamd scripts/pam.d-xapi xapi
112 +}