games-board/ace: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Thu, 8 Sep 2016 17:49:49 +0000 (12:49 -0500)
committerAustin English <wizardedit@gentoo.org>
Thu, 8 Sep 2016 18:24:27 +0000 (13:24 -0500)
Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

games-board/ace/ace-1.4-r1.ebuild [new file with mode: 0644]
games-board/ace/files/ace-1.4-gold.patch
games-board/ace/files/ace-1.4-libpng15.patch
games-board/ace/files/ace-1.4-no-xpm.patch

diff --git a/games-board/ace/ace-1.4-r1.ebuild b/games-board/ace/ace-1.4-r1.ebuild
new file mode 100644 (file)
index 0000000..bdeb333
--- /dev/null
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils
+
+DESCRIPTION="DJ Delorie's Ace of Penguins solitaire games"
+HOMEPAGE="http://www.delorie.com/store/ace/"
+SRC_URI="http://www.delorie.com/store/ace/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="
+       media-libs/libpng:0
+       x11-libs/libX11"
+DEPEND="${RDEPEND}
+       x11-proto/xproto"
+
+PATCHES=(
+       "${FILESDIR}"/${P}-no-xpm.patch
+       "${FILESDIR}"/${P}-libpng15.patch
+       "${FILESDIR}"/${P}-gold.patch
+       "${FILESDIR}"/${P}-CC.patch
+       "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+       default
+
+       mv configure.{in,ac} || die
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               --disable-static \
+               --program-prefix=ace-
+}
+
+src_install() {
+       default
+
+       dodoc docs/*
+       newicon docs/as.gif ${PN}.gif
+       cd "${D}/usr/bin" || die
+       local p
+       for p in *
+       do
+               make_desktop_entry $p "Ace ${p/ace-/}" /usr/share/pixmaps/${PN}.gif
+       done
+}
index 62665d61b88045cf0190c78121f264b59eed53ed..0c51527a8b3d7c270000e80a68c5ff303b1d3386 100644 (file)
@@ -5,8 +5,8 @@ Subject: build system
 fix gold linker compilation
 https://bugs.gentoo.org/show_bug.cgi?id=435826
 
---- configure.in
-+++ configure.in
+--- a/configure.in
++++ b/configure.in
 @@ -44,6 +44,9 @@
  AC_PROG_INSTALL
  AC_PROG_LN_S
@@ -96,8 +96,8 @@ https://bugs.gentoo.org/show_bug.cgi?id=435826
  AC_SUBST(PDA)
  
  AC_OUTPUT(Makefile lib/Makefile games/Makefile tests/Makefile)
---- lib/Makefile.am
-+++ lib/Makefile.am
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
 @@ -5,18 +5,19 @@
  
  CLEANFILES = images.c images.d
@@ -121,8 +121,8 @@ https://bugs.gentoo.org/show_bug.cgi?id=435826
  # table_ai.c table_ck.c table_dc.c table_dg.c \
  #table_dp.c table_in.c table_ky.c table_rd.c table_rs.c
  
---- games/Makefile.am
-+++ games/Makefile.am
+--- a/games/Makefile.am
++++ b/games/Makefile.am
 @@ -30,8 +30,7 @@
  
  STRIP = @STRIP@
index f0ec4e9f6359e48bacf7f808055cc086f6aaf81b..23da6949318ede50e1dc52be4b8bd055fe9f60bd 100644 (file)
@@ -1,5 +1,5 @@
---- lib/make-imglib.c
-+++ lib/make-imglib.c
+--- a/lib/make-imglib.c
++++ b/lib/make-imglib.c
 @@ -86,7 +86,7 @@
      png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
      info_ptr = png_create_info_struct (png_ptr);
@@ -9,8 +9,8 @@
        fclose (f);
        continue;
      }
---- lib/xwin.c
-+++ lib/xwin.c
+--- a/lib/xwin.c
++++ b/lib/xwin.c
 @@ -824,13 +824,13 @@
    png_ptr = png_create_read_struct (PNG_LIBPNG_VER_STRING, 0, 0, 0);
    info_ptr = png_create_info_struct (png_ptr);
index 25b06754be424a23b89b9e6e2d10e0fae1103411..a8762fb00a382e93332596fc2977cb7757c43eee 100644 (file)
@@ -1,5 +1,5 @@
---- lib/table.c.orig   2008-01-15 15:05:27.000000000 -0500
-+++ lib/table.c        2010-09-29 17:34:40.925310980 -0400
+--- a/lib/table.c      2008-01-15 15:05:27.000000000 -0500
++++ b/lib/table.c      2010-09-29 17:34:40.925310980 -0400
 @@ -23,7 +23,6 @@
  #include <X11/Xutil.h>
  #include <X11/keysym.h>