From 1ff1e2c1c97b8a7d7e64c133b143d7ed5a521976 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Thu, 11 May 2017 23:48:29 +0200 Subject: app-admin/pydf: make use of PN wherever possible. Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- app-admin/pydf/pydf-12-r1.ebuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'app-admin/pydf/pydf-12-r1.ebuild') diff --git a/app-admin/pydf/pydf-12-r1.ebuild b/app-admin/pydf/pydf-12-r1.ebuild index 7621a081a3c2..62e056c8a461 100644 --- a/app-admin/pydf/pydf-12-r1.ebuild +++ b/app-admin/pydf/pydf-12-r1.ebuild @@ -3,6 +3,7 @@ EAPI=6 PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + inherit python-r1 DESCRIPTION="Enhanced df with colors" @@ -12,21 +13,22 @@ SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/${PN}_${PV}.tar. LICENSE="public-domain" SLOT="0" KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux" -IUSE="" REQUIRED_USE="${PYTHON_REQUIRED_USE}" DEPEND="${PYTHON_DEPS}" RDEPEND="${DEPEND}" +DOCS=( README ) + src_prepare() { default - sed -i -e "s:/etc/pydfrc:${EPREFIX}/etc/pydfrc:" pydf || die + sed -i -e "s:/etc/pydfrc:${EPREFIX}/etc/pydfrc:" "${PN}" || die } src_install() { - python_foreach_impl python_doscript pydf + python_foreach_impl python_doscript "${PN}" insinto /etc - doins pydfrc - doman pydf.1 - dodoc README + doins "${PN}rc" + doman "${PN}.1" + einstalldocs } -- cgit v1.2.3-65-gdbad