Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/flower/
Date: Wed, 12 Oct 2016 08:02:10
Message-Id: 1476259317.f22bded392bae308b4c5b6a334d6ad72ca01e8f4.zmedico@gentoo
1 commit: f22bded392bae308b4c5b6a334d6ad72ca01e8f4
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 12 08:01:11 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 08:01:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f22bded3
7
8 dev-python/flower: version bump to 0.9.1
9
10 Package-Manager: portage-2.3.2
11
12 dev-python/flower/Manifest | 1 +
13 dev-python/flower/flower-0.9.1.ebuild | 56 +++++++++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-python/flower/Manifest b/dev-python/flower/Manifest
17 index bfb3d6f..c1829a6 100644
18 --- a/dev-python/flower/Manifest
19 +++ b/dev-python/flower/Manifest
20 @@ -1 +1,2 @@
21 DIST flower-0.8.4.tar.gz 2224949 SHA256 982c2aff14b1b01024cf3356ff90309bc19fba99f47faba3cdb6c3262331c66e SHA512 1f6dc52b011fabff4ea09180338fdc5a155da035daba378a0afb262964bf54bd5d6c90c68ece9a5740ab7e6e99d50e12b566fcd66d6de392163ea859f740f244 WHIRLPOOL 48556c044c7e6ad956288a96066ee985675d7f43116d3a8c749ec1aa3ab7090fb3e061f3e738ea57ef946c5a39e9a8b9290efc4cd8eeb2c8ef6d94a568645e03
22 +DIST flower-0.9.1.tar.gz 3880608 SHA256 bdd926b731e8024779a5373fa33bff4a30e2a2ae6cf3a591beb83fbde3dc352f SHA512 519d92209dbdb7956fde30c604956d1cbbc8ec7180ff160ea088847b5b63310cd42dc949d02eef1197588b0353470a0f3ac96b44b2e3ebb093a254d8f94fb407 WHIRLPOOL 3595137d6f83e2ace3d93281daa19bf3b46432f30467489ec46bef4ff437bbbd3975230c31d4bd3134fb54616ee0a6eea1136d23c088f3543a45da1f6a495db3
23
24 diff --git a/dev-python/flower/flower-0.9.1.ebuild b/dev-python/flower/flower-0.9.1.ebuild
25 new file mode 100644
26 index 00000000..14d496d
27 --- /dev/null
28 +++ b/dev-python/flower/flower-0.9.1.ebuild
29 @@ -0,0 +1,56 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python{2_7,3_{4,5}} )
36 +
37 +inherit distutils-r1 systemd user
38 +
39 +DESCRIPTION="Real-time monitor and web admin for Celery distributed task queue"
40 +HOMEPAGE="https://${PN}.readthedocs.org/ https://github.com/mher/${PN}/ https://pypi.python.org/pypi/${PN}"
41 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE=""
47 +RESTRICT="test"
48 +
49 +RDEPEND=">=dev-python/celery-3.1.0[${PYTHON_USEDEP}]
50 + >=www-servers/tornado-4.2.0[${PYTHON_USEDEP}]
51 + >=dev-python/pytz-2015.7[${PYTHON_USEDEP}]
52 + >=dev-python/Babel-2.2.0[${PYTHON_USEDEP}]
53 + dev-python/setuptools[${PYTHON_USEDEP}]"
54 +
55 +pkg_setup() {
56 + enewgroup ${PN}
57 + enewuser ${PN} -1 -1 /dev/null ${PN}
58 +}
59 +
60 +src_prepare() {
61 + eapply_user
62 + sed -e 's:tornado==4.2.0:tornado>=4.2.0:' \
63 + -i requirements/default.txt || die
64 +}
65 +
66 +src_install() {
67 + distutils-r1_src_install
68 + insinto /etc/flower
69 + doins "${FILESDIR}/config.py"
70 + newinitd "${FILESDIR}/${PN}.initd" "${PN}"
71 + newconfd "${FILESDIR}/${PN}.confd" "${PN}"
72 + systemd_dounit "${FILESDIR}/${PN}.service"
73 + keepdir /var/log/${PN}
74 + fowners ${PN}:${PN} /var/log/${PN}
75 + insinto /etc/logrotate.d
76 + newins "${FILESDIR}/${PN}.logrotated" "${PN}"
77 +}
78 +
79 +python_install() {
80 + distutils-r1_python_install --install-scripts "${EPREFIX}/usr/libexec/flower"
81 +}
82 +
83 +python_test() {
84 + esetup.py test || die
85 +}