diff options
Diffstat (limited to 'games-arcade/conveysdl')
-rw-r--r-- | games-arcade/conveysdl/Manifest | 7 | ||||
-rw-r--r-- | games-arcade/conveysdl/conveysdl-1.3.ebuild | 54 | ||||
-rw-r--r-- | games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch | 29 | ||||
-rw-r--r-- | games-arcade/conveysdl/files/conveysdl-1.3-speed.patch | 56 | ||||
-rw-r--r-- | games-arcade/conveysdl/metadata.xml | 8 |
5 files changed, 154 insertions, 0 deletions
diff --git a/games-arcade/conveysdl/Manifest b/games-arcade/conveysdl/Manifest new file mode 100644 index 000000000000..8127a3390117 --- /dev/null +++ b/games-arcade/conveysdl/Manifest @@ -0,0 +1,7 @@ +AUX conveysdl-1.3-arrays.patch 993 SHA256 23d0e20cbda8f6c9940c8630e1bd8a0360cb590b7a0ea1dd0c8347d758c137b6 SHA512 d8e6c0506e6108ccde4019dc45f3e28a431f8b617de9c81cf1fa46c14a66050271369952d7694dd7b1e3258c1f18c65dfa2b5f644ffcae1b21739d6287740640 WHIRLPOOL 71a43f5ead29c66696ee4e7b905e4740934f12c0b3f943e3b9069cc02b5b1d829918dc75cf29b9cf761f6c160264d9a2fd08ba298366c64dc6b802c120536ad0 +AUX conveysdl-1.3-speed.patch 1410 SHA256 1d2ab47ae86fb134abbcf6fb34448ea651aa7372cbe772f5eb7ed26be44c748f SHA512 491dac8d64bab8937f16651700af32b3d6bf18b947cc353245223ed82c19fca5ccb8c778b0d65364ae27be1cf9331545f938467c03568672e98c0a9e2b514b1c WHIRLPOOL 63869d9fc25dcd5644fc480f5112ec035fabf85cb49fff42f0f12014a028de729a7d09f625f77b0b6e1d0187e2963d2b9a641a4843dccd4ca3b9d64109651195 +DIST conveysdl.1.3.tar 429568 SHA256 d0de3f8435b6189d2f40fbe5a28f903fbd46d94b53daf10efa53b879346c81cf SHA512 fe6f91cdd63ae1019cb99613618e44ceeddb4080ad5e50bd8ce0abf27e057617d3658a29b2faf668cbc3b0887f1a4a05cadadb060f69d850c3d85c9e7190dd8a WHIRLPOOL 3a4de5f5305f44626afd9aef5365b1048fb4972593cf31d3ccff3d9d57acd0fe4304eeaec7b4dd0b005064ef038d87a0a2eb3041fb994df53de534ef997b0f8c +EBUILD conveysdl-1.3.ebuild 1218 SHA256 aef8afc66fe57437610670fef9f97cb0177e2082b8884a7ec2b699d4b13ae308 SHA512 696cd852b229e1b6885e736583b60eba2da7fbed4a3a3fbfb6b3e2e6eeb52e8e8f44b2e5719ad443d33aa132de92bb5a49dae787397824bfe3e91ff7bb00a9e0 WHIRLPOOL 2f90ac34763dae0c8ce0592b50d185b55236fa529cf9df0dbad2a7bdfb378d40f15dc507554bee7c98b048b0651bc52e0c7b54e845b5117d0bf1693ee2b4d01a +MISC ChangeLog 2504 SHA256 30582fc913e900e8ef9806ff64f4a163fbcf69cad54f9c867b3ca8878d14e101 SHA512 13cb26acb7ef6ffad07a4235a9f217a517aa32fba204221e4e60cd30ca6baa5f0c06cc17a8f6399e659cba0dcb3bdedf6894c715c0d33d45789eca91afaf2a85 WHIRLPOOL 317c988ec09051541518c2ae411f9b107bcb0ff46fab1ade282ccc69c11bf7c6bd276442a4e25cb1c6b7df28aa743f5280f0eb265f62e51abbd912478600ff8a +MISC ChangeLog-2015 1732 SHA256 e7ae6030ef98a48e09aca9fa339614dd5a94cf1a850521722af9dfc12f07db0c SHA512 5b74af11078fa1f25a3b00dc1c2ff076ecd6e399f677c3608aac8b3739689d733faa24b178ac970df548eeac9cdbed819f50712c08a967b8ebf283b373238fb4 WHIRLPOOL dbe5dd50199fe801543406bbe605d0dfdca5de183a7cebc0130b6334547bea4042197e20e273a6e3f088448186b1cc5ee0bc1e9fc882561ce3d3d9ac52e14b52 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/conveysdl/conveysdl-1.3.ebuild b/games-arcade/conveysdl/conveysdl-1.3.ebuild new file mode 100644 index 000000000000..7df9106d36cb --- /dev/null +++ b/games-arcade/conveysdl/conveysdl-1.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="Guide the blob along the conveyer belt collecting the red blobs" +HOMEPAGE="http://www.cloudsprinter.com/software/conveysdl/" +SRC_URI="http://www.cloudsprinter.com/software/conveysdl/${P/-/.}.tar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer" +RDEPEND=${DEPEND} + +S=${WORKDIR} + +src_prepare() { + # Incomplete readme + sed -i \ + -e 's:I k:use -nosound to disable sound\n\nI k:' \ + readme || die + + sed -i \ + -e 's:SDL_Mi:SDL_mi:' \ + main.c || die + + epatch \ + "${FILESDIR}"/${P}-arrays.patch \ + "${FILESDIR}"/${P}-speed.patch +} + +src_compile() { + emake main \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} $(sdl-config --cflags) \ + -DDATA_PREFIX=\\\"${GAMES_DATADIR}/${PN}/\\\" \ + -DENABLE_SOUND" \ + LDLIBS="-lSDL_mixer $(sdl-config --libs)" +} + +src_install() { + newgamesbin main ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r gfx sounds levels + newicon gfx/jblob.bmp ${PN}.bmp + make_desktop_entry ${PN} Convey /usr/share/pixmaps/${PN}.bmp + dodoc readme + prepgamesdirs +} diff --git a/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch b/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch new file mode 100644 index 000000000000..a3894e58d3d3 --- /dev/null +++ b/games-arcade/conveysdl/files/conveysdl-1.3-arrays.patch @@ -0,0 +1,29 @@ +--- main.c.org 2010-07-28 13:16:20.552161148 +0300 ++++ main.c 2010-07-29 20:43:14.714543259 +0300 +@@ -22,7 +22,7 @@ + + SDL_Surface *bletters; + SDL_Surface *letters[100]; +-SDL_Surface *tiles[9]; ++SDL_Surface *tiles[10]; + SDL_Surface *btiles; + SDL_Surface *blob; + SDL_Surface *jblob; +@@ -51,7 +51,7 @@ + FILE *file_ptr; + + +-int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[7],bloby[7],blobp[7],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore; ++int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[8],bloby[8],blobp[8],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore; + /* Keys */ + int quit = 0; + int spacebar = 0; +@@ -452,7 +452,7 @@ + static void info(void) + { + int monkey=70,munk; +- char scoremonkey[10]; ++ char scoremonkey[16]; + if (lives>1) { + for (munk=1 ; munk<lives ; munk++ ) + { diff --git a/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch b/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch new file mode 100644 index 000000000000..2b5a6205650c --- /dev/null +++ b/games-arcade/conveysdl/files/conveysdl-1.3-speed.patch @@ -0,0 +1,56 @@ +--- org/main.c 2010-07-30 10:41:21.392783010 +0300 ++++ main.c 2010-07-30 10:44:35.791690958 +0300 +@@ -52,6 +52,7 @@ + + + int bpointx,bpointy,pointx,pointy,jug,death,goose,jump,jumpf,blibs,spr[1000][8],leveldone,level,lives,totallevels,blobx[8],bloby[8],blobp[8],score,bak,bok,buk,bik,start,blibo,blibs,die,jumpoo=12,speed=4,arse,highscore; ++int realspeed; + /* Keys */ + int quit = 0; + int spacebar = 0; +@@ -140,6 +141,7 @@ + char path[256],jib[50]; + int lvspx,lvspy; + bpointx=200;bpointy=400;pointx=200;pointy=400;jug=1;death=0;jump=0;jumpf=0;jug=0;blibs=0;blibo=0;die=0;speed=4; ++ realspeed=speed; + strcpy(path, DATA_PREFIX); + sprintf(jib,"levels/level%d",level); + strcat(path, jib); +@@ -212,15 +214,16 @@ + if (jumpf==jumpoo) { jump=0; } + if (jumpf==jumpoo*2) { jumpf=0; } + } +- score+=speed; ++ score+=realspeed; + /*crap*/ + } + + static void plotfloor(void) + { ++ if (bpointy==400) realspeed=speed; + int nob,nx,nobx=48,ek,ej,el; +- bpointx-=speed*2; +- bpointy+=speed; ++ bpointx-=realspeed*2; ++ bpointy+=realspeed; + pointx=bpointx; + pointy=bpointy; + imageplot(bb, blobx[6], bloby[6] ); +@@ -542,7 +545,7 @@ + } + while ( jump_down==0 ); + leveldone=3; +- speed=4; ++ speed=4; realspeed=speed; + blankscreen(); + } + +@@ -563,7 +566,7 @@ + if (quit>0) break; + } + while ( jump_down==0 ); +- speed=4; ++ speed=4; realspeed=speed; + lives+=1; + level+=1; + getlevel(); diff --git a/games-arcade/conveysdl/metadata.xml b/games-arcade/conveysdl/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/conveysdl/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> |