# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 PYTHON_DEPEND="2:2.5:2.7" inherit eutils python DESCRIPTION="The network neutrality bot" HOMEPAGE="http://www.neubot.org/" SRC_URI="http://releases.neubot.org/_packages/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="dev-lang/python" RDEPEND="${DEPEND}" RESTRICT_PYTHON_ABIS="2.4 3.*" pkg_setup() { python_set_active_version 2 enewgroup _neubot enewuser _neubot -1 -1 / _neubot } src_prepare() { epatch "${FILESDIR}"/${P}-fix-python-detection-order.patch } src_configure() { : } src_compile() { : } src_install() { emake PREFIX=/usr MANDIR=/usr/share/man DESTDIR="${D}" install || die "make install failed" } pkg_postinst() { elog elog "In order to automatically start the Neubot daemon at startup, the following script needs to be added to /etc/local.d" elog elog "if [ -x /usr/bin/start-neubot-daemon ]; then" elog " /usr/bin/start-neubot-daemon" elog "fi" elog }