commit:     1b292faf45d4683059b8c70e4f90b4f58e3b7126
Author:     Ionen Wolkens <sudinave <AT> gmail <DOT> com>
AuthorDate: Thu Apr 15 17:21:40 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 16 04:46:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b292faf

x11-misc/xearth: EAPI-7 bump, eutils drop, tidy

Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-misc/xearth/xearth-1.1-r1.ebuild | 39 ++++++++++++++++++------------------
 1 file changed, 20 insertions(+), 19 deletions(-)

diff --git a/x11-misc/xearth/xearth-1.1-r1.ebuild 
b/x11-misc/xearth/xearth-1.1-r1.ebuild
index cbd3a60f818..542041ede4a 100644
--- a/x11-misc/xearth/xearth-1.1-r1.ebuild
+++ b/x11-misc/xearth/xearth-1.1-r1.ebuild
@@ -1,34 +1,33 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-inherit eutils toolchain-funcs
+inherit toolchain-funcs
 
+DESCRIPTION="Set the X root window to an image of the Earth"
 HOMEPAGE="https://hewgill.com/xearth/original/";
-DESCRIPTION="Xearth sets the X root window to an image of the Earth"
 SRC_URI="ftp://cag.lcs.mit.edu/pub/tuna/${P}.tar.gz
        ftp://ftp.cs.colorado.edu/users/tuna/${P}.tar.gz";
 
-SLOT="0"
 LICENSE="xearth"
+SLOT="0"
 KEYWORDS="~alpha amd64 ppc ppc64 x86"
-IUSE=""
 
 RDEPEND="
        x11-libs/libX11
        x11-libs/libXext
-       x11-libs/libXt
-"
-DEPEND="${RDEPEND}
-       x11-base/xorg-proto
-       >=x11-misc/imake-1.0.8-r1
+       x11-libs/libXt"
+DEPEND="${RDEPEND}"
+BDEPEND="
        app-text/rman
-"
+       x11-base/xorg-proto
+       >=x11-misc/imake-1.0.8-r1"
 
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-include.patch
-}
+PATCHES=(
+       "${FILESDIR}"/${P}-include.patch
+)
+DOCS=( BUILT-IN GAMMA-TEST HISTORY README )
 
 src_configure() {
        CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
@@ -36,14 +35,16 @@ src_configure() {
 }
 
 src_compile() {
-       emake \
-               CC="$(tc-getCC)" \
-               CDEBUGFLAGS="${CFLAGS}" \
+       local myemakeargs=(
+               CC="$(tc-getCC)"
+               CDEBUGFLAGS="${CFLAGS}"
                EXTRA_LDOPTIONS="${LDFLAGS}"
+       )
+       emake "${myemakeargs[@]}"
 }
 
 src_install() {
-       newman xearth.man xearth.1
        dobin xearth
-       dodoc BUILT-IN GAMMA-TEST HISTORY README
+       newman xearth.man xearth.1
+       einstalldocs
 }

Reply via email to