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: Mon, 27 Feb 2017 02:51:40
Message-Id: 1488163866.eb1ebe78b4d17faf1278bc865c86fe8843888704.prometheanfire@gentoo
1 commit: eb1ebe78b4d17faf1278bc865c86fe8843888704
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 27 02:51:06 2017 +0000
4 Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 02:51:06 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb1ebe78
7
8 app-admin/glance: OCATA
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-admin/glance/glance-2017.1.9999.ebuild | 136 +++++++++++++++++++++++++++++
13 1 file changed, 136 insertions(+)
14
15 diff --git a/app-admin/glance/glance-2017.1.9999.ebuild b/app-admin/glance/glance-2017.1.9999.ebuild
16 new file mode 100644
17 index 0000000000..91f4820056
18 --- /dev/null
19 +++ b/app-admin/glance/glance-2017.1.9999.ebuild
20 @@ -0,0 +1,136 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
26 +
27 +inherit distutils-r1 git-r3 user
28 +
29 +DESCRIPTION="Services for discovering, registering, and retrieving VM images"
30 +HOMEPAGE="https://launchpad.net/glance"
31 +EGIT_REPO_URI="https://github.com/openstack/glance.git"
32 +EGIT_BRANCH="stable/ocata"
33 +
34 +LICENSE="Apache-2.0"
35 +SLOT="0"
36 +KEYWORDS=""
37 +IUSE="doc mysql postgres +sqlite +swift"
38 +REQUIRED_USE="|| ( mysql postgres sqlite )"
39 +
40 +CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]"
41 +DEPEND="
42 + dev-python/setuptools[${PYTHON_USEDEP}]
43 + ${CDEPEND}"
44 +
45 +#note to self, wsgiref is a python builtin, no need to package it
46 +#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
47 +
48 +RDEPEND="
49 + ${CDEPEND}
50 + sqlite? (
51 + >=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
52 + <dev-python/sqlalchemy-1.1.0[sqlite,${PYTHON_USEDEP}]
53 + )
54 + mysql? (
55 + >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
56 + !~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
57 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
58 + <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
59 + )
60 + postgres? (
61 + >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
62 + >=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
63 + <dev-python/sqlalchemy-1.1.0[${PYTHON_USEDEP}]
64 + )
65 + >=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
66 + >=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
67 + >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
68 + !~dev-python/routes-2.0[${PYTHON_USEDEP}]
69 + !~dev-python/routes-2.1[$(python_gen_usedep 'python2_7')]
70 + !~dev-python/routes-2.3[${PYTHON_USEDEP}]
71 + >=dev-python/webob-1.6.0[${PYTHON_USEDEP}]
72 + >=dev-python/sqlalchemy-migrate-0.9.6[${PYTHON_USEDEP}]
73 + >=dev-python/sqlparse-0.2.2[${PYTHON_USEDEP}]
74 + >=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
75 + >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
76 + >=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
77 + >=dev-python/oslo-config-3.14.0[${PYTHON_USEDEP}]
78 + !~dev-python/oslo-config-3.18.0[${PYTHON_USEDEP}]
79 + >=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}]
80 + >=dev-python/oslo-context-2.12.0[${PYTHON_USEDEP}]
81 + >=dev-python/oslo-utils-3.18.0[${PYTHON_USEDEP}]
82 + >=dev-python/stevedore-1.17.1[${PYTHON_USEDEP}]
83 + >=dev-python/futurist-0.11.0[${PYTHON_USEDEP}]
84 + !~dev-python/futurist-0.15.0[${PYTHON_USEDEP}]
85 + >=dev-python/taskflow-2.7.0.0[${PYTHON_USEDEP}]
86 + >=dev-python/keystoneauth-2.18.0[${PYTHON_USEDEP}]
87 + >=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}]
88 + >=dev-python/WSME-0.8.0[${PYTHON_USEDEP}]
89 + >=dev-python/prettytable-0.7.0[${PYTHON_USEDEP}]
90 + <dev-python/prettytable-0.8.0[${PYTHON_USEDEP}]
91 + dev-python/paste[${PYTHON_USEDEP}]
92 + >=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
93 + !~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
94 + <dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
95 + >=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
96 + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
97 + >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
98 + >=dev-python/oslo-db-4.15.0[${PYTHON_USEDEP}]
99 + >=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
100 + >=dev-python/oslo-log-3.11.0[${PYTHON_USEDEP}]
101 + >=dev-python/oslo-messaging-5.14.0[${PYTHON_USEDEP}]
102 + >=dev-python/oslo-middleware-3.0.0[${PYTHON_USEDEP}]
103 + >=dev-python/oslo-policy-1.17.0[${PYTHON_USEDEP}]
104 + >=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
105 + !~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
106 + >=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
107 + >=dev-python/glance_store-0.18.0[${PYTHON_USEDEP}]
108 + >=dev-python/semantic_version-2.3.1[${PYTHON_USEDEP}]
109 + >=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
110 + >=dev-python/cryptography-1.0[${PYTHON_USEDEP}]
111 + !~dev-python/cryptography-1.3.0[${PYTHON_USEDEP}]
112 + >=dev-python/cursive-0.1.1[${PYTHON_USEDEP}]
113 + >=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
114 + >=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
115 +"
116 +
117 +#PATCHES=(
118 +#)
119 +
120 +pkg_setup() {
121 + enewgroup glance
122 + enewuser glance -1 -1 /var/lib/glance glance
123 +}
124 +
125 +python_prepare_all() {
126 + sed -i '/xattr/d' test-requirements.txt || die
127 + sed -i '/pysendfile/d' test-requirements.txt || die
128 + sed -i '/^hacking/d' test-requirements.txt || die
129 + distutils-r1_python_prepare_all
130 +}
131 +
132 +python_compile_all() {
133 + use doc && "${PYTHON}" setup.py build_sphinx
134 +}
135 +
136 +python_install_all() {
137 + distutils-r1_python_install_all
138 +
139 + for svc in api glare registry scrubber; do
140 + newinitd "${FILESDIR}/glance.initd" glance-${svc}
141 + done
142 +
143 + diropts -m 0750 -o glance -g glance
144 + dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
145 + keepdir /etc/glance
146 + keepdir /var/log/glance
147 + keepdir /var/lib/glance/images
148 + keepdir /var/lib/glance/scrubber
149 +
150 + insinto /etc/glance
151 + insopts -m 0640 -o glance -g glance
152 + doins -r etc/*.ini etc/*.conf etc/*.sample etc/*.json etc/meta*
153 +
154 + use doc && local HTML_DOCS=( doc/build/html/. )
155 + distutils-r1_python_install_all
156 +}