summaryrefslogtreecommitdiff
path: root/games-action/xbomber
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/xbomber')
-rw-r--r--games-action/xbomber/Manifest10
-rw-r--r--games-action/xbomber/files/xbomber-101-clang.patch123
-rw-r--r--games-action/xbomber/files/xbomber-101-gcc4.patch11
-rw-r--r--games-action/xbomber/files/xbomber-101-ldflags.patch15
-rw-r--r--games-action/xbomber/files/xbomber-101-va_list.patch48
-rw-r--r--games-action/xbomber/metadata.xml8
-rw-r--r--games-action/xbomber/xbomber-101-r1.ebuild47
-rw-r--r--games-action/xbomber/xbomber-101.ebuild41
8 files changed, 303 insertions, 0 deletions
diff --git a/games-action/xbomber/Manifest b/games-action/xbomber/Manifest
new file mode 100644
index 000000000000..52db103073a0
--- /dev/null
+++ b/games-action/xbomber/Manifest
@@ -0,0 +1,10 @@
+AUX xbomber-101-clang.patch 2141 SHA256 6ecb1c9a5914abb95e85d97e6dda06263a6e65da233821168149a7a0d77bde87 SHA512 3954bcf1793e2acf0213861920b0831935e3c3224090c1430bd085603ea1acca59ec542df64f09b4165d06ee2f1264a3add308a2d3f472be0a7200b640d44bef WHIRLPOOL 27035cfc5c3eaa422b4c014bd4513418c5119b7fe2c3c4e7d3c7018e8d82efb12aa1f40a50533ed7c8084d8b41362f154f95feb6d1eda5555ac123dbc55f75c2
+AUX xbomber-101-gcc4.patch 368 SHA256 252f8e65adb129ec4f2f726d2b509988f8356e320acbd497caeab24ac04b847f SHA512 06cfd4e13f42d6669fb96db5c207bbb035510155f9e1b0de5ab741585300e6c9afb8e9ecc0c7a326baf34527fa4af87243dada7fb86bcf0587f6cf67648ec688 WHIRLPOOL aa011fff0a2780d8341714dfab1b51f1ef708914bcdd07d5e14ace8f3616fb66c612b9b11ed3f1ec961c3fb8c24625232866d0f90a790e04ec651645d3a4aa3b
+AUX xbomber-101-ldflags.patch 454 SHA256 b153f7f4c2ee9a6c41a59c03edca1896e0504d25bab2967d0cf5ea263bd070fb SHA512 8fe9a9b934ab9bc624a8b18a199947b98c6abfd9e3c748a2de54b46f557710121ea0c0179ea565f57c469186afaf11e0bd0d389f42f0df346809f114ef02a109 WHIRLPOOL fa7f9022f39518f3406cd7b805a230ce7dc511ef8d8518317d71ada1ef8cc13458a8bef6c5e3a646dc06c5303471e282a208641e2b652237f0321285686ce176
+AUX xbomber-101-va_list.patch 904 SHA256 ea0f3746222ae9b8d583784fdcd98e16ce598e03d07e6ca2edb468eb0b1ad48c SHA512 87a7a4c5decb5e406521b2b5401a7c9053700f026df6aee936e6d1accf0c82c2468cb6e03483d0e2f8e551685d5f2edaa35d81df23b2e42ca11a2b305748f5b1 WHIRLPOOL a69dbd196af9bed557a9bdb40a67f226c7c4cc0dd8ef0a657b964ea6fe250b65f9a7e5459472511b1166fe250ab04f37c2b152aa984c459cef4d235b7b24860a
+DIST xbomber-101.tgz 396707 SHA256 d2f127519b779f83e029be4a6dd0299d126505bbe49a9981d913ac10a4b3f640 SHA512 3f7259ad7f4bf3ec15997c187e354a5cb91cd19743003f480b4900caa2a888d977aa3d6f1e96411666bb0a971fcf17593b76fde9804bb6e1e1b0dab9d4b6abb2 WHIRLPOOL 70f5973bc69d20f2bbf7b3190b9eeac75119dc4765944bb668b6241063c237c2d8b1474dcbf049f896d7d8d5a92524c0c02bd3b1719360103a037fb67049e353
+EBUILD xbomber-101-r1.ebuild 942 SHA256 6bcfdcfdb26fe93c95bc742b728ddaa71afc5b6e0ebe8f7eda0615d4d0bfdfb9 SHA512 f3f5e4f0c16f7f44fbf3bbfee1a08eb8030e30c66ec93f99d23ecb6899f83c34e1ffef4b67ecb24a8d3dbb78c591ed384cc610e163bbcb7f37e490e9831c1ac4 WHIRLPOOL 9a75eb2a8b8414a91c9e753732165f54c3b3ee885bdb561bd7677aa26474f2eee7da33803f70760e7e159de5081e05c0cb02361568a797e3b9d74d176681abad
+EBUILD xbomber-101.ebuild 882 SHA256 3d2e87520e1ced9a50be6be9495f3a9dd850343e2f1a67b1c9910b2e4cc47a4f SHA512 8439184a11eb11315d54e55b6142b23696fd52391b5f8a7ae5f045eb21ede239d24c7d720f88111157094067a6fc8bfeea0807d50bee8db50dede23081247fe5 WHIRLPOOL 4fac9c4f8d50ceb6797eb7c675bc9ce0c55c3970b6b82caca27bf45283e8d34286c5fc0deaab381cf8831f5c2ce019b26410af4e942deb70993fd097c4023a57
+MISC ChangeLog 3327 SHA256 4ef06118c25906c7f3e2866f8645c7f74b45b6057a8d4c5fd5827db980992642 SHA512 4ada1266a59a76780f2530fc102ba889785cb3a71cac1d325c161f3a33e0eb16cd555d2c9bdd19b5bcf0db6cbd7d156314b6060f46f95c3c7e9a636523a97dae WHIRLPOOL 23b15cd851255dd38e9a64fc8844558668ca7fa4cfc0f2c6efee4bc534eb9e8ea1334b76ca17cb38b2dcd659ea4e1bf3330ee67cbc98d6d6c6078c99b8810fb7
+MISC ChangeLog-2015 1769 SHA256 e2773d8ee13b39fcb8c7b2d3e601743c589e512f7ba11960d08c8e3b26af4cba SHA512 59541d4723090188e9921304b681e026a7411920946467cc0e594eb6b176517a3b889a589aa9c89fc27f3b892c92ff27e7032f0507051560834b846fc08a9d28 WHIRLPOOL 1438cb827690f86603db4e7a790edb6f8a566ea4956680a0353e4b0e543fecdb1ac07fe18d5945774639b857cd77a9349d492432606f05f9988d9c69f0609a60
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/xbomber/files/xbomber-101-clang.patch b/games-action/xbomber/files/xbomber-101-clang.patch
new file mode 100644
index 000000000000..1771f15abc5e
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-clang.patch
@@ -0,0 +1,123 @@
+--- a/bomber.c 2016-07-13 16:35:34.596802964 -0500
++++ b/bomber.c 2016-07-13 16:40:43.110797439 -0500
+@@ -350,7 +350,7 @@
+ inform1(i);
+ }
+
+-networktraffic()
++void networktraffic()
+ {
+ int i,j,k;
+ int length;
+@@ -1252,7 +1252,7 @@
+ }
+ }
+
+-addsprite(int x,int y,figure *fig)
++void addsprite(int x,int y,figure *fig)
+ {
+ sprite *sp;
+ if(spritesused==MAXSPRITES) return;
+@@ -1262,7 +1262,7 @@
+ sp->ypos=y;
+ sp->fig=fig;
+ }
+-adddamage(int xpos,int ypos,int xsize,int ysize)
++void adddamage(int xpos,int ypos,int xsize,int ysize)
+ {
+ damage *dm;
+ if(damageused==MAXDAMAGES) return;
+@@ -1375,7 +1375,7 @@
+ return (y>>FRACTION)+arraystarty;
+ }
+
+-int trymove(player *pl,int dx,int dy)
++void trymove(player *pl,int dx,int dy)
+ {
+ int wx,wy;
+ int sx,sy;
+@@ -1520,7 +1520,7 @@
+ }
+ }
+
+-doplayer(player *pl)
++void doplayer(player *pl)
+ {
+ int last;
+ int color;
+@@ -1640,7 +1640,7 @@
+ 8,14,4,
+ };
+
+-initplayers()
++void initplayers()
+ {
+ int i;
+ unsigned char *p;
+@@ -1794,7 +1794,7 @@
+ copyup();
+ }
+
+-pulseon()
++void pulseon()
+ {
+ if(havepulse) return;
+ havepulse=1;
+@@ -1803,7 +1803,7 @@
+ thandler(0);
+ setitimer(ITIMER_REAL,&itval,NULL);
+ }
+-pulseoff()
++void pulseoff()
+ {
+ if(!havepulse) return;
+ havepulse=0;
+@@ -2235,7 +2235,7 @@
+ failure(char *str,...)
+ {
+ gamemode=0;
+- return;
++ return 1;
+ }
+ drawmode3()
+ {
+@@ -2261,7 +2261,7 @@
+ }
+
+
+-domode3()
++void domode3()
+ {
+ int size;
+ int i,j;
+@@ -2351,7 +2351,7 @@
+
+ gamemode=0;
+ }
+-domode4()
++void domode4()
+ {
+ unsigned char querystr[16];
+ long now;
+--- a/bomber.h 2016-07-13 16:35:34.596802964 -0500
++++ b/bomber.h 2016-07-13 16:40:26.797797731 -0500
+@@ -210,6 +210,8 @@
+ extern void scrprintf(char *str, ...);
+ extern int textx,texty,fontxsize,fontysize;
+ extern void texthome(void);
++extern void adddamage(int xpos,int ypos,int xsize,int ysize);
++extern void addsprite(int x,int y,figure *fig);
+
+ extern unsigned char field[32][32];
+ extern void *info[32][32];
+--- a/sound.c 2016-07-13 16:35:34.596802964 -0500
++++ b/sound.c 2016-07-13 16:40:57.702797177 -0500
+@@ -44,7 +44,7 @@
+
+
+
+-soundinit(char *name)
++void soundinit(char *name)
+ {
+ int fd[2];
+ char devname[256];
diff --git a/games-action/xbomber/files/xbomber-101-gcc4.patch b/games-action/xbomber/files/xbomber-101-gcc4.patch
new file mode 100644
index 000000000000..0ee82d81801b
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-gcc4.patch
@@ -0,0 +1,11 @@
+--- a/bomber.c 2006-01-28 12:06:34.000000000 -0700
++++ b/bomber.c 2006-01-28 12:06:46.000000000 -0700
+@@ -1699,7 +1699,7 @@
+ }
+ void addtail(void *header,void *entry)
+ {
+- while(((list *)header)->next) ((list *)header)=((list *)header)->next;
++ while(((list *)header)->next) header=((list *)header)->next;
+ ((list *)header)->next=entry;
+ ((list *)entry)->next=0;
+ }
diff --git a/games-action/xbomber/files/xbomber-101-ldflags.patch b/games-action/xbomber/files/xbomber-101-ldflags.patch
new file mode 100644
index 000000000000..a0bf2f89d735
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-ldflags.patch
@@ -0,0 +1,15 @@
+--- a/Makefile 2010-10-19 09:17:43.000000000 +0200
++++ b/Makefile 2010-10-19 09:18:12.000000000 +0200
+@@ -1,10 +1,8 @@
+-CFLAGS = -O3
+-
+ bomber: bomber.o x.o sound.o matcher
+- $(CC) -o bomber bomber.o x.o sound.o -lX11 -L/usr/X11R6/lib/
++ $(CC) $(CFLAGS) $(LDFLAGS) -o bomber bomber.o x.o sound.o -lX11 -L/usr/X11R6/lib/
+
+ matcher: matcher.c
+- $(CC) matcher.c -o matcher
++ $(CC) $(CFLAGS) $(LDFLAGS) matcher.c -o matcher
+
+ bomber.o: bomber.c bomber.h
+
diff --git a/games-action/xbomber/files/xbomber-101-va_list.patch b/games-action/xbomber/files/xbomber-101-va_list.patch
new file mode 100644
index 000000000000..5a1691a65ad8
--- /dev/null
+++ b/games-action/xbomber/files/xbomber-101-va_list.patch
@@ -0,0 +1,48 @@
+--- a/bomber.c 2005-11-06 16:50:04.000000000 +0100
++++ b/bomber.c 2005-11-06 16:47:35.000000000 +0100
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdarg.h>
+ #include <unistd.h>
+ #include <string.h>
+ #include <sys/uio.h>
+@@ -626,8 +627,11 @@
+ void scrprintf(char *str,...)
+ {
+ char output[256],*p,*p2;
++va_list ap;
+
+- vsprintf(output,str,&str+1);
++ va_start(ap, str);
++ vsprintf(output,str,ap);
++ va_end(ap);
+ p=output;
+ for(;;)
+ {
+@@ -653,8 +657,11 @@
+ void bigscrprintf(char *str,...)
+ {
+ char output[256],*p,*p2;
++va_list ap;
+
+- vsprintf(output,str,&str+1);
++ va_start(ap, str);
++ vsprintf(output,str,ap);
++ va_end(ap);
+ p=output;
+ for(;;)
+ {
+@@ -1873,8 +1880,11 @@
+ additem(char *item,...)
+ {
+ char output[256];
++va_list ap;
+
+- vsprintf(output,item,&item+1);
++ va_start(ap, item);
++ vsprintf(output,item,ap);
++ va_end(ap);
+ if(menunum<0)
+ menutitle=menuput;
+ else
diff --git a/games-action/xbomber/metadata.xml b/games-action/xbomber/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/xbomber/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-action/xbomber/xbomber-101-r1.ebuild b/games-action/xbomber/xbomber-101-r1.ebuild
new file mode 100644
index 000000000000..2757b322f5db
--- /dev/null
+++ b/games-action/xbomber/xbomber-101-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Bomberman clone w/multiplayer support"
+HOMEPAGE="http://www.xdr.com/dash/bomber.html"
+SRC_URI="http://www.xdr.com/dash/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11"
+RDEPEND="!sci-biology/emboss
+ ${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-va_list.patch
+ "${FILESDIR}"/${P}-gcc4.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-clang.patch
+)
+
+src_prepare() {
+ sed -i \
+ -e "/^CC/d" \
+ -e 's/gcc/$(CC)/g' \
+ -e "s:X386:X11R6:" \
+ Makefile || die
+
+ # ${P}-ldflags.patch depends on the munged Makefile
+ default
+
+ sed -i \
+ -e "s:data/%s:/usr/share/${PN}/%s:" bomber.c || die
+ sed -i \
+ -e "s:=\"data\":=\"/usr/share/${PN}\":" sound.c || die
+}
+
+src_install() {
+ dobin matcher bomber
+ insinto /usr/share/${PN}
+ doins -r data/*
+ dodoc README Changelog
+}
diff --git a/games-action/xbomber/xbomber-101.ebuild b/games-action/xbomber/xbomber-101.ebuild
new file mode 100644
index 000000000000..ea3a93e6f871
--- /dev/null
+++ b/games-action/xbomber/xbomber-101.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Bomberman clone w/multiplayer support"
+HOMEPAGE="http://www.xdr.com/dash/bomber.html"
+SRC_URI="http://www.xdr.com/dash/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libX11"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ sed -i \
+ -e "/^CC/d" \
+ -e 's/gcc/$(CC)/g' \
+ -e "s:X386:X11R6:" \
+ Makefile || die
+ sed -i \
+ -e "s:data/%s:${GAMES_DATADIR}/${PN}/%s:" bomber.c || die
+ sed -i \
+ -e "s:=\"data\":=\"${GAMES_DATADIR}/${PN}\":" sound.c || die
+ epatch \
+ "${FILESDIR}"/${P}-va_list.patch \
+ "${FILESDIR}"/${P}-gcc4.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+}
+
+src_install() {
+ dogamesbin matcher bomber
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data/*
+ dodoc README Changelog
+ prepgamesdirs
+}