summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-10-12 01:01:11 -0700
committerZac Medico <zmedico@gentoo.org>2016-10-12 01:01:57 -0700
commitf22bded392bae308b4c5b6a334d6ad72ca01e8f4 (patch)
tree154d8b64516a75ef9beafced9f4f8fa32acd821e /dev-python/flower/flower-0.9.1.ebuild
parentwww-apps/tt-rss: Switch to mysqli interface (diff)
downloadgentoo-f22bded392bae308b4c5b6a334d6ad72ca01e8f4.tar.gz
gentoo-f22bded392bae308b4c5b6a334d6ad72ca01e8f4.tar.bz2
gentoo-f22bded392bae308b4c5b6a334d6ad72ca01e8f4.zip
dev-python/flower: version bump to 0.9.1
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-python/flower/flower-0.9.1.ebuild')
-rw-r--r--dev-python/flower/flower-0.9.1.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/flower/flower-0.9.1.ebuild b/dev-python/flower/flower-0.9.1.ebuild
new file mode 100644
index 000000000000..14d496d6f949
--- /dev/null
+++ b/dev-python/flower/flower-0.9.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_{4,5}} )
+
+inherit distutils-r1 systemd user
+
+DESCRIPTION="Real-time monitor and web admin for Celery distributed task queue"
+HOMEPAGE="https://${PN}.readthedocs.org/ https://github.com/mher/${PN}/ https://pypi.python.org/pypi/${PN}"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="test"
+
+RDEPEND=">=dev-python/celery-3.1.0[${PYTHON_USEDEP}]
+ >=www-servers/tornado-4.2.0[${PYTHON_USEDEP}]
+ >=dev-python/pytz-2015.7[${PYTHON_USEDEP}]
+ >=dev-python/Babel-2.2.0[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /dev/null ${PN}
+}
+
+src_prepare() {
+ eapply_user
+ sed -e 's:tornado==4.2.0:tornado>=4.2.0:' \
+ -i requirements/default.txt || die
+}
+
+src_install() {
+ distutils-r1_src_install
+ insinto /etc/flower
+ doins "${FILESDIR}/config.py"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ keepdir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/${PN}.logrotated" "${PN}"
+}
+
+python_install() {
+ distutils-r1_python_install --install-scripts "${EPREFIX}/usr/libexec/flower"
+}
+
+python_test() {
+ esetup.py test || die
+}