supervisor-3.3.1-r1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. PYTHON_COMPAT=( python2_7 ) # py2 only
  5. # xml.etree.ElementTree module required.
  6. PYTHON_REQ_USE="xml"
  7. inherit distutils-r1
  8. MY_PV="${PV/_beta/b}"
  9. DESCRIPTION="A system for controlling process state under UNIX"
  10. HOMEPAGE="http://supervisord.org/ https://pypi.python.org/pypi/supervisor"
  11. SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
  12. LICENSE="repoze ZPL BSD HPND GPL-2"
  13. SLOT="0"
  14. KEYWORDS="~amd64 ~x86"
  15. IUSE="doc test"
  16. RDEPEND="
  17. dev-python/meld3[${PYTHON_USEDEP}]
  18. "
  19. DEPEND="
  20. dev-python/setuptools[${PYTHON_USEDEP}]
  21. doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
  22. test? (
  23. ${RDEPEND}
  24. dev-python/mock[${PYTHON_USEDEP}]
  25. )
  26. "
  27. S="${WORKDIR}/${PN}-${MY_PV}"
  28. python_compile_all() {
  29. use doc && emake -C docs html
  30. }
  31. python_test() {
  32. esetup.py test
  33. }
  34. python_install_all() {
  35. newinitd "${FILESDIR}/init.d-r1" supervisord
  36. newconfd "${FILESDIR}/conf.d" supervisord
  37. use doc && local HTML_DOCS=( docs/.build/html/. )
  38. distutils-r1_python_install_all
  39. }