x11-themes/gtk-engines-aurora: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 24 Dec 2019 11:53:13 +0000 (12:53 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 24 Dec 2019 11:53:13 +0000 (12:53 +0100)
Package-Manager: Portage-2.3.82, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
x11-themes/gtk-engines-aurora/files/gtk-engines-aurora-1.5.1-glib-2.31.patch
x11-themes/gtk-engines-aurora/gtk-engines-aurora-1.5.1.ebuild

index 34897addd2782bf4890c5850b4a23b154acca2cc..33dc3af23f4f03963dd22220ae683ee6db35806a 100644 (file)
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/419393
 
---- src/animation.c
-+++ src/animation.c
+--- a/src/animation.c
++++ b/src/animation.c
 @@ -7,7 +7,7 @@
  #include "animation.h"
  
index 503ede706f1d1eaa5c1d0ccee8676fec10ccdd26..f85ed5696b88aad55f0efa8488070b6d06426935 100644 (file)
@@ -1,10 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit eutils versionator
+EAPI=7
 
-MY_MAJ=$(get_version_component_range 1-2)
+MY_MAJ=$(ver_cut 1-2)
 
 DESCRIPTION="Aurora GTK+ 2.x Theme Engine"
 HOMEPAGE="http://www.gnome-look.org/content/show.php?content=56438"
@@ -13,24 +12,21 @@ SRC_URI="http://gnome-look.org/CONTENT/content-files/56438-aurora-${PV}.tar.bz2"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-macos"
-IUSE=""
 
-RDEPEND=">=dev-libs/glib-2
-       >=x11-libs/gtk+-2.10:2"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
+RDEPEND="
+       dev-libs/glib:2
+       x11-libs/gtk+:2"
+DEPEND="${RDEPEND}"
+BDEPED="virtual/pkgconfig"
 
-S=${WORKDIR}/aurora-${MY_MAJ}
+S="${WORKDIR}/aurora-${MY_MAJ}"
+
+PATCHES=( "${FILESDIR}"/${P}-glib-2.31.patch )
 
 src_unpack() {
        unpack ${A}
-       cd "${WORKDIR}"
-       tar -xzf aurora-gtk-engine-${MY_MAJ}.tar.gz || die
-       tar -xjf Aurora.tar.bz2 || die
-}
-
-src_prepare() {
-       epatch "${FILESDIR}"/${P}-glib-2.31.patch
+       unpack ./aurora-gtk-engine-${MY_MAJ}.tar.gz
+       unpack ./Aurora.tar.bz2
 }
 
 src_configure() {
@@ -38,11 +34,11 @@ src_configure() {
 }
 
 src_install() {
-       emake DESTDIR="${D}" install
-       dodoc AUTHORS ChangeLog NEWS README
+       default
 
        insinto /usr/share/themes/Aurora
-       doins -r ../Aurora/*
+       doins -r ../Aurora/.
 
-       find "${ED}"/usr -name '*.la' -type f -exec rm -f {} +
+       # no static archives
+       find "${D}" -name '*.la' -delete || die
 }