games-puzzle/icebreaker: Stop using games.eclass
authorPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 12:22:00 +0000 (14:22 +0200)
committerPacho Ramos <pacho@gentoo.org>
Tue, 1 May 2018 19:33:09 +0000 (21:33 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9

games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch
games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch
games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch
games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch
games-puzzle/icebreaker/icebreaker-1.9.6-r1.ebuild [new file with mode: 0644]

index d6e16a6c39a6babfb22ca9655dfb8d7ad2309202..846d5b4141bc42e86c6ebb2a973bf15df8066e3f 100644 (file)
@@ -1,5 +1,5 @@
---- dialog.c
-+++ dialog.c
+--- a/dialog.c
++++ b/dialog.c
 @@ -279,10 +279,10 @@ PopupReturnType popuphighscores()
  
        for (i=0;i<HISCORENUM;i++)
@@ -22,8 +22,8 @@
        puttext(helprect.x+BLOCKWIDTH/2,helprect.y+helprect.h-CHARHEIGHT*3,1,color.copyrighttext,buf);          
        puttext(helprect.x+BLOCKWIDTH/2,helprect.y+helprect.h-CHARHEIGHT*1-3,1,color.copyrighttext,"Thanks to my wonderful wife Karen for inspiration (and for patience)!");            
        
---- menu.c
-+++ menu.c
+--- a/menu.c
++++ b/menu.c
 @@ -193,12 +193,12 @@ PopupReturnType popupoptionsmenu()
  
        if (strlen(commandline.theme)>0)
@@ -57,8 +57,8 @@
                        }
                        else // right or middle or scroll back
                        {
---- hiscore.c
-+++ hiscore.c
+--- a/hiscore.c
++++ b/hiscore.c
 @@ -72,7 +72,7 @@
        // make sure all entries are zeroed out to start.
        for (i=0;i<HISCORENUM;i++)
                hival[i]=temphiscoreval[arrayindex[i]];
        }
  }
---- line.c
-+++ line.c
+--- a/line.c
++++ b/line.c
 @@ -30,8 +30,9 @@
  
  Line createline(int linenum)
        switch (linenum)
        {
                case 1: 
---- options.c
-+++ options.c
+--- a/options.c
++++ b/options.c
 @@ -66,7 +66,7 @@
        options.autopause=AUTOPAUSEOFF; 
        options.difficulty=NORMAL;
                        }       
                }
                else if (strncmp(argv[i],FLAGTHEMELONG,strlen(FLAGTHEMELONG)) == 0)
---- penguin.c
-+++ penguin.c
+--- a/penguin.c
++++ b/penguin.c
 @@ -40,8 +40,9 @@
  
  Penguin createpenguinxy(int x, int y)
        switch (random() % 4)
        {
                case 0:
---- themes.c
-+++ themes.c
+--- a/themes.c
++++ b/themes.c
 @@ -183,7 +183,7 @@
  
        foundcolor.spritetransparent = 0;
index 44ef9bdf86313a97e4de897b7d92c7528ca3ee41..93b40fc676873cb663ef1e806831d8a9c7c669e8 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.orig      2010-10-11 12:20:01.274684641 -0400
-+++ Makefile   2010-10-11 12:22:02.256897083 -0400
+--- a/Makefile.orig    2010-10-11 12:20:01.274684641 -0400
++++ b/Makefile 2010-10-11 12:22:02.256897083 -0400
 @@ -1,5 +1,3 @@
 -CC=gcc
 -
index 03050be548fb24ffe802c15f4e6b84bf75f4aecf..5e8ffc01d8d209ee83b86dfd6b5f789015c033cd 100644 (file)
@@ -1,5 +1,5 @@
---- menu.c.old 2013-06-24 22:09:11.606750080 +0200
-+++ menu.c     2013-06-24 22:25:51.635735351 +0200
+--- a/menu.c.old       2013-06-24 22:09:11.606750080 +0200
++++ b/menu.c   2013-06-24 22:25:51.635735351 +0200
 @@ -522,7 +522,7 @@
                { // "random", at the end/beginning of the list
                        
index de388d9b57582189715499feedf2008fa3d203e8..419262791d989f0b928e0b740bde321db7532422 100644 (file)
@@ -1,5 +1,5 @@
---- Makefile.old       2010-10-19 10:26:18.000000000 +0200
-+++ Makefile   2010-10-19 10:38:28.000000000 +0200
+--- a/Makefile.old     2010-10-19 10:26:18.000000000 +0200
++++ b/Makefile 2010-10-19 10:38:28.000000000 +0200
 @@ -196,26 +196,30 @@
  themes-install: install-themes
  
diff --git a/games-puzzle/icebreaker/icebreaker-1.9.6-r1.ebuild b/games-puzzle/icebreaker/icebreaker-1.9.6-r1.ebuild
new file mode 100644 (file)
index 0000000..1390297
--- /dev/null
@@ -0,0 +1,49 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit desktop
+
+DESCRIPTION="Trap and capture penguins on Antarctica"
+HOMEPAGE="http://www.mattdm.org/icebreaker/"
+SRC_URI="http://www.mattdm.org/${PN}/1.9.x/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+       media-libs/libsdl[video]
+       media-libs/sdl-mixer
+"
+DEPEND="${RDEPEND}"
+
+
+PATCHES=(
+       "${FILESDIR}"/${P}-ldflags.patch
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-parallell-install.patch
+       "${FILESDIR}"/${P}-ovfl.patch
+)
+
+src_compile() {
+       emake \
+               OPTIMIZE="${CFLAGS}" \
+               prefix=/usr \
+               bindir=/usr/bin \
+               datadir=/usr/share \
+               highscoredir="/var"
+}
+
+src_install() {
+       emake \
+               prefix="${D}/usr" \
+               bindir="${D}/usr/bin" \
+               datadir="${D}/usr/share" \
+               highscoredir="${D}/var" install
+
+       newicon ${PN}_48.bmp ${PN}.bmp
+       make_desktop_entry ${PN} IceBreaker /usr/share/pixmaps/${PN}.bmp
+       einstalldocs
+}