commit:     29303b349ec832d47efd8bd166d5580d8fd35f5b
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  4 10:08:34 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr  4 10:11:01 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29303b34

games-misc/lucidlife: port to EAPI 7, eutils--

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/lucidlife-0.9.2-gnome-vfs.patch          | 12 ++++-----
 .../files/lucidlife-0.9.2-underlink.patch          |  4 +--
 games-misc/lucidlife/lucidlife-0.9.2-r1.ebuild     | 29 ++++++++++++++++------
 3 files changed, 30 insertions(+), 15 deletions(-)

diff --git a/games-misc/lucidlife/files/lucidlife-0.9.2-gnome-vfs.patch 
b/games-misc/lucidlife/files/lucidlife-0.9.2-gnome-vfs.patch
index 49918b62146..68fe0a3b3bc 100644
--- a/games-misc/lucidlife/files/lucidlife-0.9.2-gnome-vfs.patch
+++ b/games-misc/lucidlife/files/lucidlife-0.9.2-gnome-vfs.patch
@@ -1,5 +1,5 @@
---- lucidlife-0.9.2/configure.ac
-+++ lucidlife-0.9.2/configure.ac
+--- a/configure.ac
++++ b/configure.ac
 @@ -23,7 +23,7 @@
  AC_SUBST(CFLAGS)
  AC_SUBST(LDFLAGS)
@@ -9,8 +9,8 @@
  PKG_CHECK_MODULES(GNOME, $GNOME_MODULES)
  AC_SUBST(GNOME_CFLAGS)
  AC_SUBST(GNOME_LIBS)
---- lucidlife-0.9.2/src/lucidlife.c
-+++ lucidlife-0.9.2/src/lucidlife.c
+--- a/src/lucidlife.c
++++ b/src/lucidlife.c
 @@ -35,8 +35,6 @@
  
  #include <gtk/gtk.h>
@@ -55,8 +55,8 @@
        free(url);
  }
  
---- lucidlife-0.9.2/lucidlife.desktop.in
-+++ lucidlife-0.9.2/lucidlife.desktop.in
+--- a/lucidlife.desktop.in
++++ b/lucidlife.desktop.in
 @@ -2,8 +2,7 @@
  Name=LucidLife
  Comment=A user-friendly version of Conway's game of life

diff --git a/games-misc/lucidlife/files/lucidlife-0.9.2-underlink.patch 
b/games-misc/lucidlife/files/lucidlife-0.9.2-underlink.patch
index 77bd7092b81..f83c8214b60 100644
--- a/games-misc/lucidlife/files/lucidlife-0.9.2-underlink.patch
+++ b/games-misc/lucidlife/files/lucidlife-0.9.2-underlink.patch
@@ -1,5 +1,5 @@
---- a/src/Makefile.am  2011-06-17 17:31:54.078600741 +0200
-+++ b/src/Makefile.am  2011-06-17 17:32:05.491299944 +0200
+--- a/src/Makefile.am
++++ b/src/Makefile.am
 @@ -2,7 +2,7 @@
             -DDATADIR=\""$(datadir)/lucidlife"\" \
             -DDOCDIR=\""$(datadir)/doc/lucidlife"\"

diff --git a/games-misc/lucidlife/lucidlife-0.9.2-r1.ebuild 
b/games-misc/lucidlife/lucidlife-0.9.2-r1.ebuild
index d899eb14600..05012e421cc 100644
--- a/games-misc/lucidlife/lucidlife-0.9.2-r1.ebuild
+++ b/games-misc/lucidlife/lucidlife-0.9.2-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit autotools eutils
+EAPI=7
+
+inherit autotools
 
 DESCRIPTION="A Conway's Life simulator written in GTK+2 - fork from Gtklife"
 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
@@ -11,13 +12,24 @@ SRC_URI="mirror://gentoo/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-RDEPEND="x11-libs/gtk+:2"
-DEPEND="${DEPEND}
+RDEPEND="
+       dev-libs/atk
+       dev-libs/glib
+       dev-libs/gobject-introspection
+       media-libs/fontconfig
+       media-libs/freetype
+       x11-libs/gdk-pixbuf
+       x11-libs/gtk+:2
+       x11-libs/libX11
+       x11-libs/pango
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
        dev-util/intltool
        sys-devel/gettext
-       virtual/pkgconfig"
+       virtual/pkgconfig
+"
 
 PATCHES=(
        "${FILESDIR}"/${P}-gnome-vfs.patch
@@ -37,5 +49,8 @@ src_install() {
                pixmapdir=/usr/share/pixmaps \
                DESTDIR="${D}"
 
+       # Let's just shift the docdir
+       mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die
+
        dodoc AUTHORS ChangeLog NEWS README TODO
 }

Reply via email to