# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: EAPI="2" PYTHON_DEPEND="2" SUPPORT_PYTHON_ABIS="1" inherit distutils DESCRIPTION="Celery is an open source asynchronous task queue/job queue based on distributed message passing." HOMEPAGE="http://celeryproject.org/" SRC_URI="http://pypi.python.org/packages/source/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="sql" RDEPEND="dev-python/django-picklefield sql? ( dev-python/sqlalchemy ) dev-python/python-dateutil dev-python/anyjson >=dev-python/carrot-0.10.5 dev-python/pyparsing dev-python/mailer" DEPEND="${RDEPEND} dev-python/setuptools" RESTRICT="test" RESTRICT_PYTHON_ABIS="3.*" #Default val #S="${WORKDIR}/${P}" # The order of phases is: pkg_pretend(), pkg_setup(), src_unpack(), src_prepare(), src_configure(), src_compile(), src_install(), ... # pkg_setup() { # #python_set_active_version 2 # } # src_unpack() { # distutils_src_unpack # } # src_compile() { # distutils_src_compile # } src_install () { # distutils_src_install #site_pkgs="$(python_get_sitedir)" distutils_src_install --install-scripts="/usr/sbin" #this was stolen from syslog-ng s one can see # Install default configuration #insinto /etc/${PN} #insopts -m0640 #newins "${FILESDIR}/conf" syslog-ng.conf # newins is a wrapper around doins which installs the specified file transparently renaming to the second argument. #insinto /etc/logrotate.d # Install snippet for logrotate, which may or may not be installed #if use hardened || use selinux ; then #newins "${FILESDIR}/syslog-ng.logrotate.hardened" syslog-ng #else #newins "${FILESDIR}/syslog-ng.logrotate" syslog-ng #fi # Main celeryd init.d and conf.d newinitd "${FILESDIR}/celeryd_init" celeryd newconfd "${FILESDIR}/conf" celeryd # Celerybeat init.d and conf.d newinitd "${FILESDIR}/celerybeat_init" celerybeatd newconfd "${FILESDIR}/celerybeat_conf" celerybeatd } pkg_postinst() { distutils_pkg_postinst # echo # elog "It is highly recommended that app-admin/logrotate be emerged to" # elog "manage the log files. ${PN} installs a file in /etc/logrotate.d" # elog "for logrotate to use." # echo }