x11-misc/xtoolwait: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 24 Dec 2019 17:40:11 +0000 (18:40 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 24 Dec 2019 17:40:11 +0000 (18:40 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
x11-misc/xtoolwait/xtoolwait-1.3-r2.ebuild

index b1878e8d3e44bdc931698e17ed77a3e6e5dda342..386962ee97655736b2d9dbbc21378c9e128ba81e 100644 (file)
@@ -1,7 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=7
+
 inherit toolchain-funcs
 
 DESCRIPTION="Xtoolwait notably decreases the startup time of an X session"
@@ -11,16 +12,17 @@ SRC_URI="http://ftp.x.org/contrib/utilities/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
 
-RDEPEND="x11-libs/libX11
+RDEPEND="
+       x11-libs/libX11
        x11-libs/libXext"
 DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+BDEPEND="
        app-text/rman
-       x11-base/xorg-proto
        x11-misc/imake"
 
-src_prepare() {
+src_configure() {
        xmkmf || die
        sed -i \
                -e '/CC = /d' -e '/EXTRA_LDOPTIONS = /d' \
@@ -36,11 +38,11 @@ src_compile() {
 
 src_install() {
        emake \
-               BINDIR=/usr/bin \
-               MANPATH=/usr/share/man \
-               DOCDIR=/usr/share/doc/${PF} \
+               BINDIR="${EPREFIX}"/usr/bin \
+               MANPATH="${EPREFIX}"/usr/share/man \
+               DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
                DESTDIR="${D}" \
                install{,.man}
 
-       dodoc CHANGES README
+       einstalldocs
 }