# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils

DESCRIPTION="Emerge (-e) World Optimizer (EWO)"
HOMEPAGE="http://ewo-gentoo.googlecode.com/"
SRC_URI="http://ewo-gentoo.googlecode.com/files/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""
RDEPEND="app-portage/genlop"
DEPEND=""

RESTRICT="primaryuri"

src_prepare() {
	epatch "${FILESDIR}/fix_empty_genlop_output.patch"
}

src_install() {
	newsbin ${PN}.py ${PN} || die "Install failed"
	dodoc AUTHORS README
}

pkg_postinst() {
	einfo "For details about using this tool, see:"
	einfo "${HOMEPAGE}"
}