# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-portage/pfl/pfl-2.3-r3.ebuild,v 1.2 2013/08/20 22:08:33 bicatali Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) PYTHON_REQ_USE="xml" inherit distutils-r1 DESCRIPTION="Searchable online file/package database for Gentoo" HOMEPAGE="http://www.portagefilelist.de" SRC_URI="http://files.portagefilelist.de/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x64-freebsd ~x86-linux" IUSE="+network-cron" DEPEND="" RDEPEND="${DEPEND} net-misc/curl sys-apps/portage" src_prepare() { sed -i -e 's/python2 -O //' cron/pfl || die } python_install_all() { if use network-cron ; then exeinto /etc/cron.weekly doexe cron/pfl fi keepdir /var/lib/${PN} distutils-r1_python_install_all } pkg_postinst() { if [[ ! -e "${EROOT%/}/var/lib/${PN}/pfl.info" ]]; then touch "${EROOT%/}/var/lib/${PN}/pfl.info" chown -R 0:portage "${EROOT%/}/var/lib/${PN}" chmod 775 "${EROOT%/}/var/lib/${PN}" fi }