1 |
commit: 529d7504ab55bde80b94827232964d65944218ed |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 10 04:51:29 2019 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 10 05:08:14 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=529d7504 |
7 |
|
8 |
app-admin/glance: STEIN |
9 |
|
10 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
app-admin/glance/glance-2019.1.9999.ebuild | 146 +++++++++++++++++++++++++++++ |
14 |
1 file changed, 146 insertions(+) |
15 |
|
16 |
diff --git a/app-admin/glance/glance-2019.1.9999.ebuild b/app-admin/glance/glance-2019.1.9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..cb013c6eed6 |
19 |
--- /dev/null |
20 |
+++ b/app-admin/glance/glance-2019.1.9999.ebuild |
21 |
@@ -0,0 +1,146 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} ) |
27 |
+ |
28 |
+inherit distutils-r1 user |
29 |
+ |
30 |
+DESCRIPTION="Services for discovering, registering, and retrieving VM images" |
31 |
+HOMEPAGE="https://launchpad.net/glance" |
32 |
+ |
33 |
+if [[ ${PV} == *9999 ]];then |
34 |
+ inherit git-r3 |
35 |
+ EGIT_REPO_URI="https://github.com/openstack/glance.git" |
36 |
+ EGIT_BRANCH="stable/stein" |
37 |
+else |
38 |
+ SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="Apache-2.0" |
43 |
+SLOT="0" |
44 |
+IUSE="doc mysql postgres +sqlite +swift" |
45 |
+REQUIRED_USE="|| ( mysql postgres sqlite )" |
46 |
+ |
47 |
+CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}] |
48 |
+ !~dev-python/pbr-2.1.0" |
49 |
+DEPEND=" |
50 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
51 |
+ ${CDEPEND}" |
52 |
+ |
53 |
+#note to self, wsgiref is a python builtin, no need to package it |
54 |
+#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}] |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ ${CDEPEND} |
58 |
+ >=dev-python/defusedxml-0.5.0[${PYTHON_USEDEP}] |
59 |
+ sqlite? ( |
60 |
+ >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}] |
61 |
+ !~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}] |
62 |
+ !~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}] |
63 |
+ !~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}] |
64 |
+ !~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}] |
65 |
+ ) |
66 |
+ mysql? ( |
67 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
68 |
+ !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
70 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
71 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
72 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
73 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+ postgres? ( |
76 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}] |
78 |
+ !~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}] |
79 |
+ !~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}] |
80 |
+ !~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}] |
81 |
+ !~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}] |
82 |
+ ) |
83 |
+ >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}] |
84 |
+ !~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/webob-1.8.1[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/python-sqlparse-0.2.2[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/alembic-0.8.10[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/oslo-config-5.2.0[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/oslo-context-2.19.2[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/oslo-upgradecheck-0.1.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/oslo-utils-3.33.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/futurist-1.2.0[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/taskflow-2.16.0[${PYTHON_USEDEP}] |
100 |
+ >=dev-python/keystoneauth-3.4.0[${PYTHON_USEDEP}] |
101 |
+ >=dev-python/keystonemiddleware-4.17.0[${PYTHON_USEDEP}] |
102 |
+ >=dev-python/WSME-0.8.0[${PYTHON_USEDEP}] |
103 |
+ >=dev-python/prettytable-0.7.0[${PYTHON_USEDEP}] |
104 |
+ <dev-python/prettytable-0.8.0[${PYTHON_USEDEP}] |
105 |
+ >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
106 |
+ >=dev-python/jsonschema-2.6.0[${PYTHON_USEDEP}] |
107 |
+ <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}] |
108 |
+ >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}] |
109 |
+ >=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}] |
110 |
+ >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
111 |
+ >=dev-python/oslo-db-4.27.0[${PYTHON_USEDEP}] |
112 |
+ >=dev-python/oslo-i18n-3.15.3[${PYTHON_USEDEP}] |
113 |
+ >=dev-python/oslo-log-3.36.0[${PYTHON_USEDEP}] |
114 |
+ >=dev-python/oslo-messaging-5.29.0[${PYTHON_USEDEP}] |
115 |
+ !~dev-python/oslo-messaging-9.0.0[${PYTHON_USEDEP}] |
116 |
+ >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
117 |
+ >=dev-python/oslo-policy-1.30.0[${PYTHON_USEDEP}] |
118 |
+ >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}] |
119 |
+ !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}] |
120 |
+ >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}] |
121 |
+ >=dev-python/glance_store-0.26.1[${PYTHON_USEDEP}] |
122 |
+ >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}] |
123 |
+ >=dev-python/cryptography-2.1[${PYTHON_USEDEP}] |
124 |
+ >=dev-python/cursive-0.2.1[${PYTHON_USEDEP}] |
125 |
+ >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}] |
126 |
+ >=dev-python/os-win-3.0.0[${PYTHON_USEDEP}] |
127 |
+" |
128 |
+ |
129 |
+#PATCHES=( |
130 |
+#) |
131 |
+ |
132 |
+pkg_setup() { |
133 |
+ enewgroup glance |
134 |
+ enewuser glance -1 -1 /var/lib/glance glance |
135 |
+} |
136 |
+ |
137 |
+python_prepare_all() { |
138 |
+ sed -i '/xattr/d' test-requirements.txt || die |
139 |
+ sed -i '/pysendfile/d' test-requirements.txt || die |
140 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
141 |
+ distutils-r1_python_prepare_all |
142 |
+} |
143 |
+ |
144 |
+python_compile_all() { |
145 |
+ use doc && "${PYTHON}" setup.py build_sphinx |
146 |
+} |
147 |
+ |
148 |
+python_install_all() { |
149 |
+ distutils-r1_python_install_all |
150 |
+ |
151 |
+ newinitd "${FILESDIR}/glance.initd" glance-api |
152 |
+ |
153 |
+ diropts -m 0750 -o glance -g glance |
154 |
+ dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber |
155 |
+ keepdir /etc/glance |
156 |
+ keepdir /var/log/glance |
157 |
+ keepdir /var/lib/glance/images |
158 |
+ keepdir /var/lib/glance/scrubber |
159 |
+ |
160 |
+ insinto /etc/glance |
161 |
+ insopts -m 0640 -o glance -g glance |
162 |
+ doins -r etc/*.ini etc/*.conf etc/*.sample etc/*.json etc/meta* |
163 |
+ |
164 |
+ use doc && local HTML_DOCS=( doc/build/html/. ) |
165 |
+ distutils-r1_python_install_all |
166 |
+ rm -r ${ED}/usr/etc |
167 |
+} |