summaryrefslogtreecommitdiff
blob: 3095bffdf27f08ed5de4472b14540231a4d63a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

PYTHON_DEPEND=*
inherit python

DESCRIPTION="Update live packages and emerge the modified ones"
HOMEPAGE="http://github.com/mgorny/smart-live-rebuild/"
SRC_URI="http://github.com/downloads/mgorny/${PN}/${P}.tar.bz2"

LICENSE="|| ( BSD GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

src_install() {
	newbin ${PN}.py ${PN} || die
	dodoc README sets.conf.example || die
	insinto /etc/portage
	newins smart-live-rebuild.conf{.example,} || die
	insinto /usr/share/portage/config/sets
	newins sets.conf.example ${PN}.conf || die
}

pkg_postinst() {
	elog "You might also consider installing [dev-python/psutil] then, which is required"
	elog "for ${PN} automatically detect if it was spawned by emerge."
}