games-sports/gracer: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Wed, 28 Sep 2016 18:52:01 +0000 (13:52 -0500)
committerAustin English <wizardedit@gentoo.org>
Wed, 28 Sep 2016 21:13:55 +0000 (16:13 -0500)
Also update to EAPI 6

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

Package-Manager: portage-2.3.0

games-sports/gracer/files/0.1.5-gldefs.patch
games-sports/gracer/files/gracer-0.1.5-as-needed.patch
games-sports/gracer/files/gracer-0.1.5-gcc41.patch
games-sports/gracer/files/gracer-0.1.5-giflib.patch
games-sports/gracer/files/gracer-0.1.5-libpng14.patch
games-sports/gracer/files/gracer-0.1.5-png15.patch
games-sports/gracer/files/gracer-0.1.5-warnings.patch
games-sports/gracer/files/gracer-gcc-3.4.patch
games-sports/gracer/gracer-0.1.5-r1.ebuild [new file with mode: 0644]

index 825edff861dc348715fbcc8a116fe12a1de4fa31..43fe7385dc6ea0445bd7216a42ee8bb8860741e8 100644 (file)
@@ -1,5 +1,5 @@
---- src/glbind.c.orig  2003-07-30 00:18:37.000000000 -0400
-+++ src/glbind.c       2003-07-30 00:19:32.000000000 -0400
+--- a/src/glbind.c     2003-07-30 00:18:37.000000000 -0400
++++ b/src/glbind.c     2003-07-30 00:19:32.000000000 -0400
 @@ -22,6 +22,8 @@
  #include <unistd.h>
  #include <GL/gl.h>
@@ -9,8 +9,8 @@
  #include <string.h>
  #include <stdlib.h>
  #include <ctype.h>
---- src/glhash.h.orig  2003-07-30 00:20:32.000000000 -0400
-+++ src/glhash.h       2003-07-30 00:20:58.000000000 -0400
+--- a/src/glhash.h     2003-07-30 00:20:32.000000000 -0400
++++ b/src/glhash.h     2003-07-30 00:20:58.000000000 -0400
 @@ -1,4 +1,5 @@
  /* this file is generated automaticaly from GL/gl.h */
 +#undef GL_EXT_paletted_texture
index 3d3c53bcd46e67e625b037d92d501758dbb47e3c..1b8b21f1a1860ae4c2627da489ffed91e923eb8d 100644 (file)
@@ -1,5 +1,5 @@
---- src/Makefile.in.old        2009-02-11 14:31:56.000000000 +0100
-+++ src/Makefile.in    2009-02-11 14:32:29.000000000 +0100
+--- a/src/Makefile.in  2009-02-11 14:31:56.000000000 +0100
++++ b/src/Makefile.in  2009-02-11 14:32:29.000000000 +0100
 @@ -109,7 +109,7 @@
  INCLUDES =    -I$(top_srcdir)         @X_CFLAGS@      @GL_CFLAGS@     @GLUT_CFLAGS@   @TCL_CFLAGS@    @GIF_CFLAGS@    @JPEG_CFLAGS@   @PNG_CFLAGS@    @PLIB_CFLAGS@
  
index 7d47f96b98c8c35ed77caa246ae100d2bf4eb6f9..3877e76e577e54c3ca89c7e3060740af2ca31d8f 100644 (file)
@@ -1,5 +1,5 @@
---- common/gr_memory.h.old     2006-05-23 09:16:21.000000000 +0200
-+++ common/gr_memory.h 2006-05-23 09:16:40.000000000 +0200
+--- a/common/gr_memory.h       2006-05-23 09:16:21.000000000 +0200
++++ b/common/gr_memory.h       2006-05-23 09:16:40.000000000 +0200
 @@ -64,7 +64,7 @@
  void  gr_dlist_free                   (GrDList *list);
  
index 2d62b8c2082faac342e0f11a21c826b3815613b3..a5ce023f57346f064b0be97e687082ae8aa29f87 100644 (file)
@@ -1,4 +1,4 @@
---- gracer-0.1.5.orig/common/gr_texture.c
+--- gracer-0.1.5/common/gr_texture.c
 +++ gracer-0.1.5/common/gr_texture.c
 @@ -274,7 +274,11 @@
    int index;
index 6230eb2764018f63af188cba23fd4d6d3a59f624..618c987a3152f37995967eb970350e5d7e2031e8 100644 (file)
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/show_bug.cgi?id=308885
 
---- common/gr_texture.c
-+++ common/gr_texture.c
+--- a/common/gr_texture.c
++++ b/common/gr_texture.c
 @@ -419,7 +419,7 @@ read_png_file (GrTexture *texture, char
    if (fread (header, 1, PNG_BYTES_TO_CHECK, file) != PNG_BYTES_TO_CHECK) {
      goto ERROR;
index 1efaec3d6fc6e0697a480d19ae865811570449fc..d606c14cd4e259fe5fb8d9f67337a3be6c68041e 100644 (file)
@@ -1,5 +1,5 @@
---- common/gr_texture.c.old    2011-09-14 14:23:46.820207882 +0200
-+++ common/gr_texture.c        2011-09-14 14:24:22.861203604 +0200
+--- a/common/gr_texture.c      2011-09-14 14:23:46.820207882 +0200
++++ b/common/gr_texture.c      2011-09-14 14:24:22.861203604 +0200
 @@ -431,7 +431,7 @@
    if (!info_ptr) {
      goto ERROR;
index 5886ef763f3f46cdfe169c1f673ef4f4a47b9fa1..b5ede40e14926165f4ed016cd5fae18bf91df12f 100644 (file)
@@ -1,4 +1,4 @@
---- gracer-0.1.5.orig/src/glbind.c
+--- gracer-0.1.5/src/glbind.c
 +++ gracer-0.1.5/src/glbind.c
 @@ -142,7 +142,7 @@
      return NULL;
@@ -9,7 +9,7 @@
      return NULL;
  
    return Tcl_GetHashValue (entry);
---- gracer-0.1.5.orig/src/joystick.c
+--- gracer-0.1.5/src/joystick.c
 +++ gracer-0.1.5/src/joystick.c
 @@ -20,6 +20,7 @@
   */
index 354f9865a655d0112bfcbb2d576b2f0bfe5e172f..c12cb9a1f0cfd2a8f59af541dcac6eb264d7dd76 100644 (file)
@@ -1,5 +1,5 @@
---- src/glbind.c.old   2004-11-05 01:15:07.141221016 +0000
-+++ src/glbind.c       2004-11-05 01:15:32.808319024 +0000
+--- a/src/glbind.c     2004-11-05 01:15:07.141221016 +0000
++++ b/src/glbind.c     2004-11-05 01:15:32.808319024 +0000
 @@ -2150,6 +2150,7 @@
      return 3;
  
@@ -24,8 +24,8 @@
    }
  
  ERROR:
---- src/glutwidgets.c.old      2004-11-05 01:17:17.941336376 +0000
-+++ src/glutwidgets.c  2004-11-05 01:18:42.059548464 +0000
+--- a/src/glutwidgets.c        2004-11-05 01:17:17.941336376 +0000
++++ b/src/glutwidgets.c        2004-11-05 01:18:42.059548464 +0000
 @@ -255,6 +255,7 @@
        widget->width += (width - screen_width);
        break;
@@ -74,8 +74,8 @@
      }
  
      glColor4fv (widget->fg_color[GR_STATE_NORMAL]);
---- src/gr_world.c.old 2004-11-05 01:19:30.766143936 +0000
-+++ src/gr_world.c     2004-11-05 01:19:07.717647840 +0000
+--- a/src/gr_world.c   2004-11-05 01:19:30.766143936 +0000
++++ b/src/gr_world.c   2004-11-05 01:19:07.717647840 +0000
 @@ -169,6 +169,7 @@
        break;
  
@@ -84,8 +84,8 @@
      }
  
      tlist = entry->triggers;
---- ac2scene/ac2scene.c.old    2004-11-05 01:13:55.845059680 +0000
-+++ ac2scene/ac2scene.c        2004-11-05 01:14:32.526483256 +0000
+--- a/ac2scene/ac2scene.c      2004-11-05 01:13:55.845059680 +0000
++++ b/ac2scene/ac2scene.c      2004-11-05 01:14:32.526483256 +0000
 @@ -162,6 +162,7 @@
      break;
  
diff --git a/games-sports/gracer/gracer-0.1.5-r1.ebuild b/games-sports/gracer/gracer-0.1.5-r1.ebuild
new file mode 100644 (file)
index 0000000..d841e11
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="3D motor sports simulator"
+HOMEPAGE="http://gracer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/gracer/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="joystick"
+
+DEPEND="
+       dev-lang/tcl:0
+       media-libs/freeglut
+       media-libs/giflib
+       media-libs/libpng:0
+       media-libs/plib
+       x11-libs/libXi
+       x11-libs/libXmu
+       virtual/glu
+       virtual/jpeg:0
+       virtual/opengl"
+
+RDEPEND=${DEPEND}
+
+PATCHES=(
+               "${FILESDIR}"/${PV}-gldefs.patch
+               "${FILESDIR}"/${PN}-gcc-3.4.patch
+               "${FILESDIR}/${P}"-gcc41.patch
+               "${FILESDIR}"/${P}-as-needed.patch
+               "${FILESDIR}"/${P}-libpng14.patch
+               "${FILESDIR}"/${P}-png15.patch
+               "${FILESDIR}"/${P}-giflib.patch
+               "${FILESDIR}"/${P}-warnings.patch
+)
+
+src_configure() {
+       econf \
+               --enable-gif \
+               --enable-jpeg \
+               --enable-png \
+               $(use_enable joystick)
+       sed -i \
+               -e 's:-lplibsl:-lplibsl -lplibul:' \
+               $(find -name Makefile) || die
+}