48 lines
1 KiB
Bash
48 lines
1 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/sys-apps/dstat/dstat-0.7.2-r1.ebuild,v 1.3 2011/12/27 23:43:38 neurogeek Exp $
|
|
|
|
EAPI=3
|
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
inherit python eutils
|
|
|
|
DESCRIPTION="Dstat is a versatile replacement for vmstat, iostat and ifstat"
|
|
HOMEPAGE="http://dag.wieers.com/home-made/dstat/"
|
|
SRC_URI="http://dag.wieers.com/home-made/${PN}/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND=""
|
|
DEPEND=""
|
|
|
|
pkg_setup() {
|
|
python_set_active_version 2
|
|
}
|
|
|
|
src_compile() {
|
|
true
|
|
}
|
|
|
|
src_install() {
|
|
emake install DESTDIR="${D}" || die "make install failed"
|
|
python_convert_shebangs 2 "${ED}usr/bin/dstat"
|
|
|
|
dodoc \
|
|
AUTHORS ChangeLog README TODO \
|
|
examples/{mstat,read}.py docs/*.txt \
|
|
|| die "dodoc failed"
|
|
dohtml docs/*.html || die "dohtml failed"
|
|
}
|
|
|
|
pkg_postinst() {
|
|
python_mod_optimize /usr/share/dstat
|
|
}
|
|
|
|
pkg_postrm() {
|
|
python_mod_cleanup /usr/share/dstat
|
|
}
|