Gentoo Archives: gentoo-commits

From: Matt Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/glance/
Date: Thu, 31 Aug 2017 17:44:53
Message-Id: 1504201425.4939621abf4cb197fb412b423089a052f67a5ad5.prometheanfire@gentoo
1 commit: 4939621abf4cb197fb412b423089a052f67a5ad5
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 31 17:32:10 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 31 17:43:45 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4939621a
7
8 app-admin/glance: 15.0.0 bup PIKE
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 app-admin/glance/Manifest | 1 +
13 app-admin/glance/glance-15.0.0.ebuild | 145 ++++++++++++++++++++++++++++++++++
14 2 files changed, 146 insertions(+)
15
16 diff --git a/app-admin/glance/Manifest b/app-admin/glance/Manifest
17 index 84ebd99f484..ae8443bcea5 100644
18 --- a/app-admin/glance/Manifest
19 +++ b/app-admin/glance/Manifest
20 @@ -1,2 +1,3 @@
21 DIST glance-13.0.0.tar.gz 1742124 SHA256 3ef3594018469ba36425afafa61ae31487b6025e6f8d9d14febcedfa7136160f SHA512 2f49af5c462a10f8132bb50ad62a45026e77db1324384299551cfe2097b166ccb6fab82eacb092ab6c157f27cdb7253062e62881af795b15d8fd400c1fa096d8 WHIRLPOOL 0c859bbe9e87d2658118bdc111fd052ef088489d83d30574ec07271a50674d18b93d80de05a6282f7d43a8630d980340445b7eeee926bda84572df40086e5e5c
22 DIST glance-14.0.0.tar.gz 1788173 SHA256 360a9ef92121ed355ea812478933ac4b020adc6ae3bb5440b05cbdf06a2f9f46 SHA512 4d0b6654dc6a9848e164422d138d4f6c1ec3711a7eb56a3c437202aa5c8cf86bf341201c9007b2f12173189f18beb73eadbaaade936ececf705a31e8b6eac155 WHIRLPOOL 40c7959e052cb3f1d93f3542669b3009b83004cce7dbdcbe67651e69af93e01969f70f4586a022ffc60127ce70037d4887ab0d8de4e11de98519bef578632265
23 +DIST glance-15.0.0.tar.gz 1803491 SHA256 6e0305e5bdc8f22dca083809e86cf82c430d1cb0164364dbc68263e36676e565 SHA512 beb5744f9e8b296356cb731c79f1efd7b60408c1282e8a64ab7d414929c447c4f2ff0562a0d59c0a05f828d420ba190946866543a37dbd2df73ae322cbcabab5 WHIRLPOOL dfb8ec280a161c09a03f2495b9ec26ec8b2a18f14fca0cad13d6c581a735858893bc0dce2de2bbe317ad61cb7fbca5de7d05d6bb85cb7e6949acd49baf91eb8f
24
25 diff --git a/app-admin/glance/glance-15.0.0.ebuild b/app-admin/glance/glance-15.0.0.ebuild
26 new file mode 100644
27 index 00000000000..495638699ed
28 --- /dev/null
29 +++ b/app-admin/glance/glance-15.0.0.ebuild
30 @@ -0,0 +1,145 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
36 +
37 +inherit distutils-r1 user
38 +
39 +DESCRIPTION="Services for discovering, registering, and retrieving VM images"
40 +HOMEPAGE="https://launchpad.net/glance"
41 +SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="Apache-2.0"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm64 ~x86"
46 +IUSE="doc mysql postgres +sqlite +swift"
47 +REQUIRED_USE="|| ( mysql postgres sqlite )"
48 +
49 +CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
50 + !~dev-python/pbr-2.1.0"
51 +DEPEND="
52 + dev-python/setuptools[${PYTHON_USEDEP}]
53 + ${CDEPEND}"
54 +
55 +#note to self, wsgiref is a python builtin, no need to package it
56 +#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
57 +
58 +RDEPEND="
59 + ${CDEPEND}
60 + sqlite? (
61 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
62 + !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
63 + !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
64 + !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
65 + !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
66 + )
67 + mysql? (
68 + >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
69 + !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
70 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
71 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
72 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
73 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
74 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
75 + )
76 + postgres? (
77 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
78 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
79 + !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
80 + !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
81 + !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
82 + !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
83 + )
84 + >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
85 + !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
86 + <dev-python/eventlet-0.21.0[${PYTHON_USEDEP}]
87 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
88 + >=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
89 + >=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
90 + >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
91 + >=dev-python/python-sqlparse-0.2.2[${PYTHON_USEDEP}]
92 + >=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
93 + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
94 + >=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}]
95 + !~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}]
96 + !~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}]
97 + >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}]
98 + >=dev-python/oslo-context-2.14.0[${PYTHON_USEDEP}]
99 + >=dev-python/oslo-utils-3.20.0[${PYTHON_USEDEP}]
100 + >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
101 + >=dev-python/futurist-0.11.0[${PYTHON_USEDEP}]
102 + !~dev-python/futurist-0.15.0[${PYTHON_USEDEP}]
103 + >=dev-python/taskflow-2.7.0.0[${PYTHON_USEDEP}]
104 + >=dev-python/keystoneauth-3.1.0[${PYTHON_USEDEP}]
105 + >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}]
106 + >=dev-python/WSME-0.8.0[${PYTHON_USEDEP}]
107 + >=dev-python/prettytable-0.7.0[${PYTHON_USEDEP}]
108 + <dev-python/prettytable-0.8.0[${PYTHON_USEDEP}]
109 + dev-python/paste[${PYTHON_USEDEP}]
110 + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
111 + !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
112 + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
113 + >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
114 + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
115 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
116 + >=dev-python/oslo-db-4.24.0[${PYTHON_USEDEP}]
117 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
118 + !~dev-python/oslo-i18n-3.15.2[${PYTHON_USEDEP}]
119 + >=dev-python/oslo-log-3.22.0[${PYTHON_USEDEP}]
120 + >=dev-python/oslo-messaging-5.24.2[${PYTHON_USEDEP}]
121 + !~dev-python/oslo-messaging-5.25.0[${PYTHON_USEDEP}]
122 + >=dev-python/oslo-middleware-3.27.0[${PYTHON_USEDEP}]
123 + >=dev-python/oslo-policy-1.23.0[${PYTHON_USEDEP}]
124 + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
125 + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
126 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
127 + >=dev-python/glance_store-0.22.0[${PYTHON_USEDEP}]
128 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
129 + >=dev-python/cryptography-1.6[${PYTHON_USEDEP}]
130 + !~dev-python/cryptography-2.0[${PYTHON_USEDEP}]
131 + >=dev-python/cursive-0.1.2[${PYTHON_USEDEP}]
132 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
133 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
134 +"
135 +
136 +#PATCHES=(
137 +#)
138 +
139 +pkg_setup() {
140 + enewgroup glance
141 + enewuser glance -1 -1 /var/lib/glance glance
142 +}
143 +
144 +python_prepare_all() {
145 + sed -i '/xattr/d' test-requirements.txt || die
146 + sed -i '/pysendfile/d' test-requirements.txt || die
147 + sed -i '/^hacking/d' test-requirements.txt || die
148 + distutils-r1_python_prepare_all
149 +}
150 +
151 +python_compile_all() {
152 + use doc && "${PYTHON}" setup.py build_sphinx
153 +}
154 +
155 +python_install_all() {
156 + distutils-r1_python_install_all
157 +
158 + for svc in api glare registry scrubber; do
159 + newinitd "${FILESDIR}/glance.initd-r2" glance-${svc}
160 + done
161 +
162 + diropts -m 0750 -o glance -g glance
163 + dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
164 + keepdir /etc/glance
165 + keepdir /var/log/glance
166 + keepdir /var/lib/glance/images
167 + keepdir /var/lib/glance/scrubber
168 +
169 + insinto /etc/glance
170 + insopts -m 0640 -o glance -g glance
171 + doins -r etc/*.ini etc/*.conf etc/*.sample etc/*.json etc/meta*
172 +
173 + use doc && local HTML_DOCS=( doc/build/html/. )
174 + distutils-r1_python_install_all
175 +}