summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2017-05-11 23:48:29 +0200
committerPatrice Clement <monsieurp@gentoo.org>2017-05-11 23:50:56 +0200
commit1ff1e2c1c97b8a7d7e64c133b143d7ed5a521976 (patch)
treee81fa2fe4cdacde84822edf15ad55b4a464e5dc7 /app-admin/pydf/pydf-12-r1.ebuild
parentkde-apps: Drop KDE Applications 17.04.0 (diff)
downloadgentoo-1ff1e2c1c97b8a7d7e64c133b143d7ed5a521976.tar.gz
gentoo-1ff1e2c1c97b8a7d7e64c133b143d7ed5a521976.tar.bz2
gentoo-1ff1e2c1c97b8a7d7e64c133b143d7ed5a521976.zip
app-admin/pydf: make use of PN wherever possible.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-admin/pydf/pydf-12-r1.ebuild')
-rw-r--r--app-admin/pydf/pydf-12-r1.ebuild14
1 files changed, 8 insertions, 6 deletions
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
}