inherit python DESCRIPTION="Command-line utility to to provide quick access to current weather conditions and forecasts." HOMEPAGE="http://fungi.yuggoth.org/weather/" SRC_URI="http://fungi.yuggoth.org/weather/src/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="x86" IUSE="" RDEPEND="virtual/python" S=${WORKDIR}/${PN} src_install () { python_version local MYPYPATH="/usr/lib/python${PYVER}/site-packages" einfo "Python include path: ${MYPYPATH}" insinto ${MYPYPATH} doins ${PN}.py insinto /etc doins ${PN}rc dobin ${PN} || die "Install failed" doman ${PN}.1 ${PN}rc.5 || die "Man pages failed" dodoc LICENSE || die "Doc install failed" } pkg_postinst () { echo einfo "System default config is located in /etc/weatherrc." einfo "man weather and weatherrc for more info." echo }