You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/pkgcore-checks/pkgcore-checks-9999.ebuild

56 lines
1.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/pkgcore-checks/pkgcore-checks-9999.ebuild,v 1.5 2014/06/08 10:26:07 radhermit Exp $
EAPI=4
PYTHON_COMPAT=( python2_7 )
inherit distutils-r1
if [[ ${PV} == *9999 ]] ; then
EGIT_REPO_URI="git://github.com/pkgcore/pkgcore-checks.git"
inherit git-r3
else
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
SRC_URI="http://pkgcore-checks.googlecode.com/files/${P}.tar.bz2"
fi
DESCRIPTION="pkgcore developmental repoman replacement"
HOMEPAGE="http://www.pkgcore.org/"
LICENSE="GPL-2"
SLOT="0"
RDEPEND="=sys-apps/pkgcore-9999[${PYTHON_USEDEP}]
=dev-python/snakeoil-9999[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
pkg_setup() {
# disable snakeoil 2to3 caching...
unset PY2TO3_CACHEDIR
}
python_test() {
esetup.py test
}
python_install_all() {
local DOCS=( AUTHORS NEWS )
distutils-r1_python_install_all
}
pkg_postinst() {
einfo "updating pkgcore plugin cache"
python_foreach_impl pplugincache pkgcore_checks.plugins pkgcore.plugins
}
pkg_postrm() {
# Careful not to remove this on up/downgrades.
plugincache_update() {
local sitep="${ROOT}$(python_get_sitedir)"
if [[ -e "${sitep}/pkgcore_checks/plugins/plugincache2" && ! -e "${sitep}/pkgcore_checks/base.py" ]]; then
rm "${sitep}/pkgcore_checks/plugins/plugincache2"
fi
}
python_foreach_impl plugincache_update
}