summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-05-01 14:22:00 +0200
committerPacho Ramos <pacho@gentoo.org>2018-05-01 21:33:09 +0200
commit202f2cf830c7c7e5d6d961d3cc6ebe61ba70861e (patch)
tree5eba720169b92b8dd19dadc9b7e803f018d7341f /games-puzzle
parentgames-puzzle/hexamine: Drop old (diff)
downloadgentoo-202f2cf830c7c7e5d6d961d3cc6ebe61ba70861e.tar.gz
gentoo-202f2cf830c7c7e5d6d961d3cc6ebe61ba70861e.tar.bz2
gentoo-202f2cf830c7c7e5d6d961d3cc6ebe61ba70861e.zip
games-puzzle/icebreaker: Stop using games.eclass
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch28
-rw-r--r--games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch4
-rw-r--r--games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch4
-rw-r--r--games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch4
-rw-r--r--games-puzzle/icebreaker/icebreaker-1.9.6-r1.ebuild49
5 files changed, 69 insertions, 20 deletions
diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch
index d6e16a6c39a6..846d5b4141bc 100644
--- a/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch
+++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-gentoo.patch
@@ -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++)
@@ -102,8 +102,8 @@
hival[i]=temphiscoreval[arrayindex[i]];
}
}
---- line.c
-+++ line.c
+--- a/line.c
++++ b/line.c
@@ -30,8 +30,9 @@
Line createline(int linenum)
@@ -115,8 +115,8 @@
switch (linenum)
{
case 1:
---- options.c
-+++ options.c
+--- a/options.c
++++ b/options.c
@@ -66,7 +66,7 @@
options.autopause=AUTOPAUSEOFF;
options.difficulty=NORMAL;
@@ -171,8 +171,8 @@
}
}
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)
@@ -184,8 +184,8 @@
switch (random() % 4)
{
case 0:
---- themes.c
-+++ themes.c
+--- a/themes.c
++++ b/themes.c
@@ -183,7 +183,7 @@
foundcolor.spritetransparent = 0;
diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch
index 44ef9bdf8631..93b40fc67687 100644
--- a/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch
+++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ldflags.patch
@@ -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
-
diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch
index 03050be548fb..5e8ffc01d8d2 100644
--- a/games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch
+++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-ovfl.patch
@@ -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
diff --git a/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch b/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch
index de388d9b5758..419262791d98 100644
--- a/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch
+++ b/games-puzzle/icebreaker/files/icebreaker-1.9.6-parallell-install.patch
@@ -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
index 000000000000..139029708099
--- /dev/null
+++ b/games-puzzle/icebreaker/icebreaker-1.9.6-r1.ebuild
@@ -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
+}