diff options
Diffstat (limited to 'games-arcade')
584 files changed, 14502 insertions, 0 deletions
diff --git a/games-arcade/abe/Manifest b/games-arcade/abe/Manifest new file mode 100644 index 000000000000..f15233b25dc2 --- /dev/null +++ b/games-arcade/abe/Manifest @@ -0,0 +1 @@ +DIST abe-1.1.tar.gz 3321075 SHA256 dfc4ea74c04c92175abc5c9d65cfa6aad218209854d87d87758878e303b677f7 SHA512 6106fce9c72554596ac3f94551326381e98c0d40f7a5aa8ae7aeadaa234c113733e8df717bd1b18d2ba835f689982e859607c9d88ab2d59790ec00833a4e48c7 WHIRLPOOL 63cc3554fa9fe5cde344f1a9973dd8d4765e5fb31de26de3d608975efd5cb9de2ef8ee23414ce422a36d87bfbe231b31ba3cc72f2418cc0af46d6792bdd547de diff --git a/games-arcade/abe/abe-1.1.ebuild b/games-arcade/abe/abe-1.1.ebuild new file mode 100644 index 000000000000..cfb65f4db97c --- /dev/null +++ b/games-arcade/abe/abe-1.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs games + +DESCRIPTION="A scrolling, platform-jumping, key-collecting, ancient pyramid exploring game" +HOMEPAGE="http://abe.sourceforge.net/" +SRC_URI="mirror://sourceforge/abe/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl + x11-libs/libXi + media-libs/sdl-mixer[vorbis]" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./images/images.tar +} + +src_prepare() { + sed -i \ + -e "/^TR_CFLAGS/d" \ + -e "/^TR_CXXFLAGS/d" \ + configure \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-settings.patch +} + +src_configure() { + egamesconf --with-data-dir="${GAMES_DATADIR}"/${PN} +} + +src_install() { + dogamesbin src/abe + insinto "${GAMES_DATADIR}"/${PN} + doins -r images sounds maps + newicon tom1.bmp abe.bmp + make_desktop_entry abe "Abe's Amazing Adventure" /usr/share/pixmaps/abe.bmp + dodoc AUTHORS ChangeLog README + prepgamesdirs +} diff --git a/games-arcade/abe/files/abe-1.1-settings.patch b/games-arcade/abe/files/abe-1.1-settings.patch new file mode 100644 index 000000000000..ea5809f7386a --- /dev/null +++ b/games-arcade/abe/files/abe-1.1-settings.patch @@ -0,0 +1,12 @@ +diff -Naur --exclude '*.swp' abe-1.1/src/Menu.c abe-1.1.new/src/Menu.c +--- abe-1.1/src/Menu.c 2005-03-05 08:20:04.000000000 -0800 ++++ abe-1.1.new/src/Menu.c 2006-04-02 15:04:37.000000000 -0700 +@@ -116,7 +116,7 @@ + if(n == SOUND_ENABLED || n == MUSIC_ENABLED) + return sound_loaded; + else +- return 0; ++ return 1; + } + + void diff --git a/games-arcade/abe/metadata.xml b/games-arcade/abe/metadata.xml new file mode 100644 index 000000000000..e94a66c0dd94 --- /dev/null +++ b/games-arcade/abe/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">abe</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/afternoonstalker/Manifest b/games-arcade/afternoonstalker/Manifest new file mode 100644 index 000000000000..e2a986e6f174 --- /dev/null +++ b/games-arcade/afternoonstalker/Manifest @@ -0,0 +1 @@ +DIST afternoonstalker-1.1.5.tar.gz 202663 SHA256 cb9896e00654057edc1ef8843c6c7f5bbcc0b5313e06227ae6e73d0c1d689097 SHA512 ff08cc72385deddfaffabf98c3cc67f72f8c6db77de1feb4e19d2d3dcf6ca1018a71d6e052d2e2373dc758e119a4c068a3f4195cb6fbf1b01900bdedf193a7e0 WHIRLPOOL 1d9f88ecccd448e8b1de34acfa725f16e394a3a29b0b46adb08a7e20d9ddddb0b3e999908968acf5a4a8387899dfbd0a1f9e679aee881c05062de9e0562d6a47 diff --git a/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild b/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild new file mode 100644 index 000000000000..4264a0285703 --- /dev/null +++ b/games-arcade/afternoonstalker/afternoonstalker-1.1.5.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools games + +DESCRIPTION="Clone of the 1981 Night Stalker video game by Mattel Electronics" +HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/afternoonstalker.html" +SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=dev-games/flatzebra-0.1.6" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \ + -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \ + -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \ + src/Makefile.am \ + || die + eautoreconf +} + +src_install() { + emake -C src DESTDIR="${D}" install + doman doc/${PN}.6 + dodoc AUTHORS NEWS README THANKS + prepgamesdirs +} diff --git a/games-arcade/afternoonstalker/metadata.xml b/games-arcade/afternoonstalker/metadata.xml new file mode 100644 index 000000000000..112b2c3dc17e --- /dev/null +++ b/games-arcade/afternoonstalker/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel +Electronics. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/alienwave/Manifest b/games-arcade/alienwave/Manifest new file mode 100644 index 000000000000..d4fea03ef668 --- /dev/null +++ b/games-arcade/alienwave/Manifest @@ -0,0 +1 @@ +DIST alienwave-0.3.0.tar.gz 22046 SHA256 89902193bc6d5dc13ea4acee26f5a0f72a561e9bbadd0f82e098d770d38f83ae SHA512 b02b28256edde96676acb0e731b8ba6056466eba01ebc3e3d433439c009f7860f2a4f9d0253cc5b1eca758eaba8bc780c5484bb8948c4bb5c085e5c0d9924f2b WHIRLPOOL 1f795d463a78e9feda25a77b7ae1d068412c3c7baae2a1aa65ce30f79a6d2fd187ef1ecd65404ace006efd49c78911304fb10c68d46f7093abdc50dfaae2342b diff --git a/games-arcade/alienwave/alienwave-0.3.0.ebuild b/games-arcade/alienwave/alienwave-0.3.0.ebuild new file mode 100644 index 000000000000..4745ebd3399b --- /dev/null +++ b/games-arcade/alienwave/alienwave-0.3.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="An ncurses-based Xenon clone" +HOMEPAGE="http://www.alessandropira.org/alienwave/aw.html" +SRC_URI="http://www.alessandropira.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_install() { + dogamesbin alienwave + dodoc TO_DO README STORY + prepgamesdirs +} diff --git a/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch b/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch new file mode 100644 index 000000000000..1b71f1cf1838 --- /dev/null +++ b/games-arcade/alienwave/files/alienwave-0.3.0-gentoo.patch @@ -0,0 +1,22 @@ +--- Makefile.old 2009-01-30 16:04:16.000000000 +0100 ++++ Makefile 2009-01-30 16:07:04.000000000 +0100 +@@ -1,9 +1,7 @@ + # This file is part of Alienwave, a game by Alessandro Pira + +-CC = gcc + OBJS = main.o blit.o aliens.o xzarna.o fire.o shield.o levels.o util.o + # CFLAGS = -c -O2 -Wall -DDEBUG_LEV +-CFLAGS = -c -O2 -Wall + LIB = -lncurses + + # Uncomment this if you want random waves +@@ -16,8 +14,7 @@ + + + alienwave: $(OBJS) +- $(CC) $(LIB) $(OBJS) -o alienwave +- strip alienwave ++ $(CC) $(OBJS) $(LDFLAGS) $(LIB) -o alienwave + + main.o: main.c + diff --git a/games-arcade/alienwave/metadata.xml b/games-arcade/alienwave/metadata.xml new file mode 100644 index 000000000000..cad5a2aa1773 --- /dev/null +++ b/games-arcade/alienwave/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/amphetamine/Manifest b/games-arcade/amphetamine/Manifest new file mode 100644 index 000000000000..ce51d856f7f8 --- /dev/null +++ b/games-arcade/amphetamine/Manifest @@ -0,0 +1,2 @@ +DIST amphetamine-0.8.10.tar.bz2 72324 SHA256 6cf7542d7a6b1c3f3cc660164961aa3fecd90fc3ebd7f9b640bf73dfca6aa677 SHA512 eb3106df6070e207ffb3293ac4701bba8222603c0e399667505bad29b6f6433dc9ec008499b5180f713a724d3b686fead15536a20927195bc57780be16a860ef WHIRLPOOL a9b2706c0b8418d14fb87ad8451a2ea6a72c8e8ad1ecceaf72fa34458f3368b21541aaadafb24cf11f7128373679c70e9cc7e79ef420c0145896f8222ecc5c11 +DIST amphetamine-data-0.8.6.tar.bz2 928775 SHA256 b51a0edaf3271008a5e0b3061556898e3d0e27a554803d53caaaec14ecb730aa SHA512 0feb86f420b4816064594756bb30bb6e02ae5062f03ef175b3262a8f30043340933f6f1b1894e2b2cfad70befc76d3ed1e0d2777c2dc2f7461459e8a93efeaf1 WHIRLPOOL 09fab6986514a13d3341cccdc557a4110714a66bd352e9166f8c7f935aeb20eb3f2f3cac84400384cb640f9a53451845ffd6c8b653ba8f1c06c4c69bf43090f4 diff --git a/games-arcade/amphetamine/amphetamine-0.8.10.ebuild b/games-arcade/amphetamine/amphetamine-0.8.10.ebuild new file mode 100644 index 000000000000..73d9b27173cc --- /dev/null +++ b/games-arcade/amphetamine/amphetamine-0.8.10.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="a cool Jump'n Run game offering some unique visual effects" +HOMEPAGE="http://homepage.hispeed.ch/loehrer/amph/amph.html" +SRC_URI="http://homepage.hispeed.ch/loehrer/amph/files/${P}.tar.bz2 + http://homepage.hispeed.ch/loehrer/amph/files/${PN}-data-0.8.6.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + x11-libs/libXpm" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-64bit.patch +) + +src_compile() { + emake INSTALL_DIR="${GAMES_DATADIR}"/${PN} +} + +src_install() { + newgamesbin amph ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r ../amph/* + newicon amph.xpm ${PN}.xpm + make_desktop_entry ${PN} Amphetamine ${PN} + dodoc BUGS ChangeLog NEWS README + prepgamesdirs +} diff --git a/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch b/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch new file mode 100644 index 000000000000..b7588face714 --- /dev/null +++ b/games-arcade/amphetamine/files/amphetamine-0.8.10-64bit.patch @@ -0,0 +1,72 @@ +--- amphetamine-0.8.10.orig/src/Shape.cpp ++++ amphetamine-0.8.10/src/Shape.cpp +@@ -56,12 +56,12 @@ + */ + #ifdef __OPT_MEM_ACCESS__ + +-#define GET_LONG(adr) *(unsigned long *)adr +-#define SET_LONG(adr, l) *(unsigned long *)adr = l ++#define GET_LONG(adr) *(uint32_t *)adr ++#define SET_LONG(adr, l) *(uint32_t *)adr = l + + #else + +-#define GET_LONG(adr) ((long)((unsigned char *)(adr))[0] << 24) + ((long)((unsigned char *)(adr))[1] << 16) + ((long)((unsigned char *)(adr))[2] << 8) + ((long)((unsigned char *)(adr))[3]) ++#define GET_LONG(adr) ((uint32_t)((unsigned char *)(adr))[0] << 24) + ((uint32_t)((unsigned char *)(adr))[1] << 16) + ((uint32_t)((unsigned char *)(adr))[2] << 8) + ((uint32_t)((unsigned char *)(adr))[3]) + #define SET_LONG(adr, l) ((unsigned char *)adr)[0] = (unsigned char)((l) >> 24); \ + ((unsigned char *)adr)[1] = (unsigned char)((l) >> 16); \ + ((unsigned char *)adr)[2] = (unsigned char)((l) >> 8); \ +@@ -116,7 +116,7 @@ + { + // store the location of this line start + lineStartPtr = destPtr; +- destPtr += sizeof( unsigned long ); ++ destPtr += sizeof( uint32_t ); + + // at the beginning of each row we are not in any run + drawRunFlag = kFalse; +@@ -160,7 +160,7 @@ + // create the skip token + //*( ( unsigned long * )destPtr ) = ( kSkipPixelsToken << 24 ) + runCounter; + SET_LONG(destPtr, ( kSkipPixelsToken << 24 ) + runCounter); +- destPtr += sizeof( unsigned long ); ++ destPtr += sizeof( uint32_t ); + } + + // are we in a draw run +@@ -179,7 +179,7 @@ + + // save the location of the token (so we can fill it in later) + runTokenPtr = destPtr; +- destPtr += sizeof( unsigned long ); ++ destPtr += sizeof( uint32_t ); + + // copy the pixel + *destPtr = *srcPtr; +@@ -215,7 +215,7 @@ + + // create the end of shape token + SET_LONG(destPtr, kEndShapeToken << 24); +- destPtr += sizeof( unsigned long ); ++ destPtr += sizeof( uint32_t ); + + // Resize the handle to match the real size of the shape + //SetHandleSize( shapeHandle, destPtr - ( unsigned char * )( *shapeHandle ) ); +@@ -280,7 +280,7 @@ + // get a token + tokenOp = GET_LONG(srcPtr ) >> 24; + tokenData = GET_LONG(srcPtr ) & 0x00ffffff; +- srcPtr += sizeof( unsigned long ); ++ srcPtr += sizeof( uint32_t ); + + // depending on the token + switch( tokenOp ) +@@ -435,7 +435,7 @@ + // get a token + tokenOp = GET_LONG(srcPtr) >> 24; + tokenData = GET_LONG(srcPtr) & 0x00ffffff; +- srcPtr += sizeof( unsigned long ); ++ srcPtr += sizeof( uint32_t ); + + // depending on the token + switch( tokenOp ) diff --git a/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch b/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch new file mode 100644 index 000000000000..2c0185f3ff01 --- /dev/null +++ b/games-arcade/amphetamine/files/amphetamine-0.8.10-build.patch @@ -0,0 +1,33 @@ +--- Makefile ++++ Makefile +@@ -26,8 +26,8 @@ + + # makemake variables + +-LINKER := g++ +-DEPENDFLAGS := -g ${SEARCHDIRS} ++LINKER = $(CXX) $(CXXFLAGS) ++DEPENDFLAGS := ${SEARCHDIRS} + TOUCHHEADERS := ${MYCODEDIR}/*.h + + # C +@@ -37,8 +37,8 @@ + + # C++ + +-CXX := g++ +-CXXFLAGS = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align ++CXX ?= g++ ++CXXFLAGS += ${DEPENDFLAGS} + + %.o : %.cpp + ${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@ +@@ -66,7 +66,7 @@ + LOADLIBES := $(LOADLIBES) -lXpm -lXt + endif + +-LDFLAGS = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib ++LDFLAGS += -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib + + .PHONY : default + default : amph diff --git a/games-arcade/amphetamine/metadata.xml b/games-arcade/amphetamine/metadata.xml new file mode 100644 index 000000000000..65706f28dade --- /dev/null +++ b/games-arcade/amphetamine/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Amphetamine is a cool Jump'n Run game offering some unique visual effects. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/aop/Manifest b/games-arcade/aop/Manifest new file mode 100644 index 000000000000..5371e7509995 --- /dev/null +++ b/games-arcade/aop/Manifest @@ -0,0 +1 @@ +DIST aop-0.6.tar.gz 11811 SHA256 68a8b6b8f08216b31895d536f7dc4beb137a787fd17096da2d46fd863497f65a SHA512 0ce37647a0832b17e23df409633952f902e02666fa536cc4393a35bf91b245a501feeb4f14fd16d1a1d5c4f39682dad18a8e671e107e96cf5ba9c89965f8a77c WHIRLPOOL 8c8c358e465bd667fe9ac95573da1746f0267cb4be8f3d35919c097bf58051e52eebf9626aa48de3ecbe92e164b79f88d02d93f98a9fc7980bca19224eedbb9f diff --git a/games-arcade/aop/aop-0.6.ebuild b/games-arcade/aop/aop-0.6.ebuild new file mode 100644 index 000000000000..d4368231ec85 --- /dev/null +++ b/games-arcade/aop/aop-0.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Ambassador of Pain is a curses based game with only 64 lines of code" +HOMEPAGE="http://raffi.at/view/code/aop" +SRC_URI="http://www.raffi.at/code/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e "s#/usr/local/share#${GAMES_DATADIR}#" \ + aop.c || die + epatch "${FILESDIR}"/${P}-as-needed.patch +} + +src_install() { + dogamesbin aop + insinto "${GAMES_DATADIR}/${PN}" + doins aop-level-*.txt + prepgamesdirs +} diff --git a/games-arcade/aop/files/aop-0.6-as-needed.patch b/games-arcade/aop/files/aop-0.6-as-needed.patch new file mode 100644 index 000000000000..5d70e2b01af4 --- /dev/null +++ b/games-arcade/aop/files/aop-0.6-as-needed.patch @@ -0,0 +1,9 @@ +--- Makefile.old 2009-01-30 17:00:58.000000000 +0100 ++++ Makefile 2009-01-30 17:01:15.000000000 +0100 +@@ -1,5 +1,5 @@ + +-LDFLAGS = -lncurses ++LDLIBS := $(shell pkg-config ncurses --libs) + + aop: aop.c + diff --git a/games-arcade/aop/metadata.xml b/games-arcade/aop/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/aop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/apricots/Manifest b/games-arcade/apricots/Manifest new file mode 100644 index 000000000000..b61ec221d08b --- /dev/null +++ b/games-arcade/apricots/Manifest @@ -0,0 +1 @@ +DIST apricots-0.2.6.tar.gz 768568 SHA256 9c408722abbb0cb925384f12a65fe4f6e2b3373d5ce5d0e5afe3aeb738b9cd8f SHA512 cf8a988d316382469e4b13a86315c760b702b3d490398cf2fe96f119ba743c1ff707c09228dbbf4eb601189fece708913a621b04c44e9d93162639ccbd502cf5 WHIRLPOOL e45b924f86494e16ea4340a292aabb624a0632801044250b082e6b449311b47a89c23386eb88c507053c3629af4ecb8db4bc4d7096887fa884d5395474f3e946 diff --git a/games-arcade/apricots/apricots-0.2.6-r1.ebuild b/games-arcade/apricots/apricots-0.2.6-r1.ebuild new file mode 100644 index 000000000000..20093ee5eee1 --- /dev/null +++ b/games-arcade/apricots/apricots-0.2.6-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="Fly a plane around bomb/shoot the enemy. Port of Planegame from Amiga" +HOMEPAGE="http://www.fishies.org.uk/apricots.html" +SRC_URI="http://www.fishies.org.uk/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/openal + media-libs/freealut" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-freealut.patch \ + "${FILESDIR}"/${P}-ldflags.patch + + cp admin/acinclude.m4.in acinclude.m4 + + sed -i \ + -e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"${GAMES_DATADIR}/${PN}/\\\\\\"":' \ + -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \ + configure.in || die + sed -i \ + -e "s:filename(AP_PATH):filename(\"${GAMES_SYSCONFDIR}/${PN}/\"):" \ + ${PN}/init.cpp || die + sed -i \ + -e "s:apricots.cfg:${GAMES_SYSCONFDIR}/${PN}/apricots.cfg:" \ + README apricots.html || die + sed -i \ + -e 's/-Wmissing-prototypes//' \ + acinclude.m4 || die + eautoreconf +} + +src_compile() { + emake LIBTOOL="/usr/bin/libtool" +} + +src_install() { + dodoc AUTHORS README TODO ChangeLog + dohtml apricots.html + cd ${PN} + dogamesbin apricots + insinto "${GAMES_DATADIR}"/${PN} + doins *.wav *.psf *.shapes + insinto "${GAMES_SYSCONFDIR}"/${PN} + doins apricots.cfg + make_desktop_entry ${PN} Apricots + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "You can change the game options by editing:" + elog "${GAMES_SYSCONFDIR}/${PN}/apricots.cfg" +} diff --git a/games-arcade/apricots/files/apricots-0.2.6-freealut.patch b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch new file mode 100644 index 000000000000..4f663071340a --- /dev/null +++ b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch @@ -0,0 +1,65 @@ +--- apricots/apricots.cpp ++++ apricots/apricots.cpp +@@ -16,6 +16,7 @@ + int main(int, char**){
+ #endif
+
++atexit(SDL_Quit);
+ // Initialize data
+ gamedata g;
+ init_data(g);
+ +--- apricots/sampleio.cpp ++++ apricots/sampleio.cpp +@@ -74,12 +74,9 @@ + alListenerfv(AL_ORIENTATION, front );
+
+ // Load in samples
+- ALvoid* data = malloc(5 * (512 * 3) * 1024);
+ alGenBuffers(numsamples, samples);
+
+ for (int i = 0; i < numsamples; i++){
+- ALsizei freq;
+- ALboolean fileok;
+ // Evil OpenAL portability fix done here
+ #ifdef _WIN32
+ ALenum format;
+@@ -87,15 +84,12 @@ + alutLoadWAVFile(filenames[i],&format,&data,&filelen,&freq,&trash);
+ fileok = (alGetError() == AL_NO_ERROR);
+ #else
+- ALsizei format;
+- ALsizei trash;
+- fileok = alutLoadWAV(filenames[i],&data,&format,&filelen,&trash,&freq);
++ samples[i] = alutCreateBufferFromFile(filenames[i]);
+ #endif
+- if (!fileok){
++ if (samples[i] == AL_NONE){
+ cerr << "sampleio: could not open " << filenames[i] << endl;
+ exit(1);
+ }
+- alBufferData(samples[i], format, data, filelen, freq);
+ }
+
+ // Generate Sources
+@@ -107,7 +101,6 @@ + alSourcefv(sources[j], AL_ORIENTATION, back );
+ }
+
+- free(data);
+
+ }
+
+ +--- configure.in ++++ configure.in +@@ -100,7 +100,8 @@ + + dnl Check for OpenAL + AC_CHECK_HEADER(AL/al.h,[CXXFLAGS="$CXXFLAGS -DAP_AUDIO_OPENAL"]) +-AC_CHECK_LIB( openal, alutInit) ++AC_CHECK_LIB( openal, alGetError) ++AC_CHECK_LIB( alut, alutInit) + + KDE_CHECK_EXTRA_LIBS + all_libraries="$all_libraries $USER_LDFLAGS" diff --git a/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch new file mode 100644 index 000000000000..5a2a34490b7e --- /dev/null +++ b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch @@ -0,0 +1,20 @@ +--- apricots/Makefile.am.old 2010-10-11 15:58:18.000000000 +0200 ++++ apricots/Makefile.am 2010-10-11 15:59:21.000000000 +0200 +@@ -4,7 +4,8 @@ + ## INCLUDES were found outside kdevelop specific part + + apricots_SOURCES = SDLfont.cpp shape.cpp setup.cpp sampleio.cpp init.cpp game.cpp finish.cpp fall.cpp drawall.cpp drak.cpp collide.cpp apricots.cpp all.cpp ai.cpp +-apricots_LDADD = ++apricots_LDADD = $(all_libraries) ++ + + SUBDIRS = docs + +@@ -68,7 +69,3 @@ + ####### kdevelop will overwrite this part!!! (end)############ + # set the include path found by configure + INCLUDES= $(all_includes) +- +-# the library search path. +-apricots_LDFLAGS = $(all_libraries) +- diff --git a/games-arcade/apricots/metadata.xml b/games-arcade/apricots/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/apricots/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/aquaria/Manifest b/games-arcade/aquaria/Manifest new file mode 100644 index 000000000000..e6ce16cfe7e3 --- /dev/null +++ b/games-arcade/aquaria/Manifest @@ -0,0 +1 @@ +DIST aquaria-lnx-humble-bundle.mojo.run 209499691 SHA256 1001a5bbc66cd72e64963afbb3f866432ca1b6e880d9da969ebd5fd224202fdd diff --git a/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild b/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild new file mode 100644 index 000000000000..eee55b17b05f --- /dev/null +++ b/games-arcade/aquaria/aquaria-1.1.3-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker eutils games + +DESCRIPTION="A 2D scroller set in a massive ocean world" +HOMEPAGE="http://www.bit-blot.com/aquaria/" +SRC_URI="aquaria-lnx-humble-bundle.mojo.run" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="" +RESTRICT="strip fetch bindist" + +DEPEND="app-arch/unzip" +RDEPEND=" + >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)] + >=media-libs/openal-1.15.1[abi_x86_32(-)]" + +S=${WORKDIR}/data + +pkg_nofetch() { + echo + elog "Download ${SRC_URI} from ${HOMEPAGE} and place it in ${DISTDIR}" + echo +} + +src_unpack() { + unpack_zip ${A} +} + +src_install() { + local dir="${GAMES_PREFIX_OPT}/${PN}" + + insinto "${dir}" + exeinto "${dir}" + + doins -r *.xml */ + doexe "${PN}" + doicon "${PN}.png" + + dodoc README-linux.txt + mv "${ED}/${dir}"/docs "${ED}/usr/share/doc/${PF}/html" || die + dosym /usr/share/doc/${PF}/html "${dir}"/docs + + games_make_wrapper "${PN}" "./${PN}" "${dir}" + make_desktop_entry "${PN}" "Aquaria" + + prepgamesdirs +} diff --git a/games-arcade/aquaria/metadata.xml b/games-arcade/aquaria/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/aquaria/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/ascii-invaders/Manifest b/games-arcade/ascii-invaders/Manifest new file mode 100644 index 000000000000..5d961e68402c --- /dev/null +++ b/games-arcade/ascii-invaders/Manifest @@ -0,0 +1 @@ +DIST invaders0.1b.tgz 14597 SHA256 7ac51a5737da34b32de190683a3f73ea0b6bab4a5e81297a056036a796a92346 diff --git a/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild new file mode 100644 index 000000000000..e3b3c1aaa99f --- /dev/null +++ b/games-arcade/ascii-invaders/ascii-invaders-0.1b.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Space invaders clone, using ncurses library" +HOMEPAGE="http://packages.gentoo.org/package/games-arcade/ascii-invaders" +SRC_URI="mirror://gentoo/invaders${PV}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~ppc-macos" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/invaders + +src_prepare() { + rm -f Makefile +} + +src_compile() { + emake LDLIBS="$(pkg-config ncurses --libs)" invaders +} + +src_install() { + newgamesbin invaders ${PN} + dodoc TODO + prepgamesdirs +} diff --git a/games-arcade/ascii-invaders/metadata.xml b/games-arcade/ascii-invaders/metadata.xml new file mode 100644 index 000000000000..f8b1597439de --- /dev/null +++ b/games-arcade/ascii-invaders/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Ascii-Invaders is a clone of Space Invaders for text-terminals using the +curses library. It compiles and runs on MacOS X, GNU/Linux and probably +any other system with a curses implementation. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/asteroid/Manifest b/games-arcade/asteroid/Manifest new file mode 100644 index 000000000000..1ed2f97214b7 --- /dev/null +++ b/games-arcade/asteroid/Manifest @@ -0,0 +1 @@ +DIST asteroid-1.1.tar.bz2 386177 SHA256 0619eb1797dd667f90ae48e070938e3d195758a522abf4bdda192fc1704fa0db SHA512 f3acae27a7c3296b6b9e9fc9aabf8c101cd020bfbf2065d2b4f5fabf14f7555c70b2e4543c2c661f0e4410b8128936eb1e0db930d7376c3a3bb3a898ce4ed4e4 WHIRLPOOL f1704078559bf1072d7f8bc3b2452942be004f0c13d82642ec0c821a4a5b6c294c87d419452abf6e2546260dad0df534fd2b49a7e41cc93cdcd184048cc1e5dd diff --git a/games-arcade/asteroid/asteroid-1.1.ebuild b/games-arcade/asteroid/asteroid-1.1.ebuild new file mode 100644 index 000000000000..5e951998fcee --- /dev/null +++ b/games-arcade/asteroid/asteroid-1.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="A modern version of the arcade classic that uses OpenGL" +HOMEPAGE="http://chaoslizard.sourceforge.net/asteroid/" +SRC_URI="mirror://sourceforge/chaoslizard/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="virtual/opengl + media-libs/freeglut + virtual/glu + media-libs/libsdl + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-include.patch ) + +src_install() { + emake DESTDIR="${D}" install + dodoc asteroid-{authors,changes,readme}.txt + prepgamesdirs +} diff --git a/games-arcade/asteroid/files/asteroid-1.1-include.patch b/games-arcade/asteroid/files/asteroid-1.1-include.patch new file mode 100644 index 000000000000..9eca5f83f2c8 --- /dev/null +++ b/games-arcade/asteroid/files/asteroid-1.1-include.patch @@ -0,0 +1,11 @@ +--- src/hiscore.c ++++ src/hiscore.c +@@ -35,6 +35,8 @@ +
+ #include <stdio.h>
+ #include <ctype.h>
++#include <stdlib.h>
++#include <string.h>
+
+ #include "main.h"
+ #include "hiscore.h"
diff --git a/games-arcade/asteroid/metadata.xml b/games-arcade/asteroid/metadata.xml new file mode 100644 index 000000000000..aa0fd15ec698 --- /dev/null +++ b/games-arcade/asteroid/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">chaoslizard</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/balloonchase/Manifest b/games-arcade/balloonchase/Manifest new file mode 100644 index 000000000000..591a10553eeb --- /dev/null +++ b/games-arcade/balloonchase/Manifest @@ -0,0 +1 @@ +DIST balloonchase-0.9.6.tar.bz2 523085 SHA256 6bf3e3db80a9b38941cace397232e33c8f00597e32c0036abbe927590d04d86c SHA512 ab5617713c96187564926fd5ecbdbf5186f78c23cfb43b26b28b9d18e71330efd77700cf7cd02e04be7fd8e33f2d30bf59f64954135ac82802d1d839dc2e7767 WHIRLPOOL 2033b329a5529d5f2d995de99f4848419d85c942eedbaee307000b797253b5c3b96cb043dc79130b2e736737ce5d074f5aa11d7ff0a09663838e13c829066505 diff --git a/games-arcade/balloonchase/balloonchase-0.9.6.ebuild b/games-arcade/balloonchase/balloonchase-0.9.6.ebuild new file mode 100644 index 000000000000..cfc96f81a0cd --- /dev/null +++ b/games-arcade/balloonchase/balloonchase-0.9.6.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs games + +DESCRIPTION="Fly a hot air balloon and try to blow the other player out of the screen" +HOMEPAGE="http://koti.mbnet.fi/makegho/c/bchase/" +SRC_URI="http://koti.mbnet.fi/makegho/c/bchase/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" +IUSE="" + +DEPEND="media-libs/libsdl" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gentoo.patch + sed -i "s:g++:$(tc-getCXX):" Makefile || die "sed failed" + sed -i \ + -e "s:GENTOODIR:${GAMES_DATADIR}/${PN}:" src/main.c \ + || die 'sed failed' +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r images + newicon images/kp2b.bmp ${PN}.bmp + make_desktop_entry ${PN} "Balloon Chase" /usr/share/pixmaps/${PN}.bmp + dodoc README + prepgamesdirs +} diff --git a/games-arcade/balloonchase/files/0.9.6-gentoo.patch b/games-arcade/balloonchase/files/0.9.6-gentoo.patch new file mode 100644 index 000000000000..55e978850bbe --- /dev/null +++ b/games-arcade/balloonchase/files/0.9.6-gentoo.patch @@ -0,0 +1,183 @@ +--- Makefile ++++ Makefile +@@ -1,4 +1,3 @@ +-LDFLAGS= -lSDL -lpthread -s + CFLAGS= -Wall # -DDEBUG + PKG_BCDIR=balloonchase-`cat src/ver` + PKG_BCVER=`cat src/ver` +@@ -9,8 +8,8 @@ + clean: + rm balloonchase src/*.o + main: src/main.c +- g++ -c -o src/main.o `sdl-config --cflags` src/main.c +- g++ -o balloonchase src/main.o `sdl-config --libs` ++ g++ $(CXXFLAGS) -c -o src/main.o `sdl-config --cflags` src/main.c ++ g++ $(LDFLAGS) -o balloonchase src/main.o `sdl-config --libs` + pkg: + @echo $(PKG_BCVERSION) >VERSION + rm balloonchase src/*.o +--- src/main.c ++++ src/main.c +@@ -333,47 +333,47 @@ + + int InitImages() + { +- back = SDL_LoadBMP("images/back.bmp"); ++ back = SDL_LoadBMP("GENTOODIR/images/back.bmp"); + +- num3 = SDL_LoadBMP("images/num3.bmp"); ++ num3 = SDL_LoadBMP("GENTOODIR/images/num3.bmp"); + SDL_SetColorKey(num3, SDL_SRCCOLORKEY, SDL_MapRGB(num3->format, 0xFF, 0xFF, 0xFF)); +- num2 = SDL_LoadBMP("images/num2.bmp"); ++ num2 = SDL_LoadBMP("GENTOODIR/images/num2.bmp"); + SDL_SetColorKey(num2, SDL_SRCCOLORKEY, SDL_MapRGB(num2->format, 0xFF, 0xFF, 0xFF)); +- num1 = SDL_LoadBMP("images/num1.bmp"); ++ num1 = SDL_LoadBMP("GENTOODIR/images/num1.bmp"); + SDL_SetColorKey(num1, SDL_SRCCOLORKEY, SDL_MapRGB(num1->format, 0xFF, 0xFF, 0xFF)); +- num0 = SDL_LoadBMP("images/num0.bmp"); ++ num0 = SDL_LoadBMP("GENTOODIR/images/num0.bmp"); + SDL_SetColorKey(num0, SDL_SRCCOLORKEY, SDL_MapRGB(num0->format, 0xFF, 0xFF, 0xFF)); +- numv = SDL_LoadBMP("images/num-.bmp"); ++ numv = SDL_LoadBMP("GENTOODIR/images/num-.bmp"); + SDL_SetColorKey(numv, SDL_SRCCOLORKEY, SDL_MapRGB(numv->format, 0xFF, 0xFF, 0xFF)); + +- menu = SDL_LoadBMP("images/menu.bmp"); +- menu_onoff = SDL_LoadBMP("images/menu_onoff.bmp"); ++ menu = SDL_LoadBMP("GENTOODIR/images/menu.bmp"); ++ menu_onoff = SDL_LoadBMP("GENTOODIR/images/menu_onoff.bmp"); + + +-// arrow[0] = SDL_LoadBMP("images/down.bmp"); ++// arrow[0] = SDL_LoadBMP("GENTOODIR/images/down.bmp"); + // SDL_SetColorKey(arrow[0], SDL_SRCCOLORKEY, SDL_MapRGB(arrow[0]->format, 0x00, 0x00, 0x00)); +-// arrow[1] = SDL_LoadBMP("images/down.bmp"); ++// arrow[1] = SDL_LoadBMP("GENTOODIR/images/down.bmp"); + // SDL_SetColorKey(arrow[1], SDL_SRCCOLORKEY, SDL_MapRGB(arrow[1]->format, 0x00, 0x00, 0x00)); + +- kp1 = SDL_LoadBMP("images/kp1.bmp"); ++ kp1 = SDL_LoadBMP("GENTOODIR/images/kp1.bmp"); + SDL_SetColorKey(kp1, SDL_SRCCOLORKEY, SDL_MapRGB(kp1->format, 0xFF, 0xFF, 0xFF)); +- kp1b = SDL_LoadBMP("images/kp1b.bmp"); ++ kp1b = SDL_LoadBMP("GENTOODIR/images/kp1b.bmp"); + SDL_SetColorKey(kp1b, SDL_SRCCOLORKEY, SDL_MapRGB(kp1b->format, 0xFF, 0xFF, 0xFF)); + +- kp2 = SDL_LoadBMP("images/kp2.bmp"); ++ kp2 = SDL_LoadBMP("GENTOODIR/images/kp2.bmp"); + SDL_SetColorKey(kp2, SDL_SRCCOLORKEY, SDL_MapRGB(kp2->format, 0xFF, 0xFF, 0xFF)); +- kp2b = SDL_LoadBMP("images/kp2b.bmp"); ++ kp2b = SDL_LoadBMP("GENTOODIR/images/kp2b.bmp"); + SDL_SetColorKey(kp2b, SDL_SRCCOLORKEY, SDL_MapRGB(kp2b->format, 0xFF, 0xFF, 0xFF)); + +- font2 = SDL_LoadBMP("images/font.bmp"); ++ font2 = SDL_LoadBMP("GENTOODIR/images/font.bmp"); + font = SDL_CreateRGBSurface(SDL_SWSURFACE, 1288, 100, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF); + SDL_SetColorKey(font, SDL_SRCCOLORKEY, SDL_MapRGB(font->format, 0x00, 0x00, 0x00)); + DrawIMG (font, font2, 0, 0); + +- blobtrox = SDL_LoadBMP("images/blobtrox.bmp"); ++ blobtrox = SDL_LoadBMP("GENTOODIR/images/blobtrox.bmp"); + //SDL_SetColorKey(blobtrox, SDL_SRCCOLORKEY, SDL_MapRGB(blobtrox->format, 0x01, 0x01, 0x01)); + +- balloonchase = SDL_LoadBMP("images/balloonchase.bmp"); ++ balloonchase = SDL_LoadBMP("GENTOODIR/images/balloonchase.bmp"); + + TMP = SDL_CreateRGBSurface(SDL_SWSURFACE, 259, 200, 32, 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF); + blursurface = SDL_CreateRGBSurface(SDL_SWSURFACE, 640, 480, 32, 0x00000000, 0x00000000, 0x00000000, 0x00000000); +@@ -578,7 +578,7 @@ + + void createdat(int winsneed, int option_wave_effect) + { +- FILE *OPTFILE=fopen ("balloonchase.dat", "w+"); ++ FILE *OPTFILE=fopen (".balloonchaserc", "w+"); + char datmsg[60]; + sprintf (datmsg, "Balloon Chase settings file -- Do not edit manually!"); + char tmp2; +@@ -588,52 +588,32 @@ + } + fputc (winsneed, OPTFILE); + fputc (option_wave_effect+2, OPTFILE); +- fprintf (stderr, "Saved configuration to balloonchase.dat\n"); ++ fprintf (stderr, "Saved configuration to .balloonchaserc\n"); + fclose (OPTFILE); + } + + void checkfiles() + { +- char found=0; +- #ifdef WIN32 +- WIN32_FIND_DATA fileinfo; +- BOOL rc = 0; +- HANDLE hFile; +- hFile = FindFirstFile("*", &fileinfo); +- while(rc) +- { +- rc = FindNextFile(hFile, &fileinfo); +- if (strcmp (fileinfo.cFileName, "balloonchase.dat")==0) +- { +- fprintf(stderr, "Found balloonchase.dat\n"); +- found = 1; +- _findclose(hFile); +- #endif +- #ifndef WIN32 +- struct dirent *filelist[255]; +- int i=0; +- int j=0; + DIR *dp; +- dp=opendir("./"); +- int filenum=0; +- while( filelist[filenum]=readdir(dp) ) +- filenum++; +- closedir(dp); +- if (filenum>=2) +- for (i=0;i<filenum;i++) +- { +- if (strcmp(filelist[i]->d_name,"balloonchase.dat")==0) +- { +- fprintf (stderr, "Found balloonchase.dat\n"); +- found=1; +- } ++ ++ if (getenv("HOME")) { ++ chdir(getenv("HOME")); ++ } ++ if ((dp = opendir("./"))) { ++ struct dirent *f; ++ ++ while(f=readdir(dp)) { ++ if (strcmp(f->d_name, ".balloonchaserc") == 0) { ++ fprintf (stderr, "Found .balloonchaserc\n"); ++ closedir(dp); ++ return; + } +- #endif +- if (found==0) +- { +- fprintf (stderr, "Balloonchase.dat not found!\nCreating new...\n"); +- if (found==0) createdat(2, 1); + } ++ closedir(dp); ++ fprintf (stderr, ++ "Balloonchase.dat not found!\nCreating new...\n"); ++ createdat(2, 1); ++ } + } + + Uint32 rgb(Uint8 r, Uint8 g, Uint8 b) +@@ -1257,7 +1237,7 @@ + SDL_WM_SetCaption ("Balloon Chase", 0); + checkfiles(); + +- FILE *OPTFILE=fopen ("balloonchase.dat", "r"); ++ FILE *OPTFILE=fopen (".balloonchaserc", "r"); + char datmsg[60]; + char varmistus[60]; + +@@ -1275,7 +1255,7 @@ + { + winsneeded=fgetc(OPTFILE); + option_wave_effect=fgetc(OPTFILE)-2; +- fprintf (stderr, "Successfully loaded balloonchase.dat\n"); ++ fprintf (stderr, "Successfully loaded .balloonchaserc\n"); + } + else + { diff --git a/games-arcade/balloonchase/metadata.xml b/games-arcade/balloonchase/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/balloonchase/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/barbarian-bin/Manifest b/games-arcade/barbarian-bin/Manifest new file mode 100644 index 000000000000..1670f0c41cb2 --- /dev/null +++ b/games-arcade/barbarian-bin/Manifest @@ -0,0 +1 @@ +DIST barbarian101_linux.zip 925199 SHA256 0a559b2d930b9ceb54f32e5e1adc5be176290c025a2228d3372fa5bf413322c6 SHA512 9b46c75666359ed5102a89d29e8b6afacf07ccfa6175f6df27b5acc48b0e0119106f1c1376b124ff761d373bf04145e804659b81503b2834ba09ac05fad5c4f4 WHIRLPOOL a1e42954e52e1b26ad85b928ee92a9a137f982b194b5d0d71066be0428097b721d2d38bb78767edf5ecfaf4962046f38ff1a24f85fdf7ef4edd9f977e5f79562 diff --git a/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild b/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild new file mode 100644 index 000000000000..4b648b4a7570 --- /dev/null +++ b/games-arcade/barbarian-bin/barbarian-bin-1.01-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_PN=${PN/-bin/} +DESCRIPTION="Save Princess Mariana through one-on-one battles with demonic barbarians" +HOMEPAGE="http://www.tdbsoft.com/" +SRC_URI="http://www.pcpages.com/tomberrr/downloads/${MY_PN}${PV/./}_linux.zip" + +LICENSE="CC-BY-NC-ND-2.0" +SLOT="0" +KEYWORDS="-* amd64 x86" +RESTRICT="strip" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="sys-libs/libstdc++-v3:5 + amd64? ( sys-libs/libstdc++-v3:5[multilib] ) + >=media-libs/libsdl-1.2.15-r4[abi_x86_32(-)]" + +game_dest="${GAMES_PREFIX_OPT}/${MY_PN}" +QA_PREBUILT="${game_dest:1}/Barbarian" + +S=${WORKDIR} + +src_install() { + dodir "${game_dest}" + cp -r gfx sounds "${D}${game_dest}/" || die + + exeinto "${game_dest}" + doexe Barbarian + + dohtml Barbarian.html + + games_make_wrapper barbarian ./Barbarian "${game_dest}" + + # High-score file + dodir "${GAMES_STATEDIR}" + touch "${D}${GAMES_STATEDIR}/heroes.hoh" + fperms 660 "${GAMES_STATEDIR}/heroes.hoh" + dosym "${GAMES_STATEDIR}/heroes.hoh" "${game_dest}/heroes.hoh" + newicon gfx/sprites/player_attack_2_1.bmp barbarian.bmp + make_desktop_entry barbarian "Barbarian" /usr/share/pixmaps/barbarian.bmp + prepgamesdirs +} diff --git a/games-arcade/barbarian-bin/metadata.xml b/games-arcade/barbarian-bin/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/barbarian-bin/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/batrachians/Manifest b/games-arcade/batrachians/Manifest new file mode 100644 index 000000000000..ad7555a6cb6a --- /dev/null +++ b/games-arcade/batrachians/Manifest @@ -0,0 +1 @@ +DIST batrachians-0.1.6.tar.gz 198088 SHA256 6511a939e9b3e0c5d0683f2a33389e6da9ff4d9c15e1d27ebcc4e2ba55868e18 SHA512 d3022712627061f9828e1f3baa7207053884f1f4c0348768d4ac073673ff1bcf14c95cedf01031b8bd36a6b684bf239af0f381df41aa18d49218320a8bea3b68 WHIRLPOOL 100d31b7153575507fb88e1e97b9df2606158391d2dba1e8ba7bfc549eda778f82c026be6352495784a4cb016261db52e1ac0854afc0463afc32e22bbef2e70f diff --git a/games-arcade/batrachians/batrachians-0.1.6.ebuild b/games-arcade/batrachians/batrachians-0.1.6.ebuild new file mode 100644 index 000000000000..dfafd81f0f4a --- /dev/null +++ b/games-arcade/batrachians/batrachians-0.1.6.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2-utils games + +DESCRIPTION="A fly-eating frog video game" +HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/batrachians.html" +SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-games/flatzebra-0.1.5" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-makefile.patch + eautoreconf +} + +src_install() { + emake -C src DESTDIR="${D}" install + doman doc/${PN}.6 + dodoc AUTHORS NEWS README THANKS + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch b/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch new file mode 100644 index 000000000000..f01fdfb0da8d --- /dev/null +++ b/games-arcade/batrachians/files/batrachians-0.1.6-makefile.patch @@ -0,0 +1,35 @@ +diff -ru batrachians-0.1.6.orig/src/Makefile.am batrachians-0.1.6/src/Makefile.am +--- batrachians-0.1.6.orig/src/Makefile.am 2011-04-18 21:25:53.000000000 -0400 ++++ batrachians-0.1.6/src/Makefile.am 2014-10-27 23:19:58.292260669 -0400 +@@ -20,7 +20,7 @@ + -DPACKAGE_FULL_NAME_EN=\"$(PACKAGE_FULL_NAME_EN)\" \ + -DPKGSOUNDDIR=\"$(pkgsounddir)\" + +-pkgsounddir = $(datadir)/sounds/$(PACKAGE) ++pkgsounddir = $(datadir)/$(PACKAGE)/sounds + pkgsound_DATA = \ + sounds/game-starts.wav \ + sounds/game-ends.wav \ +@@ -29,18 +29,18 @@ + sounds/frog-jumps.wav \ + sounds/tongue-out.wav + +-desktopentrydir = $(datadir)/applications ++desktopentrydir =/usr/share/applications + desktopentry_DATA = $(PACKAGE).desktop + +-pixmapdir = $(datadir)/pixmaps ++pixmapdir =/usr/share/icons/hicolor/48x48/apps/ + pixmap_DATA = images/$(PACKAGE).png + + + check: all + if HAVE_GETOPT_LONG + test "`./$(PACKAGE) --version`" = "$(PACKAGE) $(VERSION)" +- ./$(PACKAGE) --version >& /dev/null +- ./$(PACKAGE) --help >& /dev/null ++ ./$(PACKAGE) --version > /dev/null 2>&1 ++ ./$(PACKAGE) --help > /dev/null 2>&1 + endif + + diff --git a/games-arcade/batrachians/metadata.xml b/games-arcade/batrachians/metadata.xml new file mode 100644 index 000000000000..112b2c3dc17e --- /dev/null +++ b/games-arcade/batrachians/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel +Electronics. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/berusky/Manifest b/games-arcade/berusky/Manifest new file mode 100644 index 000000000000..158f1941be35 --- /dev/null +++ b/games-arcade/berusky/Manifest @@ -0,0 +1,3 @@ +DIST berusky-1.7.1.tar.gz 483794 SHA256 8382218ae37669e457fd552bf4690ad3b2b91d8a52701655a457e191d3da4e74 SHA512 0b0c4d736bfd9b0b62accf11d932271e355cbcbf911e35adb0ccd0bb1b45e06c392d60830bddef04a24689ccfcee7302f2653f6357474ccceba4fd66c44d4383 WHIRLPOOL 7fb845b391512218d2d0fb05f56ea7ad6890e33f1b5c3d025417202b455f96bcff93ef05db962864f374bbc39eb9f9941955af161130324823141e7dfc70118a +DIST berusky-data-1.7.tar.gz 5366663 SHA256 be6d99f40d65341b32b381c004f32885e3dc114b76a95efbc4c5057ea524401e SHA512 1ccae352b8033df0dd8fe6f09b1daa83b0e25a67999d41a0f21019014620825551a4e22827f96bc28ccdf0958df85c9f3cfd2e8f1e83dd7edac5b0479413d438 WHIRLPOOL 492f5707b5675679c5d8dd42d55835c36c31a5dcab6ade5e40a127f1957268a4a1231d9f68b330e09206cc3ff6987369d8e867f201c82b7278beaec1ef3e07d5 +DIST berusky.png 1714 SHA256 47c8a35366b144f86520e9b52eed372a5c8a3b576f69b45f75d65b2f8937a519 SHA512 a8a5f7f8dca8d686bc05239adda10673e937361514b1aea07dc9fe66f2e009ae7c20b75ab63fd4db8ed206026a009d8620af3471bbb966b5e9b576ce89f66e54 WHIRLPOOL 8ddee6fbcec079a5d47070f8a0d7fd153bb895e993b8fe8023aac412cfb441f53d88db27ec40c254a0cd9d6950e1d9e4d281008382238de5b0cdbd564b1edc39 diff --git a/games-arcade/berusky/berusky-1.7.1.ebuild b/games-arcade/berusky/berusky-1.7.1.ebuild new file mode 100644 index 000000000000..ab7f99aef548 --- /dev/null +++ b/games-arcade/berusky/berusky-1.7.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2-utils games + +DATAFILE=${PN}-data-1.7 +DESCRIPTION="free logic game based on an ancient puzzle named Sokoban" +HOMEPAGE="http://anakreon.cz/?q=node/1" +SRC_URI="http://www.anakreon.cz/download/${P}.tar.gz + http://www.anakreon.cz/download/${DATAFILE}.tar.gz + http://dev.gentoo.org/~hasufell/distfiles/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="media-libs/libsdl[X,video] + media-libs/sdl-image[png] + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + mv ../${DATAFILE}/{berusky.ini,GameData,Graphics,Levels} . || die + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \ + src/defines.h berusky.ini \ + || die + sed -i \ + -e "/AC_INIT/s/configure.in/${PN}, ${PV}/" \ + configure.in || die + mv configure.in configure.ac || die + eautoreconf +} + +src_install() { + default + insinto "${GAMES_DATADIR}"/${PN} + doins -r berusky.ini GameData Graphics Levels + doicon -s 32 "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch b/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch new file mode 100644 index 000000000000..f26c233c39e0 --- /dev/null +++ b/games-arcade/berusky/files/berusky-1.7.1-gentoo.patch @@ -0,0 +1,71 @@ +--- Makefile.am ++++ Makefile.am +@@ -5,8 +5,7 @@ + + SUBDIRS = po src data + +-beruskydocdir = ${prefix}/doc/berusky +-beruskydoc_DATA = \ ++EXTRA_DIST = \ + README\ + COPYING\ + AUTHORS\ +@@ -15,10 +14,6 @@ + NEWS\ + TODO + +-EXTRA_DIST = $(beruskydoc_DATA) +- +- +- + # Copy all the spec files. Of cource, only one is actually used. + dist-hook: + for specfile in *.spec; do \ +--- data/Makefile.am ++++ data/Makefile.am +@@ -3,10 +3,3 @@ + ## Created by Anjuta - will be overwritten + ## If you don't want it to overwrite it, + ## Please disable it in the Anjuta project configuration +- +-berusky_datadir = $(prefix)/@NO_PREFIX_PACKAGE_DATA_DIR@/@PACKAGE@ +- +-berusky_data_DATA = \ +- berusky.ini +- +-EXTRA_DIST = $(berusky_data_DATA) +--- berusky.ini ++++ berusky.ini +@@ -1,9 +1,9 @@ + # Configuration for berusky game + + # Game data location +-level_data = /usr/share/berusky/Levels +-game_data = /usr/share/berusky/GameData +-graphics_data = /usr/share/berusky/Graphics ++level_data = @GENTOO_DATADIR@/Levels ++game_data = @GENTOO_DATADIR@/GameData ++graphics_data = @GENTOO_DATADIR@/Graphics + + # Graphics settings for game and editor + # game runs in 640x480 +@@ -17,7 +17,7 @@ + + # Game binary & tmp dir + # they're used by editor for "run level" command +-game_binary = /usr/bin/berusky ++game_binary = @GENTOO_BINDIR@/berusky + tmp_data = /var/tmp + + # Dir for users levels (it's the default level dir for level editor) +--- src/defines.h ++++ src/defines.h +@@ -446,7 +446,7 @@ + #define INI_USER_DIRECTORY "~/.berusky" + #define INI_USER_LEVELS "~/.berusky/User" + #define INI_USER_PROFILES "~/.berusky/Profiles" +-#define INI_FILE_GLOBAL "/var/games/berusky/"INI_FILE_NAME ++#define INI_FILE_GLOBAL "@GENTOO_DATADIR@/"INI_FILE_NAME + #define INI_FILE_USER "~/.berusky/"INI_FILE_NAME + #define INI_FILE_LOCAL "./"INI_FILE_NAME + #elif WINDOWS diff --git a/games-arcade/berusky/metadata.xml b/games-arcade/berusky/metadata.xml new file mode 100644 index 000000000000..2dc670913f47 --- /dev/null +++ b/games-arcade/berusky/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Berusky is a free logic game, published under GNU Public License and it's based +on an ancient puzzle named Sokoban. + +An old idea of moving boxes in a maze has been expanded with new logic items +such as explosives, stones, special gates and so on. In addition, up to five +bugs can cooperate and be controlled by the player. + +In order to leave each level (there's about 120 levels in the game) it is +necessary to own five keys and also to have a free way to the exit. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/betna/Manifest b/games-arcade/betna/Manifest new file mode 100644 index 000000000000..f9f2408d49df --- /dev/null +++ b/games-arcade/betna/Manifest @@ -0,0 +1 @@ +DIST betna-0.9.7.tgz 684723 SHA256 312267ab2f727e91343673b832d243c9d8a16a744d1d104c4bbe8502268beff4 SHA512 01a979b3bd5adf1581293db8a066a4db1b4818f5986d8954d0da5d1e1eb394201c2affcee8c679b7cd23b4d255f718619dc00183b59fe7be280f18db0c0548d5 WHIRLPOOL b4ff9b2c3890775460e6f35fee3436d587884088d1ee4267ec0f44b92d68f6703c3bc2c175aad1ba56f656069033f8ec3346dafd86bc73bfc8f92a81a1e03ac6 diff --git a/games-arcade/betna/betna-0.9.7.ebuild b/games-arcade/betna/betna-0.9.7.ebuild new file mode 100644 index 000000000000..d34055d8f8ff --- /dev/null +++ b/games-arcade/betna/betna-0.9.7.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Defend your volcano from the attacking ants by firing rocks/bullets at them" +HOMEPAGE="http://koti.mbnet.fi/makegho/c/betna/" +SRC_URI="http://koti.mbnet.fi/makegho/c/betna/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[video]" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/blobprintf.*char msg/s/char msg/const char msg/' \ + -e "s:images/:${GAMES_DATADIR}/${PN}/:" \ + src/main.cpp || die + + sed -i \ + -e '/^LDFLAGS/d' \ + -e '/--libs/s/-o/$(LDFLAGS) -o/' \ + -e 's:-O2:$(CXXFLAGS):g' \ + -e 's/g++/$(CXX)/' \ + Makefile || die +} + +src_compile() { + emake clean + emake +} + +src_install() { + dogamesbin betna + insinto "${GAMES_DATADIR}"/${PN} + doins images/* + newicon images/target.bmp ${PN}.bmp + make_desktop_entry ${PN} Betna /usr/share/pixmaps/${PN}.bmp + dodoc README Q\&A + prepgamesdirs +} diff --git a/games-arcade/betna/metadata.xml b/games-arcade/betna/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/betna/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/blobby/Manifest b/games-arcade/blobby/Manifest new file mode 100644 index 000000000000..6ddf0d43217a --- /dev/null +++ b/games-arcade/blobby/Manifest @@ -0,0 +1 @@ +DIST blobby2-linux-0.9c.tar.gz 2290384 SHA256 e3ed8f92c70e16d24f109b6f0f4dccc25656a88780eb1a348d1223edcb7fc937 SHA512 741eed708f6688af179e19cecc17cb1e0cdbd6a9e2680fbfd8093ca171c0593474ec1bd11c1704e6e275ae8693c72c8f2f93fdc9ec7863dcda5999a76b0002e2 WHIRLPOOL 04e5b7786290cd43abcfd25099c9dd338a4405e5fd8c796c366b6a8e456bbcc2930a906a8a4c6cb796aacf9f4716f3913b70f7ccdc35b025c0e924a30ccc4f63 diff --git a/games-arcade/blobby/blobby-0.9c.ebuild b/games-arcade/blobby/blobby-0.9c.ebuild new file mode 100644 index 000000000000..4128a0d5f763 --- /dev/null +++ b/games-arcade/blobby/blobby-0.9c.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit cmake-utils eutils games + +DESCRIPTION="A beach ball game with blobs of goo" +HOMEPAGE="http://sourceforge.net/projects/blobby/" +SRC_URI="mirror://sourceforge/${PN}/${PN}2-linux-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-games/physfs-2[zip] + media-libs/libsdl[sound,joystick,opengl,video,X] + virtual/opengl" +DEPEND="${RDEPEND} + dev-libs/boost + virtual/pkgconfig + app-arch/zip" #406667 + +S=${WORKDIR}/${PN}-beta-${PV} + +src_prepare() { + sed -i -e "s:share/${PN}:${GAMES_DATADIR}/${PN}:" data/CMakeLists.txt || die + sed -i -e "s:share/${PN}:${GAMES_DATADIR/\/usr\/}/${PN}:" src/main.cpp || die + sed -i -e "/DESTINATION/s:bin:${GAMES_BINDIR}:" src/CMakeLists.txt || die + epatch "${FILESDIR}"/${P}-gcc47.patch +} + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + DOCS="AUTHORS ChangeLog README TODO" cmake-utils_src_install + + newicon data/Icon.bmp ${PN}.bmp + make_desktop_entry ${PN} "Blobby Volley" /usr/share/pixmaps/${PN}.bmp + + prepgamesdirs +} diff --git a/games-arcade/blobby/files/blobby-0.9c-gcc47.patch b/games-arcade/blobby/files/blobby-0.9c-gcc47.patch new file mode 100644 index 000000000000..be873b7af0d1 --- /dev/null +++ b/games-arcade/blobby/files/blobby-0.9c-gcc47.patch @@ -0,0 +1,66 @@ +--- src/raknet/BinarySearchTree.h.old 2012-06-21 09:09:08.389412319 +0200 ++++ src/raknet/BinarySearchTree.h 2012-06-21 09:10:39.830991876 +0200 +@@ -338,12 +338,12 @@ + if ( current->left == 0 ) + left_height = 0; + else +- left_height = height( current->left ); ++ left_height = this->height( current->left ); + + if ( current->right == 0 ) + right_height = 0; + else +- right_height = height( current->right ); ++ right_height = this->height( current->right ); + + if ( right_height - left_height == 2 ) + { +@@ -371,7 +371,7 @@ + if ( current == this->root ) + break; + +- current = find_parent( *( current->item ) ); ++ current = this->find_parent( *( current->item ) ); + + } + } +@@ -400,7 +400,7 @@ + if ( A == 0 ) + return false; + +- return height( A->right ) > height( A->left ); ++ return this->height( A->right ) > this->height( A->left ); + } + + template <class BinarySearchTreeType> +@@ -409,7 +409,7 @@ + if ( A == 0 ) + return false; + +- return height( A->left ) > height( A->right ); ++ return this->height( A->left ) > this->height( A->right ); + } + + template <class BinarySearchTreeType> +@@ -446,8 +446,8 @@ + + */ + +- B = find_parent( *( C->item ) ); +- A = find_parent( *( B->item ) ); ++ B = this->find_parent( *( C->item ) ); ++ A = this->find_parent( *( B->item ) ); + D = C->right; + + if ( A ) +@@ -510,8 +510,8 @@ + + */ + +- B = find_parent( *( C->item ) ); +- A = find_parent( *( B->item ) ); ++ B = this->find_parent( *( C->item ) ); ++ A = this->find_parent( *( B->item ) ); + D = C->left; + + if ( A ) diff --git a/games-arcade/blobby/metadata.xml b/games-arcade/blobby/metadata.xml new file mode 100644 index 000000000000..54fc8e0db93d --- /dev/null +++ b/games-arcade/blobby/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">blobby</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/bloboats/Manifest b/games-arcade/bloboats/Manifest new file mode 100644 index 000000000000..fd490b075606 --- /dev/null +++ b/games-arcade/bloboats/Manifest @@ -0,0 +1 @@ +DIST bloboats-1.0.2.tar.gz 7592902 SHA256 4aa5cbba7bae4471daefc6ba058cf6a84c62a4c06cd104a525f9ea1108787ccd SHA512 456339557270440ed4efc5b5cc217c1d1f967ba8ea630f5d9557afe4f4a6cafed749a38596bec0c5daec60cb87e9e8cf72c3a73c604e7777b804d07ff352f1c2 WHIRLPOOL a137be75f50045d34c66e1f14e10c59d8b1109813fa0a48f14e6232b6c8065be59bbbe8b52cc70b1b5b9b9a5c1745736cad452b386f3cfb64e6a99e0d1be5489 diff --git a/games-arcade/bloboats/bloboats-1.0.2.ebuild b/games-arcade/bloboats/bloboats-1.0.2.ebuild new file mode 100644 index 000000000000..024b65e42a71 --- /dev/null +++ b/games-arcade/bloboats/bloboats-1.0.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="arcade-like boat racing game combining platform jumpers and elastomania / x-moto like games" +HOMEPAGE="http://bloboats.dy.fi/" +SRC_URI="http://mirror.kapsi.fi/bloboats.dy.fi/${P}.tar.gz" + +LICENSE="GPL-2 CC-Sampling-Plus-1.0" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[opengl,video] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-image[png] + media-libs/sdl-net + virtual/opengl + virtual/glu + media-libs/libvorbis" +REDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-warnings.patch + sed -i \ + -e "/PREFIX/s://:${D}:" \ + -e "/DATADIR/s:/usr/games/bloboats/data:${GAMES_DATADIR}/${PN}:" \ + -e "/BINARYDIR/s:/usr/bin:${GAMES_BINDIR}:" \ + -e "/CONFIGDIR/s:/etc:${GAMES_SYSCONFDIR}:" \ + -e "/CXXFLAGS_DEFAULT/s:-O2:${CXXFLAGS} \$(LDFLAGS):" \ + -e "/^CXX[ _]/d" \ + -e '/STRIP/d' \ + Makefile || die +} + +src_install() { + dogamesbin bin/bloboats + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* + insinto "$GAMES_SYSCONFDIR" + doins bloboats.dirs + dodoc readme.txt + prepgamesdirs +} diff --git a/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch b/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch new file mode 100644 index 000000000000..d05f2dd9bdc1 --- /dev/null +++ b/games-arcade/bloboats/files/bloboats-1.0.2-warnings.patch @@ -0,0 +1,24 @@ +diff -ru bloboats-1.0.2.orig/src/menu.cpp bloboats-1.0.2/src/menu.cpp +--- bloboats-1.0.2.orig/src/menu.cpp 2010-08-25 17:55:26.000000000 -0400 ++++ bloboats-1.0.2/src/menu.cpp 2010-11-28 01:19:57.664406227 -0500 +@@ -118,7 +118,7 @@ + bool used=false; + + if (fgets(nick, NICK_MAXLEN+2, fp)) { +- if (nick && strlen(nick)>1 ) { ++ if (strlen(nick)>1 ) { + nick[strlen(nick)-1]='\0'; + used=true; + Player[i].setnick(nick); +diff -ru bloboats-1.0.2.orig/src/path.cpp bloboats-1.0.2/src/path.cpp +--- bloboats-1.0.2.orig/src/path.cpp 2006-08-02 18:05:36.000000000 -0400 ++++ bloboats-1.0.2/src/path.cpp 2010-11-28 01:19:19.385415683 -0500 +@@ -111,7 +111,7 @@ + } + + if (type>0) { +- if (d2) { ++ if (*d2) { + char *ps = new char[p.size()+1]; + strncpy (ps, p.c_str(), p.size()+1); + diff --git a/games-arcade/bloboats/metadata.xml b/games-arcade/bloboats/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/bloboats/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/blobwars/Manifest b/games-arcade/blobwars/Manifest new file mode 100644 index 000000000000..4c62d27a5b11 --- /dev/null +++ b/games-arcade/blobwars/Manifest @@ -0,0 +1 @@ +DIST blobwars-1.19.tar.gz 67019647 SHA256 f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed SHA512 d31dcf5aae13bed849f701923cef7e829a43f199b8cde8dc9c28b283c8f7da6c5c8052387fae9add9f1bfb0c857c5be339b6049b6b19ff4c6c5ccbb6233e2643 WHIRLPOOL 4f4a31e80648696ee564be7b4aafddea666dd9cd7239e6310c03f873cb284a59beb40abaa4e8edd3da9e2dbb4dbf9f88cc1db3232b22aeadfda3cad5f473eea4 diff --git a/games-arcade/blobwars/blobwars-1.19.ebuild b/games-arcade/blobwars/blobwars-1.19.ebuild new file mode 100644 index 000000000000..db013b19f276 --- /dev/null +++ b/games-arcade/blobwars/blobwars-1.19.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils gnome2-utils games + +DESCRIPTION="Platform game about a blob and his quest to rescue MIAs from an alien invader" +HOMEPAGE="http://sourceforge.net/projects/blobwars/ https://sourceforge.net/apps/mediawiki/blobwars/index.php?title=Main_Page" +SRC_URI="mirror://sourceforge/blobwars/${P}.tar.gz" + +LICENSE="BSD CC-BY-SA-3.0 CC-BY-3.0 GPL-2 LGPL-2.1 fairuse public-domain" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/sdl-image + media-libs/sdl-net + sys-libs/zlib + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.19-linking-order.patch \ + "${FILESDIR}"/${PN}-1.19-ldflags.patch \ + "${FILESDIR}"/${PN}-1.19-zlib-1.2.5.2.patch + + sed -i -e "/-Werror/d" makefile || die +} + +src_compile() { + emake \ + USEPAK="1" \ + DATADIR="${GAMES_DATADIR}/${PN}/" \ + DOCDIR="/usr/share/doc/${PF}/html/" \ + LOCALEDIR="/usr/share/locale/" +} + +src_install() { + emake \ + USEPAK="1" \ + DESTDIR="${D}" \ + BINDIR="${GAMES_BINDIR}/" \ + DATADIR="${GAMES_DATADIR}/${PN}/" \ + DOCDIR="/usr/share/doc/${PF}/html/" \ + ICONDIR="/usr/share/icons/hicolor/" \ + DESKTOPDIR="/usr/share/applications/" \ + LOCALEDIR="/usr/share/locale/" \ + install + + mv -vf \ + "${D}"/usr/share/doc/${PF}/html/{changes,hacking,porting,readme} \ + "${D}"/usr/share/doc/${PF}/ + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch b/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch new file mode 100644 index 000000000000..8b006f1003a8 --- /dev/null +++ b/games-arcade/blobwars/files/blobwars-1.19-ldflags.patch @@ -0,0 +1,22 @@ +--- makefile~ 2011-08-29 20:32:22.000000000 +0200 ++++ makefile 2011-08-29 20:33:27.052159159 +0200 +@@ -82,16 +82,16 @@ + + # linking the program. + $(PROG): $(GAMEOBJS) +- $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS) ++ $(CXX) $(LDFLAGS) $(GAMEOBJS) -o $(PROG) $(LIBS) + + pak: $(PAKOBJS) +- $(CXX) $(PAKOBJS) -o pak $(LIBS) ++ $(CXX) $(LDFLAGS) $(PAKOBJS) -o pak $(LIBS) + + %.mo: %.po + msgfmt -c -o $@ $< + + mapeditor: $(MAPOBJS) +- $(CXX) $(MAPOBJS) -o mapeditor $(LIBS) ++ $(CXX) $(LDFLAGS) $(MAPOBJS) -o mapeditor $(LIBS) + + # cleaning everything that can be automatically recreated with "make". + clean: diff --git a/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch b/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch new file mode 100644 index 000000000000..6b0010138652 --- /dev/null +++ b/games-arcade/blobwars/files/blobwars-1.19-linking-order.patch @@ -0,0 +1,36 @@ +From 896cde549eeb254cc4960f20f54cab845e95b061 Mon Sep 17 00:00:00 2001 +From: Andreas Moog <amoog@ubuntu.com> +Date: Sun, 19 Jun 2011 22:03:10 +0200 +Subject: [PATCH] LIBS go after objects to allow linking with ld --as-needed + +--- + makefile | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/makefile b/makefile +index 0a9cc94..509c2ff 100755 +--- a/makefile ++++ b/makefile +@@ -82,16 +82,16 @@ all: $(ALL) + + # linking the program. + $(PROG): $(GAMEOBJS) +- $(CXX) $(LIBS) $(GAMEOBJS) -o $(PROG) ++ $(CXX) $(GAMEOBJS) -o $(PROG) $(LIBS) + + pak: $(PAKOBJS) +- $(CXX) $(LIBS) $(PAKOBJS) -o pak ++ $(CXX) $(PAKOBJS) -o pak $(LIBS) + + %.mo: %.po + msgfmt -c -o $@ $< + + mapeditor: $(MAPOBJS) +- $(CXX) $(LIBS) $(MAPOBJS) -o mapeditor ++ $(CXX) $(MAPOBJS) -o mapeditor $(LIBS) + + # cleaning everything that can be automatically recreated with "make". + clean: +-- +1.7.5.4 + diff --git a/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch b/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch new file mode 100644 index 000000000000..cf101170e26c --- /dev/null +++ b/games-arcade/blobwars/files/blobwars-1.19-zlib-1.2.5.2.patch @@ -0,0 +1,22 @@ +http://bugs.gentoo.org/408459 + +--- src/pak.cpp ++++ src/pak.cpp +@@ -119,7 +119,7 @@ + { + printf("Couldn't open %s for reading!\n", filename); + closedir(dirp); +- gzclose(pak); ++ gzclose((gzFile)pak); + exit(1); + } + +@@ -141,7 +141,7 @@ + { + printf("Couldn't open %s for reading!\n", filename); + closedir(dirp); +- gzclose(pak); ++ gzclose((gzFile)pak); + exit(1); + } + else diff --git a/games-arcade/blobwars/metadata.xml b/games-arcade/blobwars/metadata.xml new file mode 100644 index 000000000000..6e3e4b851f2a --- /dev/null +++ b/games-arcade/blobwars/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>pacho@gentoo.org</email> + <name>Pacho Ramos</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">blobwars</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/blockrage/Manifest b/games-arcade/blockrage/Manifest new file mode 100644 index 000000000000..29a1ccd326f5 --- /dev/null +++ b/games-arcade/blockrage/Manifest @@ -0,0 +1 @@ +DIST blockrage-0.2.3.tar.gz 75620 SHA256 f9722e519fb74be2ecb9377fd2470c94382088a67df33acea215fd0a5a0b4cb6 SHA512 20ad63cb75f6f3afe482b54c5dc0487615ed9ac9a43fa3819b1da43f343c8dde6c3eb817b46b586bbfdca6ad9c9e9cb3c220f5ab536397e407250daf9fd61aa2 WHIRLPOOL 897bb7ea402ca0b79cf1246bc157853575664f22219518d905418bf838e47c31531e64a508028e3e22319e49a4cd2534482abe8affeaa4caf38875e2510a7366 diff --git a/games-arcade/blockrage/blockrage-0.2.3.ebuild b/games-arcade/blockrage/blockrage-0.2.3.ebuild new file mode 100644 index 000000000000..abe431660f4f --- /dev/null +++ b/games-arcade/blockrage/blockrage-0.2.3.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Falling-blocks arcade game with a 2-player hotseat mode" +HOMEPAGE="http://blockrage.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl" +RDEPEND="${DEPEND}" + +# Removing error due to wrong detection of cross-compile mode +PATCHES=( "${FILESDIR}/${P}"-config.patch ) +DOCS=( ChangeLog KNOWN_BUGS README TODO ) + +src_install() { + default + prepgamesdirs +} diff --git a/games-arcade/blockrage/files/blockrage-0.2.3-config.patch b/games-arcade/blockrage/files/blockrage-0.2.3-config.patch new file mode 100644 index 000000000000..dc1875fc28e8 --- /dev/null +++ b/games-arcade/blockrage/files/blockrage-0.2.3-config.patch @@ -0,0 +1,30 @@ +--- configure ++++ configure +@@ -40,7 +40,7 @@ + SOUND_OPT= + + MYCC=gcc +-MYCFLAGS='-s -O2 -Wall `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\"" ++MYCFLAGS='-Wall `sdl-config --cflags`'" $SOUND_OPT -DSYSCONFDIR=\\\"\${sysconfdir}/\${progname}\\\"" + + if test -z "$CC" ; then + CC="$MYCC"; +@@ -75,7 +75,6 @@ + --build=*) build_alias="$cfg_optarg";; + --host=*) if test ."$build_alias" != ."$cfg_optarg" ; then + printf "configure: cross-compiling not supported\n" >&2 +- exit 1 + fi;; + + --bindir=*) bindir="$cfg_optarg";; +--- src/Makefile.in ++++ src/Makefile.in +@@ -1,7 +1,7 @@ + OBJS = main.o gfxout.o gfxlib.o menus.o keyboard.o bg.o sound.o global.o timer.o + + $(progname)$(XSUF): $(OBJS) +- gcc -s -o $(progname)$(XSUF) $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) -o $(progname)$(XSUF) $(OBJS) $(LIBS) $(LDFLAGS) + + bg.o: bg.c bg.h global.h main.h + gfxlib.o: gfxlib.c gfxlib.h global.h gfxout.h diff --git a/games-arcade/blockrage/metadata.xml b/games-arcade/blockrage/metadata.xml new file mode 100644 index 000000000000..9f40ff536fad --- /dev/null +++ b/games-arcade/blockrage/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +An arcade game with addictive gameplay and a 2-player hotseat mode. +</longdescription> + <upstream> + <remote-id type="sourceforge">blockrage</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/bomns/Manifest b/games-arcade/bomns/Manifest new file mode 100644 index 000000000000..bffb8486461a --- /dev/null +++ b/games-arcade/bomns/Manifest @@ -0,0 +1 @@ +DIST bomns-0.99.2.tar.gz 1079850 SHA256 e292bec8ec8ca3b0ffe40b7b09f9fe5cce4d506e35425ee8de2d13ecf754ea5f SHA512 db4a2352af0cb220dc0c12de8796d17bbfb71e1aa7de1743dfe534fe4f54c38217f893f0fcaef1dc97509198eec7446d352e92077644664d4bf48acbc2a7897f WHIRLPOOL aa9e91a9be4fa07912c711bba1a11125f23387247a9bed01a80ad23be19b7d9ff4667cf6fdb65b26b486b2a0a9c4fe55628aa34c56c89e9d8c8e1916b5d37cab diff --git a/games-arcade/bomns/bomns-0.99.2.ebuild b/games-arcade/bomns/bomns-0.99.2.ebuild new file mode 100644 index 000000000000..83010e39529e --- /dev/null +++ b/games-arcade/bomns/bomns-0.99.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools flag-o-matic games + +DESCRIPTION="A fast-paced multiplayer deathmatch arcade game" +HOMEPAGE="http://greenridge.sourceforge.net" +SRC_URI="mirror://sourceforge/greenridge/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="gtk editor" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-mixer + gtk? ( x11-libs/gtk+:2 )" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "/appicondir/s:\$(prefix):/usr:" \ + -e "/desktopdir/s:\$(prefix):/usr:" \ + $(find icons -name Makefile.am) \ + Makefile.am \ + || die "sed failed" + sed -i \ + -e "s:\$*[({]prefix[})]/share:${GAMES_DATADIR}:" \ + configure.in \ + graphics/Makefile.am \ + levels/Makefile.am \ + sounds/Makefile.am \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-fpe.patch + eautoreconf +} + +src_configure() { + filter-flags -fforce-addr + egamesconf \ + --disable-dependency-tracking \ + --disable-launcher1 \ + $(use_enable gtk launcher2) \ + $(use_enable editor) +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-arcade/bomns/files/bomns-0.99.2-fpe.patch b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch new file mode 100644 index 000000000000..3a9e39c241af --- /dev/null +++ b/games-arcade/bomns/files/bomns-0.99.2-fpe.patch @@ -0,0 +1,14 @@ +--- src/bomns.cpp.old 2015-01-03 18:44:59.947689613 +0100 ++++ src/bomns.cpp 2015-01-03 18:47:29.854777276 +0100 +@@ -432,7 +432,10 @@ + if(g_bShowFps) + { + dwFpsTimer = SDL_GetTicks() - dwFpsTimer; +- nFps = 1000l / dwFpsTimer; ++ if (dwFpsTimer) ++ nFps = 1000l / dwFpsTimer; ++ else ++ nFps = 1000l; + } + + diff --git a/games-arcade/bomns/metadata.xml b/games-arcade/bomns/metadata.xml new file mode 100644 index 000000000000..42a753fb437a --- /dev/null +++ b/games-arcade/bomns/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="editor">enables building the level editor</flag> + </use> + <upstream> + <remote-id type="sourceforge">greenridge</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/briquolo/Manifest b/games-arcade/briquolo/Manifest new file mode 100644 index 000000000000..7d196e889668 --- /dev/null +++ b/games-arcade/briquolo/Manifest @@ -0,0 +1 @@ +DIST briquolo-0.5.7.tar.bz2 2588084 SHA256 061055dba524a784d6569fd74f3e4490db264da1356b53d68aae5523416f8f11 SHA512 4ef78193c80ac3554b72149b8da9b5cfd5b8fd68932e5b52666d74642e94a7a3a596dbb6d2865cba526929dd6d9be89743847d5e77b6fbc687c32394bc3be3d2 WHIRLPOOL d1c5f2a2502a6b8621f71d2034d5a34b12e45b6c6b2ce6baf83209c2806a306de6e183493193643d9224a86b0634fc9e2f31186131125ab15d3802a594aa7b51 diff --git a/games-arcade/briquolo/briquolo-0.5.7.ebuild b/games-arcade/briquolo/briquolo-0.5.7.ebuild new file mode 100644 index 000000000000..2690ebcf66e1 --- /dev/null +++ b/games-arcade/briquolo/briquolo-0.5.7.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Breakout with 3D representation based on OpenGL" +HOMEPAGE="http://briquolo.free.fr/en/index.html" +SRC_URI="http://briquolo.free.fr/download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="nls" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/libpng + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-libpng14.patch + # no thanks we'll take care of it. + sed -i \ + -e '/^SUBDIRS/s/desktop//' \ + Makefile.in \ + || die "sed Makefile.in failed" + sed -i \ + -e "/CXXFLAGS/s:-O3:${CXXFLAGS}:" \ + -e 's:=.*share/locale:=/usr/share/locale:' \ + configure \ + || die "sed configure failed" + sed -i \ + -e 's:$(datadir)/locale:/usr/share/locale:' \ + po/Makefile.in.in \ + || die "sed Makefile.in.in failed" +} + +src_configure() { + egamesconf \ + $(use_enable nls) +} + +src_install() { + default + doicon desktop/briquolo.svg + make_desktop_entry briquolo Briquolo + prepgamesdirs +} diff --git a/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch b/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch new file mode 100644 index 000000000000..13e932a1c69e --- /dev/null +++ b/games-arcade/briquolo/files/briquolo-0.5.7-gcc43.patch @@ -0,0 +1,81 @@ +diff -ru src.orig/Constante.cpp src/Constante.cpp +--- src.orig/Constante.cpp 2008-03-22 05:40:33.000000000 -0400 ++++ src/Constante.cpp 2008-06-11 23:16:46.000000000 -0400 +@@ -27,6 +27,7 @@ + #define DATADIR_BRIQUOLO "./" + #define PACKAGE "briquolo" + #endif ++#include <cstdlib> + + #ifdef WIN32 + #define WIN32_LEAN_AND_MEAN +diff -ru src.orig/MOGL/MOGL_EnsembleObjet.cpp src/MOGL/MOGL_EnsembleObjet.cpp +--- src.orig/MOGL/MOGL_EnsembleObjet.cpp 2008-03-24 09:12:36.000000000 -0400 ++++ src/MOGL/MOGL_EnsembleObjet.cpp 2008-06-11 23:17:11.000000000 -0400 +@@ -24,7 +24,8 @@ + #include "MOGL_Armature.h" + #include "MOGL_Peau.h" + //#include +-#include <stdio.h> ++#include <cstdio> ++#include <cstring> + + //#include <mmsystem.h> + +diff -ru src.orig/MOGL/MOGL_GestionnaireObjet.cpp src/MOGL/MOGL_GestionnaireObjet.cpp +--- src.orig/MOGL/MOGL_GestionnaireObjet.cpp 2008-03-24 08:56:13.000000000 -0400 ++++ src/MOGL/MOGL_GestionnaireObjet.cpp 2008-06-11 23:18:45.000000000 -0400 +@@ -21,6 +21,7 @@ + *****************************************************************************/ + #include "../I18n.h" + #include "MOGL_GestionnaireObjet.h" ++#include <cstring> + + bool MOGL_GestionnaireObjet::ChargerObjetASCTriangle(const char * p_NomFichier, const MOGL_GestionnaireTexture & p_GM, + MOGL_Objet & p_Objet) +diff -ru src.orig/MOGL/MOGL_GestionnaireObjet.h src/MOGL/MOGL_GestionnaireObjet.h +--- src.orig/MOGL/MOGL_GestionnaireObjet.h 2006-03-07 15:31:24.000000000 -0500 ++++ src/MOGL/MOGL_GestionnaireObjet.h 2008-06-11 23:20:07.000000000 -0400 +@@ -24,7 +24,8 @@ + + #include <vector> + #include <iostream> +-#include <stdio.h> ++#include <cstdio> ++#include <cstring> + + #include "MOGL_Triangle.h" + #include "MOGL_Objet.h" +diff -ru src.orig/MOGL/MOGL_Image.h src/MOGL/MOGL_Image.h +--- src.orig/MOGL/MOGL_Image.h 2006-03-07 15:53:11.000000000 -0500 ++++ src/MOGL/MOGL_Image.h 2008-06-11 23:20:51.000000000 -0400 +@@ -24,6 +24,7 @@ + + #include "MOGL_Structure.h" + #include <string> ++#include <cstring> + + using namespace std; + +diff -ru src.orig/MOGL/MOGL_Objet.cpp src/MOGL/MOGL_Objet.cpp +--- src.orig/MOGL/MOGL_Objet.cpp 2006-03-07 15:31:24.000000000 -0500 ++++ src/MOGL/MOGL_Objet.cpp 2008-06-11 23:21:05.000000000 -0400 +@@ -20,6 +20,7 @@ + * + *****************************************************************************/ + #include "MOGL_Objet.h" ++#include <cstdlib> + + //MOGL_Objet::MOGL_Objet(): MOGL_ObjetAbstrait(), MOGL_ElementArbre() + MOGL_Objet::MOGL_Objet(): MOGL_Noeud(), _ModifieTriangle(true), _ModifieStrip(true), +diff -ru src.orig/MOGL/MOGL_Peau.cpp src/MOGL/MOGL_Peau.cpp +--- src.orig/MOGL/MOGL_Peau.cpp 2006-03-07 15:31:24.000000000 -0500 ++++ src/MOGL/MOGL_Peau.cpp 2008-06-11 23:21:17.000000000 -0400 +@@ -20,6 +20,7 @@ + * + *****************************************************************************/ + #include "MOGL_Peau.h" ++#include <cstdlib> + + MOGL_Peau::MOGL_Peau(): MOGL_Noeud(), _ModifieTriangle(true) + { diff --git a/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch b/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch new file mode 100644 index 000000000000..d325bac02578 --- /dev/null +++ b/games-arcade/briquolo/files/briquolo-0.5.7-libpng14.patch @@ -0,0 +1,31 @@ +http://bugs.gentoo.org/show_bug.cgi?id=308667 + +--- src/MOGL/MOGL_Image.cpp ++++ src/MOGL/MOGL_Image.cpp +@@ -183,7 +183,7 @@ bool MOGL_Image::ChargerPNG(const char * + info_ptr = png_create_info_struct(png_ptr); + if (info_ptr == NULL) + { +- png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, NULL, NULL); + return false; + } + +@@ -191,7 +191,7 @@ bool MOGL_Image::ChargerPNG(const char * + if (setjmp(png_jmpbuf(png_ptr))) + { + // On libre la mmoire +- png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); ++ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return false; + } + +@@ -235,7 +235,7 @@ bool MOGL_Image::ChargerPNG(const char * + /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */ + if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + /* Expand paletted or RGB images with transparency to full alpha channels diff --git a/games-arcade/briquolo/metadata.xml b/games-arcade/briquolo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/briquolo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/bub-n-bros/Manifest b/games-arcade/bub-n-bros/Manifest new file mode 100644 index 000000000000..69c73305b4d1 --- /dev/null +++ b/games-arcade/bub-n-bros/Manifest @@ -0,0 +1 @@ +DIST bubbros-1.6.2.tar.gz 11568771 SHA256 0ad8a359c4632071a9c85c2684bae32aa0fa278632c49f092dc4078cfb9858c4 SHA512 a05fca8e31655e4bade60cd085f29796d789b349f005c715bf0e37e51f0bacb9d8b9650f3b10470917ee25421d32443e01132816a2f508e359302aa2c6d18ddb WHIRLPOOL 6ed0f68cab694399aef4c75ab0633c9c355cbc5328c72fffacd20612c6cf0cc67b06db65dc808307bd036caba19f1d7e35fedd6c756104e9c1c5ce1054b8a43f diff --git a/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild new file mode 100644 index 000000000000..6988c1a5bfc3 --- /dev/null +++ b/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +MY_P=${P/-n-} +DESCRIPTION="A multiplayer clone of the famous Bubble Bobble game" +HOMEPAGE="http://bub-n-bros.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="MIT Artistic-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="dev-python/pygame[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +RDEPEND=${DEPEND} + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + ecvs_clean + epatch "${FILESDIR}"/${P}-home.patch + python_fix_shebang . +} + +src_compile() { + # Compile the "statesaver" extension module to enable the Clock bonus + cd "${S}"/bubbob + ${EPYTHON} setup.py build_ext -i || die + + # Compile the extension module required for the X Window client + cd "${S}"/display + ${EPYTHON} setup.py build_ext -i || die + + # Build images + cd "${S}"/bubbob/images + ${EPYTHON} buildcolors.py || die +} + +src_install() { + local dir=$(games_get_libdir)/${PN} + + exeinto "${dir}" + doexe *.py + + insinto "${dir}" + doins -r bubbob common display java http2 metaserver + + dodir "${GAMES_BINDIR}" + dosym "${dir}"/BubBob.py "${GAMES_BINDIR}"/bubnbros + + python_optimize "${D}${dir}" + + newicon http2/data/bob.png ${PN}.png + make_desktop_entry bubnbros Bub-n-Bros + + prepgamesdirs +} diff --git a/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch new file mode 100644 index 000000000000..4d2cc317aba3 --- /dev/null +++ b/games-arcade/bub-n-bros/files/bub-n-bros-1.6.2-home.patch @@ -0,0 +1,51 @@ +--- bubbob/images.py 2007-09-08 17:03:41.000000000 +0200 ++++ bubbob/images.py 2007-09-08 17:57:45.000000000 +0200 +@@ -454,7 +454,6 @@ + # check and maybe regenerate the colored image files + file = os.path.join('images', 'buildcolors.py') + g = {'__name__': '__auto__', '__file__': file} +- execfile(file, g) + # replace the entries 'filename_%d.ppm' by a family of entries, + # one for each color + sprmap = {} +--- display/pclient.py 2007-09-08 17:03:41.000000000 +0200 ++++ display/pclient.py 2007-09-08 17:57:45.000000000 +0200 +@@ -162,8 +162,8 @@ + if mode[-1].has_key('cfgfile'): + self.trackcfgfile = mode[-1]['cfgfile'] + else: +- self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR, +- 'http2', 'config.txt') ++ self.trackcfgfile = os.path.join(os.environ.get('HOME'), ++ '.bubnbros') + self.udpsock = None + self.udpsock_low = None + self.udpsock2 = None +--- http2/httppages.py 2007-09-08 17:03:41.000000000 +0200 ++++ http2/httppages.py 2007-09-08 17:57:45.000000000 +0200 +@@ -38,7 +38,7 @@ + + + class PageServer: +- CONFIGFILE = 'config.txt' ++ CONFIGFILE = '.bubnbros' + localservers = None + + def __init__(self, Game): +@@ -46,7 +46,7 @@ + self.seed = hex(random.randrange(0x1000, 0x10000)) + #self.unique_actions = {} + self.localhost = gamesrv.HOSTNAME +- self.filename = os.path.join(LOCALDIR, self.CONFIGFILE) ++ self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE) + data = self.loadoptionfile() + self.globaloptions = Options(data.get('*', {})) + self.localoptions = Options(data.get(self.localhost, {})) +@@ -333,7 +333,6 @@ + 'buildcolors.py') + if os.path.exists(file): + g = {'__name__': '__auto__', '__file__': file} +- execfile(file, g) + + if port: + address = '%s:%s' % (host, port) diff --git a/games-arcade/bub-n-bros/metadata.xml b/games-arcade/bub-n-bros/metadata.xml new file mode 100644 index 000000000000..a24d22ec375b --- /dev/null +++ b/games-arcade/bub-n-bros/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">bub-n-bros</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/bumprace/Manifest b/games-arcade/bumprace/Manifest new file mode 100644 index 000000000000..295d5d091258 --- /dev/null +++ b/games-arcade/bumprace/Manifest @@ -0,0 +1 @@ +DIST bumprace-1.5.3.tar.gz 906459 SHA256 000fe3fe517546c84a9173b37bafa511be1662d758559035a20372c141ed1b3e SHA512 35bc35e82f587dce9f096f68b74f4fe0c0020f7ee2f972f9c0a99473a2dfbd9e61412c030a93194165d9d5968f6b68a6d1656f8e77dd46352f00a53e47ad94c6 WHIRLPOOL 28b4e4c10be88faa76235b6260c27a040418e7093e29422834c6eba0a1d1fe4e56f6d1115247166a0ad8ae6b1053dde8799be4ba2aed7c2d84eec701f93475ee diff --git a/games-arcade/bumprace/bumprace-1.5.3.ebuild b/games-arcade/bumprace/bumprace-1.5.3.ebuild new file mode 100644 index 000000000000..eda218b4c496 --- /dev/null +++ b/games-arcade/bumprace/bumprace-1.5.3.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="simple arcade racing game" +HOMEPAGE="http://www.linux-games.com/bumprace/" +SRC_URI="http://user.cs.tu-berlin.de/~karlb/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer[mod] + virtual/jpeg:0 + sys-libs/zlib + media-libs/sdl-image[gif,jpeg,png]" +RDEPEND=${DEPEND} + +src_install() { + default + make_desktop_entry bumprace BumpRace + prepgamesdirs +} diff --git a/games-arcade/bumprace/metadata.xml b/games-arcade/bumprace/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/bumprace/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/burgerspace/Manifest b/games-arcade/burgerspace/Manifest new file mode 100644 index 000000000000..458d0ab61f77 --- /dev/null +++ b/games-arcade/burgerspace/Manifest @@ -0,0 +1 @@ +DIST burgerspace-1.9.2.tar.gz 505314 SHA256 34b0feccf543b11f9f9a182203d67cd453675255fed4b745e4e74c121b211bf2 SHA512 b2af53d6fcf1d52164870147aa8a5b08941ecb62f3d9bbce5c2872885923057481c21bc34f1e19b8aeb8a76acadd9a11c11fa7b6304438610e8a23e043b7deee WHIRLPOOL a164c6a8a6c7e0aaad1e427bd88103a03260fa77b4d05ee8d9af72d468f7744c7cf212f2e8431b7529c82106ce3334eaff75983e7a437fa5658f1d9d7d96010d diff --git a/games-arcade/burgerspace/burgerspace-1.9.2.ebuild b/games-arcade/burgerspace/burgerspace-1.9.2.ebuild new file mode 100644 index 000000000000..637ac3cc3a02 --- /dev/null +++ b/games-arcade/burgerspace/burgerspace-1.9.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools games + +DESCRIPTION="Clone of the 1982 BurgerTime video game by Data East" +HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/burgerspace.html" +SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="network" +RESTRICT="test" # doesn't really test anything + +RDEPEND=">=dev-games/flatzebra-0.1.6" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \ + -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \ + -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \ + src/Makefile.am \ + || die + sed -i \ + -e "/Categories/s:Application;::" \ + -e "/Icon/s:\..*::" \ + -e "/Terminal/s:0:false:" \ + src/burgerspace.desktop.in \ + || die + eautoreconf +} + +src_configure() { + egamesconf \ + $(use_with network) +} + +src_install() { + emake -C src DESTDIR="${D}" install + doman doc/${PN}.6 + dodoc AUTHORS NEWS README THANKS + prepgamesdirs +} diff --git a/games-arcade/burgerspace/metadata.xml b/games-arcade/burgerspace/metadata.xml new file mode 100644 index 000000000000..4d4304ba05a8 --- /dev/null +++ b/games-arcade/burgerspace/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> + <use> + <flag name="network">Enable client-server support</flag> + </use> +</pkgmetadata> diff --git a/games-arcade/cavezofphear/Manifest b/games-arcade/cavezofphear/Manifest new file mode 100644 index 000000000000..17a59039d63e --- /dev/null +++ b/games-arcade/cavezofphear/Manifest @@ -0,0 +1 @@ +DIST phear-0.5.1.tar.bz2 25750 SHA256 9af83c2246dc05531e3d1d11ea931fe38e7086b513fb8e295c7e95b54c68e687 SHA512 23326a63acc06e77a1dd3505345940f8ef31b671282e00f623b181fe1cdbdf1b7e4b37a6e91ea430348a02239ed1450736dc075ea3af3eee0e8acb115aa89f3b WHIRLPOOL 4891f223c91728164e785b781ec957f0c65b31d2e2b32a3db68d3952695e68728bbec566a5b07847ae6157ee0075edd19b7f84fbee8ee458f1690670dc0e9683 diff --git a/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild new file mode 100644 index 000000000000..764940f77366 --- /dev/null +++ b/games-arcade/cavezofphear/cavezofphear-0.5.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A boulder dash / digger-like game for console using ncurses" +HOMEPAGE="http://www.x86.no/cavezofphear/" +SRC_URI="http://www.x86.no/${PN}/${P/cavezof}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 ~sparc x86 ~x86-fbsd" +IUSE="" + +RDEPEND=">=sys-libs/ncurses-5" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${P/cavezof/} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:get_data_dir(.):\"${GAMES_DATADIR}/${PN}/\":" \ + src/{chk.c,main.c,gplot.c} \ + || die +} + +src_install() { + dogamesbin src/phear + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* + dodoc ChangeLog README* TODO + prepgamesdirs +} diff --git a/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch new file mode 100644 index 000000000000..fbf79af44519 --- /dev/null +++ b/games-arcade/cavezofphear/files/cavezofphear-0.5.1-gentoo.patch @@ -0,0 +1,36 @@ +diff -ru phear-0.5.1.orig/Makefile phear-0.5.1/Makefile +--- phear-0.5.1.orig/Makefile 2007-02-27 06:21:55.000000000 -0500 ++++ phear-0.5.1/Makefile 2013-01-18 02:09:56.403224104 -0500 +@@ -2,7 +2,7 @@ + DESTDIR_DATA = /usr/local/share + + make: +- cd src && make ++ $(MAKE) -C src phear + clean: + rm -f phear editor + install: +diff -ru phear-0.5.1.orig/src/Makefile phear-0.5.1/src/Makefile +--- phear-0.5.1.orig/src/Makefile 2011-12-12 07:26:03.000000000 -0500 ++++ phear-0.5.1/src/Makefile 2013-01-18 02:10:48.218423433 -0500 +@@ -2,10 +2,8 @@ + + DESTDIR = .. + +-CC = gcc + INSTALL = install +-CFLAGS ?= -s -Wall -O2 +-LDFLAGS += -lncurses ++LDLIBS = `pkg-config ncurses --libs` + + all: phear install clean + +@@ -13,7 +11,7 @@ + $(CC) $(CFLAGS) -c $^ -o $@ + + phear: $(OBJS) +- $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS} ++ $(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS} $(LDLIBS) + + install: install-game + diff --git a/games-arcade/cavezofphear/metadata.xml b/games-arcade/cavezofphear/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/cavezofphear/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/cdogs-sdl/Manifest b/games-arcade/cdogs-sdl/Manifest new file mode 100644 index 000000000000..bf9fbba53866 --- /dev/null +++ b/games-arcade/cdogs-sdl/Manifest @@ -0,0 +1,2 @@ +DIST cdogs-data-2007-07-06.tar.bz2 218810 SHA256 6c5a10dee1a131f353853223fddf9208c0695f076d4e18a22e9f82800a94ebdc SHA512 9e645d64bcc0b99df9fb113f7103590eb8045ca9439700279c8ea55a6277d10fc38aff38bb1137887bc5697c505fe18e15d6c62eaf2790c065b1261fa7418a84 WHIRLPOOL aa5be5e797849ffeae01990462c8793bfd01b49685e2279239400904b9edb96759dbd4b33ee5759b99bdb9b2fdc76a2607d0cb9a34fe972ceb0fc6e669937865 +DIST cdogs-sdl-0.4.tar.bz2 164804 SHA256 63b7cabf6040c939735b4776e3f0fa90df711ee5a94b2387afca2d07b9876fd6 SHA512 69fbac533207e38c85cf0f71db47df50405a5ff220a6662f7e186d1f54c4181ee56e1ff8049a427acec7fcf0529b8df66db36a693978bb0aa04eb0594a8b5adc WHIRLPOOL 3d615585ee3d3cc8296d68fee91c160c70e891eebbee6a951a04f8a6e049d056bc312975977a51efe6e4d5bf15010eb9c60d269747f93b3143137405ef14338f diff --git a/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild b/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild new file mode 100644 index 000000000000..ec3c7898a736 --- /dev/null +++ b/games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +CDOGS_DATA="cdogs-data-2007-07-06" +DESCRIPTION="A port of the old DOS arcade game C-Dogs" +HOMEPAGE="http://lumaki.com/code/cdogs" +SRC_URI="http://icculus.org/cdogs-sdl/files/src/${P}.tar.bz2 + http://icculus.org/cdogs-sdl/files/data/${CDOGS_DATA}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-mixer" + +S=${WORKDIR}/${P}/src + +src_unpack() { + unpack ${A} + mv ${CDOGS_DATA} ${P}/data || die "Failed moving data around" +} + +src_prepare() { + sed -i \ + -e "/^CF_OPT/d" \ + -e "/^CC/d" \ + Makefile \ + || die "sed failed" + sed -i \ + -e "/\bopen(/s/)/, 0666)/" \ + files.c \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-64bit.patch +} + +src_compile() { + emake I_AM_CONFIGURED=yes \ + SYSTEM="\"linux\"" \ + STRIP=true \ + DATADIR="${GAMES_DATADIR}/${PN}" \ + cdogs +} + +src_install() { + dogamesbin cdogs + insinto "${GAMES_DATADIR}/${PN}" + doins -r ../data/* + newicon ../data/cdogs_icon.png ${PN}.png + dodoc ../doc/{README,AUTHORS,ChangeLog,README_DATA,TODO,original_readme.txt} + make_desktop_entry "cdogs -fullscreen" C-Dogs + prepgamesdirs +} diff --git a/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch b/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch new file mode 100644 index 000000000000..bcab13c0ebfd --- /dev/null +++ b/games-arcade/cdogs-sdl/files/cdogs-sdl-0.4-64bit.patch @@ -0,0 +1,48 @@ +--- src/grafx.c ++++ src/grafx.c +@@ -216,12 +216,6 @@ + SDL_VideoQuit(); + } + +-typedef struct _Pic { +- short int w; +- short int h; +- char *data; +-} Pic; +- + int ReadPics(const char *filename, void **pics, int maxPics, + color * palette) + { +@@ -241,12 +235,12 @@ + fread(&size, sizeof(size), 1, f); + swap16(&size); + if (size) { +- Pic *p = sys_mem_alloc(size); ++ unsigned char *p = sys_mem_alloc(size); + +- f_read16(f, &p->w, 2); +- f_read16(f, &p->h, 2); ++ f_read16(f, &p[0], 2); // w ++ f_read16(f, &p[2], 2); // h + +- f_read(f, &p->data, size - 4); ++ f_read(f, &p[4], size - 4); // data + + pics[i] = p; + +@@ -278,11 +272,11 @@ + fread(&size, sizeof(size), 1, f); + swap16(&size); + if (size) { +- Pic *p = sys_mem_alloc(size); ++ unsigned char *p = sys_mem_alloc(size); + +- f_read16(f, &p->w, 2); +- f_read16(f, &p->h, 2); +- f_read(f, &p->data, size - 4); ++ f_read16(f, &p[0], 2); // w ++ f_read16(f, &p[2], 2); // h ++ f_read(f, &p[4], size - 4); // data + + pics[i] = p; + diff --git a/games-arcade/cdogs-sdl/metadata.xml b/games-arcade/cdogs-sdl/metadata.xml new file mode 100644 index 000000000000..0999c6a1d83a --- /dev/null +++ b/games-arcade/cdogs-sdl/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +C-Dogs is an arcade shoot-em-up which lets players work alone and +cooperatively during missions or fight against each other in the "dogfight" +deathmatch mode. The DOS version of C-Dogs came with severla built in missions +and dogfight maps. This version does too. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/ceferino/Manifest b/games-arcade/ceferino/Manifest new file mode 100644 index 000000000000..361afea91679 --- /dev/null +++ b/games-arcade/ceferino/Manifest @@ -0,0 +1 @@ +DIST ceferino-0.97.8.tar.gz 2380632 SHA256 6f0f2674a8a968950498570b89123e341dca50499d255e7bcdf3703a85aa3074 SHA512 459e5b5e19ff9cfc8bd82af856dea68d5f8694ff2b4a04e35c1b3fa1d065c8d8c60025b5e9ea1918eae4bf12a9ca354187513a3cb2813a55d39ef57deb2a7d05 WHIRLPOOL f989e81fc032ea6c65486d07ce80834052aa7ac31b3aceebe1580212817a3f59f6e0bb2b9fd1fa0fe1d14c11af164965675d164b836b7c032a0ddce21c39d3d4 diff --git a/games-arcade/ceferino/ceferino-0.97.8.ebuild b/games-arcade/ceferino/ceferino-0.97.8.ebuild new file mode 100644 index 000000000000..21615df9a159 --- /dev/null +++ b/games-arcade/ceferino/ceferino-0.97.8.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Super-Pang clone (destroy bouncing balloons with your grapnel)" +HOMEPAGE="http://www.loosersjuegos.com.ar/juegos/ceferino" +SRC_URI="http://www.loosersjuegos.com.ar/juegos/ceferino/descargas/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="nls" + +RDEPEND=">=media-libs/libsdl-1.2 + >=media-libs/sdl-image-1.2 + >=media-libs/sdl-mixer-1.2 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc44.patch + sed -i \ + -e '/^\(gnu\)\?localedir /s:= .*:= /usr/share/locale:' \ + po/Makefile.in.in \ + || die "sed failed" + sed -i \ + -e '/^INCLUDES/s:\$(datadir)/locale:/usr/share/locale:' \ + src/Makefile.in \ + || die "sed failed" +} + +src_configure() { + egamesconf $(use_enable nls) +} + +src_install() { + default + newicon data/ima/icono.png ${PN}.png + make_desktop_entry ceferino "Don Ceferino Hazaña" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + if ! has_version "media-libs/sdl-mixer[mod]" ; then + ewarn + ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer" + ewarn "with the \"mod\" USE flag turned on." + ewarn + fi +} diff --git a/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch b/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch new file mode 100644 index 000000000000..96944dd382bb --- /dev/null +++ b/games-arcade/ceferino/files/ceferino-0.97.8-gcc44.patch @@ -0,0 +1,11 @@ +--- src/nivel.h ++++ src/nivel.h +@@ -34,7 +34,7 @@ + class nivel + { + public: +- void iniciar(juego *_pjuego, grafico *grafico, grafico *pfondos, SDL_Surface *fondo); ++ void iniciar(juego *_pjuego, grafico *_grafico, grafico *pfondos, SDL_Surface *fondo); + int avanzar_nivel(int salto = 1); + int reiniciar_nivel(void); + int get_dist_suelo(int x, int y, int max); diff --git a/games-arcade/ceferino/metadata.xml b/games-arcade/ceferino/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/ceferino/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/circuslinux/Manifest b/games-arcade/circuslinux/Manifest new file mode 100644 index 000000000000..a9c89b263ed3 --- /dev/null +++ b/games-arcade/circuslinux/Manifest @@ -0,0 +1 @@ +DIST circuslinux-1.0.3.tar.gz 1253839 SHA256 bf9550ebd598a9e7d93a20d80ff466475122f8b023314bb1e07c31e8c608ce8a SHA512 292bcaad39342ad69862f1add36b11505ca5f2601637a8db6fad438c5a4b32d7801bc7e6c08b903b0fb8bf68dcb3ec8d968fb913cde65941b9b9ac64b5a5266f WHIRLPOOL 735d87965107297f139971bcdcb5bb10bd996f5a355062c207f656c65089b305eb96bfc1c76a9a1c61a9a1a0d092ab386b8fc87b359470e8eec58fe9925fe4a3 diff --git a/games-arcade/circuslinux/circuslinux-1.0.3.ebuild b/games-arcade/circuslinux/circuslinux-1.0.3.ebuild new file mode 100644 index 000000000000..1ead4fc8861a --- /dev/null +++ b/games-arcade/circuslinux/circuslinux-1.0.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="clone of the Atari 2600 game \"Circus Atari\"" +SRC_URI="ftp://ftp.sonic.net/pub/users/nbs/unix/x/circus-linux/${P}.tar.gz" +HOMEPAGE="http://www.newbreedsoftware.com/circus-linux/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ~sparc x86" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-image[png] + media-libs/sdl-mixer[mod]" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "/^install-data-am/d" \ + Makefile.in \ + || die + sed -i \ + -e 's/\$(pkgdatadir)/$(DESTDIR)&/' \ + data/Makefile.in \ + || die +} + +src_install () { + emake DESTDIR="${D}" install + newicon data/images/${PN}-icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Circus Linux!" + dodoc *.txt + prepgamesdirs +} diff --git a/games-arcade/circuslinux/metadata.xml b/games-arcade/circuslinux/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/circuslinux/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/cob/Manifest b/games-arcade/cob/Manifest new file mode 100644 index 000000000000..cf7ef0b556fc --- /dev/null +++ b/games-arcade/cob/Manifest @@ -0,0 +1 @@ +DIST cob-0.9.tar.gz 712618 SHA256 e065bc5a3dabb7c4709cbfc4c44e683c815b95c2a0c4d80d26feb3e4833cf60e SHA512 1a329bb06a25137c1dc9d65cff949ed1b0ca7445ecf897375be71581c35f0bc563008fc7607d650a660a405f2282b0329148487bd29b6a053478b61d932bdf4d WHIRLPOOL 58932942761cec6cf8df27bea86b84786c6655c263fb58c55dcb826901879f0e3501dbf010d7784c2780c881574a0995e1a705f90fcce7fb4286099949f43fd1 diff --git a/games-arcade/cob/cob-0.9.ebuild b/games-arcade/cob/cob-0.9.ebuild new file mode 100644 index 000000000000..b1812b28dc82 --- /dev/null +++ b/games-arcade/cob/cob-0.9.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Cruising on Broadway: a painting-type game" +HOMEPAGE="http://www.autismuk.freeserve.co.uk/" +SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[joystick,sound,video]" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc44.patch +} + +src_install() { + default + prepgamesdirs +} diff --git a/games-arcade/cob/files/cob-0.9-gcc43.patch b/games-arcade/cob/files/cob-0.9-gcc43.patch new file mode 100644 index 000000000000..6b1f574628df --- /dev/null +++ b/games-arcade/cob/files/cob-0.9-gcc43.patch @@ -0,0 +1,26 @@ +--- cob/menu.cpp ++++ cob/menu.cpp +@@ -16,6 +16,7 @@ + ***************************************************************************/ + + #include "cob.hxx" ++#include <cstring> + + // ************************************************************************************************************************** + // +--- cob/sdw.hxx ++++ cob/sdw.hxx +@@ -19,6 +19,7 @@ +
+ #include <iostream>
+ #include <string>
++#include <cstdlib>
+
+ namespace SDLWrapper // It's all nicely in a namespace SDLWrapper
+ {
+@@ -192,4 +193,4 @@ + AudioNoise(int l) : AudioBeep(0,l) { }
+ };
+
+-};
++}
diff --git a/games-arcade/cob/files/cob-0.9-gcc44.patch b/games-arcade/cob/files/cob-0.9-gcc44.patch new file mode 100644 index 000000000000..dd90b388e6d8 --- /dev/null +++ b/games-arcade/cob/files/cob-0.9-gcc44.patch @@ -0,0 +1,30 @@ +--- cob/game.cpp ++++ cob/game.cpp +@@ -15,6 +15,7 @@ + * * + ***************************************************************************/ + ++#include <cstdio> + #include "cob.hxx" + + // ************************************************************************************************************************** +--- cob/main.cpp ++++ cob/main.cpp +@@ -15,6 +15,7 @@ + * * + ***************************************************************************/ + ++#include <cstdio> + #include "cob.hxx" + + // ************************************************************************************************************************** +--- cob/map.cpp ++++ cob/map.cpp +@@ -15,6 +15,7 @@ + * * + ***************************************************************************/ + ++#include <cstdio> + #include "cob.hxx" + + // ************************************************************************************************************************** diff --git a/games-arcade/cob/metadata.xml b/games-arcade/cob/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/cob/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest new file mode 100644 index 000000000000..b2b9fc037f1b --- /dev/null +++ b/games-arcade/commandergenius/Manifest @@ -0,0 +1 @@ +DIST CGenius-1.8.0.0-Release-Source.tar.gz 22863637 SHA256 131cbc12d711d1c168baf89f1f9e0e4e9560049c21f42399d913c09c619e6153 SHA512 4e4dc91a5cfabfcace9db2fa85fe2d3dbe91396760cdf37372a12270782ac29906cbeb05b7e48bdf3a64eb042d3b7e209d3370f20ad8b8dfbc1d8c59a95abba9 WHIRLPOOL e8c3068a956fc62ecbd6d134cc4d16e96249555463b41e4193cf6796229a5ecc3e02398914d34ac8cc481978d6df0107c70d6ace635f05e3ae742efd3150ee17 diff --git a/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild b/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild new file mode 100644 index 000000000000..2e3466b7c7b1 --- /dev/null +++ b/games-arcade/commandergenius/commandergenius-1.8.0.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake-utils eutils games + +MY_P=CGenius-${PV}-Release-Source +DESCRIPTION="Open Source Commander Keen clone (needs original game files)" +HOMEPAGE="http://clonekeenplus.sourceforge.net" +SRC_URI="mirror://sourceforge/clonekeenplus/CGenius/V${PV:0:3}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="opengl tremor" +RESTRICT="mirror" # contains keen files, but we do not install them + +RDEPEND="media-libs/libsdl2[X,opengl?,sound,video] + media-libs/sdl2-image + opengl? ( virtual/opengl ) + tremor? ( media-libs/tremor ) + !tremor? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + dev-libs/boost + virtual/pkgconfig" + +S=${WORKDIR}/CGenius-${PV}-Release-Source + +src_prepare() { + epatch "${FILESDIR}"/${P}-install.patch + + rm -rf vfsroot || die + + cat <<-EOF > version.h + #ifndef __CG__VERSION_H__ + #define __CG__VERSION_H__ + + #define CGVERSION "${PV}-Release" + + #endif + EOF + + sed -i \ + -e '/INCLUDE(package.cmake)/d' \ + CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DAPPDIR="${GAMES_BINDIR}" + -DSHAREDIR="/usr/share" + -DGAMES_SHAREDIR="${GAMES_DATADIR}" + -DDOCDIR="/usr/share/doc/${PF}" + -DBUILD_TARGET="LINUX" + $(cmake-utils_use opengl OPENGL) + $(cmake-utils_use tremor TREMOR) + $(cmake-utils_use !tremor OGG) + -DUSE_SDL2=1 + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon CGLogo.png ${PN}.png + newgamesbin "${FILESDIR}"/commandergenius-wrapper commandergenius + if [[ -e "${ED}${GAMES_BINDIR}"/CGeniusExe ]] ; then + mv "${ED}${GAMES_BINDIR}"/CGeniusExe \ + "${ED}${GAMES_BINDIR}"/CommanderGenius || die + fi + + make_desktop_entry commandergenius + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Check your settings in ~/.CommanderGenius/cgenius.cfg" + elog "after you have started the game for the first time." + use opengl && elog "You may also want to set \"OpenGL = true\"" + elog + elog "Run the game via:" + elog " 'commandergenius [path-to-keen-data]'" + elog "or add your keen data dir to the search paths in cgenius.cfg" +} diff --git a/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch b/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch new file mode 100644 index 000000000000..ea502bdde9bb --- /dev/null +++ b/games-arcade/commandergenius/files/commandergenius-1.8.0.0-install.patch @@ -0,0 +1,20 @@ +--- CGenius-1.8.0.0-Release-Source.orig/src/install.cmake ++++ CGenius-1.8.0.0-Release-Source/src/install.cmake +@@ -22,7 +22,7 @@ + + # This will copy the resources files to the proper directory + IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot") +- INSTALL(DIRECTORY vfsroot/ ++ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}vfsroot/ + DESTINATION ${DATADIR}) + ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot") + +@@ -31,7 +31,7 @@ + DESTINATION ${DOCDIR}) + + # This will copy the readme file. +-INSTALL(FILES changelog.txt ++INSTALL(FILES ${CMAKE_SOURCE_DIR}/changelog.txt + DESTINATION ${DOCDIR}) + + # Windows might not have those dlls so we ship them with the packages diff --git a/games-arcade/commandergenius/files/commandergenius-wrapper b/games-arcade/commandergenius/files/commandergenius-wrapper new file mode 100644 index 000000000000..0fa5243a5df0 --- /dev/null +++ b/games-arcade/commandergenius/files/commandergenius-wrapper @@ -0,0 +1,18 @@ +#!/bin/sh + +# CommanderGenius by default searches pwd for keen data which can cause +# massive load/lag depending on which dir you are currently in. +# This wrapper cd's into ~/.CommanderGenius unless you pass a directory +# on the command line which is used as additional search path then. +# +# use: commandergenius [path-to-keen-dir] + +if [ -z $1 ] ; then + SEARCHDIR=~/.CommanderGenius +else + SEARCHDIR="$1" +fi + +cd ${SEARCHDIR} + +exec CommanderGenius "$@" diff --git a/games-arcade/commandergenius/metadata.xml b/games-arcade/commandergenius/metadata.xml new file mode 100644 index 000000000000..7fb3a298b1c0 --- /dev/null +++ b/games-arcade/commandergenius/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="tremor"> + Use <pkg>media-libs/tremor</pkg> as ogg decoder + instead of <pkg>media-libs/libvorbis</pkg> + </flag> + </use> + <upstream> + <remote-id type="sourceforge">clonekeenplus</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/conveysdl/Manifest b/games-arcade/conveysdl/Manifest new file mode 100644 index 000000000000..3dc75202c658 --- /dev/null +++ b/games-arcade/conveysdl/Manifest @@ -0,0 +1 @@ +DIST conveysdl.1.3.tar 429568 SHA256 d0de3f8435b6189d2f40fbe5a28f903fbd46d94b53daf10efa53b879346c81cf SHA512 fe6f91cdd63ae1019cb99613618e44ceeddb4080ad5e50bd8ce0abf27e057617d3658a29b2faf668cbc3b0887f1a4a05cadadb060f69d850c3d85c9e7190dd8a WHIRLPOOL 3a4de5f5305f44626afd9aef5365b1048fb4972593cf31d3ccff3d9d57acd0fe4304eeaec7b4dd0b005064ef038d87a0a2eb3041fb994df53de534ef997b0f8c diff --git a/games-arcade/conveysdl/conveysdl-1.3.ebuild b/games-arcade/conveysdl/conveysdl-1.3.ebuild new file mode 100644 index 000000000000..76e33015e9e6 --- /dev/null +++ b/games-arcade/conveysdl/conveysdl-1.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ~ppc 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..d3c2cc926f0b --- /dev/null +++ b/games-arcade/conveysdl/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/cosmosmash/Manifest b/games-arcade/cosmosmash/Manifest new file mode 100644 index 000000000000..bce3b2a91b03 --- /dev/null +++ b/games-arcade/cosmosmash/Manifest @@ -0,0 +1 @@ +DIST cosmosmash-1.4.7.tar.gz 906213 SHA256 3f0af3355e31fef9413d3c318f02b64ad6c427f0048d6e15868e51a5ac22b14b SHA512 1eaf8b05550c6f96e6392f6ba4565700cd4a9cac66dd57d634569caf9b4dfaf4917b3b9973153d4e6e0ddcd65c68d5242faae7c4f516c07c2e07d1b2f3b838b9 WHIRLPOOL 7234288c3e6a90b5625e203c221e7c662ac6ef7968134c6c1f963d6405812bfbef986179db93c1914010406e1f02312f3059a9722214324f41a2ddbd33c2b668 diff --git a/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild b/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild new file mode 100644 index 000000000000..758438090bab --- /dev/null +++ b/games-arcade/cosmosmash/cosmosmash-1.4.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools games + +DESCRIPTION="A space rock shooting video game" +HOMEPAGE="http://perso.b2b2c.ca/sarrazip/dev/cosmosmash.html" +SRC_URI="http://perso.b2b2c.ca/sarrazip/dev/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="test" # uses the sound card which portage user might not be available. + +RDEPEND=">=dev-games/flatzebra-0.1.6" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed -i \ + -e "/^pkgsounddir/ s:sounds.*:\$(PACKAGE)/sounds:" \ + -e "/^desktopentrydir/ s:=.*:=/usr/share/applications:" \ + -e "/^pixmapdir/ s:=.*:=/usr/share/pixmaps:" \ + src/Makefile.am \ + || die + eautoreconf +} + +src_install() { + emake -C src DESTDIR="${D}" install + doman doc/${PN}.6 + dodoc AUTHORS NEWS README THANKS + prepgamesdirs +} diff --git a/games-arcade/cosmosmash/metadata.xml b/games-arcade/cosmosmash/metadata.xml new file mode 100644 index 000000000000..112b2c3dc17e --- /dev/null +++ b/games-arcade/cosmosmash/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Afternoon Stalker, a clone of the 1981 Night Stalker video game by Mattel +Electronics. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/crack-attack/Manifest b/games-arcade/crack-attack/Manifest new file mode 100644 index 000000000000..de9cb9a28c5c --- /dev/null +++ b/games-arcade/crack-attack/Manifest @@ -0,0 +1 @@ +DIST crack-attack-1.1.14.tar.bz2 801404 SHA256 1e23e019f8740cd01fb3fbbb7903137b1e8971a8e9d0692da069106b8a0382e8 SHA512 1afc1a59e25359a82cabc33a1f999e1166dcf74c031c29a366f8414989bc7c32b9a40e467ee40a37901f2bd08f4569fed25c4d3021b1a75254614840410a7bfa WHIRLPOOL f0509c015e779bffae0ed7c4ac370fa5d9aa10d9e6546a14468c45f84a9d1de8457cc2b7c45fc479d06101f4424e6d699174b40375ebd6c5c224a707f31df731 diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild new file mode 100644 index 000000000000..369b2cedb050 --- /dev/null +++ b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Addictive OpenGL-based block game" +HOMEPAGE="http://www.nongnu.org/crack-attack/" +SRC_URI="http://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ia64 ppc sparc x86" +IUSE="gtk sdl" + +RDEPEND="media-libs/freeglut + sdl? ( media-libs/libsdl + media-libs/sdl-mixer ) + gtk? ( >=x11-libs/gtk+-2.6:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-glut.patch \ + "${FILESDIR}"/${P}-gcc43.patch + sed -i 's/-lXmu//' src/gtk-gui/Makefile.in src/Makefile.in || die + touch -r . * */* +} + +src_configure() { + egamesconf \ + --disable-binreloc \ + $(use_enable sdl sound) \ + $(use_enable gtk) +} + +src_install() { + default + dohtml -A xpm doc/* + doicon data/crack-attack.xpm + make_desktop_entry crack-attack Crack-attack + prepgamesdirs +} diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch new file mode 100644 index 000000000000..009d062f2eac --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-gcc43.patch @@ -0,0 +1,10 @@ +--- src/Game.h ++++ src/Game.h +@@ -34,6 +34,7 @@ + #include <climits> + #include <cstdlib> + #include <cmath> ++#include <cstring> + + #ifdef __MINGW32__ + # include <windows.h> diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch new file mode 100644 index 000000000000..fc16c1b8bc4e --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch @@ -0,0 +1,14 @@ +Fix from upstream to work with newer freegluts. + +http://bugs.gentoo.org/97954 + +--- src/Attack.cxx ++++ src/Attack.cxx +@@ -83,6 +83,7 @@ + int height = -1, width = -1; + + player_name[0] = '\0'; ++ glutInit(&argc, argv); + parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width); + run_crack_attack(mode, port, host_name, player_name, height, width); + diff --git a/games-arcade/crack-attack/metadata.xml b/games-arcade/crack-attack/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/crack-attack/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/criticalmass/Manifest b/games-arcade/criticalmass/Manifest new file mode 100644 index 000000000000..ce4717f7622d --- /dev/null +++ b/games-arcade/criticalmass/Manifest @@ -0,0 +1 @@ +DIST CriticalMass-1.0.2.tar.bz2 5122126 SHA256 846db2d30d39e559612328594084a7aef980169948b2cfaee9fddec8ffdef724 SHA512 af3200adc4b6ed9f24eaa89ef5b2f31e8d09e402d0c2eef8db604afcbb2d36bad48e76c3c11c1b2410d2d4e0ffd8554e2e9749a8c8cc4752b4636b8919a66037 WHIRLPOOL 647dc5b82069cb1c26335f3b590f9fe675e319310933f83799c1b4ab2319ba51285c6dc260c110f0e61b76e8f4cf9b3e0ede4bb8f90a49b0cfa31c83b64ed273 diff --git a/games-arcade/criticalmass/criticalmass-1.0.2.ebuild b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild new file mode 100644 index 000000000000..2864aacd9f3a --- /dev/null +++ b/games-arcade/criticalmass/criticalmass-1.0.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="SDL/OpenGL space shoot'em up game" +HOMEPAGE="http://criticalmass.sourceforge.net/" +SRC_URI="mirror://sourceforge/criticalmass/CriticalMass-${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/sdl-mixer + media-libs/sdl-image[png] + media-libs/libpng:0 + virtual/opengl + net-misc/curl" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/CriticalMass-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-system_curl.patch \ + "${FILESDIR}"/${P}-libpng14.patch \ + "${FILESDIR}"/${P}-cflags.patch \ + "${FILESDIR}"/${P}-libpng15.patch + rm -rf curl + eautoreconf +} + +src_install() { + default + rm -f "${D}${GAMES_BINDIR}/Packer" + dohtml Readme.html + newicon critter.png ${PN}.png + make_desktop_entry critter "Critical Mass" + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + if ! has_version "media-libs/sdl-mixer[mod]" ; then + ewarn + ewarn "To hear music, you will have to rebuild media-libs/sdl-mixer" + ewarn "with the \"mod\" USE flag turned on." + ewarn + fi +} diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch new file mode 100644 index 000000000000..8b801e51c2cb --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-cflags.patch @@ -0,0 +1,27 @@ +--- configure.in.orig 2011-07-20 11:23:19.849122541 -0400 ++++ configure.in 2011-07-20 11:24:28.169713094 -0400 +@@ -35,9 +35,6 @@ + AM_CONDITIONAL(APPLE,test "x$TARGET" = xAPPLE) + AM_CONDITIONAL(WIN32,test "x$TARGET" = xWIN32) + +-CFLAGS="" +-CXXFLAGS="" +- + if test "x$GCC" = xyes; then + CFLAGS="$CFLAGS -W -Wall" + CXXFLAGS="$CXXFLAGS -W -Wall -fno-exceptions" +@@ -51,14 +48,6 @@ + CXXFLAGS="$CXXFLAGS -g" + fi + +-AC_ARG_ENABLE(optimize, +-[ --enable-optimize=level Enable optimization [default=2]], +- enable_optmize=$enableval, enable_optimize=2) +-if test "x$enable_optimize" != "xno" ; then +- CFLAGS="$CFLAGS -O$enable_optimize" +- CXXFLAGS="$CXXFLAGS -O$enable_optimize" +-fi +- + AC_ARG_ENABLE(dyngl, + [ --enable-dyngl Load GL library dynamically [default=off]], + enable_dyngl=$enableval, enable_dyngl=off) diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch new file mode 100644 index 000000000000..e57c11f5af28 --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-gcc43.patch @@ -0,0 +1,101 @@ +--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.cpp 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxml.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -21,10 +21,12 @@ + distribution.
+ */
+
+ #include "tinyxml.h"
+
++#include <cstring> ++ +
+ TiXmlNode::TiXmlNode( NodeType _type )
+ {
+ parent = 0;
+ type = _type;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxml.h 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxml.h 2008-04-18 19:40:35.000000000 +0200 +@@ -28,10 +28,11 @@ + #ifdef _MSC_VER
+ #pragma warning( disable : 4530 )
+ #pragma warning( disable : 4786 )
+ #endif
+
++#include <cstdlib> + #include <string>
+ #include <stdio.h>
+ #include <assert.h>
+
+ class TiXmlDocument;
+--- CriticalMass-1.0.0.orig/tinyxml/tinyxmlparser.cpp 2003-03-03 03:34:58.000000000 +0100 ++++ CriticalMass-1.0.0/tinyxml/tinyxmlparser.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -23,10 +23,12 @@ +
+
+ #include "tinyxml.h"
+ #include <ctype.h>
+
++#include <cstring> ++ + const char* TiXmlBase::SkipWhiteSpace( const char* p )
+ {
+ while ( p && *p &&
+ ( isspace( *p ) || *p == '\n' || *p == '\r' ) )
+ p++;
+--- CriticalMass-1.0.0.orig/utils/ResourceManager.cpp 2005-01-02 03:59:29.000000000 +0100 ++++ CriticalMass-1.0.0/utils/ResourceManager.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -20,10 +20,12 @@ + #include <ResourceManager.hpp> + #include <FindHash.hpp> + #include <Endian.hpp> + #include <WalkDirectory.hpp> + ++#include <cstring> ++ + #ifdef WIN32 + const char PATH_SEPERATOR = '\\'; + #else + const char PATH_SEPERATOR = '/'; + #endif +--- CriticalMass-1.0.0.orig/utils/Value.hpp 2004-12-18 03:41:24.000000000 +0100 ++++ CriticalMass-1.0.0/utils/Value.hpp 2008-04-18 19:40:35.000000000 +0200 +@@ -13,10 +13,11 @@ + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // + #ifndef _Value_hpp_ + #define _Value_hpp_ + ++#include <cstdlib> + #include <stdio.h> + #include <string> + + #include <Trace.hpp> + +--- CriticalMass-1.0.0.orig/utils/zStreamBufferImplZLib.cpp 2005-07-31 22:06:14.000000000 +0200 ++++ CriticalMass-1.0.0/utils/zStreamBufferImplZLib.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -10,10 +10,11 @@ + // + // This program is distributed in the hope that it will be useful, but WITHOUT + // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // ++#include <cstdlib> + #include <Trace.hpp> + #include <zStreamBufferImplZLib.hpp> + + bool ziStreamBufferImplZLib::init( void) + { +--- CriticalMass-1.0.0.orig/utils/zStream.cpp 2005-07-31 22:06:14.000000000 +0200 ++++ CriticalMass-1.0.0/utils/zStream.cpp 2008-04-18 19:40:35.000000000 +0200 +@@ -10,10 +10,11 @@ + // + // This program is distributed in the hope that it will be useful, but WITHOUT + // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details + // ++#include <cstdlib> + #include <Trace.hpp> + #include <Endian.hpp> + #include <zStream.hpp> + #include <zStreamBufferImplLZMA.hpp> + #include <zStreamBufferImplZLib.hpp> diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch new file mode 100644 index 000000000000..882869b43a14 --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng14.patch @@ -0,0 +1,11 @@ +--- configure.in ++++ configure.in +@@ -99,7 +99,7 @@ if test "x$TARGET" = xWIN32; then + else + LIBS="-L/usr/local/lib -L/usr/X11R6/lib $LIBS" + CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include" +- AC_CHECK_LIB(png12, main,, AC_MSG_ERROR(libpng is needed)) ++ AC_CHECK_LIB(png, main,, AC_MSG_ERROR(libpng is needed)) + AC_CHECK_LIB(z, main,, AC_MSG_ERROR(libz is needed)) + if test "x$TARGET" = xUNIX; then + if test "x$enable_dyngl" = xoff; then diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch new file mode 100644 index 000000000000..ac1b8c0c617f --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-libpng15.patch @@ -0,0 +1,31 @@ +--- game/main.cpp ++++ game/main.cpp +@@ -28,6 +28,8 @@ + #include <sys/stat.h> + #include <sys/types.h> + ++#include <zlib.h> ++ + void migrateConfig( void) + { + //if onlineCheck is not set, default it to true +--- utilssdl/PNG.cpp ++++ utilssdl/PNG.cpp +@@ -45,7 +45,7 @@ + { + png_size_t check; + +- check = fwrite( data, 1, length, (FILE *)(png->io_ptr)); ++ check = fwrite( data, 1, length, (FILE *)(png_get_io_ptr(png))); + if( check != length) + { + png_error( png, "Write Error"); +@@ -72,7 +72,7 @@ + return false; + } + +- if( setjmp(_png->jmpbuf)) ++ if( setjmp(png_jmpbuf(_png))) + { + fclose( fp); + png_destroy_write_struct(&_png, (png_infopp)NULL); diff --git a/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch new file mode 100644 index 000000000000..02307ad7d8fc --- /dev/null +++ b/games-arcade/criticalmass/files/criticalmass-1.0.2-system_curl.patch @@ -0,0 +1,33 @@ +--- configure.in ++++ configure.in +@@ -115,8 +115,6 @@ fi + AC_CHECK_LIB(m, sin,, + AC_MSG_ERROR(libm is needed)) + +-AC_CONFIG_SUBDIRS(curl) +- + AC_OUTPUT(Makefile utils/Makefile utilssdl/Makefile utilsgl/Makefile game/Makefile tools/Makefile data/Makefile data/music/Makefile tinyxml/Makefile) + + echo "Configuration: +--- game/Makefile.am ++++ game/Makefile.am +@@ -41,7 +41,7 @@ critter_SOURCES = \ + main.cpp + + LDADD = \ +- ../curl/lib/libcurl.a \ ++ -lcurl \ + ../utils/libutils.a \ + ../utilssdl/libutilssdl.a \ + ../utilsgl/libutilsgl.a \ +--- Makefile.am ++++ Makefile.am +@@ -4,7 +4,7 @@ + AUTOMAKE_OPTIONS = 1.4 + + ## Any directories that you want built and installed should go here. +-SUBDIRS = curl tinyxml utils utilssdl utilsgl tools data game ++SUBDIRS = tinyxml utils utilssdl utilsgl tools data game + + ## Any directories you want a part of the distribution should be listed + ## here, as well as have a Makefile generated at the end of configure.in diff --git a/games-arcade/criticalmass/metadata.xml b/games-arcade/criticalmass/metadata.xml new file mode 100644 index 000000000000..8b6d907abada --- /dev/null +++ b/games-arcade/criticalmass/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">criticalmass</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/defendguin/Manifest b/games-arcade/defendguin/Manifest new file mode 100644 index 000000000000..686dee5e871b --- /dev/null +++ b/games-arcade/defendguin/Manifest @@ -0,0 +1 @@ +DIST defendguin-0.0.12.tar.gz 2235694 SHA256 3c248bed480b291901b7509525dc952be6d28dfa47fd6f8e3fb9873f46017330 SHA512 3a62c7ac62b016eeb6fc63655e8a8c1ac6c5c7cae7eee03c4ab0b9951ba605c7634336d94adb538e94ccbf1d9f927ac530f58da87413a4b1555b2684681e4167 WHIRLPOOL bf47e55ff09d396342df42233ae68f3a66fb968d825aec92d7de534b075e45921b12dc44d07571c3d59b637dfe325552ff06ac881a45948fb82520f143737e4b diff --git a/games-arcade/defendguin/defendguin-0.0.12.ebuild b/games-arcade/defendguin/defendguin-0.0.12.ebuild new file mode 100644 index 000000000000..8f5d2f1cca75 --- /dev/null +++ b/games-arcade/defendguin/defendguin-0.0.12.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A clone of the arcade game Defender, but with a Linux theme" +HOMEPAGE="http://www.newbreedsoftware.com/defendguin/" +SRC_URI="ftp://ftp.tuxpaint.org/unix/x/${PN}/src/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/sdl-mixer[mod] + media-libs/libsdl[video]" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "s:\$(DATA_PREFIX):${GAMES_DATADIR}/${PN}/:" \ + -e '/^CFLAGS=.*-O2/d' \ + -e '/^CFLAGS=/s:=:+= $(LDFLAGS) :' \ + Makefile \ + || die + rm -f data/images/*.sh +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r ./data/* + newicon data/images/ufo/ufo0.bmp ${PN}.bmp + make_desktop_entry ${PN} Defendguin /usr/share/pixmaps/${PN}.bmp + doman src/${PN}.6 + dodoc docs/{AUTHORS,CHANGES,README,TODO}.txt + prepgamesdirs +} diff --git a/games-arcade/defendguin/metadata.xml b/games-arcade/defendguin/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/defendguin/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/diameter/Manifest b/games-arcade/diameter/Manifest new file mode 100644 index 000000000000..3c0d19d749c7 --- /dev/null +++ b/games-arcade/diameter/Manifest @@ -0,0 +1 @@ +DIST diameter-0.4.0.3.tar.bz2 4729201 SHA256 553f6402b81d2a7c79862830b9cee5a93c1e8197f6597835486f8d79cc57bce0 SHA512 74491d49b233f16b44e4ea7c477fe5c6d71bc88c34b815f7992ea881558e2b4de98b10c5041cff6d0a6098dc4f440291825fb1746ff0282e3f538fac4ee4975d WHIRLPOOL fe06ed6b502e9281de4be94fde73a91c42c7498dae69f44b56a50f503c53a2864d6427881fe5bc3946943c0dce5b2c379c1ec25f53c56b95e6781b7d330f7481 diff --git a/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild new file mode 100644 index 000000000000..fab59946eeec --- /dev/null +++ b/games-arcade/diameter/diameter-0.4.0.3-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit python-any-r1 eutils autotools games + +DESCRIPTION="Arcade game with elements of economy and adventure" +HOMEPAGE="http://gamediameter.sourceforge.net/" +SRC_URI="mirror://sourceforge/gamediameter/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-games/guichan-0.8[opengl,sdl] + media-libs/libpng:0= + virtual/opengl + virtual/glu + media-libs/libsdl[video] + media-libs/sdl-image[gif,jpeg,png] + media-libs/sdl-mixer[mod] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/gamediameter + +src_prepare() { + sed -i \ + -e "s:gamediameter:diameter:" \ + configure.in || die + mv configure.in configure.ac || die + # bug #336812 + sed -i \ + -e '/gui nebular3.gif/s/gui//' \ + data/texture/Makefile.am || die + eautoreconf +} + +src_install() { + default + newicon data/texture/gui/eng/main/logo.png ${PN}.png + make_desktop_entry ${PN} Diameter + prepgamesdirs +} diff --git a/games-arcade/diameter/metadata.xml b/games-arcade/diameter/metadata.xml new file mode 100644 index 000000000000..359e555a56b2 --- /dev/null +++ b/games-arcade/diameter/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +"Diameter" - is an arcade-style game with elements of economy and adventure. +Project's main objective is to make a distinctive game with a storm gameplay and +simultaneously alluring with its world. Plus, the main mood will be funny, but +thus be serious. +</longdescription> + <upstream> + <remote-id type="sourceforge">gamediameter</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/digger/Manifest b/games-arcade/digger/Manifest new file mode 100644 index 000000000000..a25169b14b59 --- /dev/null +++ b/games-arcade/digger/Manifest @@ -0,0 +1 @@ +DIST digger-20140423.tar.gz 117375 SHA256 44a77e1b88409f7427bd2958d1f18648b18a1e9631d0e78fee90957e5ad5cfa0 SHA512 9277c6dc4d7f74aeede379b42aeeef881d8fd927ef0e6f6c0e1a5f76be257244c4353758557209647812b942d215dd992939b190ef11f854b41ee2ceaab7eece WHIRLPOOL 15d08563b32e766f8f18888136c004a263a1951ea56f4d0a666d222cad966d8647f3d4ecebfa2d960fc6b0ae7fdf8538c7bfe432f03baec4352d0a99f676437b diff --git a/games-arcade/digger/digger-20140423.ebuild b/games-arcade/digger/digger-20140423.ebuild new file mode 100644 index 000000000000..694857006016 --- /dev/null +++ b/games-arcade/digger/digger-20140423.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Digger Remastered" +HOMEPAGE="http://www.digger.org/" +SRC_URI="https://gitorious.org/digger/digger/archive/8d5769c59d68b37a5b30aa7a9cbfa5a9e15e7ed3.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" + +DEPEND="media-libs/libsdl[X,video] + x11-libs/libX11" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${PN}-${PN} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_install() { + dogamesbin digger + dodoc digger.txt + make_desktop_entry digger Digger + prepgamesdirs +} diff --git a/games-arcade/digger/files/digger-20140423-ldflags.patch b/games-arcade/digger/files/digger-20140423-ldflags.patch new file mode 100644 index 000000000000..fd1e9953b634 --- /dev/null +++ b/games-arcade/digger/files/digger-20140423-ldflags.patch @@ -0,0 +1,21 @@ +diff -ru digger-digger.orig/Makefile digger-digger/Makefile +--- digger-digger.orig/Makefile 2013-10-11 04:56:41.000000000 -0400 ++++ digger-digger/Makefile 2014-04-24 13:11:58.749211920 -0400 +@@ -26,7 +26,7 @@ + ifeq ($(ARCH),"LINUX") + OBJS += fbsd_sup.o # strup() + RCFLAGS += -DLINUX $(shell sdl-config --cflags) +-LIBS += $(shell sdl-config --libs) -lz ++LIBS += $(shell sdl-config --libs) -lX11 -lz + ESUFFIX = + endif + +@@ -40,7 +40,7 @@ + all: digger$(ESUFFIX) + + digger$(ESUFFIX): $(OBJS) +- $(CC) -o digger$(ESUFFIX) $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o digger$(ESUFFIX) $(OBJS) $(LIBS) + + $(OBJS): %.o: %.c + $(CC) -c $(RCFLAGS) $(CFLAGS) $< -o $@ diff --git a/games-arcade/digger/metadata.xml b/games-arcade/digger/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/digger/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/dynamitejack/Manifest b/games-arcade/dynamitejack/Manifest new file mode 100644 index 000000000000..19448ceb83bb --- /dev/null +++ b/games-arcade/dynamitejack/Manifest @@ -0,0 +1 @@ +DIST dynamitejack-1.0.23.tgz 54195417 SHA256 aa5fbc27d6931753373e7af99a9521e335a4a5b38a7be0fc8e82c2191b3302e2 SHA512 57897194244ded8d41ef0e7704fd973a58fe52dbc01b7dceed2a47694f7cc3e75d732547532bc7be4dd7d510572dedb85188da413b5857f52182799427243c4d WHIRLPOOL 78d09068461ff8d11cb1a73ec94d160e085636f3d6f1933f0210b12505319c74a0d23daf66814fc23ad0c1c6e1a1dc6cb45adf783376d5573a949d5c3f9a1f4d diff --git a/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild b/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild new file mode 100644 index 000000000000..9f2e49b3cc49 --- /dev/null +++ b/games-arcade/dynamitejack/dynamitejack-1.0.23-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# TODO: icon + +EAPI=5 +inherit eutils games + +DESCRIPTION="A stealth game with bombs in glorious 2D" +HOMEPAGE="http://www.galcon.com/dynamitejack/" +SRC_URI="${P}.tgz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="bindist fetch splitdebug" + +MYGAMEDIR=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${MYGAMEDIR#/}/bin/*" + +# linked to pulseaudio +RDEPEND=" + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=media-libs/alsa-lib-1.0.27.2[abi_x86_32(-)] + >=media-libs/flac-1.2.1-r5[abi_x86_32(-)] + >=media-libs/libogg-1.3.0[abi_x86_32(-)] + >=media-libs/libsdl-1.2.15-r4[X,sound,joystick,opengl,video,abi_x86_32(-)] + >=media-libs/libsndfile-1.0.25[abi_x86_32(-)] + >=media-libs/libvorbis-1.3.3-r1[abi_x86_32(-)] + >=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)] + >=virtual/glu-9.0-r1[abi_x86_32(-)] + >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)] + >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXau-1.0.7-r1[abi_x86_32(-)] + >=x11-libs/libxcb-1.9.1[abi_x86_32(-)] + >=x11-libs/libXdmcp-1.1.1-r1[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + >=x11-libs/libXi-1.7.2[abi_x86_32(-)] + >=x11-libs/libXtst-1.2.1-r1[abi_x86_32(-)]" + +S=${WORKDIR}/${PN} + +pkg_nofetch() { + einfo "Please buy & download ${SRC_URI} from:" + einfo " ${HOMEPAGE}" + einfo "and move it to ${DISTDIR}" +} + +src_prepare() { + rm run_me || die + mv LINUX.txt "${T}"/ || die +} + +src_install() { + dodoc "${T}"/LINUX.txt + + insinto "${MYGAMEDIR}" + doins -r * + + games_make_wrapper ${PN} "./main" "${MYGAMEDIR}/bin" + make_desktop_entry ${PN} + + fperms +x "${MYGAMEDIR}"/bin/main + prepgamesdirs +} diff --git a/games-arcade/dynamitejack/metadata.xml b/games-arcade/dynamitejack/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-arcade/dynamitejack/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-arcade/emilia-pinball/Manifest b/games-arcade/emilia-pinball/Manifest new file mode 100644 index 000000000000..05892b8bd7f5 --- /dev/null +++ b/games-arcade/emilia-pinball/Manifest @@ -0,0 +1 @@ +DIST pinball-0.3.1.tar.gz 6082982 SHA256 ba47989f7fb6e294faa95285563220c8b01c3dbb9aa1bc29828eb7e832855cb8 SHA512 d54f2635f583be8a7e4bf3463c69c1ab368e1c069dd7c4edffb95df0448faf7e82ddb8f8607d22a7336e2db176134555ca65b613e9d008b38fecb8ad5a818498 WHIRLPOOL 1a0e0a5aa3e890a5f05e106fe53af67eb2692c7ad4e84f8eeb6ae97d014444616a7cdbb3d5ff4ac34671a307bbef01de215dba2f104d1e2c9a2eb9101efd0c59 diff --git a/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild new file mode 100644 index 000000000000..0778efd94d9a --- /dev/null +++ b/games-arcade/emilia-pinball/emilia-pinball-0.3.1-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +MY_PN=${PN/emilia-/} +MY_P=${MY_PN}-${PV} +DESCRIPTION="SDL OpenGL pinball game" +HOMEPAGE="http://pinball.sourceforge.net/" +SRC_URI="mirror://sourceforge/pinball/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ~sparc x86" +IUSE="" + +# Drop the libtool dep once libltdl goes stable. +RDEPEND="virtual/opengl + x11-libs/libSM + media-libs/libsdl[joystick,opengl,video,X] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + || ( dev-libs/libltdl:0 <sys-devel/libtool-2.4.3-r2:2 )" +DEPEND="${RDEPEND} + x11-libs/libXt" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i -e '/dnl/d' {src,test}/Makefile.am || die #334899 + epatch "${FILESDIR}"/${P}-glibc210.patch \ + "${FILESDIR}"/${P}-libtool.patch \ + "${FILESDIR}"/${P}-gcc46.patch \ + "${FILESDIR}"/${P}-parallel.patch + rm -rf libltdl + eautoreconf +} + +src_configure() { + egamesconf --with-x +} + +src_compile() { + emake CXXFLAGS="${CXXFLAGS}" +} + +src_install() { + default + dosym "${GAMES_BINDIR}"/pinball "${GAMES_BINDIR}"/emilia-pinball + mv "${D}/${GAMES_PREFIX}/include" "${D}/usr/" || die + dodir /usr/bin + mv "${D}/${GAMES_BINDIR}/pinball-config" "${D}/usr/bin/" || die + sed -i \ + -e 's:-I${prefix}/include/pinball:-I/usr/include/pinball:' \ + "${D}"/usr/bin/pinball-config || die + newicon data/pinball.xpm ${PN}.xpm + make_desktop_entry emilia-pinball "Emilia pinball" + prepgamesdirs +} diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch new file mode 100644 index 000000000000..d78779197fce --- /dev/null +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-gcc46.patch @@ -0,0 +1,30 @@ +--- base/SignalSender.cpp.old 2011-04-26 09:39:24.303339444 +0200 ++++ base/SignalSender.cpp 2011-04-26 09:39:51.261063162 +0200 +@@ -11,6 +11,7 @@ + #include "SignalSender.h" + #include "Group.h" + #include "Behavior.h" ++#include <cstddef> + + SignalSender * SignalSender::p_SignalSender = NULL; + +--- base/Behavior.cpp.old 2011-04-26 09:36:27.129006665 +0200 ++++ base/Behavior.cpp 2011-04-26 09:36:48.855396752 +0200 +@@ -9,6 +9,7 @@ + #include "Private.h" + #include "Behavior.h" + #include "Group.h" ++#include <cstddef> + + Behavior::Behavior() { + //EM_COUT("Behavior::Behavior", 1); +--- base/BehaviorVisitor.cpp.old 2011-04-26 09:37:39.759653248 +0200 ++++ base/BehaviorVisitor.cpp 2011-04-26 09:37:54.481594952 +0200 +@@ -9,6 +9,7 @@ + #include "BehaviorVisitor.h" + #include "Behavior.h" + #include "Group.h" ++#include <cstddef> + + BehaviorVisitor * BehaviorVisitor::p_BehaviorVisitor = NULL; + diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch new file mode 100644 index 000000000000..800dbeae21a7 --- /dev/null +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-glibc210.patch @@ -0,0 +1,13 @@ +--- base/Config.cpp ++++ base/Config.cpp +@@ -423,8 +423,8 @@ + m_sDataDir = string(EM_DATADIR) + "/"; + m_sExeDir = "./"; + if ( *( m_sDataDir.c_str() ) != '/' ) { +- char* ptr=0; +- char* ptrw = 0; ++ const char* ptr=0; ++ const char* ptrw = 0; + //cout<<"relative to exe file"<<endl; + ptr = (strrchr(argv0,'/')); // unix /cygwin / check win32 + #ifdef WIN32 diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch new file mode 100644 index 000000000000..437e4eb684a4 --- /dev/null +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-libtool.patch @@ -0,0 +1,64 @@ +diff -ur pinball-0.3.1.orig/configure.ac pinball-0.3.1/configure.ac +--- pinball-0.3.1.orig/configure.ac 2003-11-21 09:40:18.000000000 +0200 ++++ pinball-0.3.1/configure.ac 2010-03-05 20:41:24.000000000 +0200 +@@ -14,18 +14,13 @@ + CFLAGS="-g -W -Wall -O2" + CXXFLAGS="-g -W -Wall -O2" + +-AC_CONFIG_SUBDIRS(libltdl) +- + dnl Checks for programs. + AC_PROG_CC + AC_PROG_CXX + AC_PROG_INSTALL +-AC_LIBTOOL_DLOPEN +-AC_LIBLTDL_CONVENIENCE +-AC_PROG_LIBTOOL + +-AC_SUBST(INCLTDL) +-AC_SUBST(LIBLTDL) ++LT_PREREQ([2.2.6]) ++LT_INIT([dlopen]) + + dnl ******************************************* + dnl PATHS AND DIRS **************************** +diff -ur pinball-0.3.1.orig/Makefile.am pinball-0.3.1/Makefile.am +--- pinball-0.3.1.orig/Makefile.am 2003-12-10 12:15:35.000000000 +0200 ++++ pinball-0.3.1/Makefile.am 2010-03-05 20:36:48.000000000 +0200 +@@ -1,6 +1,6 @@ + AUTOMAKE_OPTIONS = gnu + +-SUBDIRS = libltdl addon base data src test ++SUBDIRS = addon base data src test + + EXTRA_DIST = bootstrap pinball.spec clean pinball.desktop + +diff -ur pinball-0.3.1.orig/src/Makefile.am pinball-0.3.1/src/Makefile.am +--- pinball-0.3.1.orig/src/Makefile.am 2003-11-20 18:46:17.000000000 +0200 ++++ pinball-0.3.1/src/Makefile.am 2010-03-05 20:37:08.000000000 +0200 +@@ -7,9 +7,9 @@ + + pinlib_LIBRARIES = libemilia_pin.a + +-INCLUDES = -I../base -I../addon @INCLTDL@ ++INCLUDES = -I../base -I../addon + +-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@ ++pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl + pinball_LDFLAGS = -export-dynamic + + pinball_SOURCES = Pinball.cpp +diff -ur pinball-0.3.1.orig/test/Makefile.am pinball-0.3.1/test/Makefile.am +--- pinball-0.3.1.orig/test/Makefile.am 2003-11-20 18:46:17.000000000 +0200 ++++ pinball-0.3.1/test/Makefile.am 2010-03-05 20:36:38.000000000 +0200 +@@ -6,8 +6,8 @@ + noinst_PROGRAMS = scale simple light texture load explode collision signal billboard font thread menu joy sound trans math misc varray unittest + dnl noinst_PROGRAMS = unittest + +-INCLUDES = -I../base -I../addon -I../src @INCLTDL@ +-LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a @LIBLTDL@ ++INCLUDES = -I../base -I../addon -I../src ++LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl + + testlib_LTLIBRARIES = libModuleTest.la + diff --git a/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch new file mode 100644 index 000000000000..3dfef56090c9 --- /dev/null +++ b/games-arcade/emilia-pinball/files/emilia-pinball-0.3.1-parallel.patch @@ -0,0 +1,11 @@ +--- src/Makefile.am.old 2011-04-26 10:46:05.102070461 +0200 ++++ src/Makefile.am 2011-04-26 10:46:16.872813136 +0200 +@@ -9,7 +9,7 @@ + + INCLUDES = -I../base -I../addon + +-pinball_LDADD = ../src/libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl ++pinball_LDADD = libemilia_pin.a ../addon/libemilia_addon.a ../base/libemilia_base.a -lltdl + pinball_LDFLAGS = -export-dynamic + + pinball_SOURCES = Pinball.cpp diff --git a/games-arcade/emilia-pinball/metadata.xml b/games-arcade/emilia-pinball/metadata.xml new file mode 100644 index 000000000000..169596646163 --- /dev/null +++ b/games-arcade/emilia-pinball/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">pinball</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/epiar/Manifest b/games-arcade/epiar/Manifest new file mode 100644 index 000000000000..9269c568669a --- /dev/null +++ b/games-arcade/epiar/Manifest @@ -0,0 +1 @@ +DIST epiar-0.5.0-src.zip 8809392 SHA256 ec81babd5e5149d1104264fe218bebf83b84e1819c50066d17f71fb2184b21a4 diff --git a/games-arcade/epiar/epiar-0.5-r1.ebuild b/games-arcade/epiar/epiar-0.5-r1.ebuild new file mode 100644 index 000000000000..c80f7b4ae0fc --- /dev/null +++ b/games-arcade/epiar/epiar-0.5-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils games + +DESCRIPTION="A space adventure/combat game" +HOMEPAGE="http://epiar.net/" +SRC_URI="mirror://sourceforge/epiar/${P}.0-src.zip" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl[video] + media-libs/sdl-image[png]" +DEPEND="${RDEPEND} + x11-libs/libX11 + virtual/opengl + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + sed -i \ + -e "/^CFLAGS/s:-pg -g:${CFLAGS} ${LDFLAGS}:" \ + Makefile.linux || die + epatch \ + "${FILESDIR}"/${P}-paths.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-Makefile.linux.patch \ + "${FILESDIR}"/${P}-underlink.patch + sed -i \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \ + src/main.c || die +} + +src_compile() { + emake -f Makefile.linux +} + +src_install() { + dogamesbin epiar + insinto "${GAMES_DATADIR}"/${PN} + doins -r missions *.eaf + keepdir "${GAMES_DATADIR}"/${PN}/plugins + dodoc AUTHORS ChangeLog README + prepgamesdirs +} diff --git a/games-arcade/epiar/files/0.5-gentoo-paths.patch b/games-arcade/epiar/files/0.5-gentoo-paths.patch new file mode 100644 index 000000000000..b46f56195aa7 --- /dev/null +++ b/games-arcade/epiar/files/0.5-gentoo-paths.patch @@ -0,0 +1,59 @@ +--- src/system/path.c.orig 2004-03-28 04:42:23.329963224 -0500 ++++ src/system/path.c 2004-03-28 04:42:47.375307776 -0500 +@@ -187,6 +187,7 @@ + free(stripped);
+ if (argv)
+ free(argv);
++ goto portage_path; + return (0);
+ }
+
+@@ -212,6 +213,11 @@ + free(stripped);
+ if (argv)
+ free(argv);
++ ++portage_path: ++ if (game_path) free(game_path); ++ game_path = (char *)malloc(sizeof(char) * strlen("/usr/share/games/epiar/\0")); ++ sprintf(game_path, "/usr/share/games/epiar/"); +
+ return (0);
+ }
+--- src/input/input.c.orig 2004-03-28 04:48:49.925191816 -0500 ++++ src/input/input.c 2004-03-28 04:52:57.184602672 -0500 +@@ -240,7 +240,10 @@ + *
+ ******************************************************************************/
+ int load_input_cfg(void) {
+- FILE *fp = fopen("./.epiar-input.ecf", "rb");
++ char filename[1024]; ++ FILE *fp; ++ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "rb");
+
+ /* make sure all keys are enabled */
+ unlock_keys();
+@@ -282,7 +285,7 @@ + } else {
+ float file_version = 0.0f;
+ /* read the file into the struct */
+- fp = fopen("./.epiar-input.ecf", "rb");
++ fp = fopen(filename, "rb");
+
+ if (fp == NULL) {
+ fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");
+@@ -472,10 +475,12 @@ + }
+
+ void save_keybindings(void) {
++ char filename[1024]; + float file_version = 0.2f;
+ FILE *fp;
+
+- fp = fopen("./.epiar-input.ecf", "wb");
++ snprintf(filename, 1000, "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "wb");
+ if (fp == NULL) {
+ fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");
+ return;
diff --git a/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch new file mode 100644 index 000000000000..3086bd13ef9a --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-Makefile.linux.patch @@ -0,0 +1,20 @@ +--- Makefile.linux.old 2007-04-05 16:42:30 +0000 ++++ Makefile.linux 2007-04-05 16:42:47 +0000 +@@ -24,7 +24,7 @@ + @echo Building Epiar 0.5.0 ... + @$(CC) $(CFLAGS) -I/usr/X11R6/lib/ $(OBJS) -o epiar $(LIBS) + @echo Building plugins ... +- @make -f Makefile.linux plugin ++ @$(MAKE) -f Makefile.linux plugin + @echo Epiar 0.5.0 build complete. + @echo + @echo Type './epiar' to play. +@@ -33,7 +33,7 @@ + @echo Building Epiar 0.5.0 and linking statically ... + @$(CC) $(CFLAGS) -L/usr/X11R6/lib -L/opt/gnome-2.1/lib $(OBJS) -o epiar $(STATIC_LIBS) + @echo Building plugins ... +- @make plugin ++ @$(MAKE) plugin + @echo Epiar 0.5.0 build complete. + @echo + @echo Type './epiar' to play. diff --git a/games-arcade/epiar/files/epiar-0.5-gcc41.patch b/games-arcade/epiar/files/epiar-0.5-gcc41.patch new file mode 100644 index 000000000000..65f08b2691d1 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-gcc41.patch @@ -0,0 +1,10 @@ +--- src/game/game.h.old 2006-04-23 22:13:36.000000000 +0200 ++++ src/game/game.h 2006-04-23 22:13:50.000000000 +0200 +@@ -2,7 +2,6 @@ + #include "includes.h"
+
+ extern Uint32 average_loop_time;
+-extern Uint32 game_start_time;
+ extern Uint32 total_play_time, total_frames_drawn;
+ extern float average_session_fps, current_fps;
+
diff --git a/games-arcade/epiar/files/epiar-0.5-paths.patch b/games-arcade/epiar/files/epiar-0.5-paths.patch new file mode 100644 index 000000000000..41266c7272b1 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-paths.patch @@ -0,0 +1,86 @@ +--- src/input/input.c ++++ src/input/input.c +@@ -240,7 +240,10 @@ + *
+ ******************************************************************************/
+ int load_input_cfg(void) {
+- FILE *fp = fopen("./.epiar-input.ecf", "rb");
++ char filename[PATH_MAX]; ++ FILE *fp; ++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "rb");
+
+ /* make sure all keys are enabled */
+ unlock_keys();
+@@ -282,7 +285,7 @@ + } else {
+ float file_version = 0.0f;
+ /* read the file into the struct */
+- fp = fopen("./.epiar-input.ecf", "rb");
++ fp = fopen(filename, "rb");
+
+ if (fp == NULL) {
+ fprintf(stdout, "Could not open \"./.epiar-input.ecf\" for reading, assuming default bindings.\n");
+@@ -472,10 +475,12 @@ + }
+
+ void save_keybindings(void) {
++ char filename[PATH_MAX]; + float file_version = 0.2f;
+ FILE *fp;
+
+- fp = fopen("./.epiar-input.ecf", "wb");
++ snprintf(filename, sizeof(filename), "%s/.epiar-input.ecf", getenv("HOME")); ++ fp = fopen(filename, "wb");
+ if (fp == NULL) {
+ fprintf(stdout, "Could not create '~/.epiar-input.ecf' to save keybindings\n");
+ return;
+--- src/main.c ++++ src/main.c +@@ -16,7 +16,7 @@ + unsigned char view_mode = 0;
+ int ship_to_follow = 0;
+ int desired_bpp = 16;
+-char *game_path;
++const char * const game_path = "GENTOO_DATADIR";
+ unsigned char use_ogl = 0;
+ unsigned char skip_intro = 0;
+ FILE *epiar_eaf = NULL, *main_eaf = NULL;
+@@ -78,8 +78,6 @@ +
+ parse_commandline(argc, argv);
+
+- get_absolute_path(argv[0]);
+-
+ init(desired_bpp);
+
+ menu();
+--- src/main.h ++++ src/main.h +@@ -1,2 +1,2 @@ + extern char epiar_version[6];
+-extern char *game_path;
++extern const char * const game_path;
+--- src/system/init.c ++++ src/system/init.c +@@ -89,9 +89,6 @@ + main_eaf = NULL;
+ }
+
+- assert(game_path != NULL);
+- free(game_path);
+- game_path = NULL;
+
+ if (average_loop_time == 0) average_loop_time = 18; /* in case they quit on menu */
+ #ifndef NDEBUG
+--- src/system/path.c ++++ src/system/path.c +@@ -45,7 +45,7 @@ + }
+ #endif
+
+-#ifdef LINUX
++#if 0
+ char *strip_path_of_binary(char *argv) {
+ int len = 0, i, blen = 0;
+ char *stripped = NULL;
diff --git a/games-arcade/epiar/files/epiar-0.5-underlink.patch b/games-arcade/epiar/files/epiar-0.5-underlink.patch new file mode 100644 index 000000000000..13146cb68b27 --- /dev/null +++ b/games-arcade/epiar/files/epiar-0.5-underlink.patch @@ -0,0 +1,10 @@ +--- Makefile.linux.old 2011-06-22 15:15:50.000000000 +0200 ++++ Makefile.linux 2011-06-22 15:17:01.000000000 +0200 +@@ -1,6 +1,6 @@ + CFLAGS=-W -Wall `sdl-config --cflags` -Isrc/ -DLINUX -DDEVEL -export-dynamic -I/usr/include/SDL -I/usr/local/include/SDL -DBLIT_METHOD_2 -DNAUDIO -O2 -march=pentium4 -pipe -mfpmath=sse -ggdb -Wl,-O1 -Wl,--as-needed + +-LIBS=-lm `sdl-config --libs` -lSDL_image ++LIBS=-lm `sdl-config --libs` -lSDL_image -ldl + STATIC_LIBS=-lm /usr/local/lib/libSDL.a /usr/local/lib/libSDL_image.a /usr/local/lib/libSDL_ttf.a /usr/local/lib/libopenal.a /usr/local/lib/libvorbisfile.a /usr/local/lib/libvorbis.a /usr/local/lib/libogg.a /usr/lib/libpng.a /usr/lib/libz.a -lpthread -ldl -lfreetype /usr/lib/libjpeg.a -lX11 -lXext -lesd + + OBJS=main.o init.o video.o backbuffer.o debug.o audio.o linux_video.o \ diff --git a/games-arcade/epiar/metadata.xml b/games-arcade/epiar/metadata.xml new file mode 100644 index 000000000000..a48c9cd9695c --- /dev/null +++ b/games-arcade/epiar/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +Epiar is a space adventure/combat game written in C with SDL +(Simple DirectMedia Layer). It is absolutely free (released +under the General Public License v2). +In Epiar, you begin as a shuttle pilot in a galaxy generally +ruled by anarchy, with few stable governments and numerous +rebel factions. You start your adventure off doing whatever +you want, but generally trying to save up money for a new +starship, and your adventure takes off from there ... +</longdescription> + <upstream> + <remote-id type="sourceforge">epiar</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/excido/Manifest b/games-arcade/excido/Manifest new file mode 100644 index 000000000000..109adaf35683 --- /dev/null +++ b/games-arcade/excido/Manifest @@ -0,0 +1 @@ +DIST excido-0.1.5c-src.tar.bz2 2981629 SHA256 d53bcaf4e18265ece7c4206c91cdf26682ff1aeba917cb9d5bd2f4218ce364ef SHA512 9e1b98ed31eac735087f451c466d0e0d1b885ad5336f7994abf8f844b1c27cc24e90048306ffd62864fa5ab2bada6744b4b54991c6eb9b22624af20c645e02d7 WHIRLPOOL b85063e7b934953c3302bcc7ba1abc6c54263554b304844d059060c03a3fa486f21d9f7c3f1e96ad3441955b09e3ca2dd30b3bf3b4580f2007afaf11b74dc891 diff --git a/games-arcade/excido/excido-0.1.5c-r2.ebuild b/games-arcade/excido/excido-0.1.5c-r2.ebuild new file mode 100644 index 000000000000..daf4feaa722a --- /dev/null +++ b/games-arcade/excido/excido-0.1.5c-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A fast paced action game" +HOMEPAGE="http://icculus.org/excido/" +SRC_URI="http://icculus.org/excido/${P}-src.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="dev-games/physfs + media-libs/libsdl[opengl] + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/sdl-image[png] + media-libs/openal + media-libs/freealut" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-freealut.patch \ + "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + emake DATADIR="${GAMES_DATADIR}"/${PN}/ +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins data/* + dodoc BUGS CHANGELOG HACKING README TODO \ + keyguide.txt data/CREDITS data/*.txt + prepgamesdirs +} diff --git a/games-arcade/excido/files/excido-0.1.5c-build.patch b/games-arcade/excido/files/excido-0.1.5c-build.patch new file mode 100644 index 000000000000..779d9c3f4066 --- /dev/null +++ b/games-arcade/excido/files/excido-0.1.5c-build.patch @@ -0,0 +1,29 @@ +--- Makefile ++++ Makefile +@@ -1,8 +1,8 @@ +-CC=g++ +-CFLAGS=`sdl-config --cflags` #-g -Wall #-O2 ++CXX?=g++ ++CXXFLAGS+=$(shell sdl-config --cflags) #-g -Wall #-O2 + #CFLAGS=`sdl-config --cflags` -I./physfs#-g -Wall #-O2 + OBJS := ${patsubst %.cpp, %.o, ${wildcard src/*.cpp}} +-LIBS = -s -Bstatic `sdl-config --static-libs` -lSDL_image -lSDL_ttf -L. -lphysfs -lopenal -Bdynamic -lGL -lGLU ++LIBS = $(shell sdl-config --libs) -lSDL_image -lSDL_ttf -lphysfs -lopenal -lalut -lGL -lGLU + #LIBS = -s -Bstatic `sdl-config --static-libs` SDL_image/*.o SDL_ttf/*.o -L. physfs/*.o openal/*.o -ljpeg -lpng -ltiff -lfreetype -Bdynamic -lGL -lGLU + PREFIX=/usr/local + BINDIR=$(PREFIX)/bin/ +@@ -16,12 +16,12 @@ + + + .cpp.o: +- $(CC) $(CFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $< ++ $(CXX) $(CXXFLAGS) $(DEFINES) -o ${patsubst %.cpp, %.o, $<} -c $< + + all: $(TARGET) + + $(TARGET): $(OBJS) +- $(CC) $(CFLAGS) -o $(TARGET) $(LIBS) $(OBJS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) + + clean: + rm -f $(OBJS) $(TARGET) diff --git a/games-arcade/excido/files/excido-0.1.5c-freealut.patch b/games-arcade/excido/files/excido-0.1.5c-freealut.patch new file mode 100644 index 000000000000..d0538083af1f --- /dev/null +++ b/games-arcade/excido/files/excido-0.1.5c-freealut.patch @@ -0,0 +1,38 @@ +--- src/SoundCore.cpp ++++ src/SoundCore.cpp +@@ -352,32 +352,13 @@ + + PHYSFS_close(filehandle); + +- ALenum format; +- ALvoid *data; +- ALsizei size,freq; +- ALboolean loop=AL_FALSE; + ALenum error; + + alGetError(); + +- alGenBuffers(1,&newsample.alid); +- if((error=alGetError())!=AL_NO_ERROR){ +- fprintf(stderr,"SoundCore::LoadSample: Error on alGenBuffers\n"); +- PrintALError(error); +- } +- alutLoadWAVMemory((ALbyte*)filedata,&format,&data,&size,&freq,&loop); +- if((error=alGetError())!=AL_NO_ERROR){ +- fprintf(stderr,"SoundCore::LoadSample: Error on alutLoadWAVMemory\n"); +- PrintALError(error); +- } +- alBufferData(newsample.alid,format,data,size,freq); +- if((error=alGetError())!=AL_NO_ERROR){ +- fprintf(stderr,"SoundCore::LoadSample: Error on alBufferData\n"); +- PrintALError(error); +- } +- alutUnloadWAV(format,data,size,freq); +- if((error=alGetError())!=AL_NO_ERROR){ +- fprintf(stderr,"SoundCore::LoadSample: Error on alutUnloadWAV\n"); ++ newsample.alid=alutCreateBufferFromFileImage(filedata, filesize); ++ if(((error=alGetError())!=AL_NO_ERROR)||(newsample.alid==AL_NONE)){ ++ fprintf(stderr,"SoundCore::LoadSample: Error on alutCreateBufferFromFileImage\n"); + PrintALError(error); + } + diff --git a/games-arcade/excido/metadata.xml b/games-arcade/excido/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/excido/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/fishsupper/Manifest b/games-arcade/fishsupper/Manifest new file mode 100644 index 000000000000..ede8fd89bcd3 --- /dev/null +++ b/games-arcade/fishsupper/Manifest @@ -0,0 +1 @@ +DIST fishsupper-0.1.6.tar.gz 1136893 SHA256 d2d026ce9567fd6a86cb1c81458b540fd511d269d1af37c9e29df145091da3a8 SHA512 a6b3df47010e8ac186ff4446db3659fd9173e9e3fc973ab376eed46da9cd13f7a4c0c02b25f3427232252e7fe5728036fa91ea773affe0948387a56f617fc7af WHIRLPOOL 5bc48a1cbd0a41b45cb905de9e6592ea3fd52cb5426bcc0c224cb6f0bbcb3489454e06154f614d2df5db4af0c12b526acf7c05ee7361407f97fa463448ea1095 diff --git a/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch b/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch new file mode 100644 index 000000000000..2aba6f099e88 --- /dev/null +++ b/games-arcade/fishsupper/files/fishsupper-0.1.6-asneeded.patch @@ -0,0 +1,11 @@ +--- src/Makefile.am.old 2012-06-24 18:47:58.947143638 +0200 ++++ src/Makefile.am 2012-06-24 18:51:35.738921904 +0200 +@@ -1,7 +1,7 @@ + AM_CPPFLAGS = -DPKG_DATA_DIR=\"$(pkgdatadir)\" \ + @SDL_CFLAGS@ \ + -Wall +-AM_LDFLAGS = @SDL_LIBS@ ++LDADD = @SDL_LIBS@ + + bin_PROGRAMS = fishsupper + diff --git a/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch b/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch new file mode 100644 index 000000000000..4d5185dae7e9 --- /dev/null +++ b/games-arcade/fishsupper/files/fishsupper-0.1.6-ovflfix.patch @@ -0,0 +1,11 @@ +--- src/main.cpp.old 2012-06-24 18:35:27.661894094 +0200 ++++ src/main.cpp 2012-06-24 18:35:41.041954632 +0200 +@@ -293,7 +293,7 @@ + + if (!ok) + { +- fs_dir = new char[ strlen(".") ]; ++ fs_dir = new char[ strlen(".") + 1]; + strcpy(fs_dir, "."); + } // if ... else + diff --git a/games-arcade/fishsupper/fishsupper-0.1.6.ebuild b/games-arcade/fishsupper/fishsupper-0.1.6.ebuild new file mode 100644 index 000000000000..667fd00a28f9 --- /dev/null +++ b/games-arcade/fishsupper/fishsupper-0.1.6.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="A simple arcade/puzzle game, loosely based on the retro classic Frogger" +HOMEPAGE="http://sourceforge.net/projects/fishsupper/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="CC-BY-SA-2.5 GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="media-libs/libsdl[sound,video,opengl,X] + media-libs/sdl-image[png] + media-libs/sdl-mixer[wav] + virtual/opengl" +DEPEND="${RDEPEND} + dev-libs/boost" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ovflfix.patch \ + "${FILESDIR}"/${P}-asneeded.patch + eautoreconf +} + +src_install() { + default + newicon data/images/fs_sprite_042.png ${PN}.png + make_desktop_entry ${PN} "Fish Supper" + + prepgamesdirs +} diff --git a/games-arcade/fishsupper/metadata.xml b/games-arcade/fishsupper/metadata.xml new file mode 100644 index 000000000000..6f7bdf45da78 --- /dev/null +++ b/games-arcade/fishsupper/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">fishsupper</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/frozen-bubble/Manifest b/games-arcade/frozen-bubble/Manifest new file mode 100644 index 000000000000..060e8a4faa03 --- /dev/null +++ b/games-arcade/frozen-bubble/Manifest @@ -0,0 +1 @@ +DIST frozen-bubble-2.2.1-beta1.tar.bz2 22424798 SHA256 c5be403ccb71543dab1aeb7d5ae311e18693f79937fb9159469cdad0abf18ac4 SHA512 a5d1432195bc41b2823678986fe71223acf5c740636a871758e6337072c74a84bca7aa7088af7b299586e4e261521ae0b3341805692ab684d93e85f52174b1ac WHIRLPOOL 7b2782c8fe4a1dc8e77d5eba0d3e1cae12435e82d2c623ca0de6d5c91822bf07855a6f643b9f711eccba7232e7c80872add3296ee1915da518a154340fcd92dc diff --git a/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch b/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch new file mode 100644 index 000000000000..d891d8e71a63 --- /dev/null +++ b/games-arcade/frozen-bubble/files/frozen-bubble-2.2.1_beta1-Werror.patch @@ -0,0 +1,15 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Feb 10 14:48:58 UTC 2013 +Subject: remove Werror compiler flag wrt #456654 + +--- inc/My/Builder.pm ++++ inc/My/Builder.pm +@@ -123,7 +123,7 @@ + push @ofiles, $cbuilder->compile( + source => catfile($server_directory, $cfile), + extra_compiler_flags => [ +- qw(-g -Wall -Werror -pipe), # verbatim from Makefile ++ qw(-Wall), # verbatim from Makefile + '-I' . $server_directory, # does not seem to be necessary + $cbuilder->split_like_shell(`pkg-config glib-2.0 --cflags`), + $cbuilder->split_like_shell(`pkg-config glib-2.0 --libs`), diff --git a/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild b/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild new file mode 100644 index 000000000000..33595b80a0d4 --- /dev/null +++ b/games-arcade/frozen-bubble/frozen-bubble-2.2.1_beta1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +MY_P=${P/_/-} +inherit eutils gnome2-utils perl-module toolchain-funcs games + +DESCRIPTION="A Puzzle Bubble clone written in perl (now with network support)" +HOMEPAGE="http://www.frozen-bubble.org/" +SRC_URI="http://www.frozen-bubble.org/data/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND=">=dev-lang/perl-5.12 + >=dev-libs/glib-2 + >=dev-perl/Alien-SDL-1.413 + dev-perl/Compress-Bzip2 + dev-perl/File-ShareDir + dev-perl/File-Slurp + dev-perl/File-Which + dev-perl/IPC-System-Simple + >=dev-perl/SDL-2.511 + media-libs/sdl-image[gif,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-pango + media-libs/sdl-ttf + virtual/libiconv + virtual/perl-Getopt-Long + virtual/perl-IO" +DEPEND="${RDEPEND} + virtual/pkgconfig + dev-perl/Locale-Maketext-Lexicon + virtual/perl-ExtUtils-CBuilder + virtual/perl-ExtUtils-ParseXS + dev-perl/Module-Build" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + perl-module_src_prepare + epatch "${FILESDIR}"/${P}-Werror.patch +} + +src_configure() { + LD=$(tc-getCC) perl-module_src_configure +} + +src_compile() { + LD=$(tc-getCC) perl-module_src_compile +} + +src_install() { + mydoc="AUTHORS Changes HISTORY README" perl-module_src_install + + dodir "${GAMES_BINDIR}" + mv -vf "${D}"/usr/bin/f* "${D}/${GAMES_BINDIR}" || die + + newdoc server/README README.server + newdoc server/init/README README.server.init + + local res + for res in 16 32 48 64; do + newicon -s ${res} share/icons/frozen-bubble-icon-${res}x${res}.png ${PN}.png + done + + make_desktop_entry ${PN} Frozen-Bubble + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/frozen-bubble/metadata.xml b/games-arcade/frozen-bubble/metadata.xml new file mode 100644 index 000000000000..a8fe22f9e560 --- /dev/null +++ b/games-arcade/frozen-bubble/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Full-featured, colorful animated penguin eyecandy, 100 levels of 1p game, hours and hours of +2p game, a level-editor, 3 professional quality 20-channels music tracks, 15 stereo sound +effects, 7 unique graphical transition effects. + +You need this game. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/funnyboat/Manifest b/games-arcade/funnyboat/Manifest new file mode 100644 index 000000000000..9626106dc1bd --- /dev/null +++ b/games-arcade/funnyboat/Manifest @@ -0,0 +1 @@ +DIST funnyboat-1.5-src.zip 3839990 SHA256 de001d17f0e380df89bf5000392db75b385851a3cd200b3b87a8a9b66502f016 SHA512 7d38070e73825602d6f0a82e810fe8937fe919ce12f6e802ee25147ca1a2333c2b90821d92e20b8e071070505099bf9ec562e8c7b8cd8d241c3021b840e707cc WHIRLPOOL ad350d8d16276a830e9ac1d42a3ced1572c79260bf247d26235e0f67c2ff4324e8b332eb4f5d12e3e87a56c8e19bb90ef5fd49bee0dbb46efd96bddac55f6f31 diff --git a/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild b/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild new file mode 100644 index 000000000000..3dd158532c60 --- /dev/null +++ b/games-arcade/funnyboat/funnyboat-1.5-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils gnome2-utils python-single-r1 games + +DESCRIPTION="A side scrolling shooter game starring a steamboat on the sea" +HOMEPAGE="http://funnyboat.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip" + +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + >=dev-python/pygame-1.6.2[${PYTHON_USEDEP}]" +DEPEND="${DEPEND} + app-arch/unzip" + +S=${WORKDIR}/${PN} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r data *.py + python_optimize "${ED%/}/${GAMES_DATADIR}"/${PN} + + dodoc *.txt + games_make_wrapper ${PN} "${EPYTHON} main.py" "${GAMES_DATADIR}"/${PN} + newicon -s 32 data/kuvake.png ${PN}.png + make_desktop_entry ${PN} "Trip on the Funny Boat" + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/funnyboat/metadata.xml b/games-arcade/funnyboat/metadata.xml new file mode 100644 index 000000000000..f665da6a8949 --- /dev/null +++ b/games-arcade/funnyboat/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">funnyboat</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/gav/Manifest b/games-arcade/gav/Manifest new file mode 100644 index 000000000000..cf81911bcd4d --- /dev/null +++ b/games-arcade/gav/Manifest @@ -0,0 +1,8 @@ +DIST fabeach.tgz 163750 SHA256 e479d25c3624ebb432d6ea272ce60d4f4de4deb47a9c4325ebd4b77b3a4ab9ab SHA512 c0ce8e20a2bece7beeb66a036abcffa1394fcddc0aa255fe244e86548b2c0d7ec4a72a903f2108a44e84590d9986ee6729d67e5ec103b867bbde01772d524978 WHIRLPOOL d672402e2ea087de1aea5193dba2f483dc4391062da9e57c8dd7ee86a642b222ce0b67558e7872384462c3561d86148a23a71e88180bd1e25b0e6c06505836ab +DIST florindo.tgz 175052 SHA256 d622ce2054a5f19243d7429dccfd036e51f8a7489cf692fb5181c670ef129a3e SHA512 91a42c209d9370f42a7918ea0b6b63ed9c2dcacdbf3051dc2535293b2e2a9b1b53795a7db476fd5c7b3da9682b5ddaf8a2ceab50bc4bdeefde33416de82197dc WHIRLPOOL b1907538fa56c8ebbee2cd6c5f062899d78133dc84de72f72f5d61da308fca4def64d0a17301ad1fe193d77fd6f7c96a3199c15d8b4c7234032b3bf6308bc68f +DIST gav-0.9.0.tar.gz 137729 SHA256 8f0deb8b2cd775b339229054f4f282583a4cfbcba9d27a6213cf910bab944f3e SHA512 e702269371dc8ed4ce4415a24a703ef6c3604af69f2e0c548a48f282d812b4f3f76f74cb36a6036889b9e3628b844d2fa41e2cfde5b0fe647bceadc64c087a9f WHIRLPOOL 6ffb0ff88869ce2c171faa3f4e69d1c2bfa0fc35a4333928342d7f6c437d57b3f417bef532cc90f13da77bc0cc93d067b54668d75ed78425914715032a5c9692 +DIST inverted.tgz 35554 SHA256 aa34407321c567183a10197e22aa1ff6b031313ac2c84fd9cd3b371e8e6c2852 SHA512 a05bf4d580dcf509cfacf7bf8c8ab12e363dfcf646f24761daffd251bdaa15bc1df087b9d6618f70e1e6b17ac8bdbcaca18d6fe982938df2016dc4eaaafe0c04 WHIRLPOOL 076d9e3f1455e1b1b074a6999671fb04ddfe61e6685dfd1c1be6b35abcde0671d4e8fa5e567fe89eabecddeb8f15441d0a1011d1e4d3a9606ebd39ecac94a910 +DIST naive.tgz 80169 SHA256 4692c7ea7d17b0a75fee5ba56eb5f93c26531537898fdcaa2bc376d520c150d9 SHA512 c962b4fa1dac20f1f1af46e816ed5fc1d46b58438391f1f496a24960a464b515ed296490bf113e5f6c428ea7f740e0bbc9d4343088f5a9da4c00909a5d584c9a WHIRLPOOL 76e0db07bb5c188dd59e8f65bf89366e6042787241d1023188bea7a223157967e2b0ca24a4db0e6c0e4f1f003f7c682dda0a03ba29bb7c433b53851fba408f66 +DIST unnamed.tgz 156406 SHA256 e51f5ecf3046b29da3745713a7a9cd6af037bbf297e8bbe403d68ed9e0feec00 SHA512 530084b5e49e40447cb68545fb4b01f837e74efa3bfb9a110f13037a7f6c135e23f9ed49837abe918a8b393226f90a2d206e5bfd2f4e60335ebf7bc4e8341673 WHIRLPOOL 45a9ff55ca8e598ffb82ac6ee9b529e89178798b22ea6d761ea1455318bb739cba7d1527373053be49db523bf2ac3acc5c4c5b4c17ff6d38500c71a2976e19e0 +DIST yisus.tgz 131021 SHA256 952e162a75ff235743ef89f8b90dde456a3494e245364b52a9c6092725a99dd2 SHA512 2494e10998bf73c369e6591edeca4c466dfdba1901ca69d96838e0310eb36c94690b9fd6df3c0aa91e0ac611ec414acf402f532145eb795a43e15406aed4c604 WHIRLPOOL de18992cd902ce32bbca6d753da44d02a5756b60a09691281f02c4d3853b12ac863a233bda6510047057760043c30e4e3dd455650baf52c5f9babd09786cfcb4 +DIST yisus2.tgz 117923 SHA256 60939602a3ee52316204f64eb167839161aac4aff7b8f409e88d2543ebe733fc SHA512 a063908230e9085536322481bf511cc3f3df3997d27dd83e9f976762670e2bdbebc634c2566549fe856ddc93302422cf8676147937d2cbbcf7262e722c999f4d WHIRLPOOL b8cf0995af8fd76404d7e8348e1556e11be90fbe6773e7fbc13da01b52b96e6513e7a95fc67e6e8bac6afd127bf445f090edcf898ce4c060ef33880a85c7866c diff --git a/games-arcade/gav/files/gav-0.9.0-gcc43.patch b/games-arcade/gav/files/gav-0.9.0-gcc43.patch new file mode 100644 index 000000000000..06bc1a5d2542 --- /dev/null +++ b/games-arcade/gav/files/gav-0.9.0-gcc43.patch @@ -0,0 +1,10 @@ +--- Configuration.cpp ++++ Configuration.cpp +@@ -25,6 +25,7 @@ + #include <stdlib.h> + #include <string> + #include <iostream> ++#include <cstring> + #include "Configuration.h" + #include "ControlsArray.h" + diff --git a/games-arcade/gav/files/gav-0.9.0-ldflags.patch b/games-arcade/gav/files/gav-0.9.0-ldflags.patch new file mode 100644 index 000000000000..04188320ac4b --- /dev/null +++ b/games-arcade/gav/files/gav-0.9.0-ldflags.patch @@ -0,0 +1,26 @@ +--- CommonHeader.old 2010-10-12 13:08:23.000000000 +0200 ++++ CommonHeader 2010-10-12 13:08:48.000000000 +0200 +@@ -31,9 +31,9 @@ + endif + + ifdef NET +-LDFLAGS= `sdl-config --libs` -lSDL_image -lSDL_net -lm ++LDLIBS= `sdl-config --libs` -lSDL_image -lSDL_net -lm + else +-LDFLAGS= `sdl-config --libs` -lSDL_image -lm ++LDLIBS= `sdl-config --libs` -lSDL_image -lm + endif + + SRCS = $(wildcard *.cpp) +--- Makefile.Linux.old 2010-10-12 14:36:47.000000000 +0200 ++++ Makefile.Linux 2010-10-12 14:37:02.000000000 +0200 +@@ -38,8 +38,7 @@ + $(MAKE) -C $(@D:%_module.o=%) + + gav: $(ALL_OBJ) $(OFILES) +- $(CXX) -o gav $(OFILES) $(ALL_OBJ) $(LDFLAGS) +- strip gav ++ $(CXX) $(LDFLAGS) -o gav $(OFILES) $(ALL_OBJ) $(LDLIBS) + + clean: + for i in $(SUBDIRS) ; do \ diff --git a/games-arcade/gav/gav-0.9.0.ebuild b/games-arcade/gav/gav-0.9.0.ebuild new file mode 100644 index 000000000000..d78377ac07ec --- /dev/null +++ b/games-arcade/gav/gav-0.9.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="GPL Arcade Volleyball" +HOMEPAGE="http://gav.sourceforge.net/" +# the themes are behind a lame php-counter script. +SRC_URI="mirror://sourceforge/gav/${P}.tar.gz + mirror://gentoo/fabeach.tgz + mirror://gentoo/florindo.tgz + mirror://gentoo/inverted.tgz + mirror://gentoo/naive.tgz + mirror://gentoo/unnamed.tgz + mirror://gentoo/yisus.tgz + mirror://gentoo/yisus2.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/sdl-image[jpeg,png] + media-libs/sdl-net + media-libs/libsdl[joystick,video]" +RDEPEND="${DEPEND}" + +src_prepare() { + local d + + epatch "${FILESDIR}"/${P}-ldflags.patch + + for d in . automa menu net ; do + cp ${d}/Makefile.Linux ${d}/Makefile || die "cp ${d}/Makefile failed" + done + + epatch "${FILESDIR}"/${P}-gcc43.patch + sed -i \ + -e "s:/usr/bin:${GAMES_BINDIR}:" \ + Makefile \ + || die "sed failed" + sed -i \ + -e "/^CXXFLAGS=/s: -g : ${CXXFLAGS} :" CommonHeader \ + || die "sed failed" + + # Now, move the additional themes in the proper directory + mv ../{fabeach,florindo,inverted,naive,unnamed,yisus,yisus2} themes + + # no reason to have executable files in the themes + find themes -type f -exec chmod a-x \{\} \; +} + +src_compile() { + # bug #41530 - doesn't like the hot parallel make action. + emake -C automa + emake -C menu + emake -C net + emake +} + +src_install() { + dodir "${GAMES_BINDIR}" + emake ROOT="${D}" install + insinto "${GAMES_DATADIR}"/${PN} + doins -r sounds + dodoc CHANGELOG README + prepgamesdirs +} diff --git a/games-arcade/gav/metadata.xml b/games-arcade/gav/metadata.xml new file mode 100644 index 000000000000..08ee7f8ae0db --- /dev/null +++ b/games-arcade/gav/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">gav</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/gish-demo/Manifest b/games-arcade/gish-demo/Manifest new file mode 100644 index 000000000000..f32d1c97ec02 --- /dev/null +++ b/games-arcade/gish-demo/Manifest @@ -0,0 +1 @@ +DIST gish-demo-1.6.tar.gz 12712912 SHA256 335e28ae5b9f91ebb9487e341d9bb9cf679083a0a3ed5a49daaa27f2b3e3908d SHA512 2d6f37b8a7971ada524c75bafcbe7e92fd3dbb96677774b0295aad2553e6094027f9b43da8318f20071679412f95dd66ab9738178ffec4f853cf1845d536a0a6 WHIRLPOOL d3fb001f01f52df78f39d23994cd6d57558c76c0a94944a3202285860cea5cf0d1eb4ad3f48465d5b3b85e47453a558f66d647ce153cd332d7be429ef0d0ec3e diff --git a/games-arcade/gish-demo/files/gish-wrapper b/games-arcade/gish-demo/files/gish-wrapper new file mode 100755 index 000000000000..7f9f4ad53e48 --- /dev/null +++ b/games-arcade/gish-demo/files/gish-wrapper @@ -0,0 +1,4 @@ +#!/bin/sh +export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:." +export LD_PRELOAD=/usr/lib/libalut.so.0 +exec ./gish "$@" diff --git a/games-arcade/gish-demo/gish-demo-1.6.ebuild b/games-arcade/gish-demo/gish-demo-1.6.ebuild new file mode 100644 index 000000000000..9a4e2b67f40c --- /dev/null +++ b/games-arcade/gish-demo/gish-demo-1.6.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Play as an amorphous ball of tar that rolls and squishes around" +HOMEPAGE="http://www.chroniclogic.com/gish.htm" +SRC_URI="http://s159260531.onlinehome.us/demos/gishdemo.tar.gz -> ${P}.tar.gz" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="mirror bindist strip" +QA_PREBUILT="${GAMES_PREFIX_OPT:1}/${PN}/gish" + +RDEPEND="media-libs/libsdl + media-libs/libvorbis + virtual/opengl + x11-libs/libX11 + >=media-libs/openal-1.6.372" + +S=${WORKDIR}/gishdemo + +src_install() { + local dir=${GAMES_PREFIX_OPT}/${PN} + local gishbin=gishdemo + use amd64 && gishbin=gishdemo_64 + + insinto "${dir}" + doins -r * + fperms +x "${dir}"/${gishbin} + games_make_wrapper gish ./${gishbin} "${dir}" + prepgamesdirs +} diff --git a/games-arcade/gish-demo/metadata.xml b/games-arcade/gish-demo/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/gish-demo/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/gnake/Manifest b/games-arcade/gnake/Manifest new file mode 100644 index 000000000000..431f648c3098 --- /dev/null +++ b/games-arcade/gnake/Manifest @@ -0,0 +1 @@ +DIST Gnake.0.94b.tar.gz 6656 SHA256 0a969e09f2dd60cdad56174728f13e4bf6056173f2d566312e06935e13b3d827 SHA512 c5fb84cd8dc0a1b88f9eb6139f898515d109e2de0786284a4fa85f5efc0967ef02c2458d0e7f783d31fbd9a41e0f4114f7bd00717042ac9b2ca9ce4dc18e7fb7 WHIRLPOOL bdcab4ff459c84d7250404170a0282a69cf861168617ba66e3d683baa76a6ad2feebb2c0a793c7c24d4e778b6296de500e85941a50eff54dd4db0df6ff5ad487 diff --git a/games-arcade/gnake/gnake-0.94b.ebuild b/games-arcade/gnake/gnake-0.94b.ebuild new file mode 100644 index 000000000000..ddd9308d85c1 --- /dev/null +++ b/games-arcade/gnake/gnake-0.94b.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="An ncurses-based Nibbles clone" +HOMEPAGE="http://lightless.org/gnake" +SRC_URI="mirror://gentoo/Gnake.${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN} + +src_compile() { + emake LDLIBS="$(pkg-config ncurses --libs)" gnake +} + +src_install() { + dogamesbin gnake + dodoc README + prepgamesdirs +} diff --git a/games-arcade/gnake/metadata.xml b/games-arcade/gnake/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/gnake/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/gnome-nibbles/Manifest b/games-arcade/gnome-nibbles/Manifest new file mode 100644 index 000000000000..9fffc5a44025 --- /dev/null +++ b/games-arcade/gnome-nibbles/Manifest @@ -0,0 +1,2 @@ +DIST gnome-nibbles-3.14.1.tar.xz 1718444 SHA256 cfdccdf7c4c81a589040ff72b6ef426e8c7506157bdbb1521d9b5a45829446b8 SHA512 a48fd845fa5df2a6a16150bf065b2427766e3fc6810312c18b6964d0f91289cf11cbb1a7834bce8ff782cc3485558e90b78b9e69cf62983d130041c88beee0a0 WHIRLPOOL 9371792e089b9362c9453a399f781e1716e129d7701c72547ed1ae7fc51298ed65dc697d13f0c8457f868ace4fa37ba0d82ff7040f0aeb56eabb37b5f42b27a2 +DIST gnome-nibbles-3.16.1.tar.xz 1642908 SHA256 bddaa055cac27cb90d9821b24048c2d5cb60a06481dfc0ea94218ebe0f83048d SHA512 a3b95723512facc28832d29ee13aed5035a710d65d1dd50996eeb4b8388d77b27ac9315c30ad735ac86979e2a229d9eb9d581062df221671317e3f7d70458d9c WHIRLPOOL c10ea818e09e7a1995029029bedad51d7eb18873bc0a5e99f8102f946c3614a4d1c99f3d0ebb4de582aa83fefb93d26192059de584bbb74742903e894be0d144 diff --git a/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild b/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild new file mode 100644 index 000000000000..55f9b79e45d1 --- /dev/null +++ b/games-arcade/gnome-nibbles/gnome-nibbles-3.14.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Nibbles clone for Gnome" +HOMEPAGE="https://wiki.gnome.org/Apps/Nibbles" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32:2 + >=media-libs/clutter-1.14.4:1.0 + >=media-libs/clutter-gtk-1.2:1.0 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.12:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" diff --git a/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild b/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild new file mode 100644 index 000000000000..c1e031fadedf --- /dev/null +++ b/games-arcade/gnome-nibbles/gnome-nibbles-3.16.1.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Nibbles clone for Gnome" +HOMEPAGE="https://wiki.gnome.org/Apps/Nibbles" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + dev-libs/glib:2 + >=gnome-base/librsvg-2.32:2 + >=media-libs/clutter-1.14.4:1.0 + >=media-libs/clutter-gtk-1.2:1.0 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.15:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" diff --git a/games-arcade/gnome-nibbles/metadata.xml b/games-arcade/gnome-nibbles/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-arcade/gnome-nibbles/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-arcade/gnome-robots/Manifest b/games-arcade/gnome-robots/Manifest new file mode 100644 index 000000000000..a13cd25e2c3f --- /dev/null +++ b/games-arcade/gnome-robots/Manifest @@ -0,0 +1,2 @@ +DIST gnome-robots-3.14.2.tar.xz 1638328 SHA256 812b7908c0a5a44348cc92c87737ec38542f0e569f88fb9c0984baafbe6d1851 SHA512 8ffbe432d0434af228300081c169acb295a16bd912b56501ebc8b8d15a472786f0b2551e8c9418c08a14adc3766da446aae253eb7ba129de284601e0b7767ebb WHIRLPOOL c0cbb2b539cff1a6d8f7dc9053002f5532772ccf7d0d940e63216361b4018005e77cba03a6e60164bcc4e3b8efba472e37358c81c97497f216a50ea9344d2809 +DIST gnome-robots-3.16.1.tar.xz 1589712 SHA256 dd9e202dea07e864a9cb92ae6003079f296278d49d0239f4b8da130b73a01f36 SHA512 91609f20082bb1314573d31220f59fe38468d7d0246fc29a561bd8e5302814885c240cf654eabe9127481def9376dda083465e5afcc6a5e8dc8872614aaddc02 WHIRLPOOL b26ad6ade1550f377514fceeb136bf2fafea8abf95984adf674e541844f61eb64d388d670333b73b6fe3d8d88f4f170318e5f90aba0b4da0f7fcb168fb8d40c7 diff --git a/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild b/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild new file mode 100644 index 000000000000..9d0dd2d000df --- /dev/null +++ b/games-arcade/gnome-robots/gnome-robots-3.14.2.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Avoid the robots and make them crash into each other" +HOMEPAGE="https://wiki.gnome.org/Apps/Robots" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.32:2 + >=gnome-base/librsvg-2.36.2:2 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.12:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-util/appdata-tools + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" + +src_configure() { + gnome-games_src_configure APPDATA_VALIDATE=$(type -P true) +} diff --git a/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild b/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild new file mode 100644 index 000000000000..4531af901fe9 --- /dev/null +++ b/games-arcade/gnome-robots/gnome-robots-3.16.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +GCONF_DEBUG="no" + +inherit gnome-games + +DESCRIPTION="Avoid the robots and make them crash into each other" +HOMEPAGE="https://wiki.gnome.org/Apps/Robots" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RDEPEND=" + >=dev-libs/glib-2.32:2 + >=gnome-base/librsvg-2.36.2:2 + >=media-libs/libcanberra-0.26[gtk3] + >=x11-libs/gtk+-3.15:3 +" +DEPEND="${RDEPEND} + app-text/yelp-tools + dev-libs/appstream-glib + >=dev-util/intltool-0.50 + sys-devel/gettext + virtual/pkgconfig +" diff --git a/games-arcade/gnome-robots/metadata.xml b/games-arcade/gnome-robots/metadata.xml new file mode 100644 index 000000000000..da6fd63d0085 --- /dev/null +++ b/games-arcade/gnome-robots/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>gnome</herd> +</pkgmetadata> diff --git a/games-arcade/gnujump/Manifest b/games-arcade/gnujump/Manifest new file mode 100644 index 000000000000..ee7f1cd4dde4 --- /dev/null +++ b/games-arcade/gnujump/Manifest @@ -0,0 +1 @@ +DIST gnujump-1.0.8.tar.gz 2508641 SHA256 13c3fe5f430eb0c010560c7e438123a573ca61a55c6708aa750cfbf56bf25e17 SHA512 fb8a06e17f700ea1e8c264b23a9f286d595cf48cc78efbe60ffdad298bc33ff0ecb2035a1db8281886614fbc8280d2b0c86a2099d55e31bff970f3b3c3caa421 WHIRLPOOL cca935d2a752b0b9354082230d61717554dd6ec77c6986ca852a6c11809c4ac9631f3baf577d6f378552402730f806af9c435332bdc7dec0b27a41f03383fb8c diff --git a/games-arcade/gnujump/gnujump-1.0.8.ebuild b/games-arcade/gnujump/gnujump-1.0.8.ebuild new file mode 100644 index 000000000000..5119d8abd61d --- /dev/null +++ b/games-arcade/gnujump/gnujump-1.0.8.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="Xjump clone with added features" +HOMEPAGE="http://gnujump.es.gnu.org" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + virtual/opengl + x11-libs/libX11" +RDEPEND=${DEPEND} + +src_prepare() { + append-libs -lm +} + +src_install() { + DOCS=( AUTHORS ChangeLog README ) + default + + newicon skins/xjump/hero1.0.png ${PN}.png + make_desktop_entry ${PN} "GNUjump" + + prepgamesdirs +} diff --git a/games-arcade/gnujump/metadata.xml b/games-arcade/gnujump/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/gnujump/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/grande-KXL/Manifest b/games-arcade/grande-KXL/Manifest new file mode 100644 index 000000000000..c21f5ed6c8d0 --- /dev/null +++ b/games-arcade/grande-KXL/Manifest @@ -0,0 +1 @@ +DIST grande-KXL-0.6.tar.gz 240869 SHA256 5f85f2f5026f815eb68b58aa3e29615f5ed393ad207c33ef3617c934c07257e4 SHA512 17916e54b2b2bad25d789bc3d4f182f3f104fd4e5cf7b745bb9613f76ec04a2a3d2740ca89b507ecdb653f1d42b793115e76b5b34d53b96fec3d55574632b980 WHIRLPOOL d24954b838d4fa6aaa8ac55bfe274bcb7b14ba34b308f17153193741bab485c8e3d01e14600e592a716a9e24931fde790d56df17be8f583eb779dc5efd282bbe diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch new file mode 100644 index 000000000000..ff51e562bcb3 --- /dev/null +++ b/games-arcade/grande-KXL/files/grande-KXL-0.6-cflags.patch @@ -0,0 +1,17 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Wed Aug 8 19:37:19 UTC 2012 +Subject: build system + +respect CFLAGS + +--- src/Makefile.am ++++ src/Makefile.am +@@ -8,7 +8,7 @@ + + SUBDIRS = bmp wav stg + +-CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@ @INST_FLAG@ @SCORE_FLAG@ ++AM_CFLAGS = @X_CFLAGS@ @KXL_CFLAGS@ @INST_FLAG@ @SCORE_FLAG@ + LIBS = @X_LIBS@ -lX11 @KXL_LIBS@ -lKXL + + install-data-local: diff --git a/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch b/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch new file mode 100644 index 000000000000..80cdcd83b898 --- /dev/null +++ b/games-arcade/grande-KXL/files/grande-KXL-0.6-configure.in.patch @@ -0,0 +1,17 @@ +--- configure.in ++++ configure.in +@@ -17,12 +17,8 @@ + AC_CHECK_HEADERS(unistd.h) + + dnl installation & score path +-if test "x${prefix}" = "xNONE"; then +- inst_path="${ac_default_prefix}/games/grande" +-else +- inst_path="${prefix}/games/grande" +-fi +-score_path="/var/games" ++inst_path="${datadir}/grande" ++score_path="${localstatedir}" + + dnl check if installation was disabled + AC_ARG_ENABLE( install, diff --git a/games-arcade/grande-KXL/grande-KXL-0.6.ebuild b/games-arcade/grande-KXL/grande-KXL-0.6.ebuild new file mode 100644 index 000000000000..46417cc1a673 --- /dev/null +++ b/games-arcade/grande-KXL/grande-KXL-0.6.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="ZANAC type game" +HOMEPAGE="http://triring.net/ps2linux/games/kxl/kxlgames.html" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="dev-games/KXL" +RDEPEND="${DEPEND} + media-fonts/font-adobe-100dpi" + +src_prepare() { + epatch "${FILESDIR}"/${P}-{configure.in,cflags}.patch + mv configure.{in,ac} + rm aclocal.m4 + eautoreconf +} + +src_install() { + dodir "${GAMES_STATEDIR}" + default + newicon src/bmp/boss1.bmp ${PN}.bmp + make_desktop_entry grande Grande /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} diff --git a/games-arcade/grande-KXL/metadata.xml b/games-arcade/grande-KXL/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/grande-KXL/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/gunocide2ex/Manifest b/games-arcade/gunocide2ex/Manifest new file mode 100644 index 000000000000..a432066044a5 --- /dev/null +++ b/games-arcade/gunocide2ex/Manifest @@ -0,0 +1 @@ +DIST g2ex-setup.run 30844481 SHA256 85cf7ff402b73271e24867c7b0c162b258d61a69065d6a848ea0b74c301a4fbe SHA512 e3c861843d88c3b09fa2e579d1be4b0590c04b7b401c7d592cf6b7150fc395445056ba599c0bc6f72ba7044cfc097070751d32bb66aa790e72e2b1c45407f2b2 WHIRLPOOL 3cc496a0eb508432a525ba6a13c48328df8ceceb6038d43a9caf420514b49db0526c87ff622f0e60484c9d7cf78fd0e85bd457cf018315a40dcf650c595502dd diff --git a/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch new file mode 100644 index 000000000000..9abce6c01a2b --- /dev/null +++ b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-build.patch @@ -0,0 +1,178 @@ +diff -ur work.orig/src/cEffects.cpp work/src/cEffects.cpp +--- work.orig/src/cEffects.cpp 2002-01-12 16:19:00.000000000 -0500 ++++ work/src/cEffects.cpp 2009-06-10 18:14:27.000000000 -0400 +@@ -180,7 +180,6 @@ + {
+ if(!i->update())
+ i=lEffects.erase(i);
+- if(i==NULL)break;
+ }
+
+ for(p=lParticles.begin();p!=lParticles.end();++p)
+@@ -190,8 +189,6 @@ + if(!p->active())
+ {
+ p=lParticles.erase(p);
+- if(p==NULL)
+- break;
+ }
+ }
+
+diff -ur work.orig/src/cFont.cpp work/src/cFont.cpp +--- work.orig/src/cFont.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cFont.cpp 2009-06-10 18:19:15.000000000 -0400 +@@ -62,7 +62,7 @@ + }
+
+ ///ldt einen TTF-Font ein
+-bool cFont::load(char *path,int size)
++bool cFont::load(const char *path,int size)
+ {
+ font = TTF_OpenFont(path,size);
+ if(font==NULL)
+diff -ur work.orig/src/cFont.h work/src/cFont.h +--- work.orig/src/cFont.h 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cFont.h 2009-06-10 18:19:27.000000000 -0400 +@@ -34,7 +34,7 @@ + static void delInstance(); + static bool initttf(); + +- bool load(char *path,int size); ++ bool load(const char *path,int size); + void setcolor(int r,int g,int b); + void setshader(int r,int g,int b); + void print(SDL_Surface *screen,int posx,int posy,const char *fmt, ...); +diff -ur work.orig/src/cParticleSys.cpp work/src/cParticleSys.cpp +--- work.orig/src/cParticleSys.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cParticleSys.cpp 2009-06-10 18:14:27.000000000 -0400 +@@ -81,9 +81,6 @@ + if(time-p->getstarttime()>p->getlifetime()) + { + p=lParticles.erase(p); +- if(p==NULL) +- break; +- + } + } + +diff -ur work.orig/src/cSound.cpp work/src/cSound.cpp +--- work.orig/src/cSound.cpp 2002-01-12 16:27:34.000000000 -0500 ++++ work/src/cSound.cpp 2009-06-10 18:17:44.000000000 -0400 +@@ -92,7 +92,7 @@ + }
+
+ ///spielt eine ogg-datei ab
+-bool cSound::playogg(char *path)
++bool cSound::playogg(const char *path)
+ {
+ if(!sound_on)
+ return true;
+diff -ur work.orig/src/cSound.h work/src/cSound.h +--- work.orig/src/cSound.h 2002-01-08 12:30:57.000000000 -0500 ++++ work/src/cSound.h 2009-06-10 18:17:50.000000000 -0400 +@@ -35,7 +35,7 @@ + + bool init(); + void close(); +- bool playogg(char *path); ++ bool playogg(const char *path); + void stopogg(); + bool loadwav(int index,char *path); + void playwav(int index); +diff -ur work.orig/src/cSprite.cpp work/src/cSprite.cpp +--- work.orig/src/cSprite.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cSprite.cpp 2009-06-10 18:18:34.000000000 -0400 +@@ -29,7 +29,7 @@ + + ///ldt ein BMP in das image-Surface + ///gibt false zurck falls es schief geht +-bool cSprite::loadBMP(char *path) ++bool cSprite::loadBMP(const char *path) + { + image=SDL_LoadBMP(path); + if(!image) +@@ -73,4 +73,4 @@ + int cSprite::getheight() + { + return image->h; +-} +\ No newline at end of file ++} +diff -ur work.orig/src/cSprite.h work/src/cSprite.h +--- work.orig/src/cSprite.h 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cSprite.h 2009-06-10 18:18:44.000000000 -0400 +@@ -26,7 +26,7 @@ + cSprite(); + ~cSprite(); + +- bool loadBMP(char *path); ++ bool loadBMP(const char *path); + void render(SDL_Surface *screen,int x,int y); + void setColorKey(int r,int g,int b); + +diff -ur work.orig/src/cSpriteAnim.cpp work/src/cSpriteAnim.cpp +--- work.orig/src/cSpriteAnim.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cSpriteAnim.cpp 2009-06-10 18:20:09.000000000 -0400 +@@ -145,7 +145,7 @@ + }
+
+ ///einladen einer Animation aus einer Datei
+-bool cSpriteAnim::load(char *path)
++bool cSpriteAnim::load(const char *path)
+ {
+ FILE *file;
+ char buffer[512];
+@@ -248,4 +248,4 @@ + {
+ if(anim==NULL)return -1;
+ return gfx_sprite[anim->getAct()].getwidth();
+-} +\ No newline at end of file ++}
+diff -ur work.orig/src/cSpriteAnim.h work/src/cSpriteAnim.h +--- work.orig/src/cSpriteAnim.h 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cSpriteAnim.h 2009-06-10 18:20:16.000000000 -0400 +@@ -53,7 +53,7 @@ + cSpriteAnim(); + ~cSpriteAnim(); + +- bool load(char *path); ++ bool load(const char *path); + void setColorKey(int r,int g,int b); + void render(SDL_Surface *screen,cAnim *anim,int x,int y); + int getMaxNum(); +diff -ur work.orig/src/cUtil.cpp work/src/cUtil.cpp +--- work.orig/src/cUtil.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cUtil.cpp 2009-06-10 18:16:29.000000000 -0400 +@@ -85,7 +85,7 @@ + }
+
+ ///liest einen wert aus einer config-datei
+-char* cUtil::getconfigvalue(char *path,char *value)
++char* cUtil::getconfigvalue(const char *path,const char *value)
+ {
+ FILE *file;
+ char buffer[512];
+diff -ur work.orig/src/cUtil.h work/src/cUtil.h +--- work.orig/src/cUtil.h 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/cUtil.h 2009-06-10 18:16:39.000000000 -0400 +@@ -31,7 +31,7 @@ +
+ void updatetime();
+ float sync(float Faktor);
+- char* getconfigvalue(char *path,char *value);
++ char* getconfigvalue(const char *path,const char *value);
+ void drawpixel(SDL_Surface *screen, int x, int y,Uint8 R, Uint8 G,Uint8 B);
+ bool collision(SDL_Rect objekt1,SDL_Rect objekt2);
+
+diff -ur work.orig/src/mmgr.cpp work/src/mmgr.cpp +--- work.orig/src/mmgr.cpp 2002-01-02 07:57:46.000000000 -0500 ++++ work/src/mmgr.cpp 2009-06-10 18:14:23.000000000 -0400 +@@ -59,6 +59,7 @@ + #include <time.h>
+ #include <stdarg.h>
+ #include <new>
++using namespace std; +
+ #ifndef WIN32
+ #include <unistd.h>
diff --git a/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch new file mode 100644 index 000000000000..6b659c76a82d --- /dev/null +++ b/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch @@ -0,0 +1,14 @@ +--- src/mmgr.cpp ++++ src/mmgr.cpp +@@ -228,9 +228,9 @@ +
+ static const char *sourceFileStripper(const char *sourceFile)
+ {
+- char *ptr = strrchr(sourceFile, '\\');
++ char *ptr = strrchr((char *)sourceFile, '\\');
+ if (ptr) return ptr + 1;
+- ptr = strrchr(sourceFile, '/');
++ ptr = strrchr((char *)sourceFile, '/');
+ if (ptr) return ptr + 1;
+ return sourceFile;
+ }
diff --git a/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild b/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild new file mode 100644 index 000000000000..9e2b4ca330cc --- /dev/null +++ b/games-arcade/gunocide2ex/gunocide2ex-1.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils unpacker toolchain-funcs games + +DESCRIPTION="fast-paced 2D shoot'em'up" +HOMEPAGE="http://g2ex.sourceforge.net/" +SRC_URI="mirror://sourceforge/g2ex/g2ex-setup.run" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis]" +RDEPEND=${DEPEND} + +S=${WORKDIR} + +src_unpack() { + unpack_makeself + mkdir binary || die +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-glibc2.10.patch + edos2unix config.cfg + sed -i \ + -e "s:/usr/local/games/gunocide2ex/config\.cfg:${GAMES_SYSCONFDIR}/${PN}.cfg:" \ + -e "s:/usr/local/games/gunocide2ex/hscore\.dat:${GAMES_STATEDIR}/${PN}-hscore.dat:" \ + -e "s:memleaks.log:/dev/null:" \ + src/*.{h,cpp} || die + sed -i \ + -e "s:/usr/local/games:${GAMES_DATADIR}:" \ + src/*.{h,cpp} $(find gfx -name '*.txt') || die +} + +src_compile() { + cd src + emake CXXFLAGS="$CXXFLAGS $(sdl-config --cflags)" $(echo *.cpp | sed 's/\.cpp/.o/g') + $(tc-getCXX) ${CXXFLAGS} ${LDFLAGS} -o ${PN} *.o -lpthread -lSDL -lSDL_ttf -lSDL_mixer || die +} + +src_install() { + dogamesbin src/${PN} + dosym ${PN} "${GAMES_BINDIR}/g2ex" + insinto "${GAMES_DATADIR}/${PN}" + doins -r gfx sfx lvl credits arial.ttf + insinto "${GAMES_SYSCONFDIR}" + newins config.cfg ${PN}.cfg + insinto "${GAMES_STATEDIR}" + newins hscore.dat ${PN}-hscore.dat + dodoc history doc/MANUAL_DE + dohtml doc/manual_de.html + newicon g2icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Gunocide II EX" + prepgamesdirs +} diff --git a/games-arcade/gunocide2ex/metadata.xml b/games-arcade/gunocide2ex/metadata.xml new file mode 100644 index 000000000000..e70e54d1aff7 --- /dev/null +++ b/games-arcade/gunocide2ex/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">g2ex</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/holotz-castle/Manifest b/games-arcade/holotz-castle/Manifest new file mode 100644 index 000000000000..c168de9106e7 --- /dev/null +++ b/games-arcade/holotz-castle/Manifest @@ -0,0 +1 @@ +DIST holotz-castle-1.3.14-src.tar.gz 3691364 SHA256 42903559a9821b39eac6eba7730be0fcba12c9ad861ba2691f372c54371039b1 diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch new file mode 100644 index 000000000000..bb834656601d --- /dev/null +++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-build.patch @@ -0,0 +1,71 @@ +--- JLib/Makefile ++++ JLib/Makefile +@@ -19,7 +19,7 @@ + endif + + # Define -D_JLIB_DEBUG to debug JLib. Compile the app to debug also with this flag +-CFLAGS=-I. -I/usr/local/include/SDL -O3 -ffast-math -fPIC -Wall -Wshadow `$(SDL_CONFIG) --cflags` ++CXXFLAGS+=-I. -Wall -Wshadow `$(SDL_CONFIG) --cflags` + + # Sample LDFLAGS for applications + # LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` +@@ -28,15 +28,14 @@ + + # JLib + libJLib: $(JLIB_OBJS) +- g++-4.1 -shared -L/usr/lib -fPIC -o $@.so $? \ +- && ar rvus $@.a $? \ ++ $(AR) rvus $@.a $? + + $(GRAPHICS)/%.o: $(GRAPHICS)/%.cpp +- g++-4.1 $(CFLAGS) -c -o $@ $< ++ $(CXX) $(CXXFLAGS) -c -o $@ $< + $(UTIL)/%.o: $(UTIL)/%.cpp +- g++-4.1 $(CFLAGS) -c -o $@ $< ++ $(CXX) $(CXXFLAGS) -c -o $@ $< + $(MATH)/%.o: $(MATH)/%.cpp +- g++-4.1 $(CFLAGS) -c -o $@ $< ++ $(CXX) $(CXXFLAGS) -c -o $@ $< + + .PHONY: install + install: +--- src/Makefile ++++ src/Makefile +@@ -30,7 +30,7 @@ + + DEFINES = -DHC_DATA_DIR=\"$(HC_DATA)\" -DHCED_DATA_DIR=\"$(HCED_DATA)\" + +-all: JLib HC HCed ++all: HC HCed + + HC_OBJ_MAIN=HolotzCastle.o + HC_OBJS=HCUtil.o HCTimer.o HCLoadSaveSlot.o HCPlaylist.o HCPreferences.o HCTheme.o HCText.o \ +@@ -42,23 +42,23 @@ + + # Definir -D_JLIB_DEBUG para debug con JLib. Ponerlo también en el Makefile de JLib. + # Define -D_JLIB_DEBUG for JLib debug mode. Put it also in JLib's Makefile. +-CFLAGS=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -I/usr/local/include/ -I/usr/local/include/SDL -O3 -Wall -Werror -Wshadow $(CPU_OPTS) -ffast-math -c +-LDFLAGS=-L. -ffast-math -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` ++CXXFLAGS+=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -Wall -Wshadow ++LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` + + + JLib: + $(MAKE) -C ../JLib; + + %.o: %.cpp %.h +- g++ $(CFLAGS) $(DEFINES) $< -o $@ ++ $(CXX) -c $(CXXFLAGS) $(DEFINES) $< -o $@ + + HC: $(HC_OBJS) $(HC_OBJ_MAIN) ../JLib/libJLib.a +- g++ $(LDFLAGS) $? -o $@;\ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $? $(LDLIBS);\ + mv HC ../holotz-castle + + # HCed (Holotz's Castle editor). + HCed: $(HC_OBJS) $(HCED_OBJ_MAIN) ../JLib/libJLib.a +- g++ $(LDFLAGS) $? -o $@;\ ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $? $(LDLIBS);\ + mv HCed ../holotz-castle-editor + + install: diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch new file mode 100644 index 000000000000..0c3af53591bf --- /dev/null +++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-gcc44.patch @@ -0,0 +1,11 @@ +--- JLib/JLib/Util/JFS.cpp ++++ JLib/JLib/Util/JFS.cpp +@@ -887,7 +887,7 @@ + + // Si es un directorio lo importa recursivamente + struct dirent64 **namelist; +- n = scandir64(filename, &namelist, 0, alphasort); ++ n = scandir64(filename, &namelist, 0, alphasort64); + + if (n < 0) + { diff --git a/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch new file mode 100644 index 000000000000..2e23b2a40995 --- /dev/null +++ b/games-arcade/holotz-castle/files/holotz-castle-1.3.14-underlink.patch @@ -0,0 +1,11 @@ +--- src/Makefile.old 2011-06-22 06:09:53.195025702 +0200 ++++ src/Makefile 2011-06-22 06:10:54.774927134 +0200 +@@ -43,7 +43,7 @@ + # Definir -D_JLIB_DEBUG para debug con JLib. Ponerlo también en el Makefile de JLib. + # Define -D_JLIB_DEBUG for JLib debug mode. Put it also in JLib's Makefile. + CXXFLAGS+=-fno-strict-aliasing -I. -I../JLib `$(SDL_CONFIG) --cflags` -Wall -Wshadow +-LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` ++LDLIBS=-L. -lSDL_image -lSDL_ttf -lSDL_mixer `$(SDL_CONFIG) --libs` -lm -lz + + + JLib: diff --git a/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild b/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild new file mode 100644 index 000000000000..2f747c7d07a5 --- /dev/null +++ b/games-arcade/holotz-castle/holotz-castle-1.3.14.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils toolchain-funcs games + +DESCRIPTION="2D platform game" +HOMEPAGE="http://www.mainreactor.net/holotzcastle/en/index_en.html" +SRC_URI="http://www.mainreactor.net/holotzcastle/download/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/sdl-mixer + media-libs/libsdl + media-libs/sdl-ttf + media-libs/sdl-image" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}-src + +PATCHES=( + "${FILESDIR}"/${P}-build.patch + "${FILESDIR}"/${P}-gcc44.patch + "${FILESDIR}"/${P}-underlink.patch +) + +src_compile() { + tc-export AR + emake -C JLib + emake -C src HC_BASE="${GAMES_DATADIR}"/${PN}/ +} + +src_install() { + dogamesbin holotz-castle holotz-castle-editor + insinto "${GAMES_DATADIR}"/${PN}/game + doins -r res/* + insinto "${GAMES_DATADIR}"/${PN}/editor + doins -r HCedHome/res/* + newicon res/icon/icon.bmp ${PN}.bmp + make_desktop_entry ${PN} "Holotz's Castle" /usr/share/pixmaps/${PN}.bmp + make_desktop_entry ${PN}-editor "Holotz's Castle - Editor" \ + /usr/share/pixmaps/${PN}.bmp + dodoc doc/MANUAL*.txt + doman man/*.6 + prepgamesdirs +} diff --git a/games-arcade/holotz-castle/metadata.xml b/games-arcade/holotz-castle/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/holotz-castle/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/insaneodyssey/Manifest b/games-arcade/insaneodyssey/Manifest new file mode 100644 index 000000000000..9857d2bb442e --- /dev/null +++ b/games-arcade/insaneodyssey/Manifest @@ -0,0 +1 @@ +DIST io000311.tar.gz 839950 SHA256 72e7dd8b1b87dab6772ce21576ef048d6b34b551449af9c7580ae53f006e704f SHA512 9fbf79daf1886c31a6309036cf382c2e175e3c280d6d5aa822971e977e97227f4290474c272afd7ed8218b2cc7e66b407b37522207b30225a41488201a244d96 WHIRLPOOL bb1e4e3eeb3d9780f6b9b28315e93f11a21a751097b910b279a5889cc25021f1f09bb8f585342e9ba9b4e56c41aad647b109271b366c58626ca93c563459d92b diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch new file mode 100644 index 000000000000..417d8396e19b --- /dev/null +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch @@ -0,0 +1,55 @@ +--- io.cpp.orig 2004-06-01 19:11:16.000000000 +0300 ++++ io.cpp 2004-06-01 19:21:14.000000000 +0300 +@@ -42,7 +42,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", + datafile); +@@ -67,7 +71,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", datafile); + return(NULL); +@@ -87,8 +95,12 @@ + { + SDL_Surface *image; + ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ + /* Load the BMP file into a surface */ +- image = IMG_Load(datafile); ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load %s: %s\n", datafile, + SDL_GetError()); +@@ -493,7 +493,11 @@ + if ( fp != NULL ) + while( !feof(fp) && j < MAXTILES ) + { +- fscanf ( fp, "%d %d %d\n", &tileatt[j].nexttile, &tileatt[j].bits, &tileatt[j].wait ); ++ int nexttile, bits, wait; ++ fscanf(fp, "%d %d %d\n", &nexttile, &bits, &wait); ++ tileatt[j].nexttile = nexttile; ++ tileatt[j].bits = bits; ++ tileatt[j].wait = wait; + j++; + } + else diff --git a/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild new file mode 100644 index 000000000000..277d66455c02 --- /dev/null +++ b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Help West Muldune escape from a futuristic mental hospital" +HOMEPAGE="http://members.fortunecity.com/rivalentertainment/iox.html" +# Upstream has download issues. +#SRC_URI="http://members.fortunecity.com/rivalentertainment/io${PV}.tar.gz" +SRC_URI="mirror://gentoo/io${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-image" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${PN} + +src_prepare() { + cd ${PN} + + # Modify data load code and paths to game data + sed -e "s:/usr/share/games:${GAMES_DATADIR}:" \ + "${FILESDIR}"/${P}-datafiles.patch > "${T}"/datafiles.patch \ + || die + epatch "${T}"/datafiles.patch + sed -i \ + -e "/lvl/s:^:${GAMES_DATADIR}/${PN}/:" \ + -e "s:night:${GAMES_DATADIR}/${PN}/night:" \ + levels.dat || die + sed -i \ + -e "s:tiles.dat:${GAMES_DATADIR}/${PN}/tiles.dat:" \ + -e "s:sprites.dat:${GAMES_DATADIR}/${PN}/sprites.dat:" \ + -e "s:levels.dat:${GAMES_DATADIR}/${PN}/levels.dat:" \ + -e "s:IO_T:${GAMES_DATADIR}/${PN}/IO_T:" \ + -e "s:tiles.att:${GAMES_DATADIR}/${PN}/tiles.att:" \ + -e "s:shot:${GAMES_DATADIR}/${PN}/shot:" \ + io.cpp || die + sed -i \ + -e 's:\[32:[100:' \ + io.h || die +} + +src_install() { + cd ${PN} + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins *bmp *png *dat *att *lvl *wav *mod *IT + newicon west00r.png ${PN}.png + make_desktop_entry ${PN} "Insane Odyssey" + prepgamesdirs +} diff --git a/games-arcade/insaneodyssey/metadata.xml b/games-arcade/insaneodyssey/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/insaneodyssey/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/jardinains/Manifest b/games-arcade/jardinains/Manifest new file mode 100644 index 000000000000..0b5bff0d4631 --- /dev/null +++ b/games-arcade/jardinains/Manifest @@ -0,0 +1 @@ +DIST JN2_1_FREE_LIN.tar.gz 17433159 SHA256 635eb4eb7813522e5d4ff737719c92c97d605712c3b1b94d5a32863889e949d8 SHA512 ddb6e48e071b42b7871cb6396c61fdf9bfb85e9bb9f88720e8ac1b7bff499c43784de6bf3f67d3fe61bc05ed0e3f6a24f646aa6c54e387b95e744c16525978e8 WHIRLPOOL 4d4a726afa60cc962d06b93fa0ea98523016e1831833eb4128dc9d218bd924a671d72d5fa5e902fc888c6518d3ecd72f44cd347633827337f8c9ebb0ec8eda85 diff --git a/games-arcade/jardinains/files/strings-pt.patch b/games-arcade/jardinains/files/strings-pt.patch new file mode 100644 index 000000000000..246017a3f5bc --- /dev/null +++ b/games-arcade/jardinains/files/strings-pt.patch @@ -0,0 +1,303 @@ +--- data/strings.xml 2006-11-11 23:45:28.000000000 +0000 ++++ data/strings.xml 2007-02-02 14:14:14.000000000 +0000 +@@ -35,5 +35,5 @@ + <es>Espaol</es>
+ <it>Italiano</it>
+- <pt>Portuguese</pt>
++ <pt>Portugus</pt>
+ <pl>Polski</pl>
+ </message>
+@@ -61,5 +61,5 @@ + <es>Parar</es>
+ <it>Uscita</it>
+- <pt>Parado</pt>
++ <pt>Sair</pt>
+ <pl>Koniec</pl>
+ </message>
+@@ -74,5 +74,5 @@ + <es>Juego Nuevo</es>
+ <it>Nuovo Gioco</it>
+- <pt>Jogo Novo</pt>
++ <pt>Novo Jogo</pt>
+ <pl>Nowa Gra</pl>
+ </message>
+@@ -113,5 +113,5 @@ + <es>Modo De La Ventana</es>
+ <it>Modo Della Finestra</it>
+- <pt>Modalidade Da Janela</pt>
++ <pt>Modo de Janela</pt>
+ <pl>Tryb Okienkowy</pl>
+ </message>
+@@ -165,5 +165,5 @@ + <es>Pantalla Completa</es>
+ <it>Schermo Pieno</it>
+- <pt>Tela Cheia</pt>
++ <pt>Jogar em Ecr Completo</pt>
+ <pl>Pelny Ekran</pl>
+ </message>
+@@ -178,5 +178,5 @@ + <es>Pantalla Completa/Ventana</es>
+ <it>Schermo Pieno/Finestra</it>
+- <pt>Tela Cheia/Janela</pt>
++ <pt>Ecr Completo/Janela</pt>
+ <pl>Pelny Ecran/Okno</pl>
+ </message>
+@@ -218,5 +218,5 @@ + <es>Regresar</es>
+ <it>Andare Indietro</it>
+- <pt>Ir Para Trs</pt>
++ <pt>Voltar</pt>
+ <pl>Wstecz</pl>
+ </message>
+@@ -244,5 +244,5 @@ + <es>Anular</es>
+ <it>Annullamento</it>
+- <pt>Cancelamento</pt>
++ <pt>Cancelar</pt>
+ <pl>Poniechaj</pl>
+ </message>
+@@ -257,5 +257,5 @@ + <es>Continuar Jugando</es>
+ <it>Continuare A Giocare</it>
+- <pt>Continuar Jogando</pt>
++ <pt>Continuar a Jogar</pt>
+ <pl>Kontynuuj Gre</pl>
+ </message>
+@@ -270,5 +270,5 @@ + <es>Terminar y Regresar</es>
+ <it>Rinunciato Al Menu</it>
+- <pt>Parado Ao Menu</pt>
++ <pt>Sair para o Menu</pt>
+ <pl>Wyjdz Do Menu</pl>
+ </message>
+@@ -283,5 +283,5 @@ + <es>Terminar de Jugar</es>
+ <it>Uscita Jardinains 2</it>
+- <pt>Parado Jardinains 2</pt>
++ <pt>Sair do Jardinains 2</pt>
+ <pl>Zakoncz Jardinains 2</pl>
+ </message>
+@@ -296,5 +296,5 @@ + <es>Pausa</es>
+ <it>Pausa</it>
+- <pt>Pausado/pt>
++ <pt>Pausa</pt>
+ <pl>Gra Przerwana</pl>
+ </message>
+@@ -322,5 +322,5 @@ + <es>Calidad de los grficos</es>
+ <it>Qualit dei grafici</it>
+- <pt>Qualidade dos grficos</pt>
++ <pt>Qualidade dos Grficos</pt>
+ <pl>Jakosc Grafiki</pl>
+ </message>
+@@ -335,5 +335,5 @@ + <es>Conductor de los grficos</es>
+ <it>Driver dei grafici</it>
+- <pt>Excitador dos grficos</pt>
++ <pt>Controlador dos Grficos</pt>
+ <pl>Sterowniki Graficzne</pl>
+ </message>
+@@ -361,5 +361,5 @@ + <es>Crear A Nuevo Jugador</es>
+ <it>Generare Il Nuovo Giocatore</it>
+- <pt>Criar O Jogador Novo</pt>
++ <pt>Criar um Jogador Novo</pt>
+ <pl>Utworz Nowego Gracza</pl>
+ </message>
+@@ -374,5 +374,5 @@ + <es>Entrar Contrasea</es>
+ <it>Digitare La Parola d'Accesso</it>
+- <pt>Incorporar A Senha</pt>
++ <pt>Introduzir A Senha</pt>
+ <pl>Wpisz Haslo</pl>
+ </message>
+@@ -387,5 +387,5 @@ + <es>Volver A Entrar La Contrasea</es>
+ <it>Digitare Ancora La Parola d'Accesso</it>
+- <pt>Incorporar A Senha Outra Vez</pt>
++ <pt>Re-Introduzir A Senha</pt>
+ <pl>Wprowadz Haslo Ponownie</pl>
+ </message>
+@@ -400,5 +400,5 @@ + <es>Las Contraseas No Emparejan!</es>
+ <it>Parole d'Accesso Male!</it>
+- <pt>As Senhas No Combinam!</pt>
++ <pt>As Senhas No Coincidem!</pt>
+ <pl>Hasla Nie Sa Identyczne!</pl>
+ </message>
+@@ -426,5 +426,5 @@ + <es>Contrasea Incorrecta</es>
+ <it>Parola d'Accesso Errata</it>
+- <pt>Senha Incorreta</pt>
++ <pt>Senha Incorrecta</pt>
+ <pl>Niepoprawne Haslo</pl>
+ </message>
+@@ -439,5 +439,5 @@ + <es>Incorporar Nombre Del Jugador</es>
+ <it>Introdurre Nome Del Giocatore</it>
+- <pt>Dar Entrada Nome Do Jogador</pt>
++ <pt>Introduzir o Nome Do Jogador</pt>
+ <pl>Wprowadz Imie Gracza</pl>
+ </message>
+@@ -452,5 +452,5 @@ + <es>Nombre No Existe!</es>
+ <it>Nessun Nome Introdotto!</it>
+- <pt>Nenhum Nome Dado Entrada Com!</pt>
++ <pt>Nenhum Nome Introduzido!</pt>
+ <pl>Nie Podano Imienia!</pl>
+ </message>
+@@ -465,5 +465,5 @@ + <es>El Jugador Existe!</es>
+ <it>Il Giocatore Gi Esiste!</it>
+- <pt>O Jogador Existe J!</pt>
++ <pt>O Jogador J Existe!</pt>
+ <pl>Gracz Juz Istnieje!</pl>
+ </message>
+@@ -478,5 +478,5 @@ + <es>No Se Puede Crear!</es>
+ <it>Non Ha Potuto Generare!</it>
+- <pt>No Podia Criar O Jogador!</pt>
++ <pt>No Consegui Criar O Jogador!</pt>
+ <pl>Utworzenie Gracza Niemozliwe!</pl>
+ </message>
+@@ -504,5 +504,5 @@ + <es>Fin</es>
+ <it>Gioco Sopra</it>
+- <pt>Jogo Sobre</pt>
++ <pt>Fim do Jogo</pt>
+ <pl>Koniec Gry</pl>
+ </message>
+@@ -517,5 +517,5 @@ + <es>Nuevo Juego De Este Nivel</es>
+ <it>Nuovo Gioco (Questo Livello)</it>
+- <pt>Jogo Novo Deste Nvel</pt>
++ <pt>Jogo Novo a partir Deste Nvel</pt>
+ <pl>Nowa Gra Od Tego Poziomu</pl>
+ </message>
+@@ -583,5 +583,5 @@ + <es>Cuenta Mejor</es>
+ <it>Segno Migliore</it>
+- <pt>Contagem Superior</pt>
++ <pt>Pontos Mximos</pt>
+ <pl>Najlepszy Wynik</pl>
+ </message>
+@@ -687,5 +687,5 @@ + <es>PROYECTILES</es>
+ <it>PROIETTILI</it>
+- <pt>PROJECTILES</pt>
++ <pt>PROJCTEIS</pt>
+ <pl>POCISKI</pl>
+ </message>
+@@ -739,5 +739,5 @@ + <es>PRIMAS</es>
+ <it>INDENNIT</it>
+- <pt>BNUS</pt>
++ <pt>BNUS</pt>
+ <pl>BONUSY</pl>
+ </message>
+@@ -804,5 +804,5 @@ + <es>Solamente Sonido</es>
+ <it>Suono Soltanto</it>
+- <pt>Som Somente</pt>
++ <pt>Apenas Som</pt>
+ <pl>Tylko Dzwieki</pl>
+ </message>
+@@ -817,5 +817,5 @@ + <es>Solamente Msica</es>
+ <it>Suono Musica</it>
+- <pt>Som Msica</pt>
++ <pt>Apenas Msica</pt>
+ <pl>Tylko Muzyka</pl>
+ </message>
+@@ -856,5 +856,5 @@ + <es>Solamente $19,99 USD!</es>
+ <it>Suono $19,99 USD!</it>
+- <pt>Som $19,99 USD!</pt>
++ <pt>S $19,99 USD!</pt>
+ <pl>Tylko $19,99 USD!</pl>
+ </message>
+@@ -882,5 +882,5 @@ + <es>Ms Primas!</es>
+ <it>Pi Indennit!</it>
+- <pt>Mais Bnus!</pt>
++ <pt>Mais Bnus!</pt>
+ <pl>Wiecej Bonusow!</pl>
+ </message>
+@@ -923,5 +923,5 @@ + <es>Clque Aqu Para Comprar!</es>
+ <it>Clicca Qui Per Comprare!</it>
+- <pt>Estalar aqui para comprar!</pt>
++ <pt>Clicar Aqui Para Comprar!</pt>^M + <pl>Kliknij tu, aby kupic!</pl>
+ </message>
+@@ -989,5 +989,5 @@ + <es>Abandonar el Juego Actual?</es>
+ <it>Abbandonare il Gioco Corrente?</it>
+- <pt>Abandonar o Jogo Atual?</pt>
++ <pt>Abandonar o Jogo Actual?</pt>
+ <pl>Koniec Biezacej Gry?</pl>
+ </message>
+@@ -1004,5 +1004,5 @@ + <es>Suprimir</es>
+ <it>Cancellare</it>
+- <pt>Suprimir</pt>
++ <pt>Apagar</pt>
+ <pl>Usunac</pl>
+ </message>
+@@ -1030,5 +1030,5 @@ + <es>Estadstica</es>
+ <it>Statistiche</it>
+- <pt>Statistics</pt>
++ <pt>Estatsticas</pt>
+ <pl>Statystyka</pl>
+ </message>
+@@ -1043,5 +1043,5 @@ + <es>Tiempo Perdi</es>
+ <it>Tempo Perso</it>
+- <pt>Tempo Perdeu</pt>
++ <pt>Tempo Total</pt>
+ <pl>Czas Stracony</pl>
+ </message>
+@@ -1069,5 +1069,5 @@ + <es>ao</es>
+ <it>anno</it>
+- <pt>anos</pt>
++ <pt>ano</pt>
+ <pl>rok</pl>
+ </message>
+@@ -1199,5 +1199,5 @@ + <es>Tramposo?</es>
+ <it>Frode?</it>
+- <pt>Fraude?</pt>
++ <pt>Ajudas?</pt>
+ <pl>Oszukac?</pl>
+ </message>
+@@ -1212,5 +1212,5 @@ + <es>Nmero de Juegos</es>
+ <it>Numero di Giochi</it>
+- <pt>Nmero dos Jogos</pt>
++ <pt>Nmero de Jogos</pt>
+ <pl>Gra Ogolny</pl>
+ </message>
+@@ -1225,5 +1225,5 @@ + <es>Nmero de Niveles</es>
+ <it>Numero di Livelli</it>
+- <pt>Nmero dos Nveis</pt>
++ <pt>Nmero de Nveis</pt>
+ <pl>Poziomy Ogolem</pl>
+ </message>
+@@ -1251,5 +1251,5 @@ + <es>Los paquetes del juego modificado estn disponibles solamente en la versin completa de Jardinains 2!</es>
+ <it>I pacchetti su ordinazione del gioco sono disponibili soltanto nella versione completa di Jardinains 2!</it>
+- <pt>Os blocos feitos sob encomenda do jogo esto disponveis somente na verso cheia de Jardinains 2!</pt>
++ <pt>Os blocos modificados do jogo esto disponveis somente na verso completa do Jardinains 2!</pt>
+ <pl>Custom game packs are available only in the full version of Jardinains 2!</pl>
+ </message>
+@@ -1293,5 +1293,5 @@ + <es>Ningunos Rastros de la Bola</es>
+ <it>Nessun Tracce della Sfera</it>
+- <pt>Nenhumas Fugas de Esfera</pt>
++ <pt>Nenhuns rastos de Esfera</pt>
+ <pl>Pilka Proste</pl>
+ </message>
diff --git a/games-arcade/jardinains/jardinains-2.0-r1.ebuild b/games-arcade/jardinains/jardinains-2.0-r1.ebuild new file mode 100644 index 000000000000..e177098a8152 --- /dev/null +++ b/games-arcade/jardinains/jardinains-2.0-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Arkanoid with Gnomes" +HOMEPAGE="http://www.jardinains2.com" +SRC_URI="mirror://gentoo/JN2_1_FREE_LIN.tar.gz" + +LICENSE="jardinains" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="strip" +QA_EXECSTACK="${GAMES_PREFIX_OPT:1}/jardinains/jardinains" + +DEPEND="" +RDEPEND="sys-libs/libstdc++-v3:5 + amd64? ( sys-libs/libstdc++-v3:5[multilib] ) + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=virtual/glu-9.0-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXxf86vm-1.1.3[abi_x86_32(-)]" + +dir=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${dir:1}/${PN}" + +src_unpack() { + unpack JN2_1_FREE_LIN.tar.gz + cd "${WORKDIR}" || die + mv "Jardinains 2!" ${P} || die +} + +src_prepare() { + # clean Mac fork files (bug #295782) + find . -type f -name "._*" -exec rm -f '{}' + + epatch "${FILESDIR}"/strings-pt.patch +} + +src_install() { + exeinto "${dir}" + doexe jardinains + insinto "${dir}" + doins -r LICENSE.txt data help + + games_make_wrapper jardinains ./jardinains "${dir}" "${dir}" + + make_desktop_entry jardinains "Jardinains 2" + touch "${D}${dir}/data/prefs.xml" + prepgamesdirs + chmod g+rw "${D}${dir}/data/prefs.xml" + chmod -R g+rw "${D}${dir}/data/players" +} + +pkg_postinst() { + games_pkg_postinst + elog "Due to the way this software is designed all user preferences for" + elog "graphics, audio and other in game data are shared among all users" + elog "of the computer. For that reason some files in the installation" + elog "folder are writable by any user in the games group." +} diff --git a/games-arcade/jardinains/metadata.xml b/games-arcade/jardinains/metadata.xml new file mode 100644 index 000000000000..92111f0d3a89 --- /dev/null +++ b/games-arcade/jardinains/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> + <longdescription>Jardinains 2!, the sequel to Jardinains 1! (surprisingly + enough) is a fairly straightforward game. You have a paddle. You have a + ball. You have a whole bunch of bricks. Inside these bricks live ‘nains. + ‘Nains are cute little critters who pop out of their bricks every now and + then to have some fun and give you a headache. </longdescription> +</pkgmetadata> diff --git a/games-arcade/jumpnbump/Manifest b/games-arcade/jumpnbump/Manifest new file mode 100644 index 000000000000..ff0d03120d99 --- /dev/null +++ b/games-arcade/jumpnbump/Manifest @@ -0,0 +1,2 @@ +DIST jumpnbump-1.50-autotool.patch.bz2 94692 SHA256 0fa9173293a893187b1e01086d296c04eaafa619be24d3b87d94b33f7d557462 SHA512 3749f3bda969d9ab2225019d8a6333d23402c8e284c3278aad23f76d5436326fed1efcae28a8922f814e0cf8417ea20fc51abb34f70bd6d37afca803475214fa WHIRLPOOL 51cbe8df33836547a1c0200392c2eeb6097e9ee276bfe291408527c3e91d10956e938bc9b693f4045720dcfd2a292c27a13ea7b21c119663f61feafd1d51e126 +DIST jumpnbump-1.50.tar.gz 397208 SHA256 b208bae76b07d7f39740bbbd385927e51cd821187c3e89270208710210dca8f3 SHA512 a343e514efa42aacd2c0fd113269ebf27418ea851dad21cecfa16a765639cc6a5de43fbdb9ad2f0282740f369b7e457a236fc3e918b486af10222c733f5c8fb0 WHIRLPOOL 78484a4eacd583127a9aaf9ec143ea81f4618108fc2d7228ebef450ce8cad231ba6e4613c20499e65f7c381bceada0401d3e86de28cb5cd4153b31190ad50754 diff --git a/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild b/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild new file mode 100644 index 000000000000..de3753bf796f --- /dev/null +++ b/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils games + +DESCRIPTION="a funny multiplayer game about cute little fluffy bunnies" +HOMEPAGE="http://www.jumpbump.mine.nu/" +SRC_URI=" + http://www.jumpbump.mine.nu/port/${P}.tar.gz + mirror://gentoo/${P}-autotool.patch.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="X fbcon kde svga tk +music" + +DEPEND=" + media-libs/sdl-mixer + media-libs/libsdl[sound,joystick,video] + media-libs/sdl-net + X? ( x11-libs/libXext ) + kde? ( kde-apps/kdialog ) + music? ( media-libs/sdl-mixer[mod] ) +" +RDEPEND="${DEPEND} + tk? ( + dev-lang/tcl:0= + dev-lang/tk:0= + )" + +src_prepare() { + epatch ../${P}-autotool.patch + rm -f configure + eautoreconf + sed -i \ + -e "/PREFIX/ s:PREFIX.*:\"${GAMES_DATADIR}/${PN}/jumpbump.dat\":" \ + globals.h \ + || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" install + # clean up a bit. It leaves a dep on Xdialog but ignore that. + use fbcon || rm -f "${D}${GAMES_BINDIR}/jumpnbump.fbcon" + use kde || rm -f "${D}${GAMES_BINDIR}/jumpnbump-kdialog" + use svga || rm -f "${D}${GAMES_BINDIR}/jumpnbump.svgalib" + use tk || rm -f "${D}${GAMES_BINDIR}/jnbmenu.tcl" + newicon sdl/jumpnbump64.xpm ${PN}.xpm + make_desktop_entry ${PN} "Jump n Bump" + prepgamesdirs +} diff --git a/games-arcade/jumpnbump/metadata.xml b/games-arcade/jumpnbump/metadata.xml new file mode 100644 index 000000000000..658a1ecd0c6d --- /dev/null +++ b/games-arcade/jumpnbump/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<use> + <flag name="music">Enable playing of background music</flag> +</use> +</pkgmetadata> diff --git a/games-arcade/jvgs/Manifest b/games-arcade/jvgs/Manifest new file mode 100644 index 000000000000..c6555a5e62bd --- /dev/null +++ b/games-arcade/jvgs/Manifest @@ -0,0 +1 @@ +DIST jvgs-0.5-src.tar.gz 25917861 SHA256 b906b96a532303df295312e7b352ab06d1c010ccf201527b2dade4634529efdb SHA512 0a0a8e7a0e7dce6f61bcd328f579212115eb95e3dce8ca223c1d8a3432d9083bf9a313f02f46b799991aa32f10cb9c14e8ecb63a4578b1ffaabc374ba139b28d WHIRLPOOL d56c4eb789bcc53cbc20efb3240c020189f8e785324755e2d6ce668ab673862f5a6fe5b77b4a126a87bd8d0834efac3fc94979897773b273ecfe5c47d932ab1a diff --git a/games-arcade/jvgs/files/jvgs-0.5-flags.patch b/games-arcade/jvgs/files/jvgs-0.5-flags.patch new file mode 100644 index 000000000000..04f88b88bc6d --- /dev/null +++ b/games-arcade/jvgs/files/jvgs-0.5-flags.patch @@ -0,0 +1,14 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Aug 5 19:57:32 UTC 2012 +Subject: build system + +respect cxxflags + +--- src/CMakeLists.txt ++++ src/CMakeLists.txt +@@ -1,4 +1,4 @@ +-SET( CMAKE_CXX_FLAGS "-DTIXML_USE_STL -ggdb" ) ++SET( CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -DTIXML_USE_STL" ) + + INCLUDE_DIRECTORIES( + ${SDL_INCLUDE_DIR} diff --git a/games-arcade/jvgs/jvgs-0.5.ebuild b/games-arcade/jvgs/jvgs-0.5.ebuild new file mode 100644 index 000000000000..76cb821249ad --- /dev/null +++ b/games-arcade/jvgs/jvgs-0.5.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake-utils eutils games + +DESCRIPTION="An open-source platform game with a sketched and minimalistic look" +HOMEPAGE="http://jvgs.sourceforge.net/" +SRC_URI="mirror://sourceforge/jvgs/${P}-src.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="virtual/opengl + dev-lang/lua:0 + sys-libs/zlib + media-libs/libsdl[video] + media-libs/sdl-mixer[vorbis] + media-libs/freetype:2" +DEPEND="${RDEPEND} + dev-lang/swig" + +S=${WORKDIR}/${P}-src + +src_prepare() { + epatch "${FILESDIR}"/${P}-flags.patch +} + +src_configure() { + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + exeinto "$(games_get_libdir)" + doexe src/${PN} + + insinto "${GAMES_DATADIR}"/${PN} + doins -r main.lua resources + + games_make_wrapper ${PN} "/$(games_get_libdir)/${PN}" \ + "${GAMES_DATADIR}/${PN}" + + newicon resources/drawing.svg ${PN}.svg + make_desktop_entry ${PN} ${PN} + + dodoc AUTHORS README.markdown + + prepgamesdirs +} diff --git a/games-arcade/jvgs/metadata.xml b/games-arcade/jvgs/metadata.xml new file mode 100644 index 000000000000..25da2874ba81 --- /dev/null +++ b/games-arcade/jvgs/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">jvgs</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/kajaani-kombat/Manifest b/games-arcade/kajaani-kombat/Manifest new file mode 100644 index 000000000000..208de57dc784 --- /dev/null +++ b/games-arcade/kajaani-kombat/Manifest @@ -0,0 +1 @@ +DIST kajaani-kombat-0.7.tar.gz 1805504 SHA256 ec67316b8f5823a8b4d2097045be574aae805e40a8d3640e3ad205b073234f83 SHA512 84f6923b73c9529fa600c533b5a3de9ea9411f81060c5ad9fb85346fa17c9cb70bf6ba8222319e123372b01286a11b40bb355e8ef8c9bec95cd98f4d0e0460cb WHIRLPOOL b65ccc6171ab77416c1dd7bc54e89159f84089f38cfb510949e753c27bfbc13653cac3a0910ed48f2822eb0840203ca7a1353f8fe2a5603f3b6ad382994162f1 diff --git a/games-arcade/kajaani-kombat/files/0.7-makefile.patch b/games-arcade/kajaani-kombat/files/0.7-makefile.patch new file mode 100644 index 000000000000..704bb95c1d13 --- /dev/null +++ b/games-arcade/kajaani-kombat/files/0.7-makefile.patch @@ -0,0 +1,22 @@ +--- Makefile.orig 2005-02-28 22:55:55.000000000 -0500 ++++ Makefile 2005-02-28 22:58:45.000000000 -0500 +@@ -39,8 +39,8 @@ + endif + ## UNIX RELEASE (default option) + ifeq ($(sys), ) +- MEDIA=-D MEDIA_PATH=\"./\" +- DEBUG= -O $(MEDIA) ++ MEDIA=-D MEDIA_PATH=\"GENTOODIR\" ++ DEBUG= $(CFLAGS) $(MEDIA) + endif + + +@@ -55,7 +55,7 @@ + + server_objs = game_obj.o terrain.o msg.o game_server.o server_main.o coord.o block.o connects.o player.o config.o + +-CXXFLAGS=`sdl-config --cflags` -Wall $(DEBUG) ++CXXFLAGS+=`sdl-config --cflags` $(MEDIA) + + all: client + diff --git a/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch new file mode 100644 index 000000000000..c575ff1ef57e --- /dev/null +++ b/games-arcade/kajaani-kombat/files/kajaani-kombat-0.7-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-10-15 15:48:06.000000000 +0200 ++++ Makefile 2010-10-15 15:48:18.000000000 +0200 +@@ -85,7 +85,7 @@ + client_net.o: client_net.h client_net.cpp globals.h monitor_queue.h msg.h + + client: $(client_objs) +- $(CXX) $(client_objs) -o kajaani-kombat $(client_libs) ++ $(CXX) $(LDFLAGS) $(client_objs) -o kajaani-kombat $(client_libs) + server: $(server_objs) + $(CXX) $(server_objs) -o kajaani-kombat-server $(server_libs) + diff --git a/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild b/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild new file mode 100644 index 000000000000..640483494858 --- /dev/null +++ b/games-arcade/kajaani-kombat/kajaani-kombat-0.7.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A rampart-like game set in space" +HOMEPAGE="http://kombat.kajaani.net/" +SRC_URI="http://kombat.kajaani.net/dl/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-net + media-libs/sdl-image[png] + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis] + sys-libs/ncurses + sys-libs/readline:0" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${PV}-makefile.patch" \ + "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e "s:GENTOODIR:${GAMES_DATADIR}/${PN}/:" \ + Makefile || die + sed -i \ + -e 's/IMG_Load/img_load/' \ + gui_screens.cpp || die +} + +src_install() { + dogamesbin kajaani-kombat + insinto "${GAMES_DATADIR}/${PN}" + doins *.{png,ttf,ogg} + dodoc AUTHORS ChangeLog README + doman kajaani-kombat.6 + prepgamesdirs +} diff --git a/games-arcade/kajaani-kombat/metadata.xml b/games-arcade/kajaani-kombat/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/kajaani-kombat/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/kobodeluxe/Manifest b/games-arcade/kobodeluxe/Manifest new file mode 100644 index 000000000000..44cb4f9cc850 --- /dev/null +++ b/games-arcade/kobodeluxe/Manifest @@ -0,0 +1 @@ +DIST KoboDeluxe-0.5.1.tar.bz2 1781752 SHA256 0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c SHA512 fc107e4367fd300574823aa40c68311d95de3a403d7c930963b8754aac14293f0624996fd77c4de0677921d11883047b68dd95df81eeb03078c37426ebd58afd WHIRLPOOL aaafa63e0ead96ecb8178a18cb1ca8c2d9ad059df9b625d63efe00322141c9c61673041da93030ba22d509793077f9c83e8ac7ffc35af64e85328ab409728077 diff --git a/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch new file mode 100644 index 000000000000..1095cc1c7330 --- /dev/null +++ b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc2.10.patch @@ -0,0 +1,11 @@ +--- graphics/window.cpp ++++ graphics/window.cpp +@@ -398,7 +398,7 @@ + */ + if(token) + { +- char *tok = strchr(txt, token); ++ const char *tok = strchr(txt, token); + if(tok) + tokpos = tok-txt; + else diff --git a/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch new file mode 100644 index 000000000000..98451bb29975 --- /dev/null +++ b/games-arcade/kobodeluxe/files/kobodeluxe-0.5.1-glibc29.patch @@ -0,0 +1,83 @@ +--- enemies.h ++++ enemies.h +@@ -70,9 +70,9 @@ + extern const enemy_kind bomb2; + extern const enemy_kind bombdeto; + extern const enemy_kind cannon; +-extern const enemy_kind pipe1; ++extern const enemy_kind pipeone; + extern const enemy_kind core; +-extern const enemy_kind pipe2; ++extern const enemy_kind pipetwo; + extern const enemy_kind rock; + extern const enemy_kind ring; + extern const enemy_kind enemy_m1; +@@ -430,7 +430,7 @@ + + inline int _enemy::is_pipe() + { +- return ((_state != notuse) && ((ek == &pipe1) || (ek == &pipe2))); ++ return ((_state != notuse) && ((ek == &pipeone) || (ek == &pipetwo))); + } + + +--- enemy.cpp ++++ enemy.cpp +@@ -713,7 +713,7 @@ + + void _enemy::kill_cannon() + { +- enemies.make(&pipe1, CS2PIXEL(x), CS2PIXEL(y)); ++ enemies.make(&pipeone, CS2PIXEL(x), CS2PIXEL(y)); + sound.g_base_node_explo(x, y); + release(); + } +@@ -755,10 +755,10 @@ + + void _enemy::kill_core() + { +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3); +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7); +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1); +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5); + enemies.make(&explosion4, CS2PIXEL(x), CS2PIXEL(y)); + sound.g_base_core_explo(x, y); + release(); +@@ -851,7 +851,7 @@ + screen.set_map(x1, y1, m ^ a); + release(); + } +-const enemy_kind pipe1 = { ++const enemy_kind pipeone = { + 0, + &_enemy::make_pipe1, + &_enemy::move_pipe1, +@@ -978,19 +978,19 @@ + } + p ^= a; + if(p & U_MASK) +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1); + if(p & R_MASK) +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3); + if(p & D_MASK) +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5); + if(p & L_MASK) +- enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7); ++ enemies.make(&pipetwo, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7); + manage.add_score(10); + release(); + } + + +-const enemy_kind pipe2 = { ++const enemy_kind pipetwo = { + 0, + &_enemy::make_pipe2, + &_enemy::move_pipe2, diff --git a/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild b/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild new file mode 100644 index 000000000000..d21bfba5275d --- /dev/null +++ b/games-arcade/kobodeluxe/kobodeluxe-0.5.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P="KoboDeluxe-${PV/_/}" +DESCRIPTION="An SDL port of xkobo, a addictive space shoot-em-up" +HOMEPAGE="http://www.olofson.net/kobodl/" +SRC_URI="http://www.olofson.net/kobodl/download/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ppc64 x86" +IUSE="opengl" + +DEPEND="media-libs/libsdl + media-libs/sdl-image[png] + opengl? ( virtual/opengl )" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./icons.tar.gz +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-glibc29.patch \ + "${FILESDIR}"/${P}-glibc2.10.patch + # Fix paths + sed -i \ + -e 's:\$(datadir)/kobo-deluxe:$(datadir)/kobodeluxe:' \ + -e 's:\$(sharedstatedir)/kobo-deluxe/scores:$(localstatedir)/kobodeluxe:' \ + configure || die "sed configure failed" + sed -i \ + -e 's:kobo-deluxe:kobodeluxe:' \ + data/gfx/Makefile.in \ + data/sfx/Makefile.in || die "sed data/Makefile.in failed" +} + +src_configure() { + egamesconf $(use_enable opengl) +} + +src_install () { + default + newicon icons/KDE/icons/32x32/kobodl.png ${PN}.png + make_desktop_entry kobodl "Kobo Deluxe" + prepgamesdirs + fperms 2775 "${GAMES_STATEDIR}"/${PN} +} diff --git a/games-arcade/kobodeluxe/metadata.xml b/games-arcade/kobodeluxe/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/kobodeluxe/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/komi/Manifest b/games-arcade/komi/Manifest new file mode 100644 index 000000000000..7cd15f38d6c3 --- /dev/null +++ b/games-arcade/komi/Manifest @@ -0,0 +1 @@ +DIST komi-1.04.tar.gz 954526 SHA256 9a6852b44197e04832861b684390971c5a85c0405edc0a555fe6fdd9a5325721 SHA512 60babb3642bea7598089b342ba582b2f63f6aa051352ad9b2fa5bad0222a32306775a207712d2e7a9242be5e3ff5b4734f5b62708e451e7230499c6812d4c8a3 WHIRLPOOL d22b8ad640f4cc831f5568c4f3825a81ef289ae757c8698bd39635a54565d23fdbe1f4828bacdd7794a66456900233c6561888b7427c749be51ee8428ea2b221 diff --git a/games-arcade/komi/files/1.04-DESTDIR.patch b/games-arcade/komi/files/1.04-DESTDIR.patch new file mode 100644 index 000000000000..2573b01e5c91 --- /dev/null +++ b/games-arcade/komi/files/1.04-DESTDIR.patch @@ -0,0 +1,36 @@ +--- Makefile.orig 2004-12-11 01:36:11.000000000 -0800 ++++ Makefile 2004-12-11 01:36:14.000000000 -0800 +@@ -13,9 +13,7 @@ + MIXER=-lSDL_mixer + SDL_LIB=$(shell sdl-config --static-libs) $(MIXER) + +-CFLAGS=-Wall -pedantic -std=c99 -O2 \ +- $(shell sdl-config --cflags) \ +- -DDATAPATH=\"$(DATAPATH)\" ++CFLAGS= $(ECFLAGS) $(shell sdl-config --cflags) -DDATAPATH=\"$(DATAPATH)\" + + all: komi + +@@ -24,15 +22,13 @@ + -rm *.o + + install: +- install -d $(DATAPATH) +- cp -R komidata/* $(DATAPATH) +- chmod -R 644 $(DATAPATH) +- chmod 755 $(DATAPATH) +- install -d $(BINPATH) +- cp komi $(BINPATH) +- chmod 755 $(BINPATH)komi +- install -d $(MANPATH) +- cp komi.6 $(MANPATH)komi.6 ++ install -d $(DESTDIR)$(DATAPATH) ++ cp -R komidata/* $(DESTDIR)$(DATAPATH) ++ chmod -R 644 $(DESTDIR)$(DATAPATH) ++ chmod 755 $(DESTDIR)$(DATAPATH) ++ install -d $(DESTDIR)$(BINPATH) ++ cp komi $(DESTDIR)$(BINPATH) ++ chmod 755 $(DESTDIR)$(BINPATH)/komi + + komi: komi.o + $(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB) diff --git a/games-arcade/komi/files/komi-1.04-install.patch b/games-arcade/komi/files/komi-1.04-install.patch new file mode 100644 index 000000000000..d00a48d296fb --- /dev/null +++ b/games-arcade/komi/files/komi-1.04-install.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2015-01-05 11:35:24.794160467 +0100 ++++ Makefile 2015-01-05 11:36:23.181058180 +0100 +@@ -24,8 +24,6 @@ + install: + install -d $(DESTDIR)$(DATAPATH) + cp -R komidata/* $(DESTDIR)$(DATAPATH) +- chmod -R 644 $(DESTDIR)$(DATAPATH) +- chmod 755 $(DESTDIR)$(DATAPATH) + install -d $(DESTDIR)$(BINPATH) + cp komi $(DESTDIR)$(BINPATH) + chmod 755 $(DESTDIR)$(BINPATH)/komi diff --git a/games-arcade/komi/komi-1.04.ebuild b/games-arcade/komi/komi-1.04.ebuild new file mode 100644 index 000000000000..5023563ebfcb --- /dev/null +++ b/games-arcade/komi/komi-1.04.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Komi the Space Frog - simple SDL game of collection" +HOMEPAGE="http://komi.sourceforge.net" +SRC_URI="mirror://sourceforge/komi/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" +DOCS=( CHANGELOG.txt README.txt TROUBLESHOOTING.txt ) + +src_prepare() { + epatch "${FILESDIR}"/${PV}-DESTDIR.patch \ + "${FILESDIR}"/${P}-install.patch + sed -i \ + -e "/^BINPATH/s:=.*:=${GAMES_BINDIR}/:" \ + -e "/^DATAPATH/s:=.*:=${GAMES_DATADIR}/${PN}/:" \ + -e '/^SDL_LIB/s:$: $(LDFLAGS):' \ + -e '/^SDL_LIB/s:--static-:--:' \ + Makefile \ + || die "sed failed" +} + +src_compile() { + emake ECFLAGS="${CFLAGS}" +} + +src_install() { + default + newicon komidata/sprites_komi.bmp ${PN}.bmp + make_desktop_entry komi Komi /usr/share/pixmaps/${PN}.bmp + doman komi.6 + prepgamesdirs +} diff --git a/games-arcade/komi/metadata.xml b/games-arcade/komi/metadata.xml new file mode 100644 index 000000000000..4156d2ec7dbf --- /dev/null +++ b/games-arcade/komi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">komi</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/late/Manifest b/games-arcade/late/Manifest new file mode 100644 index 000000000000..86cbce939458 --- /dev/null +++ b/games-arcade/late/Manifest @@ -0,0 +1 @@ +DIST late-0.1.0.tar.bz2 1560232 SHA256 76aac8e436e0420642790658129b5a3f27c836c07bd9b6871b3c88aa2f8aff0a SHA512 6b3f4d27a723ae450bd8dda375c8663c1a3f457ffbe0a91f5eb96efdd797c2370ec68894df7a4d31e7124b28f3b41b3b952805901427c6ea3502b0d4d13cd72e WHIRLPOOL 3ebd6f69da7e248fcbf059d8245b1658891ff6ec5cbb1abd118f2cd642fa60c47b0948cbf5256648a8c5672eaf16513fe1f145d697dba882429c6f6696e916f8 diff --git a/games-arcade/late/files/late-0.1.0-gcc43.patch b/games-arcade/late/files/late-0.1.0-gcc43.patch new file mode 100644 index 000000000000..bce26464cf04 --- /dev/null +++ b/games-arcade/late/files/late-0.1.0-gcc43.patch @@ -0,0 +1,11 @@ +--- src/init.cpp ++++ src/init.cpp +@@ -26,6 +26,8 @@ + #include "scorescreen.h" + #include <fstream> + #include <iostream> ++#include <cstdlib> ++#include <cstring> + using namespace std; + + diff --git a/games-arcade/late/files/late-0.1.0-gcc46.patch b/games-arcade/late/files/late-0.1.0-gcc46.patch new file mode 100644 index 000000000000..95d18ba7ed11 --- /dev/null +++ b/games-arcade/late/files/late-0.1.0-gcc46.patch @@ -0,0 +1,11 @@ +diff -ru late-0.1.0.orig/src/ball.h late-0.1.0/src/ball.h +--- late-0.1.0.orig/src/ball.h 2003-08-07 18:26:13.000000000 -0400 ++++ late-0.1.0/src/ball.h 2011-04-07 21:32:14.189799689 -0400 +@@ -25,6 +25,7 @@ + class ball; + + #include "square.h" ++#include <cstddef> + + class ball_base + { diff --git a/games-arcade/late/late-0.1.0.ebuild b/games-arcade/late/late-0.1.0.ebuild new file mode 100644 index 000000000000..dd05b7b95ed2 --- /dev/null +++ b/games-arcade/late/late-0.1.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A game, similar to Barrack by Ambrosia Software" +HOMEPAGE="http://late.sourceforge.net/" +SRC_URI="mirror://sourceforge/late/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-image[jpeg]" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc46.patch + sed -i \ + -e "/chown/d" \ + Makefile.in \ + || die "sed failed" +} + +src_install () { + default + newicon graphics/latebg2.jpg ${PN}.jpg + make_desktop_entry late Late /usr/share/pixmaps/${PN}.jpg + prepgamesdirs +} diff --git a/games-arcade/late/metadata.xml b/games-arcade/late/metadata.xml new file mode 100644 index 000000000000..e4cbcf411f56 --- /dev/null +++ b/games-arcade/late/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">late</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/lbreakout/Manifest b/games-arcade/lbreakout/Manifest new file mode 100644 index 000000000000..d35c50d2d58f --- /dev/null +++ b/games-arcade/lbreakout/Manifest @@ -0,0 +1 @@ +DIST lbreakout-010315.tar.gz 655418 SHA256 23ed1210879850e330d62143b5f8c6e8259898ea4c9afcb7df4b8f4a1e00dac1 SHA512 92421ceb4e643df2123d084b0d2c5edfd311e39dd8da85c01da5cfd872f787a6969e514efab2c5f110979434e773fce211e755e4c45438c4469ab9095cb595b7 WHIRLPOOL 85cf76ba1f5d0139d69768367b6652c68fc4bb345531a8caee95c22e184a75867ff56488dbe2b113fb61da4175df1b192584cf1afcc4c9e814a4166fdc289bf2 diff --git a/games-arcade/lbreakout/lbreakout-010315.ebuild b/games-arcade/lbreakout/lbreakout-010315.ebuild new file mode 100644 index 000000000000..d6afbc499bfe --- /dev/null +++ b/games-arcade/lbreakout/lbreakout-010315.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit games + +DESCRIPTION="Breakout clone written with the SDL library" +HOMEPAGE="http://lgames.sourceforge.net/" +SRC_URI="mirror://sourceforge/lgames/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.1.5" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e '/^sdir=/s:$datadir/games:$datadir:' \ + -e '/^hdir=/s:/var/lib/games:$localstatedir:' \ + configure \ + || die "sed failed" +} + +src_install() { + dodir "${GAMES_STATEDIR}" + default + dohtml lbreakout/manual/* + prepgamesdirs +} diff --git a/games-arcade/lbreakout/metadata.xml b/games-arcade/lbreakout/metadata.xml new file mode 100644 index 000000000000..0f9429dd0de0 --- /dev/null +++ b/games-arcade/lbreakout/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">lgames</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/lbreakout2/Manifest b/games-arcade/lbreakout2/Manifest new file mode 100644 index 000000000000..88ee91e5f211 --- /dev/null +++ b/games-arcade/lbreakout2/Manifest @@ -0,0 +1,3 @@ +DIST lbreakout2-2.6.4.tar.gz 3470380 SHA256 0b90716d52e67c27ff41ab7aa5c09dad4f5f19a78076cc57dd4b4d7ed2c1dbd9 SHA512 fe1787900c4379bdb8330ac8ff31138cbdb180449e5addb1c511a9778ab69f0b09a85e91659bb83663868a399d2644e6e084365702c23eac93da579e80fd68bc WHIRLPOOL 6e39c2ad44e0eb970228fcc34726ba7845498a7f07500136974fd554540bdd84fd19b88edfbadbdf3e8986dc8fa2b9673d41feab9cb34bb3e6acbaaf61c1f52c +DIST lbreakout2-levelsets-20120815.tar.gz 336355 SHA256 9245fb2b0c52364b88619f11b79f68878f1522ada8fcddb0d2da74ec2027cb34 SHA512 f9427c1716c6e9ab5d97c45849bb8d224da4c6f55c252b33d1bc3be8ff96470bc203c5a4dea5036138f6f2b07efe27f1f60763bf5460febebd0a4e0db8028bcc WHIRLPOOL 08a68780fb232309219fe1867af813b7299f270c81cc86a86887a6fcfa3194d137a34ff8ce6c083a43047a2467f08a86357e1fcaff2c8fc93981ddd90e057560 +DIST lbreakout2-themes-20111026.tar.gz 27462927 SHA256 2da570b139b4eaaadb5e598328c90983a3da22fc41e45b8563fa732ab122028a SHA512 a38856665eb3e9c0eaa0ff29817f7283237841368daa977b632df51842812e662da4343b5aa00265ed0765d4e4de1b4f11b7bf6c2650a9b9b1a8e0b440b8cf63 WHIRLPOOL 9c01ad4efac109c273a31ed5501cdc105affa6cc37e89831999e47120899018100ce902390efee8e6e6f414dbb996e1ceb08db5ac4eef478a361802a37cfd414 diff --git a/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch new file mode 100644 index 000000000000..365274c581b9 --- /dev/null +++ b/games-arcade/lbreakout2/files/lbreakout2-2.6.4-gentoo.patch @@ -0,0 +1,67 @@ +--- lbreakout2-2.6.1.orig/Makefile.am ++++ lbreakout2-2.6.1/Makefile.am +@@ -1,13 +1,8 @@ + SUBDIRS = intl m4 po common gui game server client docs + + EXTRA_DIST = config.rpath AUTHORS COPYING ChangeLog INSTALL README \ +-README-SDL.txt TODO lbreakout2.spec touchall lbreakout32.gif \ +-lbreakout48.gif lbreakout2.desktop.in win32_mancomp win32_preparchive +- +-desktopdir = $(datadir)/applications +-desktop_DATA = lbreakout2.desktop +-icondir = $(datadir)/icons +-icon_DATA = lbreakout48.gif ++README-SDL.txt TODO lbreakout2.spec touchall \ ++win32_mancomp win32_preparchive + + WIN32_TEXT = AUTHORS COPYING ChangeLog INSTALL README README-SDL.txt \ + TODO lbreakout2.spec ABOUT-NLS +--- lbreakout2-2.6.1.orig/common/gettext.h ++++ lbreakout2-2.6.1/common/gettext.h +@@ -24,6 +24,7 @@ + + /* Get declarations of GNU message catalog functions. */ + # include <libintl.h> ++# include <locale.h> + + #else + +--- lbreakout2-2.6.1.orig/configure.in ++++ lbreakout2-2.6.1/configure.in +@@ -80,8 +80,6 @@ + [ --enable-netdebug Enable net packet debugging.], netdebug_flag="-DNET_DEBUG_MSG" ) + AC_SUBST(netdebug_flag) + +-dnl set localedir +-localedir=$datadir/locale + locdir_flag="-DLOCALEDIR=\\\"$localedir\\\"" + + dnl installation&highscore path +--- lbreakout2-2.6.1.orig/docs/Makefile.am ++++ lbreakout2-2.6.1/docs/Makefile.am +@@ -7,11 +7,11 @@ + warp.jpg screen.jpg + + install-data-local: +- $(mkinstalldirs) $(DESTDIR)$(doc_dir)/lbreakout2 ++ $(mkinstalldirs) $(DESTDIR)$(doc_dir) + @for file in *.jpg; do\ +- $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/lbreakout2/$$file;\ ++ $(INSTALL_DATA) $$file $(DESTDIR)$(doc_dir)/$$file;\ + done +- $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/lbreakout2/index.html ++ $(INSTALL_DATA) index.html $(DESTDIR)$(doc_dir)/index.html + + win32-install-script: + @for file in $(EXTRA_DIST); do \ +--- lbreakout2-2.6.1.orig/po/Makefile.in.in ++++ lbreakout2-2.6.1/po/Makefile.in.in +@@ -24,7 +24,7 @@ + exec_prefix = @exec_prefix@ + datadir = @datadir@ + datarootdir = @datarootdir@ +-localedir = $(datadir)/locale ++localedir = @localedir@ + gettextsrcdir = $(datadir)/gettext/po + + INSTALL = @INSTALL@ diff --git a/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild new file mode 100644 index 000000000000..77ec4e5c43ab --- /dev/null +++ b/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils flag-o-matic gnome2-utils games + +levels_V=20120815 +themes_V=20111026 + +DESCRIPTION="Breakout clone written with the SDL library" +HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2" +SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz + mirror://sourceforge/lgames/${PN}-levelsets-${levels_V}.tar.gz + themes? ( mirror://sourceforge/lgames/${PN}-themes-${themes_V}.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="nls themes" + +RDEPEND="media-libs/libpng:0 + sys-libs/zlib + media-libs/libsdl[sound,joystick,video] + media-libs/sdl-net + media-libs/sdl-mixer + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" + +src_unpack() { + unpack ${P}.tar.gz + + cd "${S}/client/levels" + unpack ${PN}-levelsets-${levels_V}.tar.gz + + if use themes ; then + mkdir "${WORKDIR}/themes" + cd "${WORKDIR}/themes" + unpack ${PN}-themes-${themes_V}.tar.gz + + # Delete a few duplicate themes (already shipped with lbreakout2 + # tarball). Some of them have different case than built-in themes, so it + # is harder to just compare if the filename is the same. + rm -f absoluteB.zip oz.zip moiree.zip + for f in *.zip; do + unzip -q "$f" && rm -f "$f" || die + done + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + eautoreconf +} + +src_configure() { + filter-flags -O? + egamesconf \ + --enable-sdl-net \ + --localedir=/usr/share/locale \ + --with-docdir="/usr/share/doc/${PF}/html" \ + $(use_enable nls) +} + +src_install() { + default + + if use themes ; then + insinto "${GAMES_DATADIR}/lbreakout2/gfx" + doins -r "${WORKDIR}/themes/"* + fi + + newicon client/gfx/win_icon.png ${PN}.png + newicon -s 32 client/gfx/win_icon.png ${PN}.png + make_desktop_entry lbreakout2 LBreakout2 + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/lbreakout2/metadata.xml b/games-arcade/lbreakout2/metadata.xml new file mode 100644 index 000000000000..a218c5e37eda --- /dev/null +++ b/games-arcade/lbreakout2/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="themes">Install additional themes</flag> + </use> + <upstream> + <remote-id type="sourceforge">lgames</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/marbleblast-demo/Manifest b/games-arcade/marbleblast-demo/Manifest new file mode 100644 index 000000000000..e9feed376ed9 --- /dev/null +++ b/games-arcade/marbleblast-demo/Manifest @@ -0,0 +1 @@ +DIST MarbleBlastDemo-1.3.sh.bin 10800892 SHA256 84d547df84ce2fdc82eb0316ff737d4ae1b1bf50ce4541870847b51de6bfd1a4 SHA512 24bd5f03c8868ab83e2bcfe27ab60f86727e972f04cafe4d5ff940a77adf4a362c3de1b0391b5763aed8dc946af7b769da60654b2ea53133521b200a99ebdde8 WHIRLPOOL de4288f9eb5f4a1421bcbed54b157eafd00b3076756b3ecb306df96bf1636745ee06be1738fa0b86df0148e0496cd0eea2e89062a5c2efbc14f02fb2d909f872 diff --git a/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild b/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild new file mode 100644 index 000000000000..58a4339406b8 --- /dev/null +++ b/games-arcade/marbleblast-demo/marbleblast-demo-1.3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit unpacker games + +DESCRIPTION="race marbles through crazy stages" +HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=3" +SRC_URI="ftp://ggdev-1.homelan.com/marbleblast/MarbleBlastDemo-${PV}.sh.bin" + +LICENSE="MARBLEBLAST" +SLOT="0" +KEYWORDS="-* ~amd64 x86" +IUSE="" +RESTRICT="strip" + +S=${WORKDIR} + +dir=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${dir:1}/marbleblastdemo.bin + ${dir:1}/lib/lib*" + +src_install() { + dodir "${dir}" "${GAMES_BINDIR}" + + tar -zxf MarbleBlast.tar.gz -C "${D}/${dir}" || die "extracting MarbleBlast.tar.gz" + + exeinto "${dir}" + doexe bin/Linux/x86/marbleblastdemo + dosym "${dir}"/marbleblastdemo "${GAMES_BINDIR}"/marbleblast-demo + + dodoc README_DEMO.txt + + prepgamesdirs +} diff --git a/games-arcade/marbleblast-demo/metadata.xml b/games-arcade/marbleblast-demo/metadata.xml new file mode 100644 index 000000000000..f0e38de4ba77 --- /dev/null +++ b/games-arcade/marbleblast-demo/metadata.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Marble Blast is an arcade action game with simple yet addictive gameplay, +suitable for players of any age. In the rich cartoon landscape of Marble +Blast, players will race their marbles through moving platforms, dangerous +hazards, sparkling treasures and power up enhancements in an effort to +complete each course in record time. + +Marble Blast introduces new players to the game with a set of +progressively more difficult beginner training levels, each designed to +showcase a power up or game hazard. The hazards players will face in +Marble Blast include powerful fans, whirling tornados, land mines, +pinball-style bumpers, narrow catwalks, moving pistons, dizzying chasms, +and more. + +To get past these obstacles, players can find and use five different +ability enhancing power ups - the SuperSpeed, SuperJump, SuperBounce, +Shock Asbsorber and Gyrocopter. Some levels contain gravity modifiers, +which allow the player to change the direction of gravity. + +Marble Blast comes with 72 whimsical and challenging levels, as well as +the ability for advanced players to craft and share their own levels. +Marble Blast is sure to provide many hours of fun for the whole family. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/marbleblastgold-demo/Manifest b/games-arcade/marbleblastgold-demo/Manifest new file mode 100644 index 000000000000..429a937ffdf1 --- /dev/null +++ b/games-arcade/marbleblastgold-demo/Manifest @@ -0,0 +1 @@ +DIST MarbleBlastGoldDemo-1.4.1.sh.bin 11180534 SHA256 a0a3102324a9ee03a8b397af9bf1ec904344c93d4fdd70fa00e1408fce6dc4e5 SHA512 16f03cdcf3cd6440048d8640c2a91078637d018f15a49764eca914259d65196f5a16a90abc11283d0e4b9af1b290d7ab880e96caae2dd6c813ac6d3d8414ec2c WHIRLPOOL f6798910c2cacab590801202e39436cafd90bb8110b8a51b26556434b72e71be760acc2cc40d9a543c0c80b45e0d17e8dbda7f1e588e9afea7abc661bfbba3fa diff --git a/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild b/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild new file mode 100644 index 000000000000..8b28fac57377 --- /dev/null +++ b/games-arcade/marbleblastgold-demo/marbleblastgold-demo-1.4.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker games + +DESCRIPTION="race marbles through crazy stages" +HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=15" +SRC_URI="ftp://ggdev-1.homelan.com/marbleblastgold/MarbleBlastGoldDemo-${PV}.sh.bin" + +LICENSE="MARBLEBLAST" +SLOT="0" +KEYWORDS="-* ~amd64 x86" +IUSE="" +RESTRICT="strip" + +RDEPEND="sys-libs/glibc" + +dir=${GAMES_PREFIX_OPT}/${PN} +QA_PREBUILT="${dir:1}/marbleblastgolddemo.bin + ${dir:1}/lib/*" + +S=${WORKDIR} + +src_install() { + dodir "${dir}" "${GAMES_BINDIR}" + + tar -zxf MarbleBlast.tar.gz -C "${D}/${dir}" || die "extracting MarbleBlast.tar.gz" + + exeinto "${dir}" + doexe bin/Linux/x86/marbleblastgolddemo + dosym "${dir}"/marbleblastgolddemo "${GAMES_BINDIR}"/marbleblastgold-demo + + insinto "${dir}" + doins MarbleBlast.xpm + + dodoc README.txt + + prepgamesdirs +} diff --git a/games-arcade/marbleblastgold-demo/metadata.xml b/games-arcade/marbleblastgold-demo/metadata.xml new file mode 100644 index 000000000000..81f80ccb2368 --- /dev/null +++ b/games-arcade/marbleblastgold-demo/metadata.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +Marble Blast Gold is an arcade action game with simple yet +addictive gameplay, suitable for players of any age. In the +rich cartoon landscape of Marble Blast Gold, players will race +their marbles through moving platforms, dangerous hazards, +sparkling treasures and power up enhancements in an effort to +complete each course in record time. + +Marble Blast Gold introduces new players to the game with a set +of progressively more difficult beginner training levels, each +designed to showcase a power up or game hazard. The hazards +players will face in Marble Blast include powerful fans, +whirling tornados, land mines, pinball-style bumpers, narrow +catwalks, moving pistons, dizzying chasms, and more. + +To get past these obstacles, players can find and use five +different ability enhancing power ups - the SuperSpeed, +SuperJump, SuperBounce, Shock Absorber and Gyrocopter. Some +levels contain gravity modifiers, which allow the player to +change the direction of gravity. + +Marble Blast Gold comes with 100 whimsical and challenging +levels, as well as the ability for advanced players to craft +and share their own levels. Each level has "gold standard" set +for the high score, so you can test your skills against the +record 'gold' times. Marble Blast Gold is sure to provide many +hours of fun for the whole family. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/mari0/Manifest b/games-arcade/mari0/Manifest new file mode 100644 index 000000000000..bb970aec9f48 --- /dev/null +++ b/games-arcade/mari0/Manifest @@ -0,0 +1,2 @@ +DIST mari0-1.6.zip 3625226 SHA256 b217134425527e879d5355eb7f51e29a60ad0e93550e5769b2f56c04a1f69037 SHA512 20004035141b80180e58a8d209b588273d2879742ca8d8d59b1d20f9e301d976e260574893ea41a290bab57eade0617c10880a4af00dc3b29329ac4805a8be6c WHIRLPOOL 8ffc36d25ceb0d893cda3d068e484194feb6117ed27e4ea3801553868bdd8be35bbf787320ba37962d81851eb83082c528a4449f55acaeeb9dd731e5ba029334 +DIST mari0.svg.gz 6572 SHA256 5c712f06bc47d7e34598880ad72d18290a8e3f66f7a4af6a5bd6ae7962068d83 SHA512 7c6239219f3fc721a4393ca55790375862d510f8fd04b5b23df6e401efb545b410c25737a3d67ef24c6a978184477d9e47109e3715640876abecdae50b7b733f WHIRLPOOL ccb7aa7fc7bc838d3877c332482a8f07ff9f034f241963e349a18bc673125e0a6b6e64020f45b82e9d181db61d44061bac017c81fa95288eabc6922811422e4e diff --git a/games-arcade/mari0/mari0-1.6.ebuild b/games-arcade/mari0/mari0-1.6.ebuild new file mode 100644 index 000000000000..e7b2b60f9cea --- /dev/null +++ b/games-arcade/mari0/mari0-1.6.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit eutils gnome2-utils games + +MY_P=${P/-/_} + +DESCRIPTION="A mix from Nintendo's Super Mario Bros and Valve's Portal" +HOMEPAGE="http://stabyourself.net/mari0/" +SRC_URI="${P}.zip + mirror://gentoo/mari0.svg.gz" + +LICENSE="CC-BY-NC-SA-3.0" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" +RESTRICT="fetch" # unsure about legality of graphics + +RDEPEND=">=games-engines/love-0.8.0 + media-libs/devil[gif,png]" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +pkg_nofetch() { + einfo "Please download ${PN}-source.zip from:" + einfo "http://stabyourself.net/${PN}/#download" + einfo "Move it to ${DISTDIR} and rename it to ${P}.zip" + echo +} + +src_install() { + local dir=${GAMES_DATADIR}/love/${PN} + + exeinto "${dir}" + doexe ${MY_P}.love + + doicon -s scalable ${PN}.svg + games_make_wrapper ${PN} "love ${MY_P}.love" "${dir}" + make_desktop_entry ${PN} + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + elog "${PN} savegames and configurations are stored in:" + elog "~/.local/share/love/${PN}/" + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/mari0/metadata.xml b/games-arcade/mari0/metadata.xml new file mode 100644 index 000000000000..b3eb6f8172b3 --- /dev/null +++ b/games-arcade/mari0/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> + <longdescription lang="en"> + A complete from scratch recreation of Super Mario Bros. with a focus on + perfectly imitating the feel the 1985 classic gave us. Then give Mario + a portal gun, add puzzle game mechanics from Portal and there you go. + And if that wasn't crazy enough, play 4-player coop, with everyone + having their own Portal gun! + </longdescription> +</pkgmetadata> + diff --git a/games-arcade/metadata.xml b/games-arcade/metadata.xml new file mode 100644 index 000000000000..992ba13fea49 --- /dev/null +++ b/games-arcade/metadata.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<catmetadata> + <longdescription lang="en"> + The games-arcade category contains arcade games. + </longdescription> + <longdescription lang="de"> + Die Kategorie games-arcade enthält Arcadespiele. + </longdescription> + <longdescription lang="es"> + La categoría games-arcade contiene juegos arcade. + </longdescription> + <longdescription lang="ja"> + games-arcadeカテゴリーにはアーケード・ゲームが含まれています。 + </longdescription> + <longdescription lang="nl"> + De games-arcade categorie bevat arcadespellen. + </longdescription> + <longdescription lang="vi"> + Nhóm games-arcade chứa các trò chơi dạng "arcade". + </longdescription> + <longdescription lang="it"> + La categoria games-arcade contiene giochi arcade. + </longdescription> + <longdescription lang="pt"> + A categoria games-arcade contém jogos de arcade. + </longdescription> + <longdescription lang="pl"> + Kategoria games-arcade zawiera gry zręcznościowe. + </longdescription> + <longdescription lang="ru"> + Категория games-arcade содержит игры-аркады. + </longdescription> +</catmetadata> + diff --git a/games-arcade/methane/Manifest b/games-arcade/methane/Manifest new file mode 100644 index 000000000000..74b8a93dc620 --- /dev/null +++ b/games-arcade/methane/Manifest @@ -0,0 +1 @@ +DIST methane-1.5.1.tgz 1057881 SHA256 ac1de7009e638c784b4d413b56a4387be94a31bd5fe3050db7b51e39ccfdd248 SHA512 3506f288179a127f8508bd9d4225618d8dcd93794c559822ed2836bb46a318ce3c199f951f564064091b1125375118f2d64c50a27059dcd0e49c8379fa8c3155 WHIRLPOOL b8f52b981b0a6789b4d854548787810c994c87792b57f150af8ed0d8819dc057e38a04edf1ed5791ab24cba7a7eec66a40e5e71d5260dbabe1c110c8e2044cf4 diff --git a/games-arcade/methane/files/methane-1.5.1-gentoo.patch b/games-arcade/methane/files/methane-1.5.1-gentoo.patch new file mode 100644 index 000000000000..9e49ecdff25c --- /dev/null +++ b/games-arcade/methane/files/methane-1.5.1-gentoo.patch @@ -0,0 +1,62 @@ +--- Makefile.old 2012-11-26 18:58:48.201837870 +0100 ++++ Makefile 2012-11-27 12:30:16.038998128 +0100 +@@ -1,5 +1,5 @@ +-METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2` +-METHANE_LIBS = `pkg-config --libs clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2` ++METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3` ++METHANE_LIBS = `pkg-config --libs clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3` + + OBJF = build/game.o build/baddie.o build/methane.o build/target.o build/maps.o build/gfxoff.o build/mapdata.o build/objlist.o build/doc.o build/bitdraw.o build/global.o build/suck.o build/power.o build/goodie.o build/bititem.o build/player.o build/weapon.o build/bitgroup.o build/boss.o build/sound.o build/gasobj.o build/misc.o + +@@ -10,7 +10,7 @@ + @echo "=================================" + + methane: ${OBJF} +- g++ ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS} ++ $(CXX) ${LDFLAGS} ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS} + + clean: + @rm -Rf build +@@ -23,6 +23,6 @@ + build/%.o : sources/%.cpp + @echo " Compiling $<..." + @if [ ! -d build ]; then mkdir build; fi +- gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ ++ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ + + +--- sources/methane.cpp.old 2012-11-27 13:49:22.993003266 +0100 ++++ sources/methane.cpp 2012-11-27 17:37:23.051913777 +0100 +@@ -80,15 +80,15 @@ + return 0; + } + +- CL_AutoPtr<CL_SetupSound> setup_sound; +- CL_AutoPtr<CL_SoundOutput> sound_output; +- CL_AutoPtr<CL_SetupMikMod> setup_mikmod; ++ CL_UniquePtr<CL_SetupSound> setup_sound; ++ CL_UniquePtr<CL_SoundOutput> sound_output; ++ CL_UniquePtr<CL_SetupMikMod> setup_mikmod; + + if (GLOBAL_SoundEnable) + { +- setup_sound = new CL_SetupSound; +- sound_output = new CL_SoundOutput(44100); +- setup_mikmod = new CL_SetupMikMod; ++ setup_sound = cl_move(CL_UniquePtr<CL_SetupSound>(new CL_SetupSound)); ++ sound_output = cl_move(CL_UniquePtr<CL_SoundOutput>(new CL_SoundOutput(44100))); ++ setup_mikmod = cl_move(CL_UniquePtr<CL_SetupMikMod>(new CL_SetupMikMod)); + } + + // Set the video mode +--- sources/target.cpp.old 2012-11-28 21:34:32.666878913 +0100 ++++ sources/target.cpp 2012-11-28 21:35:16.371247221 +0100 +@@ -132,7 +132,7 @@ + CL_GraphicContext gc = m_pWindow->get_gc(); + + // Find the resources directory: +- CL_String resource_dir = CL_Directory::get_resourcedata("methane"); ++ CL_String resource_dir = "@GENTOO_DATADIR@/methane/"; + CL_String dataname("page_01.png"); + CL_String filename = resource_dir + dataname; + if (!CL_FileHelp::file_exists(filename)) diff --git a/games-arcade/methane/metadata.xml b/games-arcade/methane/metadata.xml new file mode 100644 index 000000000000..bccd79d620d5 --- /dev/null +++ b/games-arcade/methane/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">methane</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/methane/methane-1.5.1.ebuild b/games-arcade/methane/methane-1.5.1.ebuild new file mode 100644 index 000000000000..b2c5cd1346f7 --- /dev/null +++ b/games-arcade/methane/methane-1.5.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit eutils games + +DESCRIPTION="Port from an old amiga game" +HOMEPAGE="http://methane.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-games/clanlib:2.3[opengl,mikmod]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + sources/target.cpp + + # fix weird parallel make issue wrt #450422 + mkdir build || die +} + +src_install() { + dogamesbin methane + insinto "${GAMES_DATADIR}"/${PN} + doins resources/* + dodir "${GAMES_STATEDIR}" + touch "${D}/${GAMES_STATEDIR}"/methanescores + fperms g+w "${GAMES_STATEDIR}"/methanescores + newicon docs/puff.gif ${PN}.gif + make_desktop_entry ${PN} "Super Methane Brothers" /usr/share/pixmaps/${PN}.gif + dodoc authors.txt history.txt readme.txt + dohtml docs/* + prepgamesdirs +} diff --git a/games-arcade/missile/Manifest b/games-arcade/missile/Manifest new file mode 100644 index 000000000000..981e6028f224 --- /dev/null +++ b/games-arcade/missile/Manifest @@ -0,0 +1 @@ +DIST missile-1.0.1.tar.gz 214933 SHA256 fd6d4c42ebc48ab305c4fd027b1b793aa1a8c71c7b61c8fc4040dc21c1ff7d3b SHA512 32d30213d433fd3d02d74c4614747bdc2e3012c77793dfb7b869d774b7f43f4d0eb6b1a0e5db805d976e7919404c57cbbaa20f21954dfd4475ddaa6c2f6c0cc2 WHIRLPOOL 507c5c75de26543ecfa1be745794974c92d358e86aa75532f87c82b2ca50fc4bbf4130af913f61c1319f99d7ea1e38aeef08c914df5068c1247acc3300adffbe diff --git a/games-arcade/missile/files/missile-1.0.1-ldflags.patch b/games-arcade/missile/files/missile-1.0.1-ldflags.patch new file mode 100644 index 000000000000..5d2288165745 --- /dev/null +++ b/games-arcade/missile/files/missile-1.0.1-ldflags.patch @@ -0,0 +1,15 @@ +--- Makefile.old 2010-09-22 09:11:48.000000000 +0200 ++++ Makefile 2010-09-22 09:13:08.000000000 +0200 +@@ -125,10 +125,10 @@ + fi + + $(PROGRAM): $(OBJECTS) +- $(CC) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(LIBS) + + static : $(OBJECTS) +- $(CC) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(STATIC_LIBS) ++ $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJECTS) $(CFLAGS) $(STATIC_LIBS) + + + %.o : %.c %.h diff --git a/games-arcade/missile/metadata.xml b/games-arcade/missile/metadata.xml new file mode 100644 index 000000000000..1a96d428e816 --- /dev/null +++ b/games-arcade/missile/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">missile</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/missile/missile-1.0.1.ebuild b/games-arcade/missile/missile-1.0.1.ebuild new file mode 100644 index 000000000000..0ea082c7011b --- /dev/null +++ b/games-arcade/missile/missile-1.0.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils games + +DESCRIPTION="The game Missile Command for Linux" +HOMEPAGE="http://missile.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ~sparc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e '/^CC/d' \ + -e "s:\$(game_prefix)/\$(game_data):${GAMES_DATADIR}/${PN}:" \ + -e "s/-O2/${CFLAGS}/" \ + -e 's/-lSDL_image $(SND_LIBS)/-lSDL_image -lm $(SND_LIBS)/g' \ + Makefile || die +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r data/* + newicon -s 48 icons/${PN}_icon_black.png ${PN}.png + make_desktop_entry ${PN} "Missile Command" + dodoc README + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/moleinvasion/Manifest b/games-arcade/moleinvasion/Manifest new file mode 100644 index 000000000000..15071b67155a --- /dev/null +++ b/games-arcade/moleinvasion/Manifest @@ -0,0 +1,2 @@ +DIST MoleInvasion-0.4.tar.bz2 11213919 SHA256 a011361f07c06d79a5ba6d110d7b06b59da2c57970515d24fab063fe991d922c SHA512 e1d661758391c24b9daab8ba183a265b77f4b2454c8a55f8405b63a78e040491d0c1421a64736a590a574c364e43a8989ef1b958fa565419938d0c8daadbe03f WHIRLPOOL 0de5f87ca6d42e0eb347f7199276d3af37ef6584eaf9c44281e161b3bc6e55e8d5c1caedf6fdbec45192ccc296ebc1b0e3d1e660a0d72c26a3eca8395e70af00 +DIST moleinvasion-music-20090731.tar.gz 83772534 SHA256 ef973ca073026dbe944c7c61058b1437e19f5abe144e9451aed6feffe3d72c73 diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch new file mode 100644 index 000000000000..357f1bc2b466 --- /dev/null +++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-opengl.patch @@ -0,0 +1,18 @@ +--- src/MoleInvasion.c ++++ src/MoleInvasion.c +@@ -159,6 +159,7 @@ + else + printf("Video mode set to %ux%u at %u bpp\n",800, 600, bpp); + ++ if(g_opengl) { + /* pour opengl */ + glEnable (GL_TEXTURE_2D); + glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); +@@ -169,6 +170,7 @@ + glEnable( GL_BLEND ); + glMatrixMode(GL_PROJECTION); + /* fin opengl */ ++ } + + /* titre */ + SDL_WM_SetCaption ("Mole Invasion", NULL); diff --git a/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch b/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch new file mode 100644 index 000000000000..6f4c5fdf4075 --- /dev/null +++ b/games-arcade/moleinvasion/files/moleinvasion-0.4-underlink.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2011-06-14 22:12:00.920386798 +0200 ++++ Makefile 2011-06-14 22:12:22.118716548 +0200 +@@ -11,7 +11,7 @@ + EDTOB = editor + EDWOB = editworld + +-LINLIBS=$(LDLIBS) -lGL ++LINLIBS=$(LDLIBS) -lGL -ldl + LINEXE = ../lin/moleinvasion + LINEDT = ../lin/editor + LINEDW = ../lin/editworld diff --git a/games-arcade/moleinvasion/metadata.xml b/games-arcade/moleinvasion/metadata.xml new file mode 100644 index 000000000000..96ceb3270a0d --- /dev/null +++ b/games-arcade/moleinvasion/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="music">Download and install the music files</flag> + </use> +</pkgmetadata> diff --git a/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild b/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild new file mode 100644 index 000000000000..500d93420ab2 --- /dev/null +++ b/games-arcade/moleinvasion/moleinvasion-0.4-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Mole infested 2D platform game" +HOMEPAGE="http://moleinvasion.tuxfamily.org/" +SRC_URI="ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2 + music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="music" + +DEPEND="media-libs/libsdl[opengl,video] + virtual/opengl + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${P}/src + +src_prepare() { + use music && mv -f "${WORKDIR}"/music ../ + sed -i \ + -e '/^CFLAGS/s:= -g:+=:' \ + -e '/^LDFLAGS/d' \ + -e "/^FINALEXEDIR/s:/usr.*:${GAMES_BINDIR}:" \ + -e "/^FINALDATADIR/s:/usr.*:${GAMES_DATADIR}/${PN}:" \ + Makefile \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-opengl.patch \ + "${FILESDIR}"/${P}-underlink.patch +} + +src_install() { + emake DESTDIR="${D}" install install-data + newicon ../gfx/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Mole Invasion" + doman ../debian/*.6 + prepgamesdirs +} diff --git a/games-arcade/monkey-bubble/Manifest b/games-arcade/monkey-bubble/Manifest new file mode 100644 index 000000000000..307730afe51d --- /dev/null +++ b/games-arcade/monkey-bubble/Manifest @@ -0,0 +1 @@ +DIST monkey-bubble-0.4.0.tar.gz 5360713 SHA256 eb96293a0fadbbfc3cd3ae0bbb557d9bf8a4dd8edccdd8ce1b913e8ba49a1c89 SHA512 def3603972462e19d99d0d1dd86d522386d64cbb4190b1361d0d94bc175f476738619ba34fb78451669456a9365f157a96feb4d996870b37acc9d9e68024ae34 WHIRLPOOL 0a86f6a8a2d81b6c6ef58f565683ac0aecd5a6eb6fba468d35d9986ce94ab55b4fb1d3bde8dfb04fb1e3a107b7c4bcb4d8eed463c81df5d2f1435bf316656c7b diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch new file mode 100644 index 000000000000..1e8822d0f871 --- /dev/null +++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-asneeded.patch @@ -0,0 +1,30 @@ +--- monkey-bubble-0.3.2/src/net/Makefile.am.orig ++++ monkey-bubble-0.3.2/src/net/Makefile.am +@@ -28,10 +28,10 @@ + monkey_srv_LDFLAGS = + + monkey_srv_LDADD = \ +- $(MONKEY_SRV_LIBS) \ + libmonkeynet.a \ + ../monkey/libmonkey.a \ +- ../util/libmonkeyutil.a ++ ../util/libmonkeyutil.a \ ++ $(MONKEY_SRV_LIBS) -lm + + $(libmonkeynet_a_OBJECTS): $(marshal_sources) + +--- monkey-bubble-0.3.2/src/ui/Makefile.am.orig ++++ monkey-bubble-0.3.2/src/ui/Makefile.am +@@ -50,10 +50,10 @@ + + + monkey_bubble_LDADD = \ +- $(UI_LIBS) \ + ../monkey/libmonkey.a \ + ../view/libmonkeyview.a \ + ../util/libmonkeyutil.a \ + ../net/libmonkeynet.a \ + ../audio/libmonkeyaudio.a \ +- ../input/libmbinput.a ++ ../input/libmbinput.a \ ++ $(UI_LIBS) -lm diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch new file mode 100644 index 000000000000..67109beff7f7 --- /dev/null +++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-glib-single-include.patch @@ -0,0 +1,45 @@ +Index: monkey-bubble-0.4.0/src/net/message-handler.c +=================================================================== +--- monkey-bubble-0.4.0.orig/src/net/message-handler.c ++++ monkey-bubble-0.4.0/src/net/message-handler.c +@@ -28,7 +28,7 @@ + #include <unistd.h> + #include <string.h> + #include <arpa/inet.h> +-#include <glib/gthread.h> ++#include <glib.h> + #include <sys/time.h> + #include <time.h> + +Index: monkey-bubble-0.4.0/src/net/simple-server.c +=================================================================== +--- monkey-bubble-0.4.0.orig/src/net/simple-server.c ++++ monkey-bubble-0.4.0/src/net/simple-server.c +@@ -31,13 +31,12 @@ + #include <unistd.h> + #include <string.h> + #include <arpa/inet.h> +-#include <glib/gthread.h> ++#include <glib.h> + #include <sys/time.h> + #include <time.h> + + + #include <glib-object.h> +-#include <glib.h> + + #include "simple-server.h" + #include "message-handler.h" +Index: monkey-bubble-0.4.0/src/ui/main.c +=================================================================== +--- monkey-bubble-0.4.0.orig/src/ui/main.c ++++ monkey-bubble-0.4.0/src/ui/main.c +@@ -15,7 +15,7 @@ + #include <gtk/gtk.h> + #include <gst/gst.h> + #include <bonobo/bonobo-i18n.h> +-#include <glib/gthread.h> ++#include <glib.h> + #include <libgnomeui/gnome-ui-init.h> + + #include <math.h> diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch new file mode 100644 index 000000000000..801ae84d9bab --- /dev/null +++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-gnome-doc.patch @@ -0,0 +1,38 @@ +--- help/C/monkey-bubble.xml ++++ help/C/monkey-bubble.xml +@@ -23,7 +23,7 @@ + <publishername>GNOME Documentation Project</publishername> + </publisher> + <authorgroup> +- <author> ++ <author role="maintainer"> + <firstname>Thomas</firstname> + <surname>Cataldo</surname> + <affiliation> +@@ -55,6 +55,7 @@ + manual, follow the directions in the + <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>. </para> + </legalnotice> ++ <abstract role="description"><para>Monkey Bubble manual</para></abstract> + </articleinfo> + + <indexterm> +--- help/fr/monkey-bubble.xml ++++ help/fr/monkey-bubble.xml +@@ -22,7 +22,7 @@ + <publishername>Projet de documentation GNOME</publishername> + </publisher> + <authorgroup> +- <author> ++ <author role="maintainer"> + <firstname>Thomas</firstname> + <surname>Cataldo</surname> + <affiliation> +@@ -47,6 +47,7 @@ + <title>Votre avis</title> + <para>Pour signaler un problème ou faire une suggestion concernant l'application Monkey Bubble ou le présent manuel, procédez comme indiquéà la <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.</para> + </legalnotice> ++ <abstract role="description"><para>Monkey Bubble manual</para></abstract> + </articleinfo> + + <indexterm> diff --git a/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch new file mode 100644 index 000000000000..be0a9a924a47 --- /dev/null +++ b/games-arcade/monkey-bubble/files/monkey-bubble-0.4.0-noesound.patch @@ -0,0 +1,19 @@ +monkey-bubble-0.4.0: don't require the esd header. + +2010-07-12 Sven Herzberg +2012-01-07 Martin von Gagern + +References: +https://github.com/mquinson/monkey-bubble/commit/299623f8e6b0b6090e98 +https://bugs.gentoo.org/397997 + +--- monkey-bubble-0.4.0.orig/src/ui/main.c ++++ monkey-bubble-0.4.0/src/ui/main.c +@@ -11,7 +11,6 @@ + #include "ui-main.h" + #include "input-manager.h" + +-#include <esd.h> + #include <gtk/gtk.h> + #include <gst/gst.h> + #include <bonobo/bonobo-i18n.h> diff --git a/games-arcade/monkey-bubble/metadata.xml b/games-arcade/monkey-bubble/metadata.xml new file mode 100644 index 000000000000..b4647c10eaf6 --- /dev/null +++ b/games-arcade/monkey-bubble/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> +<email>mr_bones_@gentoo.org</email> +<name>Michael Sterrett</name> +</maintainer> +</pkgmetadata> diff --git a/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild b/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild new file mode 100644 index 000000000000..62ad1740c948 --- /dev/null +++ b/games-arcade/monkey-bubble/monkey-bubble-0.4.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2 + +DESCRIPTION="A Puzzle Bobble clone" +HOMEPAGE="http://www.monkey-bubble.org/" +SRC_URI="http://home.gna.org/monkeybubble/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86" +IUSE="" + +RDEPEND="x11-libs/gtk+:2 + >=dev-libs/glib-2.12:2 + >=gnome-base/libglade-2.0 + >=gnome-base/libgnomeui-2.0 + >=gnome-base/librsvg-2.0 + >=gnome-base/gconf-2.0 + media-libs/gstreamer:0.10 + >=dev-libs/libxml2-2.6.7" +DEPEND="${RDEPEND} + app-text/rarian + app-text/gnome-doc-utils + dev-util/intltool" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-asneeded.patch \ + "${FILESDIR}"/${P}-gnome-doc.patch \ + "${FILESDIR}"/${P}-noesound.patch \ + "${FILESDIR}"/${P}-glib-single-include.patch + # bug 260895 + sed -i -e 's/ -Werror//' $(find . -name Makefile.am) || die + sed -i \ + -e '/^Icon/s/.png//' \ + -e '/^Categories/s/Application;//' \ + monkey-bubble.desktop.in || die + AT_NOELIBTOOLIZE=yes eautoreconf + gnome2_src_prepare +} diff --git a/games-arcade/monster-masher/Manifest b/games-arcade/monster-masher/Manifest new file mode 100644 index 000000000000..ce03456bae77 --- /dev/null +++ b/games-arcade/monster-masher/Manifest @@ -0,0 +1 @@ +DIST monster-masher-1.8.1.tar.bz2 1042299 SHA256 09f710fe1293fc6c8791ed569d02143c238659f8b635b364f59f08ab6c5ea5b1 SHA512 250414d6fb4abea12d2fd5328fc003449680b76784bfc6c15cc05d5dfb78e45eee2d2c6d36a3bf2f3c0e055c9ee58cbfaf623f56638fa8462f5006c84057c254 WHIRLPOOL 9faba62e35585dd063a092dfc4cbe39d4a7869bfe8a1b508cd441b37eebafcc76a73b23f3c735cae33cc1df0d37bb671b609bc5f69ed6d55c656d672e85d73e2 diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch new file mode 100644 index 000000000000..f9812802da74 --- /dev/null +++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch @@ -0,0 +1,16 @@ +--- monster-masher.desktop.in.old 2014-11-23 21:20:33.967676333 +0100 ++++ monster-masher.desktop.in 2014-11-23 21:21:30.518718141 +0100 +@@ -1,10 +1,9 @@ + [Desktop Entry] +-Encoding=UTF-8 + _Name=Monster Masher + _Comment=Mash monsters and save the gnomes + Exec=monster-masher +-Icon=monster-masher.png ++Icon=monster-masher + Terminal=false + Type=Application +-Categories=GNOME;Application;Game;ArcadeGame; +-StartupNotification=true ++Categories=GNOME;Game; ++StartupNotify=true diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch new file mode 100644 index 000000000000..4ee47fab39fb --- /dev/null +++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch @@ -0,0 +1,85 @@ +Drop dependency on esound support in libgnome and replace it by libcanberra. + +Gentoo bug: #348605 + +--- a/configure.ac 2008-11-09 20:52:01.000000000 +0000 ++++ b/configure.ac 2011-03-06 13:08:42.000000000 +0000 +@@ -18,7 +18,8 @@ + gconfmm-2.6 >= 2.6.0 \ + gtkmm-2.4 >= 2.6.0 \ + libgnomecanvasmm-2.6 >= 2.6.0 \ +- libglademm-2.4 >= 2.4.0) ++ libglademm-2.4 >= 2.4.0 \ ++ libcanberra) + AC_SUBST(DEPS_CFLAGS) + AC_SUBST(DEPS_LIBS) + +--- a/src/sound.hpp 2007-01-06 16:16:30.000000000 +0000 ++++ b/src/sound.hpp 2011-03-06 13:12:47.000000000 +0000 +@@ -22,6 +22,7 @@ + #define SOUND_HPP + + #include <string> ++#include <canberra.h> + + #include "helpers.hpp" + +@@ -39,8 +40,7 @@ + private: + Sound(); + +- typedef std::map<std::string, int> cache_map; +- cache_map cache; ++ ca_context *ctx; + }; + + #endif +--- a/src/sound.cpp 2007-01-06 16:16:30.000000000 +0000 ++++ b/src/sound.cpp 2011-03-07 21:55:47.000000000 +0000 +@@ -18,9 +18,6 @@ + * USA. + */ + +-#include <libgnome/gnome-sound.h> +-#include <esd.h> +- + #include "sound.hpp" + + +@@ -30,26 +27,23 @@ + return s; + } + +-Sound::Sound() ++Sound::Sound() : ++ ctx(0) + { ++ ca_context_create(&ctx); + } + + Sound::~Sound() + { ++ if (ctx) ++ ca_context_destroy(ctx); + } + + void Sound::play(const std::string &name) + { +- int id; +- +- cache_map::iterator i = cache.find(name); +- if (i != cache.end()) +- id = i->second; +- else { +- id = gnome_sound_sample_load(name.c_str(), +- (MONSTER_MASHER_SOUND_DIR + name).c_str()); +- cache.insert(make_pair(name, id)); +- } +- +- esd_sample_play(gnome_sound_connection_get(), id); ++ if (ctx) ++ ca_context_play(ctx, 0, ++ CA_PROP_MEDIA_FILENAME, (MONSTER_MASHER_SOUND_DIR + name).c_str(), ++ CA_PROP_CANBERRA_CACHE_CONTROL, "permanent", ++ NULL); + } diff --git a/games-arcade/monster-masher/metadata.xml b/games-arcade/monster-masher/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/monster-masher/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild new file mode 100644 index 000000000000..1f8d1a361325 --- /dev/null +++ b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +GCONF_DEBUG="no" + +inherit autotools eutils gnome2 + +DESCRIPTION="Squash the monsters with your levitation worker gnome" +HOMEPAGE="http://people.iola.dk/olau/monster-masher/" +SRC_URI="http://people.iola.dk/olau/monster-masher/source/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND=" + x11-libs/libSM + >=dev-cpp/gtkmm-2.6:2.4 + >=dev-cpp/gconfmm-2.6 + >=dev-cpp/libglademm-2.4:2.4 + >=dev-cpp/libgnomecanvasmm-2.6:2.6 + gnome-base/libgnome + media-libs/libcanberra +" +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + sys-devel/gettext +" + +src_prepare() { + # Port to libcanberra, bug #348605 + epatch "${FILESDIR}"/${P}-libcanberra.patch + + # Fix .desktop file + epatch "${FILESDIR}"/${P}-desktop.patch + + # build with newer glib - bug #424313 + sed -i -e 's:glib/gtypes:glib:' src/pixbuf-drawing.hpp || die + + eautoreconf + gnome2_src_prepare +} diff --git a/games-arcade/mrrescue/Manifest b/games-arcade/mrrescue/Manifest new file mode 100644 index 000000000000..580f6bc384f8 --- /dev/null +++ b/games-arcade/mrrescue/Manifest @@ -0,0 +1,2 @@ +DIST mrrescue-1.02b-love.zip 11874167 SHA256 fd19646fb97cf21b7e6eb050ff0c4dc9126189f1036ebf712729f35220c9e6b2 SHA512 24186570c89694889c1d9f17522dd201f20bae2c43237f366397065a7023c89bab3bb9cdc6677cf09bc7cbeaf9926710a3db15818eee9ce8024fedbfcb8fb516 WHIRLPOOL 63ece45482f326f4e2cd64c6003607678b778d93bcef84f7a5894826215f0abcff06ac02052cebddce74d1460d0b7b5b7142649ed178421d5acfd347041df25e +DIST mrrescue.png 4738 SHA256 03ecc23472af3ae5a89278ec6026b95d967cd679b0cdccf94d9527d77f646877 SHA512 9395e239e300397ed791573758242d75003caaf8c1d66c4f7a0299114ee4f1b40376bb2d532ed4a02fa97f773408ad5ef00ba228ee976fd30ddaa2f60ea80b9c WHIRLPOOL c08ffb6898e0fba6db08112ab39067c9bdfd5fcb418d135a7ba931a552b904b2826afa75c13ce8a0c1cb78106349a11c244462aed0f50138e4e012c371cbd864 diff --git a/games-arcade/mrrescue/metadata.xml b/games-arcade/mrrescue/metadata.xml new file mode 100644 index 000000000000..28782ebba7d9 --- /dev/null +++ b/games-arcade/mrrescue/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="github">SimonLarsen/mrrescue</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/mrrescue/mrrescue-1.02b.ebuild b/games-arcade/mrrescue/mrrescue-1.02b.ebuild new file mode 100644 index 000000000000..41eb4940d440 --- /dev/null +++ b/games-arcade/mrrescue/mrrescue-1.02b.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils gnome2-utils games + +DESCRIPTION="Arcade styled 2d action game centered around evacuating civilians from burning buildings" +HOMEPAGE="http://tangramgames.dk/games/mrrescue/" +SRC_URI="https://github.com/SimonLarsen/mrrescue/releases/download/v${PV}/${P}-love.zip + http://dev.gentoo.org/~hasufell/distfiles/${PN}.png" + +LICENSE="CC-BY-SA-3.0 MIT ZLIB" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="games-engines/love:0" +DEPEND="app-arch/unzip" + +S=${WORKDIR}/${P}-love + +src_install() { + local dir=${GAMES_DATADIR}/love/${PN} + + exeinto "${dir}" + doexe ${PN}.love + + dodoc README.txt + + doicon -s 64 "${DISTDIR}"/${PN}.png + games_make_wrapper ${PN} "love ${PN}.love" "${dir}" + make_desktop_entry ${PN} + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/netris/Manifest b/games-arcade/netris/Manifest new file mode 100644 index 000000000000..3400d8f65b11 --- /dev/null +++ b/games-arcade/netris/Manifest @@ -0,0 +1,2 @@ +DIST netris-0.52.tar.gz 33135 SHA256 8bc770ebb2c3ead1611ca7a1a2f3d833e169536c78d53b3fcf49381164ee9706 SHA512 842ad8602394dee929c3c4ba222f9f5ffe628e52348c3faf7c9098bbd5b0b0279fffc7927320f8ee8a5102537c995a8ed605d851f1cd32e4bd8976a7889c84e1 WHIRLPOOL 7bf0356b85107ec871c15afa9e680596e890e22cfb6ba9e72b4487af84c01b5aa4519a0d218c8736f80edaa8ba0c488d49aca07dd67c75dad91054de3a7ea7aa +DIST netris_0.52-7.diff.gz 11586 SHA256 6b4d157768d075d9fedb9318f2583add253af994bab8ed6fe25b65b5086c8cc5 SHA512 2d2fe28dbf886107fa27f631e30534aab8afe027b5a41da3761ff39a16d65d7cf6ff5bf409708d55740638df75e334b5fb1ae4c5304616731fb6498d2cc00ca9 WHIRLPOOL ff1ff01f25b12f809f72682e48f539dd55df8e370151effe1222898b12239abf972e97ff1e8cc768beedf3c085b96e6c3540a309f08205245811ae1b52b51ac2 diff --git a/games-arcade/netris/metadata.xml b/games-arcade/netris/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/netris/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/netris/netris-0.52.ebuild b/games-arcade/netris/netris-0.52.ebuild new file mode 100644 index 000000000000..5e0d8019bfcc --- /dev/null +++ b/games-arcade/netris/netris-0.52.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DEB_VER=7 +DESCRIPTION='Classic networked version of T*tris' +HOMEPAGE='http://www.netris.org/' +SRC_URI="ftp://ftp.netris.org/pub/netris/${P}.tar.gz + mirror://debian/pool/main/n/netris/netris_${PV}-${DEB_VER}.diff.gz" + +LICENSE='GPL-2' +SLOT='0' +KEYWORDS='amd64 ~mips ppc ~sparc x86 ~x86-fbsd' +IUSE='' + +DEPEND='sys-libs/ncurses' +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${WORKDIR}"/netris_${PV}-${DEB_VER}.diff + # bug #185332 + sed -i \ + -e '/sys\/time/ i\ +#include <sys/types.h> \ +#include <time.h> +' \ + -e '/netint2/ s/short/int16_t/' \ + -e '/netint4/ s/long/int32_t/' \ + netris.h \ + || die 'sed failed' + sed -i \ + -e '/curses\.h/ a\ +#include <term.h> +' \ + curses.c \ + || die 'sed failed' + sed -i \ + -e 's/volatile //g' \ + -e '/Be more forgiving/d' \ + -e 's/static myRandSeed/static int myRandSeed/' \ + util.c \ + || die 'sed failed' + sed -i \ + -e 's/\(long pauseTimeLeft\)/\1 = 0/' \ + game.c \ + || die 'sed failed' + sed -i \ + -e '/^CC/d' \ + -e '/^COPT/d' \ + -e '/^CFLAGS/d' \ + -e 's/(LFLAGS)/(LDFLAGS) $(LFLAGS)/' \ + Configure \ + || die 'sed failed' +} + +src_configure() { + bash ./Configure -O || die 'Configure failed' +} + +src_install() { + dogamesbin netris sr + dodoc FAQ README robot_desc + prepgamesdirs +} diff --git a/games-arcade/nibbles/Manifest b/games-arcade/nibbles/Manifest new file mode 100644 index 000000000000..c05b9b4296c3 --- /dev/null +++ b/games-arcade/nibbles/Manifest @@ -0,0 +1 @@ +DIST nibbles-v0.0.4.tar.gz 18610 SHA256 4a1715d700319fdad55f8e880d68a16399f9bf1a35ab403f03c13286cd50ee92 SHA512 a10af4f20af371c2a8ab4cf69c4a73120670815467177d3bc2a05aa198e9edf80cc1d47edf40d06059baf6e51cf7018ed4830a3a5bda6a35868548403f5f414b WHIRLPOOL c6900db02529c8a352894e0dca63adb276f6a61e9babef3d2e8a21fa82e4740a82a26c2f090412858feae18ccd7bce16cf2feed502f48cd55820a35d7f0fd3fa diff --git a/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch new file mode 100644 index 000000000000..7e27d1fb9cac --- /dev/null +++ b/games-arcade/nibbles/files/nibbles-0.0.4-as-needed.patch @@ -0,0 +1,24 @@ +--- Makefile.old 2009-02-02 12:40:36.000000000 +0100 ++++ Makefile 2009-02-02 12:41:22.000000000 +0100 +@@ -1,19 +1,14 @@ +-CC = gcc -Wall -g +- + SRCS = player.c main.c loadMap.c cmdline.c ncdrawlib.c scoring.c + OBJS = $(SRCS:.c=.o) +-LIBS = -lncurses ++LDLIBS = -lncurses + + INSTALL=/usr/bin/install -c + INSTALL_FOLDER=/usr/games + + all: nibbles + +-.c.o: +- $(CC) -c $*.c -o $*.o +- + nibbles: $(OBJS) +- $(CC) $(LIBS) $(OBJS) -o $@ ++ $(CC) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@ + + clean: + rm -f *~ *.o nibbles diff --git a/games-arcade/nibbles/metadata.xml b/games-arcade/nibbles/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/nibbles/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/nibbles/nibbles-0.0.4.ebuild b/games-arcade/nibbles/nibbles-0.0.4.ebuild new file mode 100644 index 000000000000..95e45f240207 --- /dev/null +++ b/games-arcade/nibbles/nibbles-0.0.4.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P=${PN}-v${PV} +DESCRIPTION="An ncurses-based Nibbles clone" +HOMEPAGE="http://www.earth.li/projectpurple/progs/nibbles.html" +SRC_URI="http://www.earth.li/projectpurple/files/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~x86-linux ~ppc-macos" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e "s#/usr/local/games/nibbles.levels#${GAMES_DATADIR}/${PN}#" \ + nibbles.h || die + + sed -i \ + -e "s#/var/lib/games/nibbles.score#${GAMES_STATEDIR}/nibbles.scores#" \ + scoring.h || die + + epatch "${FILESDIR}"/${P}-as-needed.patch +} + +src_install() { + dogamesbin nibbles + + insinto "${GAMES_DATADIR}/${PN}" + doins nibbles.levels/* + + dodir "${GAMES_STATEDIR}" + touch "${D}${GAMES_STATEDIR}/nibbles.scores" + + dodoc HISTORY CREDITS TODO README + + prepgamesdirs + + fperms 664 "${GAMES_STATEDIR}/nibbles.scores" +} diff --git a/games-arcade/ninvaders/Manifest b/games-arcade/ninvaders/Manifest new file mode 100644 index 000000000000..63d4f38168b1 --- /dev/null +++ b/games-arcade/ninvaders/Manifest @@ -0,0 +1 @@ +DIST ninvaders-0.1.1.tar.gz 31275 SHA256 bfbc5c378704d9cf5e7fed288dac88859149bee5ed0850175759d310b61fd30b SHA512 7987063084d9a9f042b419e7552debf3f173b82ba3832c2575ae8461fb5f787d6a476c305d5c2d591b4574748c6ba50e42391796c384f225685c22f044553087 WHIRLPOOL adac43bcd768c7f2961ea48fec06c587e9d62ee562a154f3dc712f07a65b698ce8ff70a3dcf740f5d02e14fa17c1cf4b5ca719c9deaa771c77729b4fc373b8cf diff --git a/games-arcade/ninvaders/metadata.xml b/games-arcade/ninvaders/metadata.xml new file mode 100644 index 000000000000..da189cd7e97d --- /dev/null +++ b/games-arcade/ninvaders/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">ninvaders</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/ninvaders/ninvaders-0.1.1.ebuild b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild new file mode 100644 index 000000000000..450b4ee031e9 --- /dev/null +++ b/games-arcade/ninvaders/ninvaders-0.1.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit toolchain-funcs games + +DESCRIPTION="ASCII space invaders clone" +HOMEPAGE="http://ninvaders.sourceforge.net/" +SRC_URI="mirror://sourceforge/ninvaders/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" +} + +src_install() { + newgamesbin nInvaders ninvaders + dodoc README + prepgamesdirs +} diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest new file mode 100644 index 000000000000..3d711acf3fd0 --- /dev/null +++ b/games-arcade/njam/Manifest @@ -0,0 +1 @@ +DIST njam-1.25-src.tar.gz 1665803 SHA256 8ed3eee3f387ce5ecdab7dd528f98cf77f65971510964000f2f1dfbf8b6f3000 SHA512 d19c249ade34ede322245718fbc6fc79c5a0ed5f5da50989f88de48410dda3d7ae29f8968185166dfdc1dd23dae8126efe4a5f3c76c3731b90afd1c798f66917 WHIRLPOOL de12dd8ba5e8bf778f9e828b7aac85d6b9c172e07294ea5d62417fcc39256d0d19427ba9d45417c98540e3641a789774c425a111dfdda7bbc5df4204d7353463 diff --git a/games-arcade/njam/files/njam-1.25-gcc45.patch b/games-arcade/njam/files/njam-1.25-gcc45.patch new file mode 100644 index 000000000000..b74bc3dac105 --- /dev/null +++ b/games-arcade/njam/files/njam-1.25-gcc45.patch @@ -0,0 +1,24 @@ +Fix buiding with gcc 4.5 + +http://bugs.gentoo.org/show_bug.cgi?id=318411 + +--- src/njamedit.cpp ++++ src/njamedit.cpp +@@ -114,7 +114,7 @@ + key = SDLK_a; + else if (CheckForSave()) + { +- LogFile::LogFile("Saving maps"); ++ LogFile("Saving maps"); + m_Maps.Save(filename); + level_type_was = level_type; + changed = false; +@@ -131,7 +131,7 @@ + char types[2][5] = { "COOP", "DUEL" }; + sprintf(buf, "levels/%s.%s\0", filename, types[level_type]); + sprintf(filename, "%s\0", buf); +- LogFile::LogFile("Saving maps"); ++ LogFile("Saving maps"); + m_Maps.Save(filename); + level_type_was = level_type; + changed = false; diff --git a/games-arcade/njam/metadata.xml b/games-arcade/njam/metadata.xml new file mode 100644 index 000000000000..cbb30a3a18a3 --- /dev/null +++ b/games-arcade/njam/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">njam</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/njam/njam-1.25.ebuild b/games-arcade/njam/njam-1.25.ebuild new file mode 100644 index 000000000000..0490115d19f4 --- /dev/null +++ b/games-arcade/njam/njam-1.25.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic games + +MY_P=${P}-src +DESCRIPTION="Multi or single-player network Pacman-like game in SDL" +HOMEPAGE="http://njam.sourceforge.net/" +SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/sdl-mixer + media-libs/sdl-image + media-libs/libsdl + media-libs/sdl-net" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -i \ + -e "s:hiscore.dat:${GAMES_STATEDIR}/${PN}/\0:" \ + src/njam.cpp \ + || die "sed failed" + sed -i \ + -e "/hiscore.dat/ s:\$(DEFAULT_LIBDIR):${GAMES_STATEDIR}:" \ + Makefile.in \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-gcc45.patch + # njam segfaults on startup with -Os + replace-flags "-Os" "-O2" +} + +src_install() { + dodir "${GAMES_STATEDIR}/${PN}" + emake DESTDIR="${D}" install + dohtml -r "${D}${GAMES_DATADIR}/njam/html/"* + rm -rf "${D}${GAMES_DATADIR}/njam/html/" + newicon data/njamicon.bmp njam.bmp + make_desktop_entry njam Njam /usr/share/pixmaps/njam.bmp + prepgamesdirs +} diff --git a/games-arcade/notpacman/Manifest b/games-arcade/notpacman/Manifest new file mode 100644 index 000000000000..4223046be9c3 --- /dev/null +++ b/games-arcade/notpacman/Manifest @@ -0,0 +1,2 @@ +DIST notpacman-1.0.4.zip 439775 SHA256 9ec13bb0737d69c8954a5012ab3c84917f8db6285f74605c6faac7592a7ef2fc SHA512 c64d74cad972c22fe7674b55c0155fcd6e0176c580f53645a0cef7ae1e2c3453807f13fd9bbc9992cdc1176bc1687800f957ef5c11034a2ffe0774ec0118a863 WHIRLPOOL 94fa5c3a865b3fea736a41cb9000522cfdd36cfd63703f0a811743bd9fdc082f98c85407b9248a3e066f06c34cd44b15a7c2ace0956fc72a4541b933169b1457 +DIST notpacman.png 1556 SHA256 79e3d47abc08c4e07d70a410fd841fbccf0289443fa5f6f09d74ec674ff86d3a SHA512 38fca81429255a5857476cbbcccb188ae4cc7fae4c044b45d82206ffcb41da5737e20135be2a6ab15ec1ff5faa74e5208a33a4966b3e9e99293c0ccb276b0c1b WHIRLPOOL bd0a91e87c410d1901f6839df88e5a70ca6c193cda842fff878f055a384cbc667b2e688b2e3c7015cdfd862545dda1a38e55e91aa2d23e9ca9b8b67eb780dbf3 diff --git a/games-arcade/notpacman/metadata.xml b/games-arcade/notpacman/metadata.xml new file mode 100644 index 000000000000..7b7fcbaee9c0 --- /dev/null +++ b/games-arcade/notpacman/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> + Ever wondered how Pacman would be like with physics? No? Well, it's + revolutionary. This mashup of "Not" and "Pacman" puts The Pac and + the Ghosts in a in a Pacworld cage, at mercy of gravity and the + level's shape, controlled solely by you. Ghosts still don't like + you very much, so you should be careful to make Pacman avoid them. + </longdescription> +</pkgmetadata> + diff --git a/games-arcade/notpacman/notpacman-1.0.4.ebuild b/games-arcade/notpacman/notpacman-1.0.4.ebuild new file mode 100644 index 000000000000..74e7eeed3c04 --- /dev/null +++ b/games-arcade/notpacman/notpacman-1.0.4.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils gnome2-utils games + +DESCRIPTION="A mashup of \"Not\" and \"Pacman\"" +HOMEPAGE="http://stabyourself.net/notpacman/" +SRC_URI="http://stabyourself.net/dl.php?file=notpacman-1004/notpacman-linux.zip -> ${P}.zip + http://dev.gentoo.org/~hasufell/distfiles/${PN}.png" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="amd64 x86" + +LVSLOT="0.7" +RDEPEND=">=games-engines/love-0.7.2:${LVSLOT} + media-libs/devil[png]" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_install() { + local dir=${GAMES_DATADIR}/love/${PN} + + exeinto "${dir}" + newexe not_pacman.love ${PN}.love + + dodoc README + + doicon -s 32 "${DISTDIR}"/${PN}.png + games_make_wrapper ${PN} "love-${LVSLOT} ${PN}.love" "${dir}" + make_desktop_entry ${PN} + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/nottetris2/Manifest b/games-arcade/nottetris2/Manifest new file mode 100644 index 000000000000..54e3a153709d --- /dev/null +++ b/games-arcade/nottetris2/Manifest @@ -0,0 +1 @@ +DIST nottetris2-1.zip 2774048 SHA256 e2b8737e1e761174bbb0cdea403a2b7558732b682f5a1e32ea3ee956192ea88c SHA512 63478640fadf91134dec86f88d6422a317b4523ececff836e40984500f2771d564012cbd587a46b300e084c3c64531f3758c648edf3d683b136c9da69924a187 WHIRLPOOL e665708a202dc83923de462f2624dfa273a7a7016e4acf253ef080aac956ded50c1973d258511434943b8f328b06bd36b69db110d4c7aed2d0aa40bf4069e714 diff --git a/games-arcade/nottetris2/metadata.xml b/games-arcade/nottetris2/metadata.xml new file mode 100644 index 000000000000..b16ee4050bb5 --- /dev/null +++ b/games-arcade/nottetris2/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang='en'> + Not Tetris 2 is the spiritual successor of the classic Tetris + mixed with physics. The result is a fun spinoff in which blocks + are no longer bound to the usual grid. Blocks can be rotated and + placed at any angle, resulting in a complete mess if not careful. + And with the newest cutting edge technology, Not tetris 2 allows + line clears when the lines are sufficiently filled. The old mode + is still available for play and is now called Stack. + </longdescription> +</pkgmetadata> diff --git a/games-arcade/nottetris2/nottetris2-1.ebuild b/games-arcade/nottetris2/nottetris2-1.ebuild new file mode 100644 index 000000000000..1419afd49bdb --- /dev/null +++ b/games-arcade/nottetris2/nottetris2-1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="The spiritual successor of the classic Tetris mixed with physics" +HOMEPAGE="http://stabyourself.net/nottetris2/" +SRC_URI="http://stabyourself.net/dl.php?file=nottetris2/nottetris2-linux.zip -> ${P}.zip" + +LICENSE="CC-BY-NC-SA-3.0" +SLOT="0" +KEYWORDS="amd64 x86" + +LVSLOT="0.7" +RDEPEND=">=games-engines/love-0.7.2:${LVSLOT} + media-libs/devil[png]" +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +src_install() { + local dir=${GAMES_DATADIR}/love/${PN} + + exeinto "${dir}" + newexe "Not Tetris 2.love" ${PN}.love + + newdoc "Not Readme.txt" README + + games_make_wrapper ${PN} "love-${LVSLOT} ${PN}.love" "${dir}" + make_desktop_entry ${PN} + + prepgamesdirs +} diff --git a/games-arcade/openbubbles/Manifest b/games-arcade/openbubbles/Manifest new file mode 100644 index 000000000000..aee64dc4e596 --- /dev/null +++ b/games-arcade/openbubbles/Manifest @@ -0,0 +1 @@ +DIST openbubbles-1.2.tar.bz2 1090220 SHA256 7d5d4633a4881559f475b0b9e3778d593f856dd1dbf0acf979b79852f8d63dbb SHA512 fe546f12e6d045cb37f4c9f88dd42fc627d614933525066bd3eb867e5d8732f2f23fe117ff1a444fc3c33d471ae51099c865d9082134e0e8a051ce8a3df58244 WHIRLPOOL fa988262a9a636800ec8bc0aa2ce3c9cb6cb35f5244c76ef1e50a10cfaf445d664435f022280aac8b90424754d08deb9e9d2187af174634072b0b438180da072 diff --git a/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch new file mode 100644 index 000000000000..d511734da28f --- /dev/null +++ b/games-arcade/openbubbles/files/openbubbles-1.2-glibc2.10.patch @@ -0,0 +1,20 @@ +--- src/BFont.cpp ++++ src/BFont.cpp +@@ -319,7 +319,7 @@ + int i = 0;
+
+ /* Calculate the space occupied by the text without spaces */
+- while ((p=strchr(&text[pos+1],SPACE)) != NULL) {
++ while ((p=strchr((char *)&text[pos+1],SPACE)) != NULL) {
+ i++;
+ pos = p - text;
+ }
+@@ -359,7 +359,7 @@ + xpos=0;
+ pos = -1;
+ while ( spaces > 0 ) {
+- p = strstr(&text[pos+1]," ");
++ p = strstr((char *)&text[pos+1]," ");
+ strtmp = NULL;
+ strtmp = (char *) calloc ((p - &text[pos+1]) + 1,sizeof(char));
+ if (strtmp != NULL)
diff --git a/games-arcade/openbubbles/metadata.xml b/games-arcade/openbubbles/metadata.xml new file mode 100644 index 000000000000..906d51d15057 --- /dev/null +++ b/games-arcade/openbubbles/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +This is a clone of Evan Bailey's game Bubbles. Why did I reinvent the wheel? In +this case, the wheel is made in Game Maker, so anyone who wants to do any +serious programming would not be able to unless they A) ran Windows and B) ran a +program that doesn't give the user very great power. OpenBubbles is written in +C++ using SDL, so the programmer has some pretty powerful tools at his/her +disposal; in addition, because SDL is cross-platform, OpenBubbles can be ported +to any (major) platform, including Windows. Of course, I only run Unix, so I +will only be producing Unix source code. Though it was a relatively minor issue, +Evan's license is only semi-free because it doesn't permit commercial use of the +source code. Now, you are free to make as much money as you want off of +improvements of OpenBubbles (provided, of course, that you share them with me +and everyone else under the GPL, too). +</longdescription> +</pkgmetadata> diff --git a/games-arcade/openbubbles/openbubbles-1.2.ebuild b/games-arcade/openbubbles/openbubbles-1.2.ebuild new file mode 100644 index 000000000000..434c1926a151 --- /dev/null +++ b/games-arcade/openbubbles/openbubbles-1.2.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A clone of Evan Bailey's game Bubbles" +HOMEPAGE="http://www.freewebs.com/lasindi/openbubbles/index.html" +SRC_URI="http://www.freewebs.com/lasindi/openbubbles/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-gfx" +RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/${P}-glibc2.10.patch ) + +src_install() { + default + newicon data/bubble.png ${PN}.png + make_desktop_entry ${PN} "OpenBubbles" + prepgamesdirs +} diff --git a/games-arcade/openmortal/Manifest b/games-arcade/openmortal/Manifest new file mode 100644 index 000000000000..5dbf862b3c8a --- /dev/null +++ b/games-arcade/openmortal/Manifest @@ -0,0 +1 @@ +DIST openmortal-0.7.tar.bz2 51197736 SHA256 9c302560d71ddcd3473ba2a1022fd118cbce87a4cd4b3080cb46288a410bb710 SHA512 8af0b64a3d894dfdbdddafdbdc4c853dc2bfc9b52fd507db2818e67af5ad6cdbbb45f2e42e32103e841759225b1b8c4f33ac5a8ad70e4763698c54803fb81fce WHIRLPOOL caaad653fda58fb5ee741ab06042a5c6c94bb14414202515085ddc4a821948734cdabebb38f0a98e00f3b9ce19cb0e1761656843061a244334199fb62e400bc4 diff --git a/games-arcade/openmortal/files/openmortal-0.7-freetype.patch b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch new file mode 100644 index 000000000000..4000ca30f9b8 --- /dev/null +++ b/games-arcade/openmortal/files/openmortal-0.7-freetype.patch @@ -0,0 +1,15 @@ +--- openmortal-0.7/src/sge_tt_text.cpp.old 2014-04-04 21:35:37.275483286 +0300 ++++ openmortal-0.7/src/sge_tt_text.cpp 2014-04-04 21:36:08.065359870 +0300 +@@ -37,9 +37,9 @@ + + #ifndef _SGE_NOTTF + #include <ft2build.h> +-#include <freetype/freetype.h> +-#include <freetype/ftoutln.h> +-#include <freetype/ttnameid.h> ++#include <freetype.h> ++#include <ftoutln.h> ++#include <ttnameid.h> + + /* The structure used to hold glyph information (cached) */ + struct glyph { diff --git a/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch new file mode 100644 index 000000000000..fdba61c6b008 --- /dev/null +++ b/games-arcade/openmortal/files/openmortal-0.7-gcc41.patch @@ -0,0 +1,11 @@ +--- src/OnlineChat.cpp.old 2006-01-28 14:34:42.000000000 -0700 ++++ src/OnlineChat.cpp 2006-01-28 14:34:53.000000000 -0700 +@@ -56,7 +56,7 @@ + class CChallengeMenu: public Menu + { + public: +- CChallengeMenu::CChallengeMenu( std::string a_sChallenger ) ++ CChallengeMenu( std::string a_sChallenger ) + : Menu( "You have been challenged!" ), + m_sChallenger( a_sChallenger ) + { diff --git a/games-arcade/openmortal/metadata.xml b/games-arcade/openmortal/metadata.xml new file mode 100644 index 000000000000..663665f4c371 --- /dev/null +++ b/games-arcade/openmortal/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">openmortal</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/openmortal/openmortal-0.7-r1.ebuild b/games-arcade/openmortal/openmortal-0.7-r1.ebuild new file mode 100644 index 000000000000..c24d9f4a932b --- /dev/null +++ b/games-arcade/openmortal/openmortal-0.7-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="A spoof of the famous Mortal Kombat game" +HOMEPAGE="http://openmortal.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-ttf + media-libs/sdl-net + >=media-libs/freetype-2.4.0 + dev-lang/perl" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch \ + "${FILESDIR}/${P}"-gcc41.patch \ + "${FILESDIR}/${P}"-freetype.patch + + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + newicon data/gfx/icon.png ${PN}.png + make_desktop_entry ${PN} OpenMortal + dodoc AUTHORS ChangeLog README TODO + prepgamesdirs +} diff --git a/games-arcade/opensonic/Manifest b/games-arcade/opensonic/Manifest new file mode 100644 index 000000000000..b94c606565ce --- /dev/null +++ b/games-arcade/opensonic/Manifest @@ -0,0 +1 @@ +DIST opensnc-src-0.1.4.tar.gz 10525059 SHA256 3a4c3fa9538ee27c04b5ea848c9ad0a83f335471936d4617a18d3648c42588e9 SHA512 239c7b4c7f9663e4d46c54d8bdaefed8d12274b71feaf9c637feb04f3567465f265c50bf3419f4c881ae3fa48a62ab339fe8a0b005c2b080b53d54ebf1e2f29d WHIRLPOOL dd65be3d6403936cf4defe30360b2b86fd77f49de88b118ac873201917f263d3494797f964b295ee6370e0959784af77b8ff3b777559856009abfc0f80ebc598 diff --git a/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch b/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch new file mode 100644 index 000000000000..b4db7644bc9d --- /dev/null +++ b/games-arcade/opensonic/files/opensonic-0.1.4-r1-cmake.patch @@ -0,0 +1,107 @@ +From: hasufell <julian.ospald@googlemail.com> +Date: Sat Apr 28 16:38:56 UTC 2012 +Subject: build system + +use allegro-config +remove "-O2" from pre-defined CFLAGS +make paths modifiable +add rules for icon, desktop-file and game-wrapper +fix compilation for as-needed + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -35,16 +35,14 @@ + MESSAGE("Using CFLAGS='${CFLAGS}'") + + IF(UNIX) +- SET(ALLEGRO_UNIX_LIBS "$ENV{_ALLEGRO_LIBS}") ++ exec_program(allegro-config ARGS --libs OUTPUT_VARIABLE ALLEGRO_LIBRARY) ++ SET(ALLEGRO_UNIX_LIBS "${ALLEGRO_LIBRARY}") + IF(NOT ALLEGRO_UNIX_LIBS) +- MESSAGE(FATAL_ERROR "Please do not invoke CMake directly. Run ./configure instead.") ++ MESSAGE(FATAL_ERROR "Allegro libs not found!") + ENDIF(NOT ALLEGRO_UNIX_LIBS) + ENDIF(UNIX) + + +- +- +- + # Finding the required libraries: + + # Allegro: liballeg +@@ -53,7 +51,8 @@ + MESSAGE(FATAL_ERROR "Fatal error: couldn't find the Allegro game programming library (liballeg)! ${RTFM}") + ELSE(NOT LALLEG) + IF(UNIX) +- SET(ALLEGRO_UNIX_VERSION "$ENV{_ALLEGRO_VERSION}") ++ exec_program(allegro-config ARGS --version OUTPUT_VARIABLE ALLEGRO_VERSION) ++ SET(ALLEGRO_UNIX_VERSION "${ALLEGRO_VERSION}") + IF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION) + MESSAGE("\nWARNING: your Allegro version is ${ALLEGRO_UNIX_VERSION}. The recommended version is ${ALLEGRO_RECOMMENDED_VERSION}.\n ${GAME_NAME} may not compile properly!.\n") + ENDIF(NOT ALLEGRO_UNIX_VERSION STREQUAL ALLEGRO_RECOMMENDED_VERSION) +@@ -249,9 +248,8 @@ + IF(UNIX) + SET(GAME_SRCS ${GAME_SRCS} src/misc/iconlin.c) + ADD_EXECUTABLE(${GAME_UNIXNAME} ${GAME_SRCS}) +- SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES LINK_FLAGS ${ALLEGRO_UNIX_LIBS}) +- TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m logg vorbisfile vorbis ogg jpgalleg z png loadpng) +- SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall -O2 ${CFLAGS} ${CFLAGS_EXTRA}") ++ TARGET_LINK_LIBRARIES(${GAME_UNIXNAME} m logg vorbisfile vorbis ogg jpgalleg z png loadpng ${ALLEGRO_UNIX_LIBS}) ++ SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES COMPILE_FLAGS "-Wall") + ENDIF(UNIX) + + +@@ -407,19 +405,43 @@ + SET_TARGET_PROPERTIES(${GAME_UNIXNAME} PROPERTIES PROJECT_NAME "${GAME_NAME}") + + +- + # Installing on *nix + IF(UNIX) +- SET(GAME_INSTALL_DIR "/usr/share/${GAME_UNIXNAME}") +- SET(GAME_FINAL_DIR "/usr/bin") ++ SET(GAME_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/${GAME_UNIXNAME}" CACHE PATH "") ++ SET(GAME_FINAL_DIR "bin" CACHE PATH "") ++ SET(GAME_LIBDIR "games/lib" CACHE PATH "") ++ SET(GAME_DOCDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}" CACHE PATH "") ++ SET(GAME_HTMLDIR "share/doc/${GAME_UNIXNAME}-${GAME_VERSION}/html" CACHE PATH "") ++ SET(GAME_ICONDIR "share/pixmaps" CACHE PATH "") ++ SET(GAME_DESKTOPDIR "share/applications" CACHE PATH "") ++ ++ FILE(WRITE ${GAME_UNIXNAME}.sh ++"#!/bin/sh ++cd ${GAME_LIBDIR} ++exec ./${GAME_UNIXNAME} \"$@\" ++" ++) + +- INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure you have root privileges.\")") +- INSTALL(TARGETS ${GAME_UNIXNAME} RUNTIME DESTINATION ${GAME_INSTALL_DIR}) +- INSTALL(FILES license.txt readme.html DESTINATION ${GAME_INSTALL_DIR}) +- INSTALL(DIRECTORY objects sprites config images levels licenses musics quests samples screenshots themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE) ++ FILE(WRITE ${GAME_UNIXNAME}.desktop ++"[Desktop Entry] ++Name=${GAME_NAME} ++Type=Application ++Comment=A free open-source clone of the Sonic the Hedgehog universe ++Exec=${GAME_UNIXNAME} ++TryExec=${GAME_UNIXNAME} ++Icon=${GAME_UNIXNAME} ++Categories=Game;ArcadeGame; ++" ++) + +- INSTALL(CODE "MESSAGE(\"Creating files at ${GAME_FINAL_DIR}...\")") +- INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"cmake\" \"-E\" \"copy\" \"${GAME_INSTALL_DIR}/${GAME_UNIXNAME}\" \"${GAME_FINAL_DIR}/${GAME_UNIXNAME}\")") ++ INSTALL(CODE "MESSAGE(\"Installing ${GAME_NAME} ${GAME_VERSION}... Make sure you have root privileges.\")") ++ INSTALL(TARGETS ${GAME_UNIXNAME} RUNTIME DESTINATION ${GAME_LIBDIR}) ++# INSTALL(FILES license.txt DESTINATION ${GAME_DOCDIR}) ++ INSTALL(FILES readme.html DESTINATION ${GAME_HTMLDIR}) ++ INSTALL(FILES icon.png DESTINATION ${GAME_ICONDIR} RENAME ${GAME_UNIXNAME}.png) ++ INSTALL(FILES ${GAME_UNIXNAME}.desktop DESTINATION ${GAME_DESKTOPDIR}) ++ INSTALL(DIRECTORY objects sprites config images levels musics quests samples themes languages DESTINATION ${GAME_INSTALL_DIR} PATTERN ".svn" EXCLUDE) ++ INSTALL(PROGRAMS ${GAME_UNIXNAME}.sh DESTINATION ${GAME_FINAL_DIR} RENAME ${GAME_UNIXNAME}) + + INSTALL(CODE "MESSAGE(\"Done! Please run ${GAME_UNIXNAME} to start ${GAME_NAME}.\")") + ENDIF(UNIX) diff --git a/games-arcade/opensonic/metadata.xml b/games-arcade/opensonic/metadata.xml new file mode 100644 index 000000000000..cad5a2aa1773 --- /dev/null +++ b/games-arcade/opensonic/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild b/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild new file mode 100644 index 000000000000..f0802026e693 --- /dev/null +++ b/games-arcade/opensonic/opensonic-0.1.4-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit cmake-utils eutils games + +MY_PN=opensnc +MY_P=${MY_PN}-src-${PV} + +DESCRIPTION="A free open-source game based on the Sonic the Hedgehog universe" +HOMEPAGE="http://opensnc.sourceforge.net/" +SRC_URI="${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +RESTRICT="fetch" # unsure about legality of graphics + +DEPEND="media-libs/allegro:0[X,jpeg,png,vorbis] + media-libs/libogg + media-libs/libpng:0 + media-libs/libvorbis + sys-libs/zlib + virtual/jpeg" + +S=${WORKDIR}/${MY_P} + +pkg_nofetch() { + einfo "Please download ${SRC_URI} from:" + einfo "http://sourceforge.net/projects/opensnc/files/Open%20Sonic/0.1.4/" + einfo "and move it to ${DISTDIR}" + echo +} + +src_prepare() { + epatch "${FILESDIR}"/${PF}-cmake.patch +} + +src_configure() { + local mycmakeargs=( + -DGAME_INSTALL_DIR="${GAMES_DATADIR}"/${PN} + -DGAME_FINAL_DIR="${GAMES_BINDIR}" + -DGAME_LIBDIR="$(games_get_libdir)/${PN}" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + local i + for i in $(ls "${D}${GAMES_DATADIR}/${PN}") ; do + dosym "${GAMES_DATADIR}/${PN}/${i}" \ + "$(games_get_libdir)/${PN}/${i}" + done + prepgamesdirs +} diff --git a/games-arcade/opentyrian/Manifest b/games-arcade/opentyrian/Manifest new file mode 100644 index 000000000000..92b83916bb2a --- /dev/null +++ b/games-arcade/opentyrian/Manifest @@ -0,0 +1,5 @@ +DIST opentyrian-2.1.20130907-src.tar.gz 297517 SHA256 f54b6b3cedcefa187c9f605d6164aae29ec46a731a6df30d351af4c008dee45f SHA512 1a560f2061496fbbb57b6334ab207b00a6b2e6a4d6164c6df6ad535ae9d0435c32c3db51d3ce2a0a79eb66d72723d112c1993f59b781750f9bd97afb643a0b67 WHIRLPOOL 67544f4ca713837ab12c1dd7f89f00a2a871b71d85252e840586630d442c99540bcaa52e0ef168e984ea906dfdaefd47e8d0b402a5f3ffefe77d2fa04acd1b3c +DIST opentyrian-20090702.tar.bz2 365480 SHA256 bbce2b50bc1b34cc833e0312518acfa885da336bbb82546754380c2179a59fb3 +DIST opentyrian-20091025.tar.bz2 2247053 SHA256 68111eec3ce51a6896ef9bd896ccb4baeebad59d0d20901cbcb4584eb11ce1ba +DIST opentyrian-20110517.tar.bz2 2580253 SHA256 d34a0f6e43a3b12688a98f8a541b33578769f027eb7b3ee0fb147b7e1cd8438c +DIST tyrian21.zip 4754048 SHA256 7790d09a2a3addcd33c66ef063d5900eb81cc9c342f4807eb8356364dd1d9277 SHA512 639aa773778386c14ce508feb4729512d00f80182a3bb0fe8bba4ee38bce91da1867ca93f1a7e5e30ff127da077eed275d8dd6ba82042b627b84f1606e2d6bce WHIRLPOOL 2f118dbc165df1d0ebd95edc1e43fedd7f7b19edbe09ea73413aacbd6cd2b10f64bdef26aea61f00f627285ffa7d80748add6f174d0c915e75a585abe06db180 diff --git a/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff new file mode 100644 index 000000000000..39ccf1c79f66 --- /dev/null +++ b/games-arcade/opentyrian/files/2.1.20130907-cflag-idiocy.diff @@ -0,0 +1,15 @@ +diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile +--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:38:06.982842189 +0000 ++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:38:26.843842798 +0000 +@@ -21,11 +21,6 @@ + + # FLAGS #################################################### + +-ifneq ($(MAKECMDGOALS), release) +- EXTRA_CFLAGS += -g3 -O0 -Werror +-else +- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG +-endif + EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers + ifeq ($(WITH_NETWORK), true) + EXTRA_CFLAGS += -DWITH_NETWORK diff --git a/games-arcade/opentyrian/files/2.1.20130907-datapath.diff b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff new file mode 100644 index 000000000000..5b0143ed9a50 --- /dev/null +++ b/games-arcade/opentyrian/files/2.1.20130907-datapath.diff @@ -0,0 +1,26 @@ +diff -uNr opentyrian-2.1.20130907.ORIG/Makefile opentyrian-2.1.20130907/Makefile +--- opentyrian-2.1.20130907.ORIG/Makefile 2013-12-08 17:40:23.470846371 +0000 ++++ opentyrian-2.1.20130907/Makefile 2013-12-08 17:40:49.355847165 +0000 +@@ -49,6 +49,10 @@ + ALL_LDFLAGS += $(LDFLAGS) + LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS) + ++ifneq ($(DATA_PATH), ) ++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\" ++endif ++ + # RULES #################################################### + + .PHONY : all release clean +diff -uNr opentyrian-2.1.20130907.ORIG/src/file.c opentyrian-2.1.20130907/src/file.c +--- opentyrian-2.1.20130907.ORIG/src/file.c 2013-12-08 17:40:23.468846371 +0000 ++++ opentyrian-2.1.20130907/src/file.c 2013-12-08 17:40:49.355847165 +0000 +@@ -34,7 +34,7 @@ + #ifdef TARGET_MACOSX + tyrian_game_folder(), + #endif +- "/usr/share/opentyrian/data" ++ DATA_PATH + }; + + static const char *dir = NULL; diff --git a/games-arcade/opentyrian/files/20090702-datapath.diff b/games-arcade/opentyrian/files/20090702-datapath.diff new file mode 100644 index 000000000000..53ca3e8c789e --- /dev/null +++ b/games-arcade/opentyrian/files/20090702-datapath.diff @@ -0,0 +1,23 @@ +--- opentyrian/Makefile.orig 2009-07-02 23:19:47.000000000 +0100 ++++ opentyrian/Makefile 2009-07-02 23:20:27.000000000 +0100 +@@ -54,6 +54,9 @@ + CFLAGS += -DSVN_REV=\"$(SVN_REV)\" + endif + ++ifneq ($(DATA_PATH), ) ++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\" ++endif + #################################################### + + all : $(TARGET) +--- opentyrian/src/error.c.orig 2009-07-02 23:17:00.000000000 +0100 ++++ opentyrian/src/error.c 2009-07-02 23:21:01.000000000 +0100 +@@ -33,7 +33,7 @@ + JE_boolean dont_die = false; + + #ifndef TARGET_MACOSX +-static const char *tyrian_searchpaths[] = { "data", "tyrian", "tyrian21" }; ++static const char *tyrian_searchpaths[] = { DATA_PATH , "data", "tyrian", "tyrian21" }; + #endif + + JE_longint JE_getFileSize( const char *filename ) diff --git a/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff b/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff new file mode 100644 index 000000000000..29ed57c2e29d --- /dev/null +++ b/games-arcade/opentyrian/files/20091025-cflag-idiocy.diff @@ -0,0 +1,12 @@ +--- opentyrian/Makefile.orig 2009-10-25 00:52:54.401229746 +0100 ++++ opentyrian/Makefile 2009-10-25 00:54:37.642954736 +0100 +@@ -49,9 +49,6 @@ + + # FLAGS #################################################### + +-NDEBUG_FLAGS := -g0 -O2 -DNDEBUG +-DEBUG_FLAGS := -g3 -O0 -Werror +- + CFLAGS += --std=c99 -pedantic -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers + CFLAGS += -I./src -I$(INCLUDEDIR) + LDFLAGS += -L$(LIBDIR) -lm diff --git a/games-arcade/opentyrian/files/20091025-datapath.diff b/games-arcade/opentyrian/files/20091025-datapath.diff new file mode 100644 index 000000000000..e83447ebf8f5 --- /dev/null +++ b/games-arcade/opentyrian/files/20091025-datapath.diff @@ -0,0 +1,26 @@ +diff -uNr opentyrian.ORIG/Makefile opentyrian/Makefile +--- opentyrian.ORIG/Makefile 2009-10-25 00:45:41.958937396 +0100 ++++ opentyrian/Makefile 2009-10-25 00:47:31.759940038 +0100 +@@ -73,6 +73,10 @@ + CFLAGS += -DHG_REV='"$(HG_REV)"' + endif + ++ifneq ($(DATA_PATH), ) ++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\" ++endif ++ + # RULES #################################################### + + .PHONY : all +diff -uNr opentyrian.ORIG/src/file.c opentyrian/src/file.c +--- opentyrian.ORIG/src/file.c 2009-10-25 00:45:41.967228200 +0100 ++++ opentyrian/src/file.c 2009-10-25 00:50:21.542979700 +0100 +@@ -34,7 +34,7 @@ + #ifdef TARGET_MACOSX + tyrian_game_folder(), + #endif +- "/usr/share/opentyrian/data" ++ DATA_PATH + }; + + static const char *dir = NULL; diff --git a/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff b/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff new file mode 100644 index 000000000000..fbc178ad3418 --- /dev/null +++ b/games-arcade/opentyrian/files/20110517-cflag-idiocy.diff @@ -0,0 +1,15 @@ +diff -uNr opentyrian.ORIG//Makefile opentyrian/Makefile +--- opentyrian.ORIG//Makefile 2011-05-17 11:26:17.030004857 +0100 ++++ opentyrian/Makefile 2011-05-17 11:28:48.617004931 +0100 +@@ -18,11 +18,6 @@ + + # FLAGS #################################################### + +-ifneq ($(MAKECMDGOALS), release) +- EXTRA_CFLAGS += -g3 -O0 -Werror +-else +- EXTRA_CFLAGS += -g0 -O2 -DNDEBUG +-endif + EXTRA_CFLAGS += -MMD -pedantic -Wall -Wextra -Wno-missing-field-initializers + + HG_REV := $(shell hg id -ib && touch src/hg_revision.h) diff --git a/games-arcade/opentyrian/files/20110517-datapath.diff b/games-arcade/opentyrian/files/20110517-datapath.diff new file mode 100644 index 000000000000..6d7f52cd6bd6 --- /dev/null +++ b/games-arcade/opentyrian/files/20110517-datapath.diff @@ -0,0 +1,26 @@ +diff -uNr opentyrian.ORIG//Makefile opentyrian/Makefile +--- opentyrian.ORIG//Makefile 2011-05-17 11:26:17.030004857 +0100 ++++ opentyrian/Makefile 2011-05-17 11:26:52.595004876 +0100 +@@ -39,6 +39,10 @@ + ALL_LDFLAGS += $(LDFLAGS) + LDLIBS += $(EXTRA_LDLIBS) $(SDL_LDLIBS) + ++ifneq ($(DATA_PATH), ) ++ CFLAGS += -DDATA_PATH=\"$(DATA_PATH)\" ++endif ++ + # RULES #################################################### + + .PHONY : all release clean +diff -uNr opentyrian.ORIG//src/file.c opentyrian/src/file.c +--- opentyrian.ORIG//src/file.c 2011-05-17 11:26:17.020004860 +0100 ++++ opentyrian/src/file.c 2011-05-17 11:26:52.595004876 +0100 +@@ -34,7 +34,7 @@ + #ifdef TARGET_MACOSX + tyrian_game_folder(), + #endif +- "/usr/share/opentyrian/data" ++ DATA_PATH + }; + + static const char *dir = NULL; diff --git a/games-arcade/opentyrian/metadata.xml b/games-arcade/opentyrian/metadata.xml new file mode 100644 index 000000000000..1dceee43bf7c --- /dev/null +++ b/games-arcade/opentyrian/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>chainsaw@gentoo.org</email> + <name>Tony Vroon</name> +</maintainer> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild new file mode 100644 index 000000000000..ace65613381b --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-2.1.20130907.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit base games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + http://www.camanis.net/${PN}/releases/${P}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +# Yes, mercurial is needed to set the build version stamp. +DEPEND="${RDEPEND} + app-arch/unzip + dev-vcs/mercurial" +PATCHES=( + "${FILESDIR}/${PV}-datapath.diff" + "${FILESDIR}/${PV}-cflag-idiocy.diff" +) + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + dogamesbin opentyrian || die "Failed to install game binary" + dosym "${GAMES_BINDIR}/opentyrian" "${GAMES_BINDIR}/tyrian" || die "Failed to symlink" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu linux/opentyrian.desktop || die "Failed to install desktop file" + for i in linux/icons/*.png ; do + local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'` + insinto /usr/share/icons/hicolor/${size}x${size}/apps + newins ${i} opentyrian.png || die "Failed to install program icon" + done + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} diff --git a/games-arcade/opentyrian/opentyrian-20090702.ebuild b/games-arcade/opentyrian/opentyrian-20090702.ebuild new file mode 100644 index 000000000000..cd4cb2a5b5a2 --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-20090702.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +DEPEND="${RDEPEND} + app-arch/unzip + dev-vcs/subversion" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-datapath.diff" + if ! use debug; then + sed -i -e "s@DEBUG := 1@DEBUG := 0@" "${S}/Makefile" || die "sed failed" + fi +} + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + dogamesbin tyrian || die "Failed to install game binary" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu opentyrian.desktop || die "Failed to install desktop file" + doicon tyrian.xpm || die "Failed to install program icon" + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} diff --git a/games-arcade/opentyrian/opentyrian-20091025.ebuild b/games-arcade/opentyrian/opentyrian-20091025.ebuild new file mode 100644 index 000000000000..2deb0e218589 --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-20091025.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +DEPEND="${RDEPEND} + app-arch/unzip + dev-vcs/mercurial" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PV}-datapath.diff" + epatch "${FILESDIR}/${PV}-cflag-idiocy.diff" +} + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + dogamesbin tyrian || die "Failed to install game binary" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu opentyrian.desktop || die "Failed to install desktop file" + doicon tyrian.xpm || die "Failed to install program icon" + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} diff --git a/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild b/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild new file mode 100644 index 000000000000..a2c200c08dea --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-20110517-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit base games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +S="${WORKDIR}/${PN}" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +# Yes, mercurial is needed to set the build version stamp. +DEPEND="${RDEPEND} + app-arch/unzip + dev-vcs/mercurial" +PATCHES=( + "${FILESDIR}/${PV}-datapath.diff" + "${FILESDIR}/${PV}-cflag-idiocy.diff" +) + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + dogamesbin opentyrian || die "Failed to install game binary" + dosym "${GAMES_BINDIR}/opentyrian" "${GAMES_BINDIR}/tyrian" || die "Failed to symlink" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu linux/opentyrian.desktop || die "Failed to install desktop file" + for i in linux/icons/*.png ; do + local size=`echo ${i} | sed -e 's:.*-\([0-9]\+\).png:\1:'` + insinto /usr/share/icons/hicolor/${size}x${size}/apps + newins ${i} opentyrian.png || die "Failed to install program icon" + done + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} diff --git a/games-arcade/opentyrian/opentyrian-20110517.ebuild b/games-arcade/opentyrian/opentyrian-20110517.ebuild new file mode 100644 index 000000000000..80962742fd75 --- /dev/null +++ b/games-arcade/opentyrian/opentyrian-20110517.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit base games + +DESCRIPTION="Open-source port of the DOS game Tyrian, vertical scrolling shooter" +HOMEPAGE="http://code.google.com/p/opentyrian/" +SRC_URI="http://darklomax.org/tyrian/tyrian21.zip + mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +S="${WORKDIR}/${PN}" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net" +# Yes, mercurial is needed to set the build version stamp. +DEPEND="${RDEPEND} + app-arch/unzip + dev-vcs/mercurial" +PATCHES=( + "${FILESDIR}/${PV}-datapath.diff" + "${FILESDIR}/${PV}-cflag-idiocy.diff" +) + +src_compile() { + emake DATA_PATH="${GAMES_DATADIR}/${PN}" || die "Compilation failed" +} + +src_install() { + newgamesbin opentyrian tyrian || die "Failed to install game binary" + dodoc CREDITS NEWS README || die "Failed to install documentation" + domenu linux/opentyrian.desktop || die "Failed to install desktop file" + doicon linux/icons/* || die "Failed to install program icons" + insinto "${GAMES_DATADIR}/${PN}" + cd "${WORKDIR}/tyrian21" + doins * || die "Failed to install game data" + prepgamesdirs +} diff --git a/games-arcade/orthorobot/Manifest b/games-arcade/orthorobot/Manifest new file mode 100644 index 000000000000..38593d0fc85e --- /dev/null +++ b/games-arcade/orthorobot/Manifest @@ -0,0 +1 @@ +DIST orthorobot-0.zip 3429026 SHA256 744d70b492b9f9ebc8adf43f9131be3f9957d378ae1a8e18f1754dc9ff607608 SHA512 cf73bfd7d136c0d408dcee80db1193c4ae1d418128b8879a67c5fbfc013ce33ffab4255c0ea2e7d2a70f22301192fb77bd5b3105d69ff511d2d5a5b99fbd0cf0 WHIRLPOOL 4ee2364943cf835b84d5ad0daca1f3d204254ae8df4f272cc773da3d7d6561b92804cf26a99158a27622eee61e6f77eebcf50a10152583d8eb4b2d600e7c1e86 diff --git a/games-arcade/orthorobot/metadata.xml b/games-arcade/orthorobot/metadata.xml new file mode 100644 index 000000000000..b6b8956cde34 --- /dev/null +++ b/games-arcade/orthorobot/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> + <email>pinkbyte@gentoo.org</email> + <name>Sergey Popov</name> + </maintainer> +</pkgmetadata> diff --git a/games-arcade/orthorobot/orthorobot-0.ebuild b/games-arcade/orthorobot/orthorobot-0.ebuild new file mode 100644 index 000000000000..b8706481b75b --- /dev/null +++ b/games-arcade/orthorobot/orthorobot-0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils games + +DESCRIPTION="Nice perspective based puzzle game, where you flatten the view to move across gaps" +HOMEPAGE="http://stabyourself.net/orthorobot/" +SRC_URI="http://stabyourself.net/dl.php?file=${PN}/${PN}-source.zip -> ${P}.zip" + +LICENSE="CC-BY-NC-ND-3.0" +SLOT="0" +KEYWORDS="amd64 x86" + +RDEPEND=">=games-engines/love-0.8.0" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +src_unpack() { + default + #it is only one .love file (but with crappy name), so we can use asterisk + mv *.love "${P}.zip" || die 'mv failed' + unpack "./${P}.zip" + rm "${P}.zip" || die 'rm failed' +} + +src_prepare() { + # fix error on quit + sed -i -e 's/love.event.push("q")/love.event.push(fadegoal)/' menu.lua || die 'sed failed' + + epatch_user +} + +src_install() { + local dir="${GAMES_DATADIR}/love/${PN}" + insinto "${dir}" + doins -r . + games_make_wrapper "${PN}" "love ${dir}" + make_desktop_entry "${PN}" + prepgamesdirs +} + +pkg_postinst() { + elog "${PN} savegames and configurations are stored in:" + elog "~/.local/share/love/${PN}/" +} diff --git a/games-arcade/pachi/Manifest b/games-arcade/pachi/Manifest new file mode 100644 index 000000000000..8800305c6ad2 --- /dev/null +++ b/games-arcade/pachi/Manifest @@ -0,0 +1 @@ +DIST pachi-1.0.tar.bz2 3101484 SHA256 756c8e21a7b497162003932003ec94a85b3ed9f1fa11c944a0d1e931f9d15139 SHA512 9b09baa47ceb051d80ea621d2449afd2d9de959e707d2a1b3119ce8f0c623ebc1afb1678389c647b066fb2211f3f7eb27d713ee33514e2739ba48f9bf14c7952 WHIRLPOOL 665663766f97855b17911184ccee6861391cab3d8512ffc7b0aa9da9e6b1119ad3b6c19fd6ea15c75e14155ae4ebe8d7a2e19d3ea3c95ddb2e586e2636f5f246 diff --git a/games-arcade/pachi/files/1.0-autotools.patch b/games-arcade/pachi/files/1.0-autotools.patch new file mode 100644 index 000000000000..0d0185f142f3 --- /dev/null +++ b/games-arcade/pachi/files/1.0-autotools.patch @@ -0,0 +1,46 @@ +--- configure.in ++++ configure.in +@@ -1,5 +1,7 @@ + # Process this file with autoconf to produce a configure script. ++AC_PREREQ([2.54]) + AC_INIT(src/faes.cpp, 0.1, T-1000@Bigfoot.com) ++AC_CANONICAL_SYSTEM + AM_INIT_AUTOMAKE(pachi, 0.1) + AM_CONFIG_HEADER(config.h) + +@@ -44,7 +46,7 @@ + SCOREDIR="." + else + DATADIR="$datadir/$PACKAGE" +- SCOREDIR="/var/lib/games/$PACKAGE" ++ SCOREDIR="$localstatedir/$PACKAGE" + fi + + eval DATAPATH=`eval echo "$DATADIR"` +--- data/Makefile.am ++++ data/Makefile.am +@@ -10,13 +10,13 @@ + objects_v2.dat \ + rooms_v2.dat + +-score_DATA = \ ++score_DATA_ = \ + scores.dat + +-EXTRA_DIST = $(dat_DATA) $(score_DATA) ++EXTRA_DIST = $(dat_DATA) $(score_DATA_) + + install-data-local: +- for file in $(score_DATA); do\ +- chgrp $(group) $(scoredir)/$$file; \ +- chmod $(perms) $(scoredir)/$$file; \ +- done ++ $(mkinstalldirs) $(DESTDIR)$(scoredir) ++ for file in $(score_DATA_); do \ ++ $(INSTALL) -g $(group) -m $(perms) $$file $(DESTDIR)$(scoredir); \ ++ done +--- Makefile.am ++++ Makefile.am +@@ -1 +1 @@ +-SUBDIRS = src Tgfx data fonts music sounds docs ++SUBDIRS = src Tgfx data fonts music sounds diff --git a/games-arcade/pachi/metadata.xml b/games-arcade/pachi/metadata.xml new file mode 100644 index 000000000000..b4647c10eaf6 --- /dev/null +++ b/games-arcade/pachi/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> +<email>mr_bones_@gentoo.org</email> +<name>Michael Sterrett</name> +</maintainer> +</pkgmetadata> diff --git a/games-arcade/pachi/pachi-1.0.ebuild b/games-arcade/pachi/pachi-1.0.ebuild new file mode 100644 index 000000000000..eb5f07833f36 --- /dev/null +++ b/games-arcade/pachi/pachi-1.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="platform game inspired by games like Manic Miner and Jet Set Willy" +HOMEPAGE="http://dragontech.sourceforge.net/index.php?main=pachi&lang=en" +# Upstream doesn't version their releases. +# (should be downloaded and re-compressed with tar -jcvf) +#SRC_URI="mirror://sourceforge/dragontech/pachi_source.tgz" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[joystick,sound,video] + media-libs/sdl-mixer[mod]" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/Pachi + +src_prepare() { + epatch "${FILESDIR}"/${PV}-autotools.patch + rm -f missing + mv configure.in configure.ac || die + eautoreconf +} + +src_install() { + default + newicon Tgfx/icon.bmp ${PN}.bmp + make_desktop_entry ${PN} Pachi /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} diff --git a/games-arcade/pacmanarena/Manifest b/games-arcade/pacmanarena/Manifest new file mode 100644 index 000000000000..037ab71645c1 --- /dev/null +++ b/games-arcade/pacmanarena/Manifest @@ -0,0 +1,2 @@ +DIST pacman-arena-0.15.tar.bz2 100112 SHA256 3f151518f3d4a9595ea03f9ef681e8a8829e88e76fb5d39bab0249906121fc23 SHA512 40e8092cf223d075dbb5654766f095ce57d61ff329aee5dc0f3c95655e3894ac507d8b48014326b7fd9265c81b9340624aaa349641efbdcde55bda0b1098f398 WHIRLPOOL 0fa5baa937ad0a4c3e7a61547e9ebe918d5c3f31bb78c32262a0f26bc8d3ce5a123e4850578d1b40fe4c66efdcceec14b7ce3d91800ddfe0e7f14c2bae6f0ef9 +DIST pacman-data-0.0.zip 11994364 SHA256 7949f080ca0ba4c02d737c5bb365856c3e66f103838329be8c1857d6c297b9b8 SHA512 f3619ab876ff9c0f354fff9e9b0acefaa1a1a094e8ef215fe1b57f617f79540ae87681dae0ec3c1df672615064be345f74e52a6f2f241bfe70d78f5b8c7fadc7 WHIRLPOOL 8e8b71f27a6cd8d1a6cb1bc76d95be12c574afda1016f746b88dfe217606202fad737fe86827ba577984845f1fcf2e39eb63126b415b0834e64a3a82038d5a07 diff --git a/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch new file mode 100644 index 000000000000..08c2a54dd1f2 --- /dev/null +++ b/games-arcade/pacmanarena/files/pacmanarena-0.15-underlink.patch @@ -0,0 +1,10 @@ +--- configure.ac.old 2011-05-24 08:45:49.197656941 +0200 ++++ configure.ac 2011-05-24 08:46:13.685193761 +0200 +@@ -101,6 +101,7 @@ + AC_CHECK_LIB(GLU, gluNewQuadric, [ LDFLAGS="$LDFLAGS -lGLU" ], + [AC_MSG_ERROR([OpenGL libraries not found]) + ]) ++LDFLAGS="$LDFLAGS -lm" + + AC_CONFIG_FILES([Makefile]) + AC_OUTPUT diff --git a/games-arcade/pacmanarena/metadata.xml b/games-arcade/pacmanarena/metadata.xml new file mode 100644 index 000000000000..884b0e2a1b66 --- /dev/null +++ b/games-arcade/pacmanarena/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">pacmanarena</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/pacmanarena/pacmanarena-0.15.ebuild b/games-arcade/pacmanarena/pacmanarena-0.15.ebuild new file mode 100644 index 000000000000..f7a4c744a7be --- /dev/null +++ b/games-arcade/pacmanarena/pacmanarena-0.15.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="a Pacman clone in full 3D with a few surprises. Rockets, bombs and explosions abound" +HOMEPAGE="http://pacmanarena.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/pacman-arena-${PV}.tar.bz2 + mirror://sourceforge/${PN}/pacman-data-0.0.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 x86" +IUSE="" + +RDEPEND="virtual/opengl + virtual/glu + media-libs/libsdl[sound] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-net" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/pacman + +src_unpack() { + unpack pacman-arena-${PV}.tar.bz2 + cd "${S}" + unpack pacman-data-0.0.zip +} + +src_prepare() { + sed -i \ + -e "/^CFLAGS/ s:pacman:${PN}:" \ + -e '1i CC=@CC@' \ + Makefile.in || die + sed -i \ + -e '/CFLAGS/s:-g::' \ + configure || die + epatch "${FILESDIR}"/${P}-underlink.patch + eautoreconf +} + +src_install() { + newgamesbin pacman ${PN} || die + insinto "${GAMES_DATADIR}"/${PN} + doins -r gfx sfx || die + newicon gfx/pacman_arena1.tga ${PN}.tga + make_desktop_entry ${PN} "Pacman Arena" /usr/share/pixmaps/${PN}.tga + dodoc README + prepgamesdirs +} diff --git a/games-arcade/penguin-command/Manifest b/games-arcade/penguin-command/Manifest new file mode 100644 index 000000000000..c12440b0b7ee --- /dev/null +++ b/games-arcade/penguin-command/Manifest @@ -0,0 +1 @@ +DIST penguin-command-1.6.11.tar.gz 1123574 SHA256 659c7b5f3f968f386e820cf7387d88c0a61c17dfbdb005bd85f8e93c537e89d6 SHA512 ba41a7fbf3c07149fb6f6cf60091afda9de3c9f8f04e541d7b62ba744b04e5db7eecc5aa2391a71b72ccf6f544d397a5994a6f7aee0907211ced1686fe517646 WHIRLPOOL e525baa504b04eb3406eadf5710dc521cdeaa13656cd60cb4c11277eff8fd31b0ccf343cdfa4ce8d29a7e3dd8e94c3b88e1e68d8bbd82783653f3ae4803bd183 diff --git a/games-arcade/penguin-command/metadata.xml b/games-arcade/penguin-command/metadata.xml new file mode 100644 index 000000000000..64e282784366 --- /dev/null +++ b/games-arcade/penguin-command/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">penguin-command</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/penguin-command/penguin-command-1.6.11.ebuild b/games-arcade/penguin-command/penguin-command-1.6.11.ebuild new file mode 100644 index 000000000000..56615ebcb52b --- /dev/null +++ b/games-arcade/penguin-command/penguin-command-1.6.11.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A clone of the classic Missile Command game" +HOMEPAGE="http://www.linux-games.com/penguin-command/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc sparc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,joystick,video] + media-libs/sdl-mixer[mod] + media-libs/sdl-image[jpeg,png]" +RDEPEND="${DEPEND}" + +src_install() { + default + newicon data/gfx/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Penguin Command" ${PN} + prepgamesdirs +} diff --git a/games-arcade/pengupop/Manifest b/games-arcade/pengupop/Manifest new file mode 100644 index 000000000000..091d168daf67 --- /dev/null +++ b/games-arcade/pengupop/Manifest @@ -0,0 +1 @@ +DIST pengupop-2.2.5.tar.gz 1676224 SHA256 dd70f731ea0eeb83556359ebbfc70054832a56656638437ef9bf5aab8d72fa25 SHA512 1886898288cb9b2be949a031bf2baae80332c5ca93bead91ed8c50d0aaea81715cf0eaeb09a63af298e82e1409f9f39527742707839526283e57809484be4abf WHIRLPOOL 3a953aad84f45d1f747a674034ca81f78178d86bec289ed58f323360bb7aac7b987fdd48fbc74408ac828eb5fcb648f32c3b78b5b0426537166e5d4fa82ee537 diff --git a/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch b/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch new file mode 100644 index 000000000000..5b6453accce7 --- /dev/null +++ b/games-arcade/pengupop/files/pengupop-2.2.5-underlink.patch @@ -0,0 +1,20 @@ +--- Makefile.am.old 2011-06-14 21:44:40.242317771 +0200 ++++ Makefile.am 2011-06-14 21:44:49.216882568 +0200 +@@ -17,7 +17,7 @@ + nodist_pengupop_SOURCES = images.h + + if LINUX +-pengupop_LDADD = -lSDL -lz ++pengupop_LDADD = -lSDL -lz -lm + + endif + if WIN32 +@@ -25,7 +25,7 @@ + endif + if DARWIN + pengupop_LDFLAGS = -framework Carbon -framework CoreServices -framework AudioUnit -framework QuickTime -framework Cocoa -framework IOKit -framework OpenGL -framework SDL SDLMain.m +-pengupop_LDADD = -lz -lstdc++ ++pengupop_LDADD = -lz -lstdc++ -lm + + all-local: Pengupop.dmg + diff --git a/games-arcade/pengupop/metadata.xml b/games-arcade/pengupop/metadata.xml new file mode 100644 index 000000000000..01f485db09bd --- /dev/null +++ b/games-arcade/pengupop/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="freshmeat">pengupop</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/pengupop/pengupop-2.2.5.ebuild b/games-arcade/pengupop/pengupop-2.2.5.ebuild new file mode 100644 index 000000000000..6ee7aae0ad73 --- /dev/null +++ b/games-arcade/pengupop/pengupop-2.2.5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils gnome2-utils autotools games + +DESCRIPTION="Networked multiplayer-only Puzzle Bubble clone" +HOMEPAGE="http://freshmeat.net/projects/pengupop" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + sys-libs/zlib" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-underlink.patch + + sed -i \ + -e '/Icon/s/\.png//' \ + -e '/^Encoding/d' \ + -e '/Categories/s/Application;//' \ + pengupop.desktop || die + + sed -i \ + -e 's/-g -Wall -O2/-Wall/' \ + Makefile.am || die + mv configure.in configure.ac || die + eautoreconf +} + +src_install() { + default + domenu pengupop.desktop + doicon -s 48 pengupop.png + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/performous/Manifest b/games-arcade/performous/Manifest new file mode 100644 index 000000000000..8d5f72d456d5 --- /dev/null +++ b/games-arcade/performous/Manifest @@ -0,0 +1,5 @@ +DIST performous-1.0.tar.gz 3950246 SHA256 da9f39d281dbfe0849897dc98dc72cfc5a54be53f67c29b6430e57aefcc86b50 SHA512 9cdc6ad71248fede7df6fdc8ea4aca70a9c79be40e1d8c07c425f4a0e0c6e352233aee2ddeb586dcc6a7ea567b3e399aad9c5840475d8ce91c3ec7d4ec1eb30b WHIRLPOOL 2b9dbf8cec9e09bbff6a9490cbeb3fc04e88776c57fe80b9da04b91cdc2ac8ed9e129746e2adb4866ee52edb819229c6f52c45d2e301718a7c4e106ba27f14f1 +DIST ultrastar-songs-jc-1.zip 242698201 SHA256 b3a6f980926c4f1ce40bc763a406040855600ad005f4daa54e0ac324ce99a9ba SHA512 2f1b8416990c39617269cd6bb7271abdd4ebae65a9bac3dbb3f37cca26876bb7c79460a37597943a10a2d8bfcb5d2d9e2bf24084fe517a418e69f5c6111f6aea WHIRLPOOL 13bd3761b80b2a9491c6dbe2e535dbdc1e0f53b51d5070a0caf776da94c45c62a5a6980b4d95f629e0cfe5d6ef985428e5dcf6d4ba2f0931e6ea1d39d7f6674c +DIST ultrastar-songs-libre-3.zip 5289866 SHA256 739d1c678bb7c786499f5216faee420b9b56633142928aff60a7282dae755489 SHA512 820e3637a7b778c92ed1a8b925802134fa2146879b3e03e88cd412de5414635c90fe256dfaf984cfa3e8b07b7da8531dc3061b7c4e1bb4422127b469b2345e66 WHIRLPOOL 48d48e82ec8bd02376b3def5a3f215331c49853cf00439686cd577ebd51321e4a4e8b213d40356a46e2a2bd2a1bf6c1cb07b09195209833f4eb004166937bfe5 +DIST ultrastar-songs-restricted-3.zip 10242651 SHA256 e05d81333f85e2c6c271a67f90beac453d64eac78cd95eec7214721182257a82 SHA512 70b987fec3705d6610625c1f30a7ff683a51bb6b7ee3174609c80dc31c1bccdb23dcb2c6ae8154e1b1d9ef115b914e27e73925878a3c5460b997fdde813456b8 WHIRLPOOL cb83550395bbbadb45ad982fd4586a4dca49ae96bbe7adfab1b925301fa69eb5581c24f0c5c8d3593851a80b3e86137eea7658753f720ad76bae6e5809c2feba +DIST ultrastar-songs-shearer-1.zip 50411551 SHA256 967c3dfae2da2915a66fd9dfee14da7191e13bb95e8b0820049d109c21f25628 SHA512 add9df22b78967fd6f19699e8569f976423e931a32ea7a62cfec2f94470b9120f05832560215a000ecec8dd65508b057fac8ac90efd3a768ed74ddced186a73b WHIRLPOOL 868974ba4e68482dde0a25b338f0c8afd64435ddb872cd4a2ac7d5e8a984d16ebfdca530501779c24d1b2e4feb8151ee71f5db3052032fd706f42a88d31a46ab diff --git a/games-arcade/performous/files/performous-1.0-gentoo.patch b/games-arcade/performous/files/performous-1.0-gentoo.patch new file mode 100644 index 000000000000..a73663a88c41 --- /dev/null +++ b/games-arcade/performous/files/performous-1.0-gentoo.patch @@ -0,0 +1,12 @@ +diff -ru performous-1.0.orig/game/CMakeLists.txt performous-1.0/game/CMakeLists.txt +--- performous-1.0.orig/game/CMakeLists.txt 2014-10-28 19:11:45.000000000 -0400 ++++ performous-1.0/game/CMakeLists.txt 2015-03-31 03:01:30.806061643 -0400 +@@ -141,7 +141,7 @@ + set(BIN_INSTALL .) # Straight to Program Files/Performous with no bin subfolder. + set(SUBSYSTEM_WIN32 WIN32) + else() +- set(BIN_INSTALL bin) ++ set(BIN_INSTALL @GENTOO_BINDIR@) + endif() + + # Build main executable diff --git a/games-arcade/performous/files/performous-1.0-include.patch b/games-arcade/performous/files/performous-1.0-include.patch new file mode 100644 index 000000000000..ba67018e5422 --- /dev/null +++ b/games-arcade/performous/files/performous-1.0-include.patch @@ -0,0 +1,10 @@ +--- performous-1.0/game/song.hh.orig 2015-03-31 13:56:13.546360617 -0400 ++++ performous-1.0/game/song.hh 2015-03-31 13:56:23.609025021 -0400 +@@ -3,6 +3,7 @@ + #include "i18n.hh" + #include "notes.hh" + #include "util.hh" ++#include "fs.hh" + #include <boost/foreach.hpp> + #include <boost/noncopyable.hpp> + #include <stdexcept> diff --git a/games-arcade/performous/files/performous-1.0-libav.patch b/games-arcade/performous/files/performous-1.0-libav.patch new file mode 100644 index 000000000000..e3f36615281e --- /dev/null +++ b/games-arcade/performous/files/performous-1.0-libav.patch @@ -0,0 +1,19 @@ +diff -urN Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake +--- Performous-0.6.1-Source.old/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:44:26.112930173 +0200 ++++ Performous-0.6.1-Source/cmake/Modules/FindAVUtil.cmake 2012-05-16 13:56:10.229914635 +0200 +@@ -25,9 +25,15 @@ + if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h") + set(AVUtil_INCLUDE "${suffix}avutil.h") + endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}avutil.h") ++ if(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h") ++ set(AVUtilMath_INCLUDE "${suffix}mathematics.h") ++ endif(EXISTS "${AVUtil_INCLUDE_DIR}/${suffix}mathematics.h") + endif(NOT AVUtil_INCLUDE) + endforeach(suffix) + ++ if(NOT AVUtilMath_INCLUDE) ++ message(FATAL_ERROR "Found mathematics.h include dir, but not the header file. Perhaps you need to clear CMake cache?") ++ endif(NOT AVUtilMath_INCLUDE) + if(NOT AVUtil_INCLUDE) + message(FATAL_ERROR "Found avutil.h include dir, but not the header file. Perhaps you need to clear CMake cache?") + endif(NOT AVUtil_INCLUDE) diff --git a/games-arcade/performous/files/performous-1.0-linguas.patch b/games-arcade/performous/files/performous-1.0-linguas.patch new file mode 100644 index 000000000000..f8f1349ea3b9 --- /dev/null +++ b/games-arcade/performous/files/performous-1.0-linguas.patch @@ -0,0 +1,18 @@ +diff -ru performous-1.0.orig/lang/CMakeLists.txt performous-1.0/lang/CMakeLists.txt +--- performous-1.0.orig/lang/CMakeLists.txt 2014-10-28 19:11:45.000000000 -0400 ++++ performous-1.0/lang/CMakeLists.txt 2015-02-22 04:25:40.502252942 -0500 +@@ -9,5 +9,13 @@ + file(MAKE_DIRECTORY "${mobuild}") + add_custom_command(OUTPUT "${mofile}" COMMAND "${Msgfmt_BIN}" -v "${pofile}" -o "${mofile}" MAIN_DEPENDENCY "${pofile}" COMMENT "Building ${language} locale" VERBATIM) + add_custom_target("locale_${language}" ALL DEPENDS "${mofile}") # Make sure the mofiles are always built +- install(FILES "${mofile}" DESTINATION "${LOCALE_DIR}/${language}/LC_MESSAGES") + endforeach(language) ++foreach(language $ENV{LINGUAS}) ++ set(pofile ${CMAKE_CURRENT_SOURCE_DIR}/${language}.po) ++ if (EXISTS ${pofile}) ++ set(mofile ${CMAKE_CURRENT_BINARY_DIR}/${language}.mo) ++ install(FILES ${mofile} DESTINATION ++{LOCALE_DIR}/${language}/LC_MESSAGES RENAME ${CMAKE_PROJECT_NAME}.mo) ++ endif() ++endforeach(language) ++ diff --git a/games-arcade/performous/metadata.xml b/games-arcade/performous/metadata.xml new file mode 100644 index 000000000000..9def245b0290 --- /dev/null +++ b/games-arcade/performous/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> + Performous is an open-source rhythm/performance platform that contains singing, guitar/bass playing, drumming and dancing all in one game. + </longdescription> + <use> + <flag name="midi">Enable MIDI I/O support</flag> + <flag name="songs">Install a few demo songs</flag> + <flag name="tools">Install tools</flag> + <flag name="webcam">Enable Webcam support</flag> + </use> + <upstream> + <remote-id type="sourceforge">performous</remote-id> + <remote-id type="github">performous/performous</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/performous/performous-1.0.ebuild b/games-arcade/performous/performous-1.0.ebuild new file mode 100644 index 000000000000..ab277f8f3996 --- /dev/null +++ b/games-arcade/performous/performous-1.0.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +CMAKE_REMOVE_MODULES="yes" +CMAKE_REMOVE_MODULES_LIST="FindALSA FindBoost FindFreetype FindGettext FindJpeg FindPng FindTiff FindZ" +inherit eutils cmake-utils gnome2-utils games + +MY_PN=Performous +MY_P=${MY_PN}-${PV} +SONGS_PN=ultrastar-songs + +DESCRIPTION="SingStar GPL clone" +HOMEPAGE="http://sourceforge.net/projects/performous/" +SRC_URI="https://github.com/performous/performous/archive/1.0.tar.gz -> ${P}.tar.gz + songs? ( + mirror://sourceforge/performous/${SONGS_PN}-restricted-3.zip + mirror://sourceforge/performous/${SONGS_PN}-jc-1.zip + mirror://sourceforge/performous/${SONGS_PN}-libre-3.zip + mirror://sourceforge/performous/${SONGS_PN}-shearer-1.zip + )" + +LICENSE="GPL-2 + songs? ( + CC-BY-NC-SA-2.5 + CC-BY-NC-ND-2.5 + )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="midi songs tools webcam" + +RDEPEND="dev-cpp/glibmm + dev-cpp/libxmlpp + media-libs/portaudio + dev-libs/boost[threads(+)] + dev-libs/glib:2 + dev-libs/libxml2 + gnome-base/librsvg + media-gfx/imagemagick + virtual/jpeg:0 + media-libs/libpng:0 + media-libs/libsdl2[joystick,video] + virtual/ffmpeg + virtual/opengl + virtual/glu + sys-libs/zlib + virtual/libintl + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/pango + media-libs/glew + midi? ( media-libs/portmidi ) + webcam? ( media-libs/opencv )" +DEPEND="${RDEPEND} + sys-apps/help2man + sys-devel/gettext" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-libav.patch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-linguas.patch \ + "${FILESDIR}"/${P}-include.patch + sed -i \ + -e "s:@GENTOO_BINDIR@:${GAMES_BINDIR}:" \ + -e '/ Z /s/ Z / ZLIB /' \ + -e 's/Jpeg/JPEG/' \ + -e 's/Png/PNG/' \ + game/CMakeLists.txt || die + + strip-linguas -u lang +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_enable tools TOOLS) + $(cmake-utils_use_enable webcam WEBCAM) + $(cmake-utils_use_enable midi MIDI) + -DCMAKE_VERBOSE_MAKEFILE=TRUE + -DSHARE_INSTALL="${GAMES_DATADIR}"/${PN} + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + if use songs ; then + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}/songs" + fi + dodoc docs/{Authors,instruments}.txt + newicon -s scalable data/themes/default/icon.svg ${PN}.svg + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/primateplunge/Manifest b/games-arcade/primateplunge/Manifest new file mode 100644 index 000000000000..121a7a17277d --- /dev/null +++ b/games-arcade/primateplunge/Manifest @@ -0,0 +1 @@ +DIST primateplunge-1.1.tar.gz 5245884 SHA256 4df43ace79ff8aa41547e65c26120ed941528da8b82e16563bf285324831bc0c SHA512 bdc6be0faf28375941e67895c498f59a529521ba46d6b23ea94d3b16ead1541738d7aa5cfa5fa5cf269e7e474ca9002180e7b0663e1b4531300d21564df41b8c WHIRLPOOL 8c642f57692185aeff8d570b7a4c86b431ef3a633afddd43bdfca3413e334483d181cca5c520a3298123637e30c8e1b3dda7ba5de4fdbcaaf4588160083f9480 diff --git a/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch b/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch new file mode 100644 index 000000000000..b5c50dcc701b --- /dev/null +++ b/games-arcade/primateplunge/files/primateplunge-1.1-AC_SUBST.patch @@ -0,0 +1,26 @@ +--- configure.ac.orig ++++ configure.ac +@@ -7,12 +7,12 @@ + + AC_INIT([primateplunge], [1.1], [primateplunge@aelius.com]) + +-AC_CONFIG_SRCDIR( src/game.c ) ++AC_CONFIG_SRCDIR(src/game.c) + AC_CANONICAL_SYSTEM + + dnl Version 1.7 of automake is recommended +-AM_INIT_AUTOMAKE( 1.7 ) +-AM_CONFIG_HEADER( src/config.h ) ++AM_INIT_AUTOMAKE(1.7) ++AM_CONFIG_HEADER(src/config.h) + + + +@@ -29,7 +29,6 @@ + [ PREFSFILE="~/.primateplunge" ] + ) + +-AC_SUBST( GAMEDATADIR ) + AC_DEFINE_DIR( GAMEDATADIR, GAMEDATADIR, [Location of game resource files] ) + AC_DEFINE_UNQUOTED( PREFSFILE, "$PREFSFILE", [Location of preferences file] ) + diff --git a/games-arcade/primateplunge/metadata.xml b/games-arcade/primateplunge/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/primateplunge/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild b/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild new file mode 100644 index 000000000000..8935e9d1f9d4 --- /dev/null +++ b/games-arcade/primateplunge/primateplunge-1.1-r1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="Help poor Monkey navigate his way down through treacherous areas" +HOMEPAGE="http://www.aelius.com/primateplunge/" +SRC_URI="http://www.aelius.com/${PN}/${P}.tar.gz" + +LICENSE="Primate-Plunge" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" +RESTRICT="mirror bindist" #465850 + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${P}-AC_SUBST.patch + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS README TIPS + newicon graphics/idle.bmp ${PN}.bmp + make_desktop_entry ${PN} "Primate Plunge" /usr/share/pixmaps/${PN}.bmp + prepgamesdirs +} diff --git a/games-arcade/pycadia/Manifest b/games-arcade/pycadia/Manifest new file mode 100644 index 000000000000..3908539224ce --- /dev/null +++ b/games-arcade/pycadia/Manifest @@ -0,0 +1 @@ +DIST pycadia-0.5.1.tar.gz 2768619 SHA256 c872e4aede8cd04773327308b38b7e85b06aa370facee1c7b912d9ea938f67b5 SHA512 bfe7369263f21d672800eeaf567d7dcb5027b24d2f0d0534d68ad28ae71c916eca2ebf4b2f888645c8bfce12a2ba4bf23dacf673e32a7ba76d564006bdc3e0d2 WHIRLPOOL e3ea0f9f24c898806542f83119c7a82e88fb0f452bbd0e57b21ba4baaaad72331b987135037965f23f7d6580c6a82d5ad312c11b2fa3eb4512fb8a18130c6d0a diff --git a/games-arcade/pycadia/metadata.xml b/games-arcade/pycadia/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/pycadia/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/pycadia/pycadia-0.5.1.ebuild b/games-arcade/pycadia/pycadia-0.5.1.ebuild new file mode 100644 index 000000000000..a9d61c9268ea --- /dev/null +++ b/games-arcade/pycadia/pycadia-0.5.1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Pycadia. Home to vector gaming, python style" +HOMEPAGE="http://www.anti-particle.com/pycadia.shtml" +SRC_URI="http://www.anti-particle.com/downloads/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=dev-python/pygame-1.5.5 + dev-python/pygtk:2" + +S=${WORKDIR}/${PN} + +src_unpack() { + unpack ${A} + { + echo "#!/bin/sh" + echo "cd ${GAMES_DATADIR}/${PN}" + echo "exec python2 ./pycadia.py \"\${@}\"" + } > "${T}/pycadia" +} + +src_install() { + dogamesbin "${T}/pycadia" + + insinto "${GAMES_DATADIR}/${PN}" + doins -r {glade,pixmaps,sounds} *.py pycadia.conf + + exeinto "${GAMES_DATADIR}/${PN}" + doexe pycadia.py spacewarpy.py vektoroids.py + + newicon pixmaps/pysteroids.png ${PN}.png + make_desktop_entry ${PN} Pycadia + + dodoc doc/{TODO,CHANGELOG,README} + prepgamesdirs +} diff --git a/games-arcade/pydance-songs/Manifest b/games-arcade/pydance-songs/Manifest new file mode 100644 index 000000000000..dae1688e0a7a --- /dev/null +++ b/games-arcade/pydance-songs/Manifest @@ -0,0 +1 @@ +DIST pydance-songs-20040410.tar.bz2 3780065 SHA256 47f417e6d25ca9a09a0daad387474e071c956abf8b5371342bd00df321e783fb SHA512 09d68efba0a21e65a0c2bfc8d66eef3ffbe186506a1c9041560b7295ea1ea386c236f2bd6fcb343001e1c0f3a8a520a4b1b2deaaf1c40afd30b7180ac91b8f5b WHIRLPOOL ed0c032d8b2e3c09bc7a68fe86674efc9fcb923697405e07d904391a9141ac01b706f6161e464f82b08a2a14f3d1ff7e5eb003189f9fc4e09623b2e46b108328 diff --git a/games-arcade/pydance-songs/metadata.xml b/games-arcade/pydance-songs/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/pydance-songs/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/pydance-songs/pydance-songs-20040410.ebuild b/games-arcade/pydance-songs/pydance-songs-20040410.ebuild new file mode 100644 index 000000000000..2d9ca4376764 --- /dev/null +++ b/games-arcade/pydance-songs/pydance-songs-20040410.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +DESCRIPTION="Music for the pyDDR game" +HOMEPAGE="http://icculus.org/pyddr/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +S=${WORKDIR} + +src_install() { + insinto "${GAMES_DATADIR}/pydance/songs" + doins * + prepgamesdirs +} diff --git a/games-arcade/pydance/Manifest b/games-arcade/pydance/Manifest new file mode 100644 index 000000000000..30c6256e9ec6 --- /dev/null +++ b/games-arcade/pydance/Manifest @@ -0,0 +1 @@ +DIST pydance-1.1.0.tar.gz 8957236 SHA256 bfd1f84737a0dd362456fe58694554b0579a87e5ccc69f80bf350847fbe0f502 SHA512 738787626d83adc635e7e4644f159e3ce793da7b38cf094ffd73cabb088d3414a1aa9deda423784174b2c0381e50dd0d74bbcfb9d939044e85c35866b3818c7d WHIRLPOOL 628517ec5508e60e403ae23f24b2fa51718b665f4f7bf56588ca2197cc66808713d6695f450547c3a6a022d8b957c0602ad75266cd65d9f7d368b0793440926e diff --git a/games-arcade/pydance/metadata.xml b/games-arcade/pydance/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/pydance/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/pydance/pydance-1.1.0.ebuild b/games-arcade/pydance/pydance-1.1.0.ebuild new file mode 100644 index 000000000000..01dbc05779d7 --- /dev/null +++ b/games-arcade/pydance/pydance-1.1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="a DDR clone for linux written in Python" +HOMEPAGE="http://www.icculus.org/pyddr/" +SRC_URI="http://www.icculus.org/pyddr/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="dev-python/pygame + media-libs/libvorbis + media-libs/sdl-mixer" +RDEPEND=${DEPEND} +PDEPEND="games-arcade/pydance-songs" + +src_prepare() { + sed -i \ + -e "s:1\.0\.1:1.0.2:" \ + -e "s:/etc/:${GAMES_SYSCONFDIR}/:" \ + pydance.py constants.py docs/man/pydance.6 || die +} + +src_install() { + local dir=${GAMES_DATADIR}/${PN} + + insinto "${dir}" + doins *.py + cp -R CREDITS {sound,images,utils,themes} "${D}${dir}/" || die + + insinto "${GAMES_SYSCONFDIR}" + newins pydance.posix.cfg pydance.cfg + + games_make_wrapper pydance "python2 ./pydance.py" "${dir}" + + dodoc BUGS CREDITS ChangeLog HACKING README TODO + dohtml -r docs/manual.html docs/images + doman docs/man/* + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "If you want to use a DDR pad with pyDance," + elog "all you need to do is emerge the games-arcade/ddrmat kernel module." + echo +} diff --git a/games-arcade/retrobattle/Manifest b/games-arcade/retrobattle/Manifest new file mode 100644 index 000000000000..533877020a82 --- /dev/null +++ b/games-arcade/retrobattle/Manifest @@ -0,0 +1 @@ +DIST retrobattle-src-1.0.0.tar.bz2 4007959 SHA256 0d184c6d7afc2865687fb9323754268692db165799f617422aafd57096540d68 SHA512 2d006fc9a62e57d7fb3c0f0e535a5c702204b6341566064d7683526923839e8a43e14b308e76a8a1f6794f7c682f6344975956877f80bbcbc33ee61cd640ff9e WHIRLPOOL 0af965622d322a65ff3521ab816d208e4f8875a1620b9da51ddb1a4b39c97cbf7e305cf51ac3d27773b1bea43f254648dd846964fc9cec9eb3716f766e1f44cc diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch new file mode 100644 index 000000000000..3673ef01e17f --- /dev/null +++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-build.patch @@ -0,0 +1,30 @@ +Author: hasufell <hasufell@gentoo.org> +Date: Sat Aug 4 12:15:53 2012 +0200 + + respect CXX, CFLAGS and LDFLAGS + +--- src/Makefile ++++ src/Makefile +@@ -1,10 +1,10 @@ +-CFLAGS = `sdl-config --cflags` -g -Wall -I. -DENABLE_BINRELOC +-CPPFLAGS = $(CFLAGS) ++CXXFLAGS += $(shell sdl-config --cflags) -I. ++CPPFLAGS += -DENABLE_BINRELOC + + # Uncomment the first LIBS line and comment out the other LIBS line to + # compile without SDL_Mixer + #LIBS = `sdl-config --libs` +-LIBS = `sdl-config --libs` -lSDL_mixer ++LIBS = $(shell sdl-config --libs) -lSDL_mixer + + RETROINSTALLDIR ?= /opt + +@@ -25,7 +25,7 @@ + + + retrobattle: $(RETRO) +- g++ -o $@ $^ $(LIBS) ++ $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) + mv $@ .. + + clean: diff --git a/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch new file mode 100644 index 000000000000..591ce66e9f69 --- /dev/null +++ b/games-arcade/retrobattle/files/retrobattle-1.0.0-sound.patch @@ -0,0 +1,17 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Aug 5 16:22:22 UTC 2012 +Subject: sound + +resolves crackling background music + +--- src/SoundManager.cc ++++ src/SoundManager.cc +@@ -25,7 +25,7 @@ + SoundManager::SoundManager(char *datadir) + { + #ifndef NO_SDL_MIXER +- if(Mix_OpenAudio(22050, AUDIO_S16SYS, 2, 1024)) ++ if(Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024)) + { + printf("SDL_mixer says: %s\n", Mix_GetError()); + } diff --git a/games-arcade/retrobattle/metadata.xml b/games-arcade/retrobattle/metadata.xml new file mode 100644 index 000000000000..01a746edb196 --- /dev/null +++ b/games-arcade/retrobattle/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> +</pkgmetadata> + diff --git a/games-arcade/retrobattle/retrobattle-1.0.0.ebuild b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild new file mode 100644 index 000000000000..e558f524dd6e --- /dev/null +++ b/games-arcade/retrobattle/retrobattle-1.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P="${PN}-src-${PV}" +DESCRIPTION="A NES-like platform arcade game" +HOMEPAGE="http://remar.se/andreas/retrobattle/" +SRC_URI="http://remar.se/andreas/retrobattle/files/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" +# test is incomplete +RESTRICT="test" + +DEPEND="media-libs/libsdl[X,sound,video] + media-libs/sdl-mixer[wav]" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${MY_P}/src + +src_prepare() { + epatch "${FILESDIR}"/${P}-{build,sound}.patch +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${WORKDIR}"/${MY_P}/data + + # wrapper to pass datadir location + newgamesbin "${WORKDIR}"/${MY_P}/${PN} ${PN}.bin + games_make_wrapper ${PN} "${PN}.bin \"${GAMES_DATADIR}/${PN}\"" + + make_desktop_entry ${PN} + dodoc "${WORKDIR}"/${MY_P}/{manual.txt,README} + + prepgamesdirs +} diff --git a/games-arcade/ri-li/Manifest b/games-arcade/ri-li/Manifest new file mode 100644 index 000000000000..a63c3d48d5f5 --- /dev/null +++ b/games-arcade/ri-li/Manifest @@ -0,0 +1 @@ +DIST Ri-li-2.0.1.tar.bz2 13745398 SHA256 f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd SHA512 6d56c00dae90b50bca81ca739c628335b4ad7642c19a3b3c28630ddb91bd847ca6d383cace66ef436a1dda7497c9d3939de2626071bae40d423b2444fed97863 WHIRLPOOL 5495dc739e276398cc40aa966e621d3cf69c3662518109637b241d824c81246d023e6264cf7cbaed4a18ccda7ca60bfb3ce534c87c3a8b48bde7d1ed637656e6 diff --git a/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch new file mode 100644 index 000000000000..7c7de0f9395d --- /dev/null +++ b/games-arcade/ri-li/files/ri-li-2.0.1-gcc43.patch @@ -0,0 +1,291 @@ +--- src/audio.cc ++++ src/audio.cc +@@ -22,7 +22,7 @@ + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + + #include <stdlib.h> +-#include <iostream.h> ++#include <iostream> + #include <string.h> + + #include "audio.h" +@@ -57,7 +57,7 @@ + char PathFile[512]; + + if(Mix_OpenAudio(22050,AUDIO_S16,1,1024)) { +- cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<endl; ++ std::cerr <<"Enable to init Sound card ! "<<SDL_GetError()<<std::endl; + return false; + } + +--- src/ecran.cc ++++ src/ecran.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <math.h> +--- src/editeur.cc ++++ src/editeur.cc +@@ -25,7 +25,7 @@ + #include <windows.h> + #endif + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -374,7 +374,7 @@ + + // Sauve le niveau + if(Niveau.Save()==false) { +- cerr <<"ERREUR Saving levels!"<<endl; ++ std::cerr <<"ERREUR Saving levels!"<<std::endl; + exit(-1); + } + +--- src/jeux.cc ++++ src/jeux.cc +@@ -25,7 +25,7 @@ + #include <windows.h> + #endif + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +--- src/loco.cc ++++ src/loco.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +--- src/main.cc ++++ src/main.cc +@@ -23,7 +23,7 @@ + + #include <stdio.h> + #include <stdlib.h> +-#include <iostream.h> ++#include <iostream> + #include <string.h> + #include <SDL/SDL.h> + #include <SDL/SDL_mixer.h> +@@ -115,7 +115,7 @@ + + // Initilise SDL + if( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_AUDIO|SDL_INIT_NOPARACHUTE) < 0 ) { +- cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<endl; ++ std::cerr <<"Impossible d'initialiser SDL:"<<SDL_GetError()<<std::endl; + exit(-1); + } + // Ferme le programme correctement quant quit +@@ -125,7 +125,7 @@ + sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo(); + + if(sdlVideoInfo->vfmt->BitsPerPixel==8) { +- cerr <<"Impossible d'utiliser 8bits pour la vido !"<<endl; ++ std::cerr <<"Impossible d'utiliser 8bits pour la vido !"<<std::endl; + exit(-1); + } + +@@ -145,7 +145,7 @@ + sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption); + + if(sdlVideo==NULL) { +- cerr <<"Impossible de passer dans le mode vido 800x600 !"<<endl; ++ std::cerr <<"Impossible de passer dans le mode vido 800x600 !"<<std::endl; + exit(-1); + } + // Change le nom de la fenetre +--- src/menu.cc ++++ src/menu.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -92,7 +92,7 @@ + // Teste la resolution video + sdlVideoInfo=(SDL_VideoInfo*)SDL_GetVideoInfo(); + if(sdlVideoInfo->vfmt->BitsPerPixel==8) { +- cerr <<"Impossible d'utiliser 8bits pour la vido !"<<endl; ++ std::cerr <<"Impossible d'utiliser 8bits pour la vido !"<<std::endl; + exit(-1); + } + +@@ -112,7 +112,7 @@ + if(Pref.FullScreen) vOption|=SDL_FULLSCREEN; + sdlVideo=SDL_SetVideoMode(800,600,sdlVideoInfo->vfmt->BitsPerPixel,vOption); + if(sdlVideo==NULL) { +- cerr <<"Impossible de passer dans le mode vido 800x600 !"<<endl; ++ std::cerr <<"Impossible de passer dans le mode vido 800x600 !"<<std::endl; + exit(-1); + } + +--- src/mouse.cc ++++ src/mouse.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include "mouse.h" + #include "preference.h" +--- src/sprite.cc ++++ src/sprite.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -84,7 +84,7 @@ + strcpy(PathFile,Langue[Pref.Langue]); + GetPath(PathFile); + if(FileExiste(PathFile)==false) { +- cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<endl; ++ std::cerr <<"Impossible de trouver "<<Langue[Pref.Langue]<<std::endl; + return false; + } + L=ChargeFichier(PathFile,Buf); +@@ -128,7 +128,7 @@ + // *** Charge le fichier des langues *** + // ************************************* + if(FileExiste(PathFile)==false) { +- cerr <<"Impossible de trouver 'language.dat'"<<endl; ++ std::cerr <<"Impossible de trouver 'language.dat'"<<std::endl; + return false; + } + L=ChargeFichier(PathFile,Buf); +@@ -163,7 +163,7 @@ + strcpy(PathFile,"sprites.dat"); + GetPath(PathFile); + if(FileExiste(PathFile)==false) { +- cerr <<"Impossible de trouver 'sprites.dat'"<<endl; ++ std::cerr <<"Impossible de trouver 'sprites.dat'"<<std::endl; + return false; + } + L=ChargeFichier(PathFile,Buf); +@@ -352,7 +352,7 @@ + Image[i]=SDL_CreateRGBSurface((Dim[i].bpp-3)*SDL_SRCALPHA,Dim[i].L,Dim[i].H,Dim[i].bpp*8, + 0xff,0xff00,0xff0000,0xff000000*(Dim[i].bpp-3)); + if(Image[i]<=NULL) { +- cerr <<"Impossible de crer une Surface SDL!"<<endl; ++ std::cerr <<"Impossible de crer une Surface SDL!"<<std::endl; + return false; + } + +@@ -486,7 +486,7 @@ + Image[0]=SDL_CreateRGBSurface((Dim[0].bpp-3)*SDL_SRCALPHA,Dim[0].L,Dim[0].H,Dim[0].bpp*8, + 0xff,0xff00,0xff0000,0xff000000*(Dim[0].bpp-3)); + if(Image[0]<=NULL) { +- cerr <<"Impossible de crer une Surface SDL!"<<endl; ++ std::cerr <<"Impossible de crer une Surface SDL!"<<std::endl; + return false; + } + return true; +--- src/tableau.cc ++++ src/tableau.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include "preference.h" +--- src/utils.cc ++++ src/utils.cc +@@ -21,7 +21,7 @@ + // with this program; if not, write to the Free Software Foundation, Inc., + // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +-#include <iostream.h> ++#include <iostream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -77,7 +77,7 @@ + + file=fopen(Path,"r"); + if(!file) { +- cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl; ++ std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl; + perror("fopen"); + return -1; + } +@@ -93,7 +93,7 @@ + + Buf=new unsigned char [L+1]; + if(Buf==NULL) { +- cerr <<"ERREUR: Memoire insuffisante!"<<endl; ++ std::cerr <<"ERREUR: Memoire insuffisante!"<<std::endl; + fclose(file); + return -1; + } +@@ -104,7 +104,7 @@ + while(Compt>1024) { + AfficheChargeur(); + if( fread(Po,1,1024,file) != 1024 ) { +- cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<endl; ++ std::cerr <<"ERREUR de lecture du fichier '"<<Path<<"'"<<std::endl; + perror("fread"); + fclose(file); + delete [] Buf; +@@ -169,14 +169,14 @@ + + file=fopen(Path,"w"); + if(!file) { +- cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<endl; ++ std::cerr <<"ERREUR: Impossible d'ouvrir '"<<Path<<"'"<<std::endl; + perror("fopen"); + return false; + } + + while(L>512) { + if( fwrite(Buf,1,512,file) != 512 ) { +- cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl; ++ std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl; + perror("fwrite"); + fclose(file); + return false; +@@ -187,7 +187,7 @@ + + if(L>0) { + if( fwrite(Buf,1,(size_t)L,file) != (size_t)L ) { +- cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<endl; ++ std::cerr <<"ERREUR d'ecriture du fichier '"<<Path<<"'"<<std::endl; + perror("fwrite"); + fclose(file); + return false; +@@ -250,7 +250,7 @@ + sprintf(Path,"/usr/share/games/Ri-li/%s",Provi); + if(FileExiste(Path)) return; + +- cerr <<"Impossible de trouver le fichier '"<<Provi<<endl; ++ std::cerr <<"Impossible de trouver le fichier '"<<Provi<<std::endl; + exit(-1); + } + #endif diff --git a/games-arcade/ri-li/metadata.xml b/games-arcade/ri-li/metadata.xml new file mode 100644 index 000000000000..adcacb009e3e --- /dev/null +++ b/games-arcade/ri-li/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">ri-li</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/ri-li/ri-li-2.0.1.ebuild b/games-arcade/ri-li/ri-li-2.0.1.ebuild new file mode 100644 index 000000000000..cdb12bf48896 --- /dev/null +++ b/games-arcade/ri-li/ri-li-2.0.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils games + +DESCRIPTION="Drive a toy wood engine and collect all the coaches" +HOMEPAGE="http://ri-li.sourceforge.net/" +SRC_URI="mirror://sourceforge/ri-li/Ri-li-${PV}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer[mod]" +RDEPEND="${DEPEND}" +S=${WORKDIR}/Ri-li-${PV} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch + mv configure.{in,ac} + rm aclocal.m4 + eautoreconf +} + +src_install() { + default + rm -f "${D}${GAMES_DATADIR}/Ri-li/"*ebuild + newicon data/Ri-li-icon-48x48.png ${PN}.png + make_desktop_entry Ri_li Ri-li + prepgamesdirs +} diff --git a/games-arcade/rockdodger/Manifest b/games-arcade/rockdodger/Manifest new file mode 100644 index 000000000000..64cc1d45668c --- /dev/null +++ b/games-arcade/rockdodger/Manifest @@ -0,0 +1 @@ +DIST rockdodger-0.6.0a.tar.gz 410223 SHA256 3b6676676d47c1a4d6074c6b811f7a0449f1e4774b2200127c9096c489def17e SHA512 d517cc844df21e8772b13d0226841a64bede0cc2f5461fb83d313f49cd99192dcf6af4597e3d1f3e1c60f578437e355ce665e0288415da803a503fb12d8462eb WHIRLPOOL 4961a6d39c0c4102b54d3e9cd938448cea5c2ba41a562f38d557d6e11b5c3d638bb67f21c48414ede3b7d4f8406161c3aef5165a03de8ae006e7cc9138ad842f diff --git a/games-arcade/rockdodger/files/0.6.0a-sec.patch b/games-arcade/rockdodger/files/0.6.0a-sec.patch new file mode 100644 index 000000000000..e870cf2d2974 --- /dev/null +++ b/games-arcade/rockdodger/files/0.6.0a-sec.patch @@ -0,0 +1,20 @@ +--- main.c.old 2002-11-17 23:56:12.000000000 +0100 ++++ main.c 2004-10-29 22:32:00.000000000 +0200 +@@ -459,7 +459,7 @@ FILE *hs_fopen(char *mode) {/*{{{*/ + else { + char s[1024]; + umask(0177); +- sprintf(s,"%s/.rockdodger_high",getenv("HOME")); ++ snprintf(s,1024,"%s/.rockdodger_high",getenv("HOME")); + if (f=fopen(s,mode)) { + umask(mask); + return f; +@@ -478,7 +478,7 @@ void read_high_score_table() {/*{{{*/ + for (i=0; i<8; i++) { + char s[1024]; + int highscore; +- if (fscanf (f, "%d %[^\n]", &highscore, s)!=2) ++ if (fscanf (f, "%d %1023[^\n]", &highscore, s)!=2) + break; + if (high[i].allocated) + free(high[i].name); diff --git a/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch b/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch new file mode 100644 index 000000000000..59e01bba17c3 --- /dev/null +++ b/games-arcade/rockdodger/files/rockdodger-0.6.0a-gcc41.patch @@ -0,0 +1,18 @@ +--- main.c.old 2006-04-24 16:16:13.000000000 +0200 ++++ main.c 2006-04-24 16:16:21.000000000 +0200 +@@ -206,7 +206,6 @@ + struct bangdots bdot[MAX_BANG_DOTS], *bdotptr=bdot; + struct spacedot sdot[MAX_SPACE_DOTS]; + +-struct greeble greeb[MAX_GREEBLES]; + struct greeble { + int active; + float x,y; // When landed, these represent an offset from the host rock +@@ -214,6 +213,7 @@ + int landed; + int boredom; // Goes up while landed + }; ++struct greeble greeb[MAX_GREEBLES]; + // }}} + + void init_greeblies() { diff --git a/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch b/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch new file mode 100644 index 000000000000..87cd8453476c --- /dev/null +++ b/games-arcade/rockdodger/files/rockdodger-0.6.0a-underlink.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2011-06-20 21:25:56.788323912 +0200 ++++ Makefile 2011-06-20 21:26:11.970287694 +0200 +@@ -27,7 +27,7 @@ + #SOUNDLIBRARIES= + SOUNDLIBRARIES=-lSDL_mixer + +-LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES) ++LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES) -lm + + all: $(EXENAME) + diff --git a/games-arcade/rockdodger/metadata.xml b/games-arcade/rockdodger/metadata.xml new file mode 100644 index 000000000000..bf5eb2351781 --- /dev/null +++ b/games-arcade/rockdodger/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">spacerocks</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild new file mode 100644 index 000000000000..205a51a4b335 --- /dev/null +++ b/games-arcade/rockdodger/rockdodger-0.6.0a-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Dodge the rocks for as long as possible until you die" +HOMEPAGE="http://spacerocks.sourceforge.net/" +SRC_URI="mirror://sourceforge/spacerocks/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" + +src_prepare() { + # Modify highscores & data directory and add our CFLAGS to the Makefile + sed -i \ + -e "s:\./data:${GAMES_DATADIR}/${PN}:" \ + -e "s:/usr/share/rockdodger/\.highscore:${GAMES_STATEDIR}/rockdodger.scores:" \ + -e 's:umask(0111):umask(0117):' main.c \ + || die " sed main.c failed" + sed -i \ + -e "s:-g:${CFLAGS}:" \ + -e 's:cc:$(CC):' \ + -e '/-o/s:\$+:$(LDFLAGS) $+:' \ + Makefile \ + || die "sed Makefile failed" + + # The 512 chunksize makes the music skip + sed -i \ + -e "s:512:1024:" sound.c \ + || die "sed sound.c failed" + epatch \ + "${FILESDIR}"/${PV}-sec.patch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-underlink.patch +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins data/* + + newicon spacerocks.xpm ${PN}.xpm + make_desktop_entry ${PN} "Rock Dodger" ${PN} + + dodir "${GAMES_STATEDIR}" + touch "${D}/${GAMES_STATEDIR}"/${PN}.scores + fperms 660 "${GAMES_STATEDIR}"/${PN}.scores + prepgamesdirs +} diff --git a/games-arcade/rocksndiamonds/Manifest b/games-arcade/rocksndiamonds/Manifest new file mode 100644 index 000000000000..5f65757da541 --- /dev/null +++ b/games-arcade/rocksndiamonds/Manifest @@ -0,0 +1,11 @@ +DIST BD2K3-1.0.0.zip 4715324 SHA256 5fc5130c859e69d6907bff87e01ff2296d59f7376202a8aacc03e55f359fb351 SHA512 80f172584d2077a3ade0749790802ef9cecde75283d6b889e7d2fedf9b55fd1fd7f1f1fd5596b17d5b2a542172699a929ea626086e77d28fde11487440c43622 WHIRLPOOL fa172ee6d691be22211eb55e47425f13fc32b0c415216921a3f778e099da5a3baaccee4988bb5c9cf1fbb79a2c3af6bd81427e3235632c89d19ed21608976a46 +DIST Boulder_Dash_Dream-1.0.0.zip 10923437 SHA256 6f9dc48023830fbdc318d8f18013b5a7e84ab3c815ba566a4a2c46faeb65c969 SHA512 f2765f52653b4f9d6c4a6548076281f6749d08c2dfd220345bdc0058b94d51c49ef81acdc87ff71bc1b3f337f3cc6a1d08b9e5a02d6aaeaeac5d894f97ba3d8e WHIRLPOOL 6638737d61489dbe9df4b7e67f1c753fa6162d06fab2d5a36ed569e8e25dccfe9713d46be1a326dcadace895048c85c7ffd35e7caa23c6fc7107f6af2faf3f2c +DIST Contributions-1.2.0.zip 9499312 SHA256 d533dc69cd136d2bb7d76d674ab087285799191e0a516320aba8ac2368ce6dd2 SHA512 463e629bd4f592e24a82d20f1f249cea9e266a7c370bb5b079add8daa125d1af69a69746b696dd92f89b90e50972c6b2ba007aab87beed4cd980c0c7bdb81920 WHIRLPOOL f99c6456caaf160e00b0dc2e5d9f59a47fa493cd479e33e1c443a35d61b80f4ec476cd7e5b25349976a7bd588bd792988849c16a4c6133783f14444b7b9fc888 +DIST Snake_Bite-1.0.0.zip 6506066 SHA256 6f6b573d89588f56cb3b326f3a42fb57277307bd709713dbef329885ac4d006d SHA512 82131cb68c9654cb49ddbb46b0c15f13ce98af4f3b2a46e1cc4f2980eea45a707297c74787f365996321f39a9f7656a9492c3d437e3da0d71a295447c868960e WHIRLPOOL 68224d591918405fcd5283b9fdac61e3411293cfdf723ce080722c5258821b6ed724da63c3d8611fa61a6f468c3f5063fcf7358f6d8226b1a0ebcf1eade48441 +DIST Sokoban-1.0.0.zip 295339 SHA256 63f9d36789edca22c0f9454202f9fd21fcee89111642459b5882314f13ebdc0e SHA512 b63be5b00c4c0b153bb6fc45fde556c26cd49fa672b279cce2f61b572d9c056d5e10a565530bdf539024d75ffdd38efe68310e98b8f810d9c5dfc17b24ec376b WHIRLPOOL 984764549648d193106421418eeb48e28ed40839f7a052ec43f9bf5650bc4ff9d31ac5ec9808ed5b099b59f7f7b7ab434ffd0a021d7908fea277c62946d7a00e +DIST rnd-contrib-1.0.0.tar.gz 3389242 SHA256 c24b56399ba202ebf60bb60316e81d7996ccd02ae281a7e54f2f555e088a1ce1 SHA512 8bd82f9c34e6e2d2b7ea22fc5899e72a64587469bfb1336d0d33e6ee2bcd04b3b6adca958861b0e29e18e8dac74651c642126511cacb247072e367783a5c6a08 WHIRLPOOL b2cec77905d686555498694fa5d6b43a4ae1c55301aa6ba5be584e84b9e51e0ef9ea69fe4c984c9dcd0abe387d3694f4d402cf1da28b9aee8275e647e39f0a5c +DIST rnd_jue-v8.tar.bz2 17244645 SHA256 442a21a24b7c004f0c8f8c4fc844cac7f3ff4692574a0a7df2835a1da4dab7fa SHA512 cbff4cd16c812d77fe8446da4016d8f75dfa8675298a745062ff53a7783a39a59cffd886fedf1097023e72e111f10ddd56f280a109058a1a8ee069d664d2c59c WHIRLPOOL 045b2b44b2e0b1d0c2af10fb45c672c527d3f96ee2129b7732c3646ab793e53953624fc2b2efbb8a2721c97ba6a232a97d76e6ee47e3dcf5830adce8e3a1f3c8 +DIST rockslevels-dx-1.0.tar.gz 211151 SHA256 23f1710710eef1dcd1c490670de16d2d58dc98f3fdd9a2df186bdca590e57579 SHA512 2e1bc4484a76bf638e8ce285972b20b6377e0483abb2475e2343d48de1f84ee102f430049d685b89bc1087e0f20b9b6e29370f8e6cae66b480d3650be9991f44 WHIRLPOOL 22c623fd17ed704dfbc0c2b0331cc91199f6f5e3eab15b0a1e9d8c58f609751c226563003f3d983d24697f58d4da5e6464be4ad0007084423f4d6538acbe11c9 +DIST rockslevels-emc-1.0.tar.gz 3824268 SHA256 a04e554fb8b6d010c73e21de090f116dad6054e43e00edc80c59c71a8a1eaa0c SHA512 9abad888fa00bc305444367c5ab8ffdad95eaca22613573e44d5ecd93b1a9a1cbc931497c064002d90fd3174c4661d0b009ede7746b2fe8da0a00072303a1301 WHIRLPOOL d7ce616105621d9a7ee7f3c8406188ad9b0fdf01cd3d17339b8d350ebc5fdcfdc4eb78952198df045309999caca5fcff8c79deb01210437224960baf6bc611af +DIST rockslevels-sp-1.0.tar.gz 373564 SHA256 770d75a5926bb924c6787a6f95ee9f7af743b629ea14005ab0375b57eb488f25 SHA512 2d44e9238a72846b9d4fbab90288aa3b23af4957ffe0d42d95c523fd22f3587572864b3fc0b277894d2f3f56d6eff52ea009e5b2d59aebc34163a1067662d729 WHIRLPOOL 9f3cf3b764b7a137591f287b55f4cab4918e03b0a7a663f7cbe658a280b181c161e53b0855d5bafa57f4072af470199eced2fb1bc98d13369dc373f46baf8205 +DIST rocksndiamonds-3.3.1.2.tar.gz 2614904 SHA256 c117c20026299c6c935bd531ef9b0dc767731f600881d12ceb80c831483755f3 SHA512 b627e4a8e2f03dc380b5a111cc42f296b283e63b20e019f522a8a1431fe9c138eb0dc7aa0fa03dd843c3a93bcd0a90704e651f5a590cb7d4c3e3b46976125755 WHIRLPOOL 6c8d76747b8a0e254e649966b5e8f03ad12e6b15f0a3f4b98efe7df482db55ed4351d7c25d5f45b8b7d3098bf6f65c4bb2ac58ecaa66a6397532169fc7cb5bf4 diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch new file mode 100644 index 000000000000..0aa709652129 --- /dev/null +++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-parallel-build.patch @@ -0,0 +1,12 @@ +diff -ru rocksndiamonds-3.3.1.2.orig/src/Makefile rocksndiamonds-3.3.1.2/src/Makefile +--- rocksndiamonds-3.3.1.2.orig/src/Makefile 2013-11-24 08:05:56.000000000 -0500 ++++ rocksndiamonds-3.3.1.2/src/Makefile 2014-12-31 15:47:37.539941795 -0500 +@@ -255,7 +255,7 @@ + # build targets + # ----------------------------------------------------------------------------- + +-all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME) ++all: $(PROGNAME) + + $(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON) + $(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME) diff --git a/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch new file mode 100644 index 000000000000..65a06e6cdf77 --- /dev/null +++ b/games-arcade/rocksndiamonds/files/rocksndiamonds-3.3.1.2-perms.patch @@ -0,0 +1,29 @@ +diff -up rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 rocksndiamonds-3.3.0.1/src/libgame/setup.c +--- rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 2011-12-12 14:28:30.083078680 -0500 ++++ rocksndiamonds-3.3.0.1/src/libgame/setup.c 2011-12-12 14:34:36.758744753 -0500 +@@ -1293,11 +1293,14 @@ void sortTreeInfo(TreeInfo **node_first) + #define MODE_W_ALL (S_IWUSR | S_IWGRP | S_IWOTH) + #define MODE_X_ALL (S_IXUSR | S_IXGRP | S_IXOTH) + ++#define MODE_R_PRIVATE (S_IRUSR) + #define MODE_W_PRIVATE (S_IWUSR) ++#define MODE_X_PRIVATE (S_IXUSR) ++ + #define MODE_W_PUBLIC (S_IWUSR | S_IWGRP) + #define MODE_W_PUBLIC_DIR (S_IWUSR | S_IWGRP | S_ISGID) + +-#define DIR_PERMS_PRIVATE (MODE_R_ALL | MODE_X_ALL | MODE_W_PRIVATE) ++#define DIR_PERMS_PRIVATE (MODE_R_PRIVATE | MODE_X_PRIVATE | MODE_W_PRIVATE) + #define DIR_PERMS_PUBLIC (MODE_R_ALL | MODE_X_ALL | MODE_W_PUBLIC_DIR) + + #define FILE_PERMS_PRIVATE (MODE_R_ALL | MODE_W_PRIVATE) +@@ -1456,7 +1459,8 @@ void createDirectory(char *dir, char *te + if (running_setgid) + posix_umask(last_umask & group_umask); + else +- dir_mode |= MODE_W_ALL; ++ if (permission_class == PERMS_PUBLIC) ++ dir_mode |= MODE_W_ALL; + + if (!fileExists(dir)) + if (posix_mkdir(dir, dir_mode) != 0) diff --git a/games-arcade/rocksndiamonds/metadata.xml b/games-arcade/rocksndiamonds/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/rocksndiamonds/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild new file mode 100644 index 000000000000..3ca6c2924036 --- /dev/null +++ b/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit flag-o-matic eutils games + +DESCRIPTION="A Boulderdash clone" +HOMEPAGE="http://www.artsoft.org/rocksndiamonds/" +SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip + http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz + http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz + mirror://gentoo/rnd_jue-v8.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="X sdl" + +RDEPEND="X? ( x11-libs/libX11 ) + !sdl? ( x11-libs/libX11 ) + sdl? ( + >=media-libs/libsdl-1.2.3[joystick,video] + >=media-libs/sdl-mixer-1.2.4[mod,mp3,timidity] + media-libs/sdl-net + >=media-libs/sdl-image-1.2.2[gif] + media-libs/smpeg + )" +DEPEND="${RDEPEND} + app-arch/unzip + X? ( x11-libs/libXt ) + !sdl? ( x11-libs/libXt )" + +src_unpack() { + unpack ${P}.tar.gz + cd "${S}" + unpack \ + rockslevels-emc-1.0.tar.gz \ + rockslevels-sp-1.0.tar.gz \ + rockslevels-dx-1.0.tar.gz + cd levels + unpack \ + rnd_jue-v8.tar.bz2 \ + BD2K3-1.0.0.zip \ + rnd-contrib-1.0.0.tar.gz \ + Snake_Bite-1.0.0.zip \ + Contributions-1.2.0.zip \ + Boulder_Dash_Dream-1.0.0.zip \ + Sokoban-1.0.0.zip +} + +src_prepare() { + # make it parallel-friendly. + epatch \ + "${FILESDIR}"/${P}-parallel-build.patch \ + "${FILESDIR}"/${P}-perms.patch + sed -i \ + -e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \ + -e '/^MAKE/d' \ + -e '/^CC/d' \ + Makefile || die + + sed -i \ + -e '/^LDFLAGS/s/=/+=/' \ + src/Makefile || die +} + +src_compile() { + replace-cpu-flags k6 k6-1 k6-2 i586 + + local makeopts="RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}" + if use X || { ! use X && ! use sdl; } ; then + emake -j1 clean + emake ${makeopts} OPTIONS="${CFLAGS}" x11 + mv rocksndiamonds{,.x11} + fi + if use sdl ; then + emake -j1 clean + emake ${makeopts} OPTIONS="${CFLAGS}" sdl + mv rocksndiamonds{,.sdl} + fi +} + +src_install() { + if use X || { ! use X && ! use sdl; } ; then + dogamesbin rocksndiamonds.x11 + fi + if use sdl ; then + dogamesbin rocksndiamonds.sdl + dosym rocksndiamonds.sdl "${GAMES_BINDIR}/rocksndiamonds" + else + dosym rocksndiamonds.x11 "${GAMES_BINDIR}/rocksndiamonds" + fi + insinto "${GAMES_DATADIR}/${PN}" + doins -r docs graphics levels music sounds + + newman rocksndiamonds.{1,6} + dodoc CREDITS ChangeLog README + newicon graphics/gfx_classic/rocks_icon_32x32.pcx ${PN}.pcx + make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.pcx + + prepgamesdirs +} diff --git a/games-arcade/sable/Manifest b/games-arcade/sable/Manifest new file mode 100644 index 000000000000..648ca0712a00 --- /dev/null +++ b/games-arcade/sable/Manifest @@ -0,0 +1,2 @@ +DIST sable-1.0-src.tgz 247200 SHA256 fb7864633fc5ef5c4999410929a9401deaf2f95b15cdd49f4a3c4823f6b1353b SHA512 ec8a8b76695b7767f04405c3bdb24f6f506116a775124e771c0c58a64f0412afd26aa88b1153945ceb36705a63b1fe905569b0b050dcf4a25880834cca158bb9 WHIRLPOOL 28ac854627537ea9382490709ec045df51e0cef35557207d469ed8a8333e349f6e37fd368fe8bd6f65aea737805e1cd8313182d33c25ec61c234b3a9269c5b5d +DIST sable.png 1669 SHA256 94f535353e0bcdb7018126ca8e422694484479515484c3499a24931aa00eae86 SHA512 08aa0ac33cefcab317df7876838141c21f3fca79995922e6f773f2b4a3f7c460d1e594b4ca742666ddefe9102a64e20f2f3839cc166b94207e0e512d42ee78dd WHIRLPOOL 8e558bc632954cd126ff78c260e5225cabed25222eee9c492c90bba0babbd6dbcc8c10392cd6083cff581b8ef671f463b4759151a3bd8c6c9727868b5527257f diff --git a/games-arcade/sable/files/sable-1.0-gentoo.patch b/games-arcade/sable/files/sable-1.0-gentoo.patch new file mode 100644 index 000000000000..b809936ff964 --- /dev/null +++ b/games-arcade/sable/files/sable-1.0-gentoo.patch @@ -0,0 +1,57 @@ +diff -ru sable.orig/src/Makefile sable/src/Makefile +--- sable.orig/src/Makefile 2006-03-14 00:57:31.000000000 -0500 ++++ sable/src/Makefile 2009-01-21 15:15:02.000000000 -0500 +@@ -1,30 +1,10 @@ +-# are we on OSX? +-ifeq ($(shell uname), Darwin) +-OSX:=1 +-endif +- +-# C options +-CC = gcc +-NOOSXFLAGS = -c `sdl-config --cflags` -O2 -Wall -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude $(CFLAGS) +-ifdef OSX +-FLAGS = $(NOOSXFLAGS) -D_SABLE_OSX_ +-else +-FLAGS = $(NOOSXFLAGS) +-endif +- +-# C++ options. +-CXX = g++ +-CXXFLAGS = $(FLAGS) ++NOOSXFLAGS = -c `sdl-config --cflags` -DSABLE_RESOURCEDIR=\"$(INSTALL_RESDIR)/sable/\" -Iinclude ++ ++CFLAGS += $(NOOSXFLAGS) ++CXXFLAGS += $(NOOSXFLAGS) + + # Linker options. +-LD = g++ +-LDFLAGS = +-NOOSXLIBS = -lSDL_image -lSDL_mixer +-ifdef OSX +-LIBS = `sdl-config --static-libs` $(NOOSXLIBS) +-else +-LIBS = `sdl-config --libs` $(NOOSXLIBS) -lGL -lGLU +-endif ++LIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU + + COBJS = vcontrol/vcontrol.o \ + bcplrandom.o \ +@@ -35,7 +15,7 @@ + OBJS = $(COBJS) $(CXXOBJS) + + sable: $(OBJS) +- $(LD) $(LDFLAGS) -o sable $(OBJS) $(LIBS) ++ $(CXX) $(LDFLAGS) -o sable $(OBJS) $(LIBS) + + clean: + rm -f sable *.o vcontrol/*.o svaf/*.o +@@ -44,7 +24,7 @@ + find . -name \*.c\* | xargs makedepend -Y. -Iinclude >& /dev/null + + $(COBJS): %.o: %.c +- $(CC) $(FLAGS) -o $@ $< ++ $(CC) $(CFLAGS) -o $@ $< + + $(CXXOBJS): %.o: %.cpp + $(CXX) $(CXXFLAGS) -o $@ $< diff --git a/games-arcade/sable/metadata.xml b/games-arcade/sable/metadata.xml new file mode 100644 index 000000000000..66d45cd64099 --- /dev/null +++ b/games-arcade/sable/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +Sable is a frantic 3d space shooter inspired by games such as After Burner and +Space Harrier. You pilot a ship through an obstacle-laden landscape and attack +or evade swarms of enemies. + +The game itself is quite easy to play. The arrow keys move your ship, and the +space bar fires your cannons. Holding down the space bar produces a rapid-fire +effect. Avoid enemy craft, enemy shots, and the pylons. Pylons are destroyable +but require concentrated fire to destroy. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/sable/sable-1.0.ebuild b/games-arcade/sable/sable-1.0.ebuild new file mode 100644 index 000000000000..c2eded71b95f --- /dev/null +++ b/games-arcade/sable/sable-1.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A frantic 3D space shooter" +HOMEPAGE="http://www.stanford.edu/~mcmartin/sable/" +SRC_URI="http://www.stanford.edu/~mcmartin/${PN}/${P}-src.tgz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/libsdl + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${PN} + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_compile() { + emake INSTALL_RESDIR="${GAMES_DATADIR}" +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r models sfx textures + dodoc ChangeLog README + + doicon "${DISTDIR}"/${PN}.png + make_desktop_entry ${PN} Sable + + prepgamesdirs +} diff --git a/games-arcade/sdb/Manifest b/games-arcade/sdb/Manifest new file mode 100644 index 000000000000..57d1d86c1eac --- /dev/null +++ b/games-arcade/sdb/Manifest @@ -0,0 +1 @@ +DIST sdb-1.0.2.tar.gz 10342311 SHA256 f50d641413324448d102d3a6e8c3c340a310e5f8a5656b2cb86036a449b46534 SHA512 670d43717224d564bfecac44a3570167e19b7b4c50a21afab6903b0b0f2f6092a5551fd2cc63b659d2c2eadff5156c97876b96db3a10beabbbadc689b1d46efc WHIRLPOOL c7aa82ed22218e80cbb4d77d6e26fd28abe979624066c73eab5bb9650a590e4118e4b5e0fbb11cffd8624cef83fadd2e71d7a67f3ac04cfc1b3f060772a78556 diff --git a/games-arcade/sdb/files/sdb-1.0.2-endian.patch b/games-arcade/sdb/files/sdb-1.0.2-endian.patch new file mode 100644 index 000000000000..e7b33970274f --- /dev/null +++ b/games-arcade/sdb/files/sdb-1.0.2-endian.patch @@ -0,0 +1,275 @@ +diff -Naur sdb-1.0.2.orig/src/byteswap.h sdb-1.0.2/src/byteswap.h +--- sdb-1.0.2.orig/src/byteswap.h 1970-01-01 01:00:00.000000000 +0100 ++++ sdb-1.0.2/src/byteswap.h 2005-06-11 14:02:33.401905848 +0200 +@@ -0,0 +1,187 @@ ++/* $OpenBSD: endian.h,v 1.14 2004/01/11 19:17:31 brad Exp $ */ ++ ++/*- ++ * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++/* ++ * Generic definitions for little- and big-endian systems. Other endianesses ++ * has to be dealt with in the specific machine/endian.h file for that port. ++ * ++ * This file is meant to be included from a little- or big-endian port's ++ * machine/endian.h after setting BYTE_ORDER to either 1234 for little endian ++ * or 4321 for big.. ++ */ ++ ++#ifndef _BYTESWAP_H_ ++#define _BYTESWAP_H_ ++ ++#undef LITTLE_ENDIAN ++#define LITTLE_ENDIAN 1234 ++#undef BIG_ENDIAN ++#define BIG_ENDIAN 4321 ++#undef PDP_ENDIAN ++#define PDP_ENDIAN 3412 ++ ++#ifdef __GNUC__ ++ ++#define __swap16gen(x) __extension__({ \ ++ unsigned short __swap16gen_x = (x); \ ++ \ ++ (unsigned short)((__swap16gen_x & 0xff) << 8 | \ ++ (__swap16gen_x & 0xff00) >> 8); \ ++}) ++ ++#define __swap32gen(x) __extension__({ \ ++ unsigned int __swap32gen_x = (x); \ ++ \ ++ (unsigned int)((__swap32gen_x & 0xff) << 24 | \ ++ (__swap32gen_x & 0xff00) << 8 | \ ++ (__swap32gen_x & 0xff0000) >> 8 | \ ++ (__swap32gen_x & 0xff000000) >> 24); \ ++}) ++ ++#else /* __GNUC__ */ ++ ++/* Note that these macros evaluate their arguments several times. */ ++#define __swap16gen(x) \ ++ (unsigned short)(((unsigned short)(x) & 0xff) << 8 | ((unsigned short)(x) & 0xff00) >> 8) ++ ++#define __swap32gen(x) \ ++ (unsigned int)(((unsigned int)(x) & 0xff) << 24 | \ ++ ((unsigned int)(x) & 0xff00) << 8 | ((unsigned int)(x) & 0xff0000) >> 8 | \ ++ ((unsigned int)(x) & 0xff000000) >> 24) ++ ++#endif /* __GNUC__ */ ++ ++/* ++ * Define MD_SWAP if you provide swap{16,32}md functions/macros that are ++ * optimized for your architecture, These will be used for swap{16,32} ++ * unless the argument is a constant and we are using GCC, where we can ++ * take advantage of the CSE phase much better by using the generic version. ++ */ ++#ifdef MD_SWAP ++#if __GNUC__ ++ ++#define swap16(x) __extension__({ \ ++ unsigned short __swap16_x = (x); \ ++ \ ++ __builtin_constant_p(x) ? __swap16gen(__swap16_x) : \ ++ __swap16md(__swap16_x); \ ++}) ++ ++#define swap32(x) __extension__({ \ ++ unsigned int __swap32_x = (x); \ ++ \ ++ __builtin_constant_p(x) ? __swap32gen(__swap32_x) : \ ++ __swap32md(__swap32_x); \ ++}) ++ ++#endif /* __GNUC__ */ ++ ++#else /* MD_SWAP */ ++#define swap16 __swap16gen ++#define swap32 __swap32gen ++#endif /* MD_SWAP */ ++ ++#define swap16_multi(v, n) do { \ ++ size_t __swap16_multi_n = (n); \ ++ unsigned short *__swap16_multi_v = (v); \ ++ \ ++ while (__swap16_multi_n) { \ ++ *__swap16_multi_v = swap16(*__swap16_multi_v); \ ++ __swap16_multi_v++; \ ++ __swap16_multi_n--; \ ++ } \ ++} while (0) ++ ++#if BYTE_ORDER == LITTLE_ENDIAN ++ ++#define letohf(x) (x) ++ ++/* Can be overridden by machine/endian.h before inclusion of this file. */ ++#ifndef _QUAD_HIGHWORD ++#define _QUAD_HIGHWORD 1 ++#endif ++#ifndef _QUAD_LOWWORD ++#define _QUAD_LOWWORD 0 ++#endif ++ ++#define htobe16 swap16 ++#define htobe32 swap32 ++#define betoh16 swap16 ++#define betoh32 swap32 ++ ++#define htole16(x) (x) ++#define htole32(x) (x) ++#define letoh16(x) (x) ++#define letoh32(x) (x) ++ ++#endif /* BYTE_ORDER */ ++ ++#if BYTE_ORDER == BIG_ENDIAN ++ ++inline float letohf(float in) { ++ float retVal; ++ char* p = (char*)&retVal; ++ char* i = (char*)∈ ++ p[0] = i[3]; ++ p[1] = i[2]; ++ p[2] = i[1]; ++ p[3] = i[0]; ++ ++ return retVal; ++} ++ ++/* Can be overridden by machine/endian.h before inclusion of this file. */ ++#ifndef _QUAD_HIGHWORD ++#define _QUAD_HIGHWORD 0 ++#endif ++#ifndef _QUAD_LOWWORD ++#define _QUAD_LOWWORD 1 ++#endif ++ ++#define htole16 swap16 ++#define htole32 swap32 ++#define letoh16 swap16 ++#define letoh32 swap32 ++ ++#define htobe16(x) (x) ++#define htobe32(x) (x) ++#define betoh16(x) (x) ++#define betoh32(x) (x) ++ ++#endif /* BYTE_ORDER */ ++ ++#define htons htobe16 ++#define htonl htobe32 ++#define ntohs betoh16 ++#define ntohl betoh32 ++ ++#define NTOHL(x) (x) = ntohl((unsigned int)(x)) ++#define NTOHS(x) (x) = ntohs((unsigned short)(x)) ++#define HTONL(x) (x) = htonl((unsigned int)(x)) ++#define HTONS(x) (x) = htons((unsigned short)(x)) ++ ++#endif /* _SYS_ENDIAN_H_ */ ++ +diff -Naur sdb-1.0.2.orig/src/md2.cpp sdb-1.0.2/src/md2.cpp +--- sdb-1.0.2.orig/src/md2.cpp 2005-06-11 13:54:13.616884720 +0200 ++++ sdb-1.0.2/src/md2.cpp 2005-06-11 14:28:34.726548424 +0200 +@@ -27,6 +27,7 @@ + */ + + #include "sdb.h" ++#include "byteswap.h" + + void ModelObject::draw() + { +@@ -145,6 +146,23 @@ + errorMessage(8, "FLAGRANT SYSTEM ERROR", "Unable to load model %s", strFileName); + + fread(&m_Header, 1, sizeof(tMd2Header), m_FilePointer); ++ m_Header.magic = letoh32(m_Header.magic); ++ m_Header.version = letoh32(m_Header.version); ++ m_Header.skinWidth = letoh32(m_Header.skinWidth); ++ m_Header.skinHeight = letoh32(m_Header.skinHeight); ++ m_Header.frameSize = letoh32(m_Header.frameSize); ++ m_Header.numSkins = letoh32(m_Header.numSkins); ++ m_Header.numVertices = letoh32(m_Header.numVertices); ++ m_Header.numTexCoords = letoh32(m_Header.numTexCoords); ++ m_Header.numTriangles = letoh32(m_Header.numTriangles); ++ m_Header.numGlCommands = letoh32(m_Header.numGlCommands); ++ m_Header.numFrames = letoh32(m_Header.numFrames); ++ m_Header.offsetSkins = letoh32(m_Header.offsetSkins); ++ m_Header.offsetTexCoords = letoh32(m_Header.offsetTexCoords); ++ m_Header.offsetTriangles = letoh32(m_Header.offsetTriangles); ++ m_Header.offsetFrames = letoh32(m_Header.offsetFrames); ++ m_Header.offsetGlCommands = letoh32(m_Header.offsetGlCommands); ++ m_Header.offsetEnd = letoh32(m_Header.offsetEnd); + + if(m_Header.version != 8) + errorMessage(8, "FLAGRANT SYSTEM ERROR", "Invalid file format (version not 8) %s", strFileName); +@@ -197,12 +215,22 @@ + + // Read in all the texture coordinates in one fell swoop + fread(m_pTexCoords, sizeof(tMd2TexCoord), m_Header.numTexCoords, m_FilePointer); ++ for (int i=0; i < m_Header.numTexCoords; ++i) { ++ m_pTexCoords[i].u = letoh16(m_pTexCoords[i].u); ++ m_pTexCoords[i].v = letoh16(m_pTexCoords[i].v); ++ } + + // Move the file pointer to the triangles/face data offset + fseek(m_FilePointer, m_Header.offsetTriangles, SEEK_SET); + + // Read in the face data for each triangle (vertex and texCoord indices) + fread(m_pTriangles, sizeof(tMd2Face), m_Header.numTriangles, m_FilePointer); ++ for (int i=0; i < m_Header.numTriangles; ++i) { ++ for (int j=0; j < 3; ++j) { ++ m_pTriangles[i].vertexIndices[j] = letoh16(m_pTriangles[i].vertexIndices[j]); ++ m_pTriangles[i].textureIndices[j] = letoh16(m_pTriangles[i].textureIndices[j]); ++ } ++ } + + // Move the file pointer to the vertices (frames) + fseek(m_FilePointer, m_Header.offsetFrames, SEEK_SET); +@@ -213,6 +241,10 @@ + + // Read in the first frame of animation + fread(pFrame, 1, m_Header.frameSize, m_FilePointer); ++ for (int j=0; j < 3; ++j) { ++ pFrame->scale[j] = letohf(pFrame->scale[j]); ++ pFrame->translate[j] = letohf(pFrame->translate[j]); ++ } + + m_pFrames[i].pVertices = new tMd2Triangle [m_Header.numVertices]; + +diff -Naur sdb-1.0.2.orig/src/sdb.h sdb-1.0.2/src/sdb.h +--- sdb-1.0.2.orig/src/sdb.h 2005-06-11 13:54:13.610885632 +0200 ++++ sdb-1.0.2/src/sdb.h 2005-06-11 14:26:02.116748640 +0200 +@@ -57,11 +57,7 @@ + #include <sys/time.h> + #endif + +-#if SDL_BYTEORDER == SDL_BIG_ENDIAN +-#define MD2_SUFFIX ".md2b" +-#else + #define MD2_SUFFIX ".md2" +-#endif + + using namespace std; + diff --git a/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch b/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch new file mode 100644 index 000000000000..db32209339ad --- /dev/null +++ b/games-arcade/sdb/files/sdb-1.0.2-gcc43.patch @@ -0,0 +1,10 @@ +--- src/sdb.h ++++ src/sdb.h +@@ -35,6 +35,7 @@ + #include <vector> + #include <fstream> + #include <iostream> ++#include <climits> + + #ifndef __APPLE__ + #include <SDL/SDL.h> diff --git a/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch b/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch new file mode 100644 index 000000000000..6b071e2daf54 --- /dev/null +++ b/games-arcade/sdb/files/sdb-1.0.2-ldflags.patch @@ -0,0 +1,11 @@ +--- src/Makefile.old 2010-09-21 10:30:41.000000000 +0200 ++++ src/Makefile 2010-09-21 10:30:58.000000000 +0200 +@@ -40,7 +40,7 @@ + rm -f $(OBJ) $(BIN) + + $(BIN): $(OBJ) +- $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) ++ $(CPP) $(LDFLAGS) $(LINKOBJ) -o $(BIN) $(LIBS) + + main.o: main.cpp + $(CPP) -c main.cpp -o main.o $(CXXFLAGS) diff --git a/games-arcade/sdb/metadata.xml b/games-arcade/sdb/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/sdb/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/sdb/sdb-1.0.2.ebuild b/games-arcade/sdb/sdb-1.0.2.ebuild new file mode 100644 index 000000000000..f73cee74bcc9 --- /dev/null +++ b/games-arcade/sdb/sdb-1.0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="a 2D top-down action game; escape a facility full of walking death machines" +HOMEPAGE="http://sdb.gamecreation.org/" +SRC_URI="http://gcsociety.sp.cs.cmu.edu/~frenzy/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/libsdl + media-libs/sdl-image[png] + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e "s:models/:${GAMES_DATADIR}/${PN}/models/:" \ + -e "s:snd/:${GAMES_DATADIR}/${PN}/snd/:" \ + -e "s:sprites/:${GAMES_DATADIR}/${PN}/sprites/:" \ + -e "s:levels/:${GAMES_DATADIR}/${PN}/levels/:" \ + src/sdb.h src/game.cpp || die "setting game paths" + epatch \ + "${FILESDIR}"/${P}-endian.patch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + emake \ + -C src \ + CXXFLAGS="${CXXFLAGS} $(sdl-config --cflags)" +} + +src_install() { + dogamesbin src/sdb + insinto "${GAMES_DATADIR}"/${PN} + doins -r levels models snd sprites + newicon sprites/barrel.png ${PN}.png + make_desktop_entry sdb "Shotgun Debugger" + dodoc ChangeLog README + prepgamesdirs +} diff --git a/games-arcade/sdl-sopwith/Manifest b/games-arcade/sdl-sopwith/Manifest new file mode 100644 index 000000000000..7ff909ba2e22 --- /dev/null +++ b/games-arcade/sdl-sopwith/Manifest @@ -0,0 +1 @@ +DIST sopwith-1.7.5.tar.gz 280883 SHA256 71cfffb56cfa8c44cb4e5ffdd826ca7146ef2879d679219d92c06be6b5248b9a SHA512 ea78706d0190648be269142a29d10340c5181563959b0a329b802b9d9128a9dcb1e01760737269ec22883adf5b6c02c5049c8fc7b44e4eaa9f381b87abc7acae WHIRLPOOL 11c7ff9a6c333f46bb98b40e1943e78fb9a6079742dac7fcd3c621def3a0109b49b987627af00dd3112a9bef8c5a0fb9631d787b5b27a452656c06ed8aeb67d6 diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch new file mode 100644 index 000000000000..e4fb1715d8d4 --- /dev/null +++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch @@ -0,0 +1,42 @@ +--- configure.in.old ++++ configure.in +@@ -61,11 +61,6 @@ + SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS sdl" + ],) + +-PKG_CHECK_MODULES(GTK, glib-2.0 >= 2.0 gtk+-2.0 >= 2.0, [ +- SOPWITH_BINS="$SOPWITH_BINS" # gtksopwith" +- SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS" # gtk" +-],) +- + AC_SUBST(SOPWITH_BINS) + AC_SUBST(SOPWITH_SUBDIRS) + +@@ -71,7 +71,7 @@ + + dnl check for TCPIP support + +-AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE(TCPIP),,) ++AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE([TCPIP], [1], [TCP/IP support]),,) + + dnl generate Makefiles + +--- src/Makefile.am.old ++++ src/Makefile.am +@@ -6,7 +6,7 @@ + bin_PROGRAMS = @SOPWITH_BINS@ + EXTRA_PROGRAMS = sopwith gtksopwith psopwith + +-CFLAGS = @CFLAGS@ -I.. ++AM_CFLAGS = @SDL_CFLAGS@ -I.. + + COMMON_SRC = \ + video.h swcollsn.c swgames.h swmain.h swutil.h \ +--- src/sdl/Makefile.am.old ++++ src/sdl/Makefile.am +@@ -1,4 +1,4 @@ +-CFLAGS=@CFLAGS@ @SDL_CFLAGS@ -I.. ++AM_CFLAGS = @SDL_CFLAGS@ -I.. + + noinst_LIBRARIES = libsdlsopwith.a + diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch new file mode 100644 index 000000000000..feab635518f1 --- /dev/null +++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch @@ -0,0 +1,24 @@ +Upstream patch: fix segfault while video device detection. +Discovered here - https://bugs.gentoo.org/show_bug.cgi?id=458504 + +--- src/sdl/video.c.orig 2013-02-21 11:48:57.000000000 -0400 ++++ src/sdl/video.c 2013-02-21 11:49:35.000000000 -0400 +@@ -364,11 +364,17 @@ + int n; + int w, h; + int flags = 0; ++ int status; + + printf("CGA Screen Emulation\n"); + printf("init screen: "); + +- SDL_Init(SDL_INIT_VIDEO); ++ status = SDL_Init(SDL_INIT_VIDEO); ++ if (status == -1) ++ { ++ fprintf(stderr, "Unable to locate video device. Exiting.\n"); ++ exit(1); ++ } + + srand(time(NULL)); + set_icon(symbol_plane[rand() % 2][rand() % 16]); diff --git a/games-arcade/sdl-sopwith/metadata.xml b/games-arcade/sdl-sopwith/metadata.xml new file mode 100644 index 000000000000..0423b06f44dd --- /dev/null +++ b/games-arcade/sdl-sopwith/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">sdl-sopwith</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild new file mode 100644 index 000000000000..56dfb8498561 --- /dev/null +++ b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools toolchain-funcs games + +MY_P=${P/sdl-/} +DESCRIPTION="Port of the classic Sopwith game using LibSDL" +HOMEPAGE="http://sdl-sopwith.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.1.3[video]" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + rm acconfig.h + epatch "${FILESDIR}"/${P}-nogtk.patch + # bug 458504 + epatch "${FILESDIR}"/${P}-video-fix.patch + eautoreconf +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog FAQ NEWS README TODO doc/*txt + rm -rf "${D}/usr/games/share/" + prepgamesdirs +} diff --git a/games-arcade/sdlroids/Manifest b/games-arcade/sdlroids/Manifest new file mode 100644 index 000000000000..f709891032bb --- /dev/null +++ b/games-arcade/sdlroids/Manifest @@ -0,0 +1 @@ +DIST sdlroids-1.3.4.tar.bz2 136588 SHA256 224b1def78dba8a4f7ec7bb15df16a21c85e50dc3d09888a19da0497d37c709c SHA512 abd202e462ac96781481defb9442f3ee69cbfafb5b4e82ae435dca23068257c3e65ba4886c0c41f2568a8568b52267ded24b8684efb3f7cafd21754103cc31b4 WHIRLPOOL 1df895bc8db1472b39d852bd8ce58295e46431b7d466e3bec80d9760e4ceb08e4bedb8c25e7f2aedb6fe47170c13ba63562f85647ab127c1e75b4fe3e1e2c5d8 diff --git a/games-arcade/sdlroids/files/1.3.4-sound.patch b/games-arcade/sdlroids/files/1.3.4-sound.patch new file mode 100644 index 000000000000..00da03f94252 --- /dev/null +++ b/games-arcade/sdlroids/files/1.3.4-sound.patch @@ -0,0 +1,15 @@ +--- sdlsound.c.orig 2004-07-02 23:03:03.000000000 -0700 ++++ sdlsound.c 2004-07-02 23:05:37.000000000 -0700 +@@ -205,9 +205,9 @@ + int load_sample(int num) { + + if((samples[num] = Mix_LoadWAV(samplename[num])) || +- Mix_LoadWAV(datafilename(NULL, samplename[num])) || +- Mix_LoadWAV(datafilename(DATADIR, samplename[num])) || +- Mix_LoadWAV(datafilename(bindir, samplename[num]))) ++ (samples[num] = Mix_LoadWAV(datafilename(NULL, samplename[num]))) || ++ (samples[num] = Mix_LoadWAV(datafilename(DATADIR, samplename[num]))) || ++ (samples[num] = Mix_LoadWAV(datafilename(bindir, samplename[num])))) + return 1; + return 0; + } diff --git a/games-arcade/sdlroids/metadata.xml b/games-arcade/sdlroids/metadata.xml new file mode 100644 index 000000000000..3901cd5790ba --- /dev/null +++ b/games-arcade/sdlroids/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">sdlroids</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild b/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild new file mode 100644 index 000000000000..55d37b791c5d --- /dev/null +++ b/games-arcade/sdlroids/sdlroids-1.3.4-r3.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Asteroids Clone for X using SDL" +HOMEPAGE="http://david.hedbor.org/projects/sdlroids/" +SRC_URI="mirror://sourceforge/sdlroids/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-mixer" +RDEPEND="${DEPEND}" + +src_prepare() { + sed -i \ + -e 's/$(SOUNDSDIR)/$(DESTDIR)$(SOUNDSDIR)/' \ + -e 's/$(GFXDIR)/$(DESTDIR)$(GFXDIR)/' Makefile.in \ + || die "sed failed" + epatch "${FILESDIR}"/${PV}-sound.patch +} + +src_install() { + default + newicon icons/sdlroids-48x48.xpm ${PN}.xpm + make_desktop_entry ${PN} SDLRoids ${PN} + prepgamesdirs +} diff --git a/games-arcade/sdlsasteroids/Manifest b/games-arcade/sdlsasteroids/Manifest new file mode 100644 index 000000000000..d031fcd8c0c3 --- /dev/null +++ b/games-arcade/sdlsasteroids/Manifest @@ -0,0 +1 @@ +DIST SDLSasteroids-3.0.1.tar.gz 531781 SHA256 f447a85d75913ee9d1be0bba68813e0627a4c163ab5d12c7fd5a8ea5f455502c SHA512 5758e1a8540dd16b0993146e706d2f600713cf80500de32b5102e23933fad7e5f5d5b31bf7ebe0efcc89223f54ec67505728e5d3b8e2c8691b8efce671fcbdbc WHIRLPOOL ded81fbf43c6b794c556a284910c0b3b1e9cc7c86e7966e543e3f1937b183d23ba72e969a4d869e54e47d67b9736bcc3d4109027fdb1bd1e082bab9d4379140d diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch new file mode 100644 index 000000000000..5ee05328e897 --- /dev/null +++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-gcc43.patch @@ -0,0 +1,11 @@ +--- src/sbitmap.h ++++ src/sbitmap.h +@@ -36,7 +36,7 @@ + void LoadImage(char* path); + void LoadSurface(SDL_Surface* surface); + +- void put(float x, float y, float rotate = 1.0f, float rotate = 1.0f, float layer = 0.0f); ++ void put(float x, float y, float sf = 1.0f, float rotate = 1.0f, float layer = 0.0f); + void putA(float x, float y, float layer = 0.0f, float alpha = 1.0f); + + inline float width() const diff --git a/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch new file mode 100644 index 000000000000..302c912efe18 --- /dev/null +++ b/games-arcade/sdlsasteroids/files/sdlsasteroids-3.0.1-ldflags.patch @@ -0,0 +1,11 @@ +--- src/Makefile.old 2010-09-22 08:44:57.000000000 +0200 ++++ src/Makefile 2010-09-22 08:45:43.000000000 +0200 +@@ -26,7 +26,7 @@ + + + $(SASTEROIDS): $(SASTEROIDS_O) +- g++ -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS) ++ g++ $(LDFLAGS) -Wall -o $(SASTEROIDS) $(SASTEROIDS_O) $(DEFINES) $(DEBUG) $(OPTS) $(CFLAGS) $(LIBS) + + + .cpp.o: diff --git a/games-arcade/sdlsasteroids/metadata.xml b/games-arcade/sdlsasteroids/metadata.xml new file mode 100644 index 000000000000..59b165d32928 --- /dev/null +++ b/games-arcade/sdlsasteroids/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">sdlsas</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild new file mode 100644 index 000000000000..206439f89ba3 --- /dev/null +++ b/games-arcade/sdlsasteroids/sdlsasteroids-3.0.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Rework of Sasteroids using SDL" +HOMEPAGE="http://sdlsas.sourceforge.net/" +SRC_URI="mirror://sourceforge/sdlsas/SDLSasteroids-${PV}.tar.gz" + +LICENSE="GPL-2 freedist" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="virtual/opengl + media-libs/sdl-mixer + media-libs/libsdl[sound,joystick,video] + media-libs/sdl-image[png] + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" +S=${WORKDIR}/SDLSasteroids-${PV} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-ldflags.patch + sed -i \ + -e 's/make /$(MAKE) /' \ + -e 's/--strip//' \ + Makefile || die + sed -i \ + -e '/^CC/d' \ + -e 's/g++/$(CXX)/' \ + -e 's/CC/CXX/' \ + -e 's/CFLAGS/CXXFLAGS/' \ + src/Makefile || die +} + +src_compile() { + emake \ + GAMEDIR="${GAMES_DATADIR}/${PN}" \ + OPTS="${CXXFLAGS}" +} + +src_install() { + dodir /usr/share/man/man6/ + emake \ + GAMEDIR="${D}/${GAMES_DATADIR}/${PN}" \ + BINDIR="${D}/${GAMES_BINDIR}" \ + MANDIR="${D}/usr/share/man/" \ + install + dodoc ChangeLog README README.xast TODO description + prepgamesdirs +} diff --git a/games-arcade/skystreets/Manifest b/games-arcade/skystreets/Manifest new file mode 100644 index 000000000000..cad8f4dfc4bc --- /dev/null +++ b/games-arcade/skystreets/Manifest @@ -0,0 +1 @@ +DIST skystreets-0.2.4.tar.bz2 1838860 SHA256 008a4a1947399902e7726d1f16d430b1029445477ac17eeb7755ee019570cb09 SHA512 b27ac359f3f4e187aa3fa6d576574301baee56a90a7502b10976924b7def95a65adac47940637b02467ad3902df981e33871cfb7f81e583f478b7319e6baafe6 WHIRLPOOL f035deef81658fc9aaa4587dbd44dc3772a3d7408876216ff0838436957aba5e7e3489fa8ad421800eb4c37ae46097a779e686b3b56090f2d9f5bf9940223abb diff --git a/games-arcade/skystreets/files/0.2.4-gl.patch b/games-arcade/skystreets/files/0.2.4-gl.patch new file mode 100644 index 000000000000..6ff5548a5fa3 --- /dev/null +++ b/games-arcade/skystreets/files/0.2.4-gl.patch @@ -0,0 +1,10 @@ +--- game.cpp.old 2004-12-31 01:02:13.351382184 +1100 ++++ game.cpp 2004-12-31 01:02:26.415396152 +1100 +@@ -8,6 +8,7 @@ + #include <windows.h> + #endif + ++#define GL_GLEXT_PROTOTYPES 1 + #include <GL/gl.h> + #include "SDL.h" + #include <string.h> diff --git a/games-arcade/skystreets/files/skystreets-0.2.4-as-needed.patch b/games-arcade/skystreets/files/skystreets-0.2.4-as-needed.patch new file mode 100644 index 000000000000..414cd3d61ce4 --- /dev/null +++ b/games-arcade/skystreets/files/skystreets-0.2.4-as-needed.patch @@ -0,0 +1,11 @@ +--- Makefile.in.old 2009-02-02 18:04:04.000000000 +0100 ++++ Makefile.in 2009-02-02 18:04:37.000000000 +0100 +@@ -78,7 +78,7 @@ + EXTRA_DIST = *.h CODE BUGS + INCLUDES = `sdl-config --cflags` -Wall -O2 -DDATAPATH=\"$(pkgdatadir)\" + #LDFLAGS = -lSDL_image -lm +-LDFLAGS = -lSDL_image -lGL -lGLU -lm ++LDADD = -lSDL_image -lGL -lGLU -lm + # LDFLAGS = `sdl-config --libs` -lSDL_image -lm + SUBDIRS = audio gfx levels + AUTOMAKE_OPTIONS = dist-bzip2 diff --git a/games-arcade/skystreets/metadata.xml b/games-arcade/skystreets/metadata.xml new file mode 100644 index 000000000000..9203495e4844 --- /dev/null +++ b/games-arcade/skystreets/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="freecode">skystreets</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/skystreets/skystreets-0.2.4.ebuild b/games-arcade/skystreets/skystreets-0.2.4.ebuild new file mode 100644 index 000000000000..16cc04ca2fa0 --- /dev/null +++ b/games-arcade/skystreets/skystreets-0.2.4.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A remake of the old DOS game Skyroads" +HOMEPAGE="http://freecode.com/projects/skystreets" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +LICENSE="OSL-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 ppc x86" +IUSE="" + +DEPEND="virtual/opengl + virtual/glu + media-libs/libsdl[opengl,video] + media-libs/sdl-image" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}"/${PV}-gl.patch \ + "${FILESDIR}"/${P}-as-needed.patch +} + +src_install() { + default + newicon gfx/sunscene.png ${PN}.png + make_desktop_entry ${PN} SkyStreets + prepgamesdirs +} diff --git a/games-arcade/slimevolley/Manifest b/games-arcade/slimevolley/Manifest new file mode 100644 index 000000000000..fd2054561496 --- /dev/null +++ b/games-arcade/slimevolley/Manifest @@ -0,0 +1 @@ +DIST slimevolley_2.4.2.tar.bz2 2402839 SHA256 be8f461c6f1188ba709b1fbcbe64edffca4b8eb358bd2ed8825f8ebf30e660d3 SHA512 7a72329d9e22396f2e304d40370896b2c1a0ae22d5bf1769a46cad8fb1131b1ae9c16de0e5f847b8a31004df074cdeb710a28bfd1e1d94beceb1c8eb0a750680 WHIRLPOOL 7fc3c0dbc6b26bb330c97355d1bdf6d26c33b1d284104bddb5d520c7c1bc67a8c6f83a7c5770f7017017e02b1c2cc8f23fbb14e0608f0b5685d2fc480f09a3a2 diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch b/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch new file mode 100644 index 000000000000..a1ab7616a645 --- /dev/null +++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-nodatalocal.patch @@ -0,0 +1,23 @@ +diff -ru slimevolley-2.4.1.orig/src/themes_std.c slimevolley-2.4.1/src/themes_std.c +--- slimevolley-2.4.1.orig/src/themes_std.c 2008-11-30 04:36:52.000000000 -0500 ++++ slimevolley-2.4.1/src/themes_std.c 2010-05-05 13:00:23.875723904 -0400 +@@ -30,7 +30,6 @@ + #include "audio.h" + #include "themes.h" + +-#define DATA_LOCAL "data" + #define DOSS_THEMES "themes" + #define DOSS_SLIMES "slimes" + #define SLIME_D_NOM "slimeJD%d.png" +@@ -74,10 +73,7 @@ + chemin[0] = '\0'; + + if(var_env == NULL) { +- if(access(DATA_LOCAL, R_OK | X_OK) == 0) { +- strncpy(chemin, DATA_LOCAL, sizeof(chemin) - 1); +- +- } else if(access(DATA_DIR, R_OK | X_OK) == 0) { ++ if(access(DATA_DIR, R_OK | X_OK) == 0) { + strncpy(chemin, DATA_DIR, sizeof(chemin) - 1); + } + diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch new file mode 100644 index 000000000000..7ca362c7bc63 --- /dev/null +++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch @@ -0,0 +1,10 @@ +--- CMakeLists.txt.old 2011-06-20 20:42:26.545500925 +0200 ++++ CMakeLists.txt 2011-06-20 20:42:34.407999223 +0200 +@@ -42,6 +42,7 @@ + ${SDL_LIBRARY} + ${SDLTTF_LIBRARY} + ${SDLIMAGE_LIBRARY} ++ m + ) + + INCLUDE(FindGettext.cmake) diff --git a/games-arcade/slimevolley/metadata.xml b/games-arcade/slimevolley/metadata.xml new file mode 100644 index 000000000000..4f008a8be0cf --- /dev/null +++ b/games-arcade/slimevolley/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<use> +<flag name="net">Enable network support</flag> +</use> +</pkgmetadata> diff --git a/games-arcade/slimevolley/slimevolley-2.4.2.ebuild b/games-arcade/slimevolley/slimevolley-2.4.2.ebuild new file mode 100644 index 000000000000..872a54eb33b1 --- /dev/null +++ b/games-arcade/slimevolley/slimevolley-2.4.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit cmake-utils eutils games + +DESCRIPTION="A simple volleyball game" +HOMEPAGE="http://slime.tuxfamily.org/index.php" +SRC_URI="http://downloads.tuxfamily.org/slime/v242/${PN}_${PV}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="net" + +RDEPEND="media-libs/libsdl[X,sound,video] + media-libs/sdl-ttf + media-libs/sdl-image[png] + net? ( media-libs/sdl-net ) + virtual/libintl" +DEPEND="${RDEPEND} + sys-devel/gettext" + +DOCS="docs/README docs/TODO" + +PATCHES=( "${FILESDIR}"/${P}-nodatalocal.patch + "${FILESDIR}"/${P}-underlink.patch ) + +S=${WORKDIR}/${PN} + +src_configure() { + mycmakeargs=( + "-DCMAKE_VERBOSE_MAKEFILE=TRUE" + "-DBIN_DIR=${GAMES_BINDIR}" + $(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1") + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} diff --git a/games-arcade/smc/Manifest b/games-arcade/smc/Manifest new file mode 100644 index 000000000000..285b6d33aa25 --- /dev/null +++ b/games-arcade/smc/Manifest @@ -0,0 +1,2 @@ +DIST SMC_Music_4.1_high.zip 36605212 SHA256 0ab0e232bbdcde5c5e2391518593c5b3b2d152481946dd29d2ba7f6e22d83034 SHA512 e82e514fd2bcb0dad8973f91a40d13445498a8a0af237c83739da6b9f85d6829d9a68739677842519484cdb45e969d221cd9bb53042d0cf1981e2e5765a0da08 WHIRLPOOL c355b3440ba991f45dbda93f485282a665d8262aee00cca901807356d8cebab1deb64f6e7f79a603f8b70386a9bfa50ed41db8c9d49d995a1526db92b7c8b75a +DIST smc-1.9.tar.bz2 49568474 SHA256 b4194e70d3f1de3da884dd1a11e4f5cec25a205f66a3b85cc9fc1c86289b237d SHA512 f7fdb3dd48e2c4503158e5237911906d1de23b9c8ac0f494affa6e79eb57620c61cc757e4ba6e83fdd556fc5ee061b42be0b27055deb96e9d6e5b3ea8199124e WHIRLPOOL 9bf6ea2a7db552200e57b10968ffa13ae524b91c868fc3c5d45f7ab2ee7c547563b5f337f536183538369bde86530b272befb1601b551739b62acc71305fc697 diff --git a/games-arcade/smc/files/smc-1.9-boost150.patch b/games-arcade/smc/files/smc-1.9-boost150.patch new file mode 100644 index 000000000000..42d7ce2bc66c --- /dev/null +++ b/games-arcade/smc/files/smc-1.9-boost150.patch @@ -0,0 +1,101 @@ +--- src/overworld/world_manager.cpp.old 2012-11-14 17:05:19.759087973 +0100 ++++ src/overworld/world_manager.cpp 2012-11-14 17:06:55.365644219 +0100 +@@ -111,14 +111,14 @@ + void cOverworld_Manager :: Load_Dir( const std::string &dir, bool user_dir /* = 0 */ )
+ {
+ // set world directory
+- fs::path full_path( dir, fs::native );
++ fs::path full_path( dir );
+ fs::directory_iterator end_iter;
+
+ for( fs::directory_iterator dir_itr( full_path ); dir_itr != end_iter; ++dir_itr )
+ {
+ try
+ {
+- std::string current_dir = dir_itr->path().leaf();
++ std::string current_dir = dir_itr->path().filename().string();
+
+ // only directories with an existing description
+ if( fs::is_directory( *dir_itr ) && File_Exists( dir + "/" + current_dir + "/description.xml" ) )
+--- src/video/video.cpp.old 2012-11-14 17:10:26.448625365 +0100 ++++ src/video/video.cpp 2012-11-14 17:11:37.486580531 +0100 +@@ -749,7 +749,7 @@ + {
+ try
+ {
+- fs::remove_all( fs::path( m_imgcache_dir, fs::native ) );
++ fs::remove_all( fs::path( m_imgcache_dir ) );
+ }
+ // could happen if a file is locked or we have no write rights
+ catch( const std::exception &ex )
+@@ -771,7 +771,7 @@ + // no cache available
+ if( !Dir_Exists( imgcache_dir_active ) )
+ {
+- fs::create_directories( fs::path( imgcache_dir_active + "/" GAME_PIXMAPS_DIR, fs::native ) );
++ fs::create_directories( fs::path( imgcache_dir_active + "/" GAME_PIXMAPS_DIR ) );
+ }
+ // cache available
+ else
+--- src/core/filesystem/filesystem.cpp.old 2012-11-14 09:00:41.965617165 +0100 ++++ src/core/filesystem/filesystem.cpp 2012-11-14 16:57:11.282043980 +0100 +@@ -64,7 +64,7 @@ + + bool Dir_Exists( const std::string &dir ) + { +- return fs::exists( fs::path( dir, fs::native ) ); ++ return fs::exists( fs::path( dir ) ); + + /*struct stat file_info; + +@@ -89,7 +89,7 @@ + + bool Create_Directory( const std::string &dir ) + { +- return fs::create_directory( fs::path( dir, fs::native ) ); ++ return fs::create_directory( fs::path( dir ) ); + } + + size_t Get_File_Size( const std::string &filename ) +@@ -130,7 +130,7 @@ + { + vector<std::string> valid_files; + +- fs::path full_path( dir, fs::native ); ++ fs::path full_path( dir ); + fs::directory_iterator end_iter; + + // load all available objects +@@ -142,27 +142,27 @@ + if( fs::is_directory( *dir_itr ) ) + { + // ignore hidden directories +- if( dir_itr->path().leaf().find( "." ) == 0 ) ++ if( dir_itr->path().filename().string().find( "." ) == 0 ) + { + continue; + } + + if( with_directories ) + { +- valid_files.push_back( dir + "/" + dir_itr->path().leaf() ); ++ valid_files.push_back( dir + "/" + dir_itr->path().filename().string() ); + } + + // load all items from the sub-directory + if( search_in_sub_directories ) + { +- vector<std::string> new_valid_files = Get_Directory_Files( dir + "/" + dir_itr->path().leaf(), file_type, with_directories ); ++ vector<std::string> new_valid_files = Get_Directory_Files( dir + "/" + dir_itr->path().filename().string(), file_type, with_directories ); + valid_files.insert( valid_files.end(), new_valid_files.begin(), new_valid_files.end() ); + } + } + // valid file +- else if( file_type.empty() || dir_itr->path().leaf().rfind( file_type ) != std::string::npos ) ++ else if( file_type.empty() || dir_itr->path().filename().string().rfind( file_type ) != std::string::npos ) + { +- valid_files.push_back( dir + "/" + dir_itr->path().leaf() ); ++ valid_files.push_back( dir + "/" + dir_itr->path().filename().string() ); + } + } + catch( const std::exception &ex ) diff --git a/games-arcade/smc/files/smc-1.9-underlink.patch b/games-arcade/smc/files/smc-1.9-underlink.patch new file mode 100644 index 000000000000..6e076027c472 --- /dev/null +++ b/games-arcade/smc/files/smc-1.9-underlink.patch @@ -0,0 +1,25 @@ +diff -burN smc-1.9.orig/configure.ac smc-1.9/configure.ac +--- smc-1.9.orig/configure.ac 2013-10-23 19:11:08.635054067 +0200 ++++ smc-1.9/configure.ac 2013-10-23 19:42:29.820272295 +0200 +@@ -12,6 +12,10 @@ + ### Check for libraries ### + + # Check for the Boost Filesystem library ++AC_CHECK_LIB(boost_system, main, , ++ AC_MSG_ERROR([Unable to find Boost System library])) ++ ++# Check for the Boost Filesystem library + AC_CHECK_LIB(boost_filesystem, main, , + AC_MSG_ERROR([Unable to find Boost Filesystem library])) + +@@ -36,6 +40,10 @@ + CPPFLAGS="$CPPFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + ++# Check for the X11 library ++AC_CHECK_LIB(X11, XOpenDisplay, , ++ AC_MSG_ERROR([X11 library not found])) ++ + # Check for the libpng library + AC_CHECK_LIB(png, png_init_io, , + AC_MSG_ERROR([libpng library not found])) diff --git a/games-arcade/smc/metadata.xml b/games-arcade/smc/metadata.xml new file mode 100644 index 000000000000..040ec537b325 --- /dev/null +++ b/games-arcade/smc/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <use> + <flag name="music">Download and install the music files</flag> + </use> + <upstream> + <remote-id type="sourceforge">smclone</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/smc/smc-1.9.ebuild b/games-arcade/smc/smc-1.9.ebuild new file mode 100644 index 000000000000..342f99055a8d --- /dev/null +++ b/games-arcade/smc/smc-1.9.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 +inherit autotools eutils flag-o-matic games + +MUSIC_P=SMC_Music_4.1_high +DESCRIPTION="Secret Maryo Chronicles" +HOMEPAGE="http://www.secretmaryo.org/" +SRC_URI="mirror://sourceforge/smclone/${P}.tar.bz2 + music? ( mirror://sourceforge/smclone/${MUSIC_P}.zip )" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="music" + +RDEPEND="<dev-games/cegui-0.7[opengl,devil] + dev-libs/boost + virtual/opengl + virtual/glu + x11-libs/libX11 + dev-libs/libpcre[unicode] + media-libs/libpng + media-libs/libsdl[X,joystick,opengl] + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf" +DEPEND="${RDEPEND} + virtual/pkgconfig + music? ( app-arch/unzip )" + +src_unpack() { + unpack ${P}.tar.bz2 + cd "${S}" + use music && unpack ${MUSIC_P}.zip +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-boost150.patch \ + "${FILESDIR}"/${P}-underlink.patch + eautoreconf +} + +src_install() { + default + newicon data/icon/window_32.png smc.png + make_desktop_entry ${PN} "Secret Maryo Chronicles" + doman makefiles/unix/man/smc.6 + dodoc docs/*.txt + dohtml docs/{*.css,*.html} + prepgamesdirs +} diff --git a/games-arcade/snake3d/Manifest b/games-arcade/snake3d/Manifest new file mode 100644 index 000000000000..28c8ebb9459e --- /dev/null +++ b/games-arcade/snake3d/Manifest @@ -0,0 +1 @@ +DIST snake3d-0.9.tar.gz 62900 SHA256 38f7a8020044f331da2b718df5ec65d9cca95eaa1866acce3ea8772ac27ec16b SHA512 2bc2d3e68fd782d58c5f702727a8a72fb67096e7ff78e1e00f3a79767bad627fe3a2ceec05a621e8d5b4b3ba009a01814c93b7d21f180512b13411bf61ac1065 WHIRLPOOL 4fb6d6d0632cfa3bc869618f616f687a5dcdc9f92f4bf03b0e73af100f32d7edee331660a88ec52679c3974cfdfc2f4974b49b0df6a050fb9d6c541ab037fe93 diff --git a/games-arcade/snake3d/files/snake3d-0.9-amd64.patch b/games-arcade/snake3d/files/snake3d-0.9-amd64.patch new file mode 100644 index 000000000000..d2b5f2c79acd --- /dev/null +++ b/games-arcade/snake3d/files/snake3d-0.9-amd64.patch @@ -0,0 +1,37 @@ +--- src/functions.cpp.old 2007-03-31 11:04:10.000000000 +0200 ++++ src/functions.cpp 2007-03-31 11:11:52.000000000 +0200 +@@ -107,8 +107,8 @@ + pointer = end; + } + +- memcpy(str, i, (int)pointer - (int)i); +- str[(int)pointer - (int)i] = 0; ++ memcpy(str, i, ssize_t(pointer - i)); ++ str[pointer - i] = 0; + + drawString(x, y, str); + +@@ -501,15 +501,21 @@ + + Uint32 timer(Uint32 interval, void* value) { + ++ union { ++ void *value; ++ int p_mode; ++ } p_modeConv; ++ p_modeConv.value = value; ++ + //if ((int)value != gameModeValue) +- if ((int)value != p_mode) ++ if (p_modeConv.p_mode != p_mode) + return 0; + + SDL_Event event; + SDL_UserEvent userevent; + + userevent.type = SDL_USEREVENT; +- userevent.code = (int)value; ++ userevent.code = p_modeConv.p_mode; + userevent.data1 = NULL; + userevent.data2 = NULL; + diff --git a/games-arcade/snake3d/files/snake3d-0.9-build.patch b/games-arcade/snake3d/files/snake3d-0.9-build.patch new file mode 100644 index 000000000000..f7d8c4404df4 --- /dev/null +++ b/games-arcade/snake3d/files/snake3d-0.9-build.patch @@ -0,0 +1,24 @@ +--- src/Makefile ++++ src/Makefile +@@ -1,10 +1,10 @@ + OBJ = board.o snake.o game.o menu.o snake3d.o global.o consts.o cube.o functions.o preferences.o rooms2.o network.o userInput.o server.o packets.o client.o classic2d.o +-CXXFLAGS = -g -Wall -I/usr/X11R6/include/ `sdl-config --cflags` ++CXXFLAGS += -Wall $(shell sdl-config --cflags) + CXX = g++ + CC = g++ + #LDFLAGSMAC = -framework GLUT -framework OpenGL -framework Cocoa -bind_at_load -L/sw/lib/ -lSDL -lSDLmain + LDFLAGSMAC = `sdl-config --libs` -framework GLUT -framework OpenGL -lSDL_net +-LDFLAGS = -L/usr/X11R6/lib/ -lGL -lglut -lGLU -lSDL -lSDL_net ++LIBS = -lGL -lglut -lGLU $(shell sdl-config --libs) -lSDL_net + + all: snake3d + +@@ -18,7 +18,7 @@ + g++ $(LDFLAGSMAC) $(OBJ) -o ../snake3d + + snake3d.linux: $(OBJ) +- g++ $(LDFLAGS) $(OBJ) -o ../snake3d ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o ../snake3d + + + clean: diff --git a/games-arcade/snake3d/metadata.xml b/games-arcade/snake3d/metadata.xml new file mode 100644 index 000000000000..41a8199548e9 --- /dev/null +++ b/games-arcade/snake3d/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +snake3d is a variant of the snake game. You are a snake in a 3d world trying to +eat as many icosahedrons as possible, which makes your tail longer. There are +other snakes (network players) in the world which will try to fail you. +</longdescription> + <upstream> + <remote-id type="sourceforge">worms3d</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/snake3d/snake3d-0.9.ebuild b/games-arcade/snake3d/snake3d-0.9.ebuild new file mode 100644 index 000000000000..6ac93aa8bb98 --- /dev/null +++ b/games-arcade/snake3d/snake3d-0.9.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="variant of the snake game" +HOMEPAGE="http://sourceforge.net/projects/worms3d/" +SRC_URI="mirror://sourceforge/worms3d/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/sdl-net + virtual/opengl + media-libs/freeglut + virtual/glu + media-libs/libsdl" +RDEPEND="${DEPEND}" +S=${WORKDIR}/${PN} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-amd64.patch \ + "${FILESDIR}"/${P}-build.patch +} + +src_compile() { + emake CXX=$(tc-getCXX) -C src snake3d.linux +} + +src_install() { + dogamesbin ${PN} + dodoc ChangeLog README TODO + prepgamesdirs +} diff --git a/games-arcade/solarwolf/Manifest b/games-arcade/solarwolf/Manifest new file mode 100644 index 000000000000..fbbc94d703d3 --- /dev/null +++ b/games-arcade/solarwolf/Manifest @@ -0,0 +1 @@ +DIST solarwolf-1.5.tar.gz 2045888 SHA256 bd261c17e9aad6ab18925d74bbdeaf8e57d24e707c96f7073386561d8ebd219f SHA512 44d84976f7797e3b859f1e5e50f9f964e5c6d6d4437ad25cf04720035e8697cc0c86490fdbbf8d923320a5c15c6e3afd1fbcfb9f17e7e31ce6f7264004e991f2 WHIRLPOOL acd9ce878c121a2f138023b9903c3a7d480c471bb6830dca547d3685f26b173d668c51805298549d9e99b6e7dbfc9eda429f256d077e0aa6f690f875892f31af diff --git a/games-arcade/solarwolf/metadata.xml b/games-arcade/solarwolf/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/solarwolf/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/solarwolf/solarwolf-1.5.ebuild b/games-arcade/solarwolf/solarwolf-1.5.ebuild new file mode 100644 index 000000000000..9b44ade89743 --- /dev/null +++ b/games-arcade/solarwolf/solarwolf-1.5.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="action/arcade recreation of SolarFox" +HOMEPAGE="http://www.pygame.org/shredwheat/solarwolf/" +SRC_URI="http://www.pygame.org/shredwheat/solarwolf/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 hppa ppc ~sparc x86" +IUSE="" + +RDEPEND=">=dev-python/pygame-1.5.6 + media-libs/sdl-mixer[mod,vorbis]" + +src_prepare() { + find . -name .xvpics -print0 | xargs -0 rm -fr +} + +src_install() { + insinto "$(games_get_libdir)"/${PN} + doins -r code data *py + games_make_wrapper ${PN} "python2 ./solarwolf.py" "$(games_get_libdir)"/${PN} + doicon dist/${PN}.png + make_desktop_entry ${PN} SolarWolf + dodoc readme.txt + doman dist/${PN}.6.gz + prepgamesdirs +} diff --git a/games-arcade/spacerider/Manifest b/games-arcade/spacerider/Manifest new file mode 100644 index 000000000000..6293196accaf --- /dev/null +++ b/games-arcade/spacerider/Manifest @@ -0,0 +1 @@ +DIST spacerider-0.13.tar.bz2 283861 SHA256 9314945b7004a64e7f511b7318af3aef5d1ab680577ba97399a8a11ab022678e SHA512 4f8d506abfe242039247d5c4e43c012ded14f3b18de710aea0c9c6d933cb60fde3116008723d44acadd490b3666e107506fad6ee027d2b31c47d118185e0c03e WHIRLPOOL f75ca582565289896ef6e8c0036d0570e03263370fd290ac472aab969c0c9125fb3e1f5f25a9f4266f32e77f4a9b0852d7ac7dd902100624d44c098a0899b6c2 diff --git a/games-arcade/spacerider/files/spacerider-0.13-font.patch b/games-arcade/spacerider/files/spacerider-0.13-font.patch new file mode 100644 index 000000000000..914a0466c7fe --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-font.patch @@ -0,0 +1,14 @@ +Ugly brute-force method for avoiding a double-free segfault on exit. +Better patch welcome. + +--- spacerider.cpp.orig 2015-03-31 23:24:17.770966147 -0400 ++++ spacerider.cpp 2015-03-31 23:24:41.592174463 -0400 +@@ -306,8 +306,6 @@ + /* free screen */ + SDL_FreeSurface(screen); + } +- /* call the TTF-Library cleanup function */ +- TTF_Quit(); + + /* call the NET-Library cleanup function */ + SDLNet_Quit(); diff --git a/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch b/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch new file mode 100644 index 000000000000..1a08d715ac5b --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gcc41.patch @@ -0,0 +1,10 @@ +--- spacerider.cpp.old 2007-02-18 11:25:38.000000000 +0100 ++++ spacerider.cpp 2007-02-18 11:27:00.000000000 +0100 +@@ -17,6 +17,7 @@ + #include <unistd.h> + } + ++int send_score_thread(void *param); + + Spacerider::Spacerider(const int argc, char *argv[]) : fullscreen(FULLSCREEN), game_over(false), online_highscore(ONLINE_HIGHSCORE), score_sent(false), name_input(true), highscore_thread_started(false), scroll(0), last_enemy(0), score(0), lives(LIVES), fps(FPS) + { diff --git a/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch b/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch new file mode 100644 index 000000000000..d057e7bab730 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gcc49.patch @@ -0,0 +1,22 @@ +--- effect.cpp.orig 2015-03-31 22:36:53.336131373 -0400 ++++ effect.cpp 2015-03-31 22:37:04.359755281 -0400 +@@ -18,7 +18,7 @@ + void Effect::add(const int x, const int y) + { + object_struct *effect; +- if((effect = add_object(x, y)) == NULL) ++ if((effect = add_object(x, y, 0, 0)) == NULL) + { + return; + } +--- object.h.orig 2015-03-31 22:35:22.939214561 -0400 ++++ object.h 2015-03-31 22:37:19.654233441 -0400 +@@ -172,7 +172,7 @@ + return object->next; + } + +-template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx = 0, const int speedy = 0) ++template <class T>struct Object<T>::object_struct *Object<T>::add_object(const int x, const int y, const int speedx, const int speedy) + { + object_struct *object; + diff --git a/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch b/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch new file mode 100644 index 000000000000..d692f87632b0 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-gentoo.patch @@ -0,0 +1,27 @@ +--- Makefile ++++ Makefile +@@ -3,12 +3,12 @@ + BINDIR=/usr/bin/ + MANDIR=/usr/share/man/man1/ + DATADIR=/usr/share/games/spacerider/ +-CXX=g++ ++CXX?=g++ + CP=cp + MKDIR=mkdir -p + INSTALL=install + RM=rm -f +-CXXFLAGS=-Wall -fomit-frame-pointer -O3 `sdl-config --cflags` ++CXXFLAGS+=$(shell sdl-config --cflags) + OBJS=main.o globals.o spacerider.o music.o sprite.o enemy.o effect.o visible.o box.o features.o font.o image.o bullet.o + OUTPUT=spacerider + LIBS=`sdl-config --libs` -lSDL_image -lSDL_ttf -lSDL_mixer -lSDL_net -lSDL_gfx +@@ -22,8 +22,7 @@ + + + $(OUTPUT): $(OBJS) +- $(CXX) $(CXXFLAGS) -o $(OUTPUT) $(OBJS) $(LIBS) +- strip $(OUTPUT) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(OUTPUT) $(OBJS) $(LIBS) + + %.o: %.cpp + $(CXX) $(CXXFLAGS) -c $< diff --git a/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch new file mode 100644 index 000000000000..5ed73c348cf2 --- /dev/null +++ b/games-arcade/spacerider/files/spacerider-0.13-ovflfix.patch @@ -0,0 +1,11 @@ +--- spacerider.cpp.old 2010-10-29 10:12:19.000000000 +0200 ++++ spacerider.cpp 2010-10-29 10:13:47.000000000 +0200 +@@ -112,7 +112,7 @@ + break; + case 'n': + /* specify a name for the online-highscore */ +- strncpy(name, optarg, 128); ++ strncpy(name, optarg, sizeof (name)); + online_highscore = true; + break; + case 't': diff --git a/games-arcade/spacerider/metadata.xml b/games-arcade/spacerider/metadata.xml new file mode 100644 index 000000000000..84cc44534ddb --- /dev/null +++ b/games-arcade/spacerider/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +spacerider is a space-shooter written in C++, using the SDL. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/spacerider/spacerider-0.13.ebuild b/games-arcade/spacerider/spacerider-0.13.ebuild new file mode 100644 index 000000000000..92286547735f --- /dev/null +++ b/games-arcade/spacerider/spacerider-0.13.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="space-shooter written in C++, using the SDL" +HOMEPAGE="http://www.hackl.dhs.org/spacerider/" +SRC_URI="mirror://gentoo/${P}.tar.bz2" # stupid php script + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-gfx + media-libs/sdl-mixer + media-libs/sdl-image[jpeg] + media-libs/sdl-net + media-libs/sdl-ttf" +RDEPEND=${DEPEND} + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch \ + "${FILESDIR}/${P}"-gcc41.patch \ + "${FILESDIR}"/${P}-ovflfix.patch \ + "${FILESDIR}"/${P}-gcc49.patch \ + "${FILESDIR}"/${P}-font.patch + sed -i \ + -e "s:/usr/share/games/spacerider:${GAMES_DATADIR}/${PN}:" \ + globals.cpp || die +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins -r data + dodoc AUTHORS + newman ${PN}.{1,6} + prepgamesdirs +} diff --git a/games-arcade/spout/Manifest b/games-arcade/spout/Manifest new file mode 100644 index 000000000000..be33c8a9ff39 --- /dev/null +++ b/games-arcade/spout/Manifest @@ -0,0 +1 @@ +DIST spout-unix-1.3.tar.bz2 92144 SHA256 9b113230c6b6e8cc8148139a65ceef5bb43d27cbe66cf2139c5b13d33251c7bc SHA512 46ed12a617a4084e8a5d1da56799fe7784ed288a254385b109ced6138ce904e658a44af445c1577112a3701a0b108fc886e3d06df41743b0d82b028eb8a846d6 WHIRLPOOL 849758e71418c1dd3ea2a1450fea2b484f343c1a8d1f819fc181fe1fb7a0d571e785f61aa48734b53d817c8a1989740e1df82bfbdaa73fd590649c8753e6bea6 diff --git a/games-arcade/spout/metadata.xml b/games-arcade/spout/metadata.xml new file mode 100644 index 000000000000..4f84a5e80d56 --- /dev/null +++ b/games-arcade/spout/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="freshmeat">spout</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/spout/spout-1.3.ebuild b/games-arcade/spout/spout-1.3.ebuild new file mode 100644 index 000000000000..051c3f4ed7b8 --- /dev/null +++ b/games-arcade/spout/spout-1.3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +MY_P="spout-unix-${PV}" +DESCRIPTION="Abstract Japanese caveflier / shooter" +HOMEPAGE="http://freshmeat.net/projects/spout/" +SRC_URI="http://rohanpm.net/files/old/${MY_P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.2.6" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_install() { + dogamesbin spout + doicon spout.png + make_desktop_entry spout "Spout" + dodoc README + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + echo + elog "To play in fullscreen mode, do 'spout f'." + elog "To play in a greater resolution, do 'spout x', where" + elog "x is an integer; the larger x is, the higher the resolution." + echo + elog "To play:" + elog "Accelerate - spacebar, enter, z, x" + elog "Pause - escape" + elog "Exit - shift+escape" + elog "Rotate - left or right" + echo +} diff --git a/games-arcade/stardork/Manifest b/games-arcade/stardork/Manifest new file mode 100644 index 000000000000..8d83303670ad --- /dev/null +++ b/games-arcade/stardork/Manifest @@ -0,0 +1 @@ +DIST stardork-0.7.tar.gz 3951 SHA256 4ff31291bd091a6d61b5b34c01ed12bb6d21b5496397fd6ca30c0763565a31f5 SHA512 3726b55cc2f107a0d69580b3c30406ea2596769433db915d4b3bded4345611c9d67596cbf373b19671960909d0bfdfc997d5c41d677f0309317445aeadcae733 WHIRLPOOL 39befc48cc07987c63b21f22aa5cbbdd5633c68c348a884f86b5822889060adeefb04246b5354553b57a2b1c9062ada4f0ee796a0c6aeeed0192b4e82cbec645 diff --git a/games-arcade/stardork/metadata.xml b/games-arcade/stardork/metadata.xml new file mode 100644 index 000000000000..53bc8d9c3aa4 --- /dev/null +++ b/games-arcade/stardork/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">stardork</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/stardork/stardork-0.7.ebuild b/games-arcade/stardork/stardork-0.7.ebuild new file mode 100644 index 000000000000..989a1fedab8b --- /dev/null +++ b/games-arcade/stardork/stardork-0.7.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit toolchain-funcs games + +DESCRIPTION="An ncurses-based space shooter" +HOMEPAGE="http://stardork.sourceforge.net/" +SRC_URI="mirror://sourceforge/stardork/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 x86" +IUSE="" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + rm -f Makefile +} + +src_compile() { + emake CC="$(tc-getCC)" LDLIBS="$(pkg-config ncurses --libs)" ${PN} +} + +src_install() { + dogamesbin ${PN} + dodoc README + prepgamesdirs +} diff --git a/games-arcade/supertransball2/Manifest b/games-arcade/supertransball2/Manifest new file mode 100644 index 000000000000..3ad7f70179ab --- /dev/null +++ b/games-arcade/supertransball2/Manifest @@ -0,0 +1,2 @@ +DIST stransball2-v15-linux.zip 302212 SHA256 2552a18b4b59c1d39d7a1312e7efbebf5ac89bddc30f5e188693e841516276bc SHA512 e87655dfca039c0c8553372b4da139f1d8fa420aad1909b422318dc049a9f7972c8d2398b83fde677b3eaf21d2d70fad73d7ec0c4b7bcbeacbf3544e6e575f6a WHIRLPOOL 69ba28ed603c4e2b6388766a1fac7913db6e265e7ae11803382b7f35d68113f852404bd61ab21dea13a6badab5d06ee6d131ff5b4e47c44f39a97f8cc50772f3 +DIST supertransball2_1.5-3.diff.gz 6592 SHA256 3c6cd528d29efee5d94d1ae8a322b086732b5348bcf01d1d6b6a84244ebc8fc8 SHA512 d8f0682633d8b20661a98d037430590c0f509205857644b28a7b56fc80011df8cd5dbbacf1142514b18dd471e6f79e515d981c025cb19a2288cd7bf46c0d1ba4 WHIRLPOOL c7ce46079528fc9ed379159a3f459c5feb109bf8bebf2bc34c1e2acedc8b6e12f9cc28051ba5c66b3c8b62f910c4646c96ee8bb87536a410ae167b03ed88e6ee diff --git a/games-arcade/supertransball2/files/supertransball2-1.5-ldflags.patch b/games-arcade/supertransball2/files/supertransball2-1.5-ldflags.patch new file mode 100644 index 000000000000..daee9f6b17fd --- /dev/null +++ b/games-arcade/supertransball2/files/supertransball2-1.5-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-10-16 21:34:09.000000000 +0200 ++++ Makefile 2010-10-16 21:34:24.000000000 +0200 +@@ -17,7 +17,7 @@ + + # dynamically linked binary: + $(TARGET): $(OBJS) +- $(CXX) $^ -o $@ `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_sound -lSGE ++ $(CXX) $(LDFLAGS) $^ -o $@ `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_sound -lSDL_sound -lSGE + mv ./$(TARGET) .. + + clean: diff --git a/games-arcade/supertransball2/metadata.xml b/games-arcade/supertransball2/metadata.xml new file mode 100644 index 000000000000..5b15491578f4 --- /dev/null +++ b/games-arcade/supertransball2/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +"Super Transbal 2" is the sequel of "Transball" and "Transball 2", Inspired in +THRUST type of games (and concretely in ZARA THRUSTA for the Amiga 500). In each +level of Transball, the goal is to find the SPHERE, capture it and carry it to +the upper part of the level. The main obstacle is the gravity, that impulses you +towards the ground. But many other obstacles, canons, tanks, doors, etc. will +try to make difficult your journey... +</longdescription> +</pkgmetadata> diff --git a/games-arcade/supertransball2/supertransball2-1.5.ebuild b/games-arcade/supertransball2/supertransball2-1.5.ebuild new file mode 100644 index 000000000000..5eba7aa708d7 --- /dev/null +++ b/games-arcade/supertransball2/supertransball2-1.5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils versionator games + +MY_PV=$(delete_all_version_separators) +MY_P=stransball2-v${MY_PV} +FILE=${MY_P}-linux +DEBIAN_PATCH="${PN}_${PV}-3.diff" + +DESCRIPTION="Thrust clone" +HOMEPAGE="http://www.braingames.getput.com/stransball2/" +SRC_URI="http://braingames.bugreport.nl/stransball2/${FILE}.zip + mirror://debian/pool/main/s/${PN}/${DEBIAN_PATCH}.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-sound + media-libs/sge" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR}/${P}/sources + +src_unpack() { + unpack ${A} + mv -f "${FILE}" ${P} +} + +src_prepare() { + cd "${WORKDIR}" + sed -i \ + -e "s:/usr/share/games:${GAMES_DATADIR}:" \ + "${DEBIAN_PATCH}" || die + + epatch "${DEBIAN_PATCH}" + + local deb_dir=${P}/debian/patches + rm -f "${deb_dir}"/00list + epatch "${deb_dir}"/* + + cd "${S}" + sed -i \ + -e "s: -I/usr/local/include/SDL::" \ + -e "s:-g3 -O3:\$(CXXFLAGS):" \ + -e "s:c++:\$(CXX):" \ + Makefile || die "sed Makefile failed" + epatch "${FILESDIR}"/${P}-ldflags.patch +} + +src_install() { + cd .. + dogamesbin ${PN} + make_desktop_entry ${PN} "Super Transball 2" + dodoc readme.txt + doman debian/supertransball2.6 + + insinto "${GAMES_DATADIR}/${PN}" + doins -r demos graphics maps sound + + prepgamesdirs +} diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest new file mode 100644 index 000000000000..f487be04d720 --- /dev/null +++ b/games-arcade/supertux/Manifest @@ -0,0 +1 @@ +DIST supertux-0.1.3.tar.bz2 6715265 SHA256 0092588351776626955339caaa62d12ce5954bb80c5f6952f60a122f53c2ad97 SHA512 75848583f9f9b9d0f36fec77812501875420fde8befe1ff9ac4ea7613f4d9464b2eb460c2ed89b4dc31e697fbb449a5431c72675e2820d13f5c42653dc07ad98 WHIRLPOOL bb8998845bee7f33a7aff94109d9767d000c89df6c670a1ccb85c4e9158a8ce6c4064f89587b9ea40d9ba1a854b9f5bba82ccc7dcac6dedcdb337cfaa1777898 diff --git a/games-arcade/supertux/files/supertux-0.1.3-desktop.patch b/games-arcade/supertux/files/supertux-0.1.3-desktop.patch new file mode 100644 index 000000000000..440881dc25f8 --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.1.3-desktop.patch @@ -0,0 +1,21 @@ +--- supertux.desktop.orig 2010-11-07 23:29:26.058571005 -0500 ++++ supertux.desktop 2010-11-07 23:30:09.457350053 -0500 +@@ -1,7 +1,6 @@ + [Desktop Entry] + Type=Application + Version=1.0 +-Encoding=UTF-8 + Name=SuperTux + Name[en]=SuperTux + Name[de]=SuperTux +@@ -14,8 +13,8 @@ + Comment[en]=A Super Mario inspired penguin platform game + Comment[de]=Ein von Super Mario inspiriertes Pinguin Jump&Run Spiel + Comment[cs]=Plošinovka inspirovaná SuperMariem s tučňákem Tuxem v hlavní roli +-Icon=supertux.png ++Icon=supertux + Exec=supertux + Terminal=false + StartupNotify=false +-Categories=Application;Game;ArcadeGame ++Categories=Game;ArcadeGame; diff --git a/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch b/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch new file mode 100644 index 000000000000..5bcf53704fab --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.1.3-gcc41.patch @@ -0,0 +1,12 @@ +diff -uNr supertux-0.1.3.orig/src/menu.h supertux-0.1.3/src/menu.h +--- supertux-0.1.3.orig/src/menu.h 2005-06-21 23:16:07.000000000 +0200 ++++ supertux-0.1.3/src/menu.h 2006-03-19 15:49:55.277266712 +0100 +@@ -207,7 +207,7 @@ + + bool isToggled(int id); + +- void Menu::get_controlfield_key_into_input(MenuItem *item); ++ void get_controlfield_key_into_input(MenuItem *item); + + void draw (); + void draw_item(int index, int menu_width, int menu_height); diff --git a/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch b/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch new file mode 100644 index 000000000000..3a302d5ecf5a --- /dev/null +++ b/games-arcade/supertux/files/supertux-0.1.3-ndebug.patch @@ -0,0 +1,16 @@ +Index: supertux-0.1.3/src/tile.cpp +=================================================================== +--- supertux-0.1.3.orig/src/tile.cpp ++++ supertux-0.1.3/src/tile.cpp +@@ -99,7 +99,11 @@ void TileManager::load_tileset(std::stri + tile->anim_speed = 25; + + LispReader reader(lisp_cdr(element)); ++ #ifdef NDEBUG ++ void(reader.read_int("id", &tile->id)); ++ #else + assert(reader.read_int("id", &tile->id)); ++ #endif + reader.read_bool("solid", &tile->solid); + reader.read_bool("brick", &tile->brick); + reader.read_bool("ice", &tile->ice); diff --git a/games-arcade/supertux/metadata.xml b/games-arcade/supertux/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/supertux/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/supertux/supertux-0.1.3.ebuild b/games-arcade/supertux/supertux-0.1.3.ebuild new file mode 100644 index 000000000000..632c953c1182 --- /dev/null +++ b/games-arcade/supertux/supertux-0.1.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A game similar to Super Mario Bros" +HOMEPAGE="http://super-tux.sourceforge.net" +SRC_URI="https://supertux.googlecode.com/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~mips ppc ~ppc64 sparc x86 ~x86-fbsd" +IUSE="opengl" + +DEPEND="media-libs/libsdl[joystick] + media-libs/sdl-image[png,jpeg] + media-libs/sdl-mixer[mod,vorbis] + x11-libs/libXt" +RDEPEND=${DEPEND} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gcc41.patch \ + "${FILESDIR}"/${P}-ndebug.patch \ + "${FILESDIR}"/${P}-desktop.patch +} + +src_configure() { + egamesconf \ + --disable-debug \ + $(use_enable opengl) +} + +src_install() { + emake DESTDIR="${D}" \ + desktopdir=/usr/share/applications \ + icondir=/usr/share/pixmaps \ + install + dodoc AUTHORS ChangeLog LEVELDESIGN README TODO + prepgamesdirs +} diff --git a/games-arcade/syobon/Manifest b/games-arcade/syobon/Manifest new file mode 100644 index 000000000000..7ef37b643317 --- /dev/null +++ b/games-arcade/syobon/Manifest @@ -0,0 +1 @@ +DIST syobon_1.0.1_src.tar.gz 2721153 SHA256 e7aaf73098e6bd748ae682aab4e959e887a742647124aac813f864e5106b943a SHA512 9a8ff389bb23563a16f1b56aefdb93cf0ee5be74c6d48276ce76a17159bc021f517a69eb300a1c17ee81d4112ba26f0d386a1e2e37bced681044c3a3ca4f7ca5 WHIRLPOOL 64171ea0e3d2c4a0f442383468b442376baddeabe7fda408f104802ceb25e3a8cde6549828e4f6e7f9a9961bdb1f5f0ab55e71359c04f28e38b57c049f294367 diff --git a/games-arcade/syobon/metadata.xml b/games-arcade/syobon/metadata.xml new file mode 100644 index 000000000000..a9fbbd57dbe8 --- /dev/null +++ b/games-arcade/syobon/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> +<email>joker@gentoo.org</email> +<name>Christian Birchinger</name> +</maintainer> +<herd>games</herd> +<longdescription> +Syobon Action (also known as Cat Mario or Neko Mario) is a platform game with a similar gameplay experience as Super Mario Bros, except it's a lot more difficult. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/syobon/syobon-1.0.1.ebuild b/games-arcade/syobon/syobon-1.0.1.ebuild new file mode 100644 index 000000000000..13327d5fea25 --- /dev/null +++ b/games-arcade/syobon/syobon-1.0.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit games + +MY_P="${PN}_${PV}_src" + +DESCRIPTION="Syobon Action (also known as Cat Mario or Neko Mario)" +HOMEPAGE="http://zapek.com/?p=189" +SRC_URI="http://download.zapek.com/software/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="media-libs/libsdl[sound,video,joystick] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-ttf + media-libs/sdl-mixer[vorbis]" + +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN} + +src_compile() { + emake GAMEDATA="${GAMES_DATADIR}/${PN}" +} + +src_install() { + dogamesbin ${PN} + + insinto "${GAMES_DATADIR}/${PN}" + doins -r BGM SE res + dodoc README.txt + prepgamesdirs +} diff --git a/games-arcade/tecnoballz/Manifest b/games-arcade/tecnoballz/Manifest new file mode 100644 index 000000000000..089ac9d2953e --- /dev/null +++ b/games-arcade/tecnoballz/Manifest @@ -0,0 +1 @@ +DIST tecnoballz-0.92.tgz 2763879 SHA256 3ae9d084d7a65af52ef8657c2adbeda0a0747825f9b3b58b8352b7403d5b95b5 SHA512 e3868e846cdebaed6ee78050560be86557c6d01ee6512375a09eccbcf70f0cd12e419c6997a348794a41dfb75f0f3cb70321f1bb9a9bf1156a90976b0e401e13 WHIRLPOOL f631104e0147ae965c8d2c2ea292c538ca1160b823e68165353fb013dcca2076ff5b8c1ceaa6633cf68298b3b52832d567b37f35c25413ea4cade57ce203e5df diff --git a/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch b/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch new file mode 100644 index 000000000000..b2f0379e4899 --- /dev/null +++ b/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch @@ -0,0 +1,116 @@ +--- Makefile.am.old 2008-10-07 10:42:11.000000000 +0200 ++++ Makefile.am 2008-10-07 10:49:35.000000000 +0200 +@@ -1,18 +1,6 @@ + +-gamesdir = $(prefix)/games +-scoredir = /var/games/tecnoballz +-score = tecnoballz.hi ++localstate_DATA = tecnoballz.hi + +-SUBDIRS = src ++SUBDIRS = src man + +-pkgdatadir = $(mandir)/man6 +-dist_pkgdata_DATA = man/tecnoballz.6 +- +-install-data-hook: +- -chown root:games "$(DESTDIR)/$(gamesdir)/tecnoballz" +- -chmod 2755 "$(DESTDIR)/$(gamesdir)/tecnoballz" +- $(INSTALL) -d $(DESTDIR)/$(scoredir) +- $(INSTALL) $(score) $(DESTDIR)/$(scoredir) +- -chown root:games "$(DESTDIR)/$(scoredir)/$(score)" +- -chmod 664 "$(DESTDIR)/$(scoredir)/$(score)" + +--- src/Makefile.am.old 2008-10-07 11:16:44.000000000 +0200 ++++ src/Makefile.am 2008-10-07 11:18:32.000000000 +0200 +@@ -1,14 +1,12 @@ + + NULL = +-gamesdir = $(prefix)/games +-scoredir = /var/games/tecnoballz + score = tecnoballz.hi + + SUBDIRS = TecnoballZ + +-games_PROGRAMS = tecnoballz ++bin_PROGRAMS = tecnoballz + tecnoballz_SOURCES = $(SOURCES_MAIN) +-tecnoballz_CXXFLAGS = -DDATADIR=\"$(datadir)/tecnoballz\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@ @MIKMOD_FLAGS@ ++tecnoballz_CXXFLAGS = -DDATADIR=\"$(datadir)/tecnoballz\" -DSCOREFILE=\"$(localstatedir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@ @MIKMOD_FLAGS@ + tecnoballz_LDADD = @XLIB_LIBS@ @SDL_LIBS@ @MM_LIBS@ @MIKMOD_LIBS@ -L. + + SOURCES_MAIN = \ +--- src/TecnoballZ/Makefile.am.old 2008-10-07 17:17:47.000000000 +0200 ++++ src/TecnoballZ/Makefile.am 2008-10-07 17:20:03.000000000 +0200 +@@ -1,6 +1,6 @@ + NULL = + +-SUBDIRS = lores hires textures sounds musics ++SUBDIRS = lores hires textures sounds musics texts + + pkgdatadir = $(datadir)/tecnoballz + dist_pkgdata_DATA = \ +@@ -14,4 +14,5 @@ + tilemap-guardians_40.data \ + tilemap-menu_20.data \ + tilemap-menu_40.data \ ++ levels-data.xml \ + $(NULL) +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ src/TecnoballZ/texts/Makefile.am 2008-10-07 17:30:18.000000000 +0200 +@@ -0,0 +1,11 @@ ++textsdir = $(pkgdatadir)/texts ++texts_DATA = main_menu_en.txt \ ++ main_menu_fr.txt \ ++ popup_menu_en.txt \ ++ popup_menu_fr.txt \ ++ scrolltext_en.txt \ ++ scrolltext_fr.txt \ ++ shop_en.txt \ ++ shop_fr.txt \ ++ short_info_messages_en.txt \ ++ short_info_messages_fr.txt +--- configure.ac.old 2008-10-08 23:10:26.000000000 +0200 ++++ configure.ac 2008-10-08 23:11:08.000000000 +0200 +@@ -50,21 +50,6 @@ + + LDFLAGS_="${LDFLAGS_save}" + +-AC_CHECK_LIB(vorbisfile, ov_raw_seek, [ +- MM_LIBS="${MM_LIBS} -lvorbisfile" +-],[ +- AC_MSG_ERROR(Could not find the vorbisfile lib : -lvorbisfile) +-]) +-AC_CHECK_LIB(ogg, ogg_stream_packetin, [ +- MM_LIBS="${MM_LIBS} -logg" +-],[ +- AC_MSG_ERROR(Could not find the ogg lib : -logg) +-]) +-AC_CHECK_LIB(smpeg, SMPEG_play, [ +- MM_LIBS="${MM_LIBS} -lsmpeg" +-],[ +- AC_MSG_ERROR(Could not find the smpeg lib : -lsmpeg) +-]) + AC_SUBST(MM_LIBS) + + AC_CHECK_LIB(mikmod, Player_Stop, [ +@@ -81,5 +81,8 @@ + + + dnl Output makefiles +-AC_OUTPUT(Makefile src/Makefile src/TecnoballZ/Makefile src/TecnoballZ/hires/Makefile src/TecnoballZ/lores/Makefile src/TecnoballZ/textures/Makefile src/TecnoballZ/musics/Makefile src/TecnoballZ/sounds/Makefile) ++AC_OUTPUT(Makefile src/Makefile src/TecnoballZ/Makefile src/TecnoballZ/hires/Makefile src/TecnoballZ/lores/Makefile src/TecnoballZ/textures/Makefile src/TecnoballZ/musics/Makefile src/TecnoballZ/sounds/Makefile ++ src/TecnoballZ/texts/Makefile ++ man/Makefile ++ man/fr/Makefile) + +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ man/Makefile.am 2008-10-08 10:36:15.000000000 +0200 +@@ -0,0 +1,2 @@ ++SUBDIRS = fr ++man_MANS = tecnoballz.6 +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ man/fr/Makefile.am 2008-10-08 10:36:15.000000000 +0200 +@@ -0,0 +1,2 @@ ++mandir = @mandir@/fr ++man_MANS = tecnoballz.6 diff --git a/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch new file mode 100644 index 000000000000..ae190abd64c6 --- /dev/null +++ b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch @@ -0,0 +1,11 @@ +--- include/surface_sdl.h.old 2008-10-07 10:16:25.000000000 +0200 ++++ include/surface_sdl.h 2008-10-07 10:16:38.000000000 +0200 +@@ -46,7 +46,7 @@ + ~surface_sdl (); + SDL_Surface* get_surface (); + char* get_pixel_data (); +- char* get_pixel_data (Uint32 coord_x, Uint32 coord_x); ++ char* get_pixel_data (Uint32 coord_x, Uint32 coord_y); + Uint32 get_row_size (); + Uint32 get_offset (Uint32 xcoord, Uint32 ycoord); + void clear (Uint32 color = 0); diff --git a/games-arcade/tecnoballz/metadata.xml b/games-arcade/tecnoballz/metadata.xml new file mode 100644 index 000000000000..798f46eea44e --- /dev/null +++ b/games-arcade/tecnoballz/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> +A exciting Brick Breaker with 50 levels of game and 11 special levels, +distributed on the 2 modes of game to give the player a sophisticated system of +attack weapons with an enormous power of fire that can be build by gaining +bonuses. Numerous decors, musics and sounds complete this great game. This +game was ported from the Commodore Amiga. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/tecnoballz/tecnoballz-0.92.ebuild b/games-arcade/tecnoballz/tecnoballz-0.92.ebuild new file mode 100644 index 000000000000..6f775377c115 --- /dev/null +++ b/games-arcade/tecnoballz/tecnoballz-0.92.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="An exciting Brick Breaker" +HOMEPAGE="http://linux.tlk.fr/games/TecnoballZ/" +SRC_URI="http://linux.tlk.fr/games/TecnoballZ/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-image[png] + media-libs/libmikmod:0" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-automake.patch + mv man/${PN}.fr.6 man/fr/${PN}.6 || die + # don't combine explicit and implicit rules for make 3.82 (bug #334629) + sed -i -e '/supervisor.c /s/.c /.cc /' src/Makefile.am || die + sed -i -e '/^CXXFLAGS=/d' configure.ac || die + eautoreconf +} + +src_install() { + default + fperms g+w "${GAMES_STATEDIR}"/${PN}.hi || die + make_desktop_entry ${PN} Tecnoballz + prepgamesdirs +} + +pkg_postinst() { + has_version "media-libs/sdl-mixer[mikmod]" \ + || ewarn "To have background music, emerge sdl-mixer with USE=mikmod" + games_pkg_postinst +} diff --git a/games-arcade/thinktanks-demo/Manifest b/games-arcade/thinktanks-demo/Manifest new file mode 100644 index 000000000000..70e91555ad22 --- /dev/null +++ b/games-arcade/thinktanks-demo/Manifest @@ -0,0 +1 @@ +DIST ThinkTanksDemo_v1.1.sh.bin 12115802 SHA256 07e485b936fe68d06b3b5a4fa89622fe94718ccbe0a15fad3df26969d77113d1 SHA512 9134c44c4e02df4bd7edbd3946125598c87dc3adbeff318f0b265dd2c5fbcebd49bd810d848cc5da29c86ad323fdb2c9adc0006b26680b0bd78b4d0de54419a1 WHIRLPOOL 0796f38af9a9c769265cf7508970093f1bda990c720c2a9d659c205921212793aae66b5f9ac516713101486c42be0bc13a911071893dd4a1d2634aff6d2b58ad diff --git a/games-arcade/thinktanks-demo/metadata.xml b/games-arcade/thinktanks-demo/metadata.xml new file mode 100644 index 000000000000..a6fb3cac2798 --- /dev/null +++ b/games-arcade/thinktanks-demo/metadata.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription> +ThinkTanks is a tank combat game designed to be a blast for the new and +experienced gamer alike with lighthearted, fast paced pandemonium. Either +battling against brain-hungry bots in solo play or going head-to-head against +others online, ThinkTanks has something for everyone. + +You find yourself in a ThinkTank... just one of many brain slaves imprisoned by +Alien Mind Control-- only you have managed to escape their brain rays. But the +moment you are free, you are besieged on all sides by insane bot-tanks. You must +destroy or be destroyed and keep on your toes at all times. Luckily you can +collect powerups that give you wacky weapons to help you stay alive. As you +progress through each level, the bot tanks get smarter, stronger and crazier as +Alien Mind Control reprograms the bot tanks to match your wits. Your goal is to +beat the bosses, then rescue your brain-brethren and continue the fight on other +worlds. + +Upon entering, you are immediately engaged by heavy artillery. This is +no-holds-barred warfare and to the victor go the points. You can be catapulted or +thrust in any direction by rolling over the boost and jump pads to escape attack +or rush the enemy. The lush, green hills are scattered with bots on the warpath, +bots choking in their own smoke, floating orbs with special powers and +ammunition, boulders, trees, AND the dreaded pit of doom. The goal here is to +keep your brain intact, and triumph over bots of every shape, size, speed and +skill. + +You are cast into a veritable feeding frenzy of tanks. You need to simultaneously +track the position of your tank relative to the scrum ball using your radarscope, +while navigating your tank along the bumpy terrain. If you are quick enough to +pick up the ball yourself, you must make a mad dash to the goal, evading the +thirsty pack of mad bots heavy on your trail. You win by capturing the most scrum +balls in the allotted time. + +Both On-line BattleMode and Scrum games have team-play variants and online chat +that allow players to play together cooperatively. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/thinktanks-demo/thinktanks-demo-1.1-r2.ebuild b/games-arcade/thinktanks-demo/thinktanks-demo-1.1-r2.ebuild new file mode 100644 index 000000000000..e51b9b0b3036 --- /dev/null +++ b/games-arcade/thinktanks-demo/thinktanks-demo-1.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit unpacker games + +DESCRIPTION="tank combat game with lighthearted, fast paced pandemonium" +HOMEPAGE="http://www.garagegames.com/pg/product/view.php?id=12" +SRC_URI="ftp://ggdev-1.homelan.com/thinktanks/ThinkTanksDemo_v${PV}.sh.bin" + +LICENSE="THINKTANKS" +SLOT="0" +KEYWORDS="-* amd64 x86" +IUSE="" +RESTRICT="strip" + +RDEPEND=" + media-libs/libsdl[video,joystick,abi_x86_32(-)] + media-libs/libogg[abi_x86_32(-)] + media-libs/libvorbis[abi_x86_32(-)] + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)]" + +S=${WORKDIR} +dir=${GAMES_PREFIX_OPT}/${PN} + +QA_PREBUILT="${dir:1}/ThinkTanks.bin" + +src_install() { + dodir "${dir}" "${GAMES_BINDIR}" + + tar -zxf ThinkTanks.tar.gz -C "${ED}/${dir}" || die + + exeinto "${dir}" + doexe bin/Linux/x86/thinktanksdemo + dosym "${dir}"/thinktanksdemo "${GAMES_BINDIR}"/thinktanks-demo + # Using system libraries + rm -rf "${ED}/${dir}"/lib + + insinto "${dir}" + doins icon.xpm + + dodoc ReadMe_Linux.txt + + prepgamesdirs +} diff --git a/games-arcade/tomatoes/Manifest b/games-arcade/tomatoes/Manifest new file mode 100644 index 000000000000..c3a9ac763320 --- /dev/null +++ b/games-arcade/tomatoes/Manifest @@ -0,0 +1,2 @@ +DIST tomatoes-linux-1.5.tar.bz2 8807421 SHA256 69a3af1994cb58409be9b469e1aa4bdb91c405d99071c7431526640ec53d1300 SHA512 517f592bb3c3fb43cb740c58011f06b7a71c96eaff74ce1088db8dbd4aafa3463bba516547cd010e9ef2ca947fd36962c3d13ece6e979cab8adf01ffa991c308 WHIRLPOOL 62fd7eca64cd4ddf41de8a02fb80c3f114ff69f3b322f7f904592dca6109fba3856df1cd6bbb9162a22f78dd98e7c353756f1b5682f2128e5cc4f64e7c239001 +DIST tomatoes-linux-src-1.55.tar.bz2 62947 SHA256 126d001532ee5b81cc95e1a86a274d11669b8c8f65c8235ae2e9b8fbdfab4a60 SHA512 b5a6287659746179f0418630c55d34dc34897b532687007386b0b540ec728cc2492813f0d454314994a26a3629a24c802630085f64b969d1e6ea9ec936f5fe35 WHIRLPOOL 845ad2e84ad035d2f678c8465360439f057a323a020e01cd20f19fc5fb643b7372a963afdbe0b717edd230e3d7eb5f922a7fcc16affe4ec7ccd3d3696a4955ae diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch b/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch new file mode 100644 index 000000000000..dd6927e54153 --- /dev/null +++ b/games-arcade/tomatoes/files/tomatoes-1.55-c_str.patch @@ -0,0 +1,24 @@ +--- src/config.cpp.orig 2004-09-27 11:35:48.000000000 +0200 ++++ src/config.cpp 2006-02-13 00:00:01.000000000 +0100 +@@ -78,6 +78,7 @@ + // makefile. + char *get_config_location(bool write) { + #ifdef LINUX ++ static char *config_path = NULL; + // Get the path to the config file + string tmp = get_tomatoes_dir() + "config.cfg"; + +@@ -90,8 +91,11 @@ + } + fclose(ftest); + } +- +- return (char*)tmp.c_str(); ++ if (!config_path) { ++ config_path = new char[tmp.length()+1]; ++ strcpy(config_path,tmp.c_str()); ++ } ++ return config_path; + #endif + + // Return the CONFIG_DIR diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch b/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch new file mode 100644 index 000000000000..cd85e31e5936 --- /dev/null +++ b/games-arcade/tomatoes/files/tomatoes-1.55-gcc43.patch @@ -0,0 +1,14 @@ +--- src/config.cpp ++++ src/config.cpp +@@ -27,8 +27,9 @@ + + *************************************************************************/ + +-#include <stdio.h> +-#include <stdlib.h> ++#include <cstring> ++#include <cstdio> ++#include <cstdlib> + #include "config.h" + #include "init.h" + diff --git a/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch b/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch new file mode 100644 index 000000000000..c028c79ba4a7 --- /dev/null +++ b/games-arcade/tomatoes/files/tomatoes-1.55-underlink.patch @@ -0,0 +1,38 @@ +--- makefile.old 2011-06-18 17:35:38.947020335 +0200 ++++ makefile 2011-06-18 17:37:42.337811088 +0200 +@@ -48,7 +47,7 @@ + LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -pg + else + CFLAGS = -MMD -O3 -march=$(MARCH) -Wall $(SDL_FLAGS) +-LDFLAGS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -s ++LDLIBS = `sdl-config --libs` -lSDL_image -lSDL_mixer -lGL -lGLU -lm + endif + endif + +@@ -58,7 +57,7 @@ + OBJS := $(subst src/,obj/,$(OBJS)) + + # Include directories +-INCLUDES = -I./include ++INCLUDES = -I./include $(SDL_FLAGS) + + + # Targets +@@ -69,7 +68,7 @@ + -include $(DEPS) + + $(TARGET): $(OBJS) +- $(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) ++ $(CXX) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LDLIBS) + + clean: + rm -f $(OBJS) $(TARGET) +@@ -80,7 +79,7 @@ + rebuild: veryclean all + + obj/%.o: src/%.cpp +- $(CC) $(CFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@ ++ $(CXX) $(CXXFLAGS) $(INCLUDES) $(DIR_DEFINES) -c $< -o $@ + + # Compress the exe with UPX + compress: $(TARGET) diff --git a/games-arcade/tomatoes/metadata.xml b/games-arcade/tomatoes/metadata.xml new file mode 100644 index 000000000000..50b7cfeb4fb4 --- /dev/null +++ b/games-arcade/tomatoes/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">tomatoes</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild b/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild new file mode 100644 index 000000000000..bb9334beeaca --- /dev/null +++ b/games-arcade/tomatoes/tomatoes-1.55-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DATA_PV=1.5 +DESCRIPTION="How many tomatoes can you smash in ten short minutes?" +HOMEPAGE="http://tomatoes.sourceforge.net/about.html" +SRC_URI="mirror://sourceforge/tomatoes/tomatoes-linux-src-${PV}.tar.bz2 + mirror://sourceforge/tomatoes/tomatoes-linux-${DATA_PV}.tar.bz2" + +LICENSE="ZLIB" +SLOT="0" +KEYWORDS="amd64 ia64 ppc ~ppc64 x86" +IUSE="" + +DEPEND="virtual/opengl + virtual/glu + media-libs/libsdl[sound,video] + media-libs/sdl-image[jpeg,png] + media-libs/sdl-mixer[mod]" +RDEPEND="${DEPEND}" + +src_prepare() { + mv ../tomatoes-1.5/* . || die "mv failed" + mv icon.png ${PN}.png + + epatch \ + "${FILESDIR}"/${P}-c_str.patch \ + "${FILESDIR}"/${P}-underlink.patch \ + "${FILESDIR}"/${P}-gcc43.patch + + sed -i \ + -e "/^MPKDIR = /s:./:${GAMES_DATADIR}/${PN}/:" \ + -e "/^MUSICDIR = /s:./music/:${GAMES_DATADIR}/${PN}/music/:" \ + -e "/^HISCOREDIR = /s:./:${GAMES_STATEDIR}/${PN}/:" \ + -e "/^CONFIGDIR = /s:./:${GAMES_SYSCONFDIR}/${PN}/:" \ + -e "/^OVERRIDEDIR = /s:./data/:${GAMES_DATADIR}/${PN}/data/:" \ + makefile \ + || die "sed failed" +} + +src_install() { + dogamesbin tomatoes + dodoc README README-src + + insinto "${GAMES_DATADIR}"/${PN} + doins -r tomatoes.mpk music + + doicon ${PN}.png + make_desktop_entry tomatoes "I Have No Tomatoes" + + dodir "${GAMES_STATEDIR}"/${PN} + touch "${D}${GAMES_STATEDIR}"/${PN}/hiscore.lst || die "touch failed" + fperms 660 "${GAMES_STATEDIR}"/${PN}/hiscore.lst + + insinto "${GAMES_SYSCONFDIR}"/${PN} + doins config.cfg + + prepgamesdirs +} diff --git a/games-arcade/trailblazer/Manifest b/games-arcade/trailblazer/Manifest new file mode 100644 index 000000000000..90338f71ce0c --- /dev/null +++ b/games-arcade/trailblazer/Manifest @@ -0,0 +1 @@ +DIST trailblazer-0.9.tgz 20753 SHA256 db7fdccd38fac4ec7559db33b21676525d870375da5b7c9ff15c11621b378be1 SHA512 fddb379c2aee41e85042f4100bf08b2f1ca6393716fef1afa964c25dbcabfcd7df1d5c678c23b0f0f3ae1e1c757b01945e04934f67273434d0b51d441114f884 WHIRLPOOL d1c24f9d8e31a72f47c255f4edf0242a608d40c48ab9a124c3c0fc93552d249792fc0a4b9c56386b3f827f7dacda45e511bf0a1c0fb521e02cb7d3dd6320f035 diff --git a/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch b/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch new file mode 100644 index 000000000000..034a74e75f9e --- /dev/null +++ b/games-arcade/trailblazer/files/trailblazer-0.9-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-09-30 23:56:21.000000000 +0200 ++++ Makefile 2010-09-30 23:56:35.000000000 +0200 +@@ -9,7 +9,7 @@ + bdir = /tmp/trailblazer-$(version) + + all: +- $(CC) $(sources) -o trailblazer $(cflags) $(libs) ++ $(CC) $(LDFLAGS) $(sources) -o trailblazer $(cflags) $(libs) + + install: + cp trailblazer /usr/bin diff --git a/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch b/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch new file mode 100644 index 000000000000..31e9a1000324 --- /dev/null +++ b/games-arcade/trailblazer/files/trailblazer-0.9-underlink.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2011-06-20 20:49:09.928013768 +0200 ++++ Makefile 2011-06-20 20:49:18.725566328 +0200 +@@ -3,7 +3,7 @@ + # + + sources = game.c main.c road.c map.c gfx.c +-libs = `sdl-config --libs` ++libs = `sdl-config --libs` -lm + cflags = -O2 -Wall `sdl-config --cflags` + version = 0.9 + bdir = /tmp/trailblazer-$(version) diff --git a/games-arcade/trailblazer/metadata.xml b/games-arcade/trailblazer/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/trailblazer/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/trailblazer/trailblazer-0.9.ebuild b/games-arcade/trailblazer/trailblazer-0.9.ebuild new file mode 100644 index 000000000000..337400bd302c --- /dev/null +++ b/games-arcade/trailblazer/trailblazer-0.9.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Guide a ball through a succession of levels while avoiding holes" +HOMEPAGE="http://www.autismuk.freeserve.co.uk/" +SRC_URI="http://www.autismuk.freeserve.co.uk/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.2.7[video]" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-underlink.patch + + sed -i \ + -e "s:-O2:${CFLAGS}:" \ + Makefile || die "sed Makefile failed" + + sed -i \ + -e "s:/usr/share/trailblazer/trail\.dat:${GAMES_DATADIR}/${PN}/trail.dat:" \ + -e "s:/usr/share/trailblazer/trail\.time:${GAMES_STATEDIR}/trail.time:" \ + map.c || die "sed map.c failed" +} + +src_install() { + dogamesbin trailblazer + insinto "${GAMES_DATADIR}/${PN}" + doins trail.dat + dodoc README + + dodir "${GAMES_STATEDIR}" \ + && touch "${D}${GAMES_STATEDIR}/trail.time" + + prepgamesdirs + fperms 660 "${GAMES_STATEDIR}/trail.time" +} diff --git a/games-arcade/triplexinvaders/Manifest b/games-arcade/triplexinvaders/Manifest new file mode 100644 index 000000000000..e4372cbb26f7 --- /dev/null +++ b/games-arcade/triplexinvaders/Manifest @@ -0,0 +1 @@ +DIST triplexinvaders-1.08.zip 354188 SHA256 ead4f0b139e487e742902e184ce146469d12ecc345d363147395c484cc8c4bfc SHA512 c763cf650046612152c9305a2067f52feedfeac5f16dd292031a184563f40efc9d95553bc01d59c5c6382394fd2a2d3fe971471cf775fe64c3b1f3c4842a0780 WHIRLPOOL 7c693962d0d0604d7b813ec051b3ecca050ae3ca7a25f0dd1fe5f7c11add4260e2ee080ffc62fa751e17388ee677485486f3d9be650232440275c3e45d58d707 diff --git a/games-arcade/triplexinvaders/files/triplexinvaders-1.08-gentoo.patch b/games-arcade/triplexinvaders/files/triplexinvaders-1.08-gentoo.patch new file mode 100644 index 000000000000..56f9c1a1596a --- /dev/null +++ b/games-arcade/triplexinvaders/files/triplexinvaders-1.08-gentoo.patch @@ -0,0 +1,62 @@ +--- sound.py.old 2007-04-14 21:52:02.000000000 +0200 ++++ sound.py 2007-04-14 21:52:27.000000000 +0200 +@@ -16,7 +16,7 @@ + + + def reloadMusic(): +- pygame.mixer.music.load(os.path.join('sound', choice(music))) ++ pygame.mixer.music.load(os.path.join('@GENTOO_DATADIR@/sound', choice(music))) + pygame.mixer.music.set_endevent(ENDMUSIC) + pygame.mixer.music.play() + +@@ -24,7 +24,7 @@ + + def getSound(name, volume=0.4): + if name not in LoadedSounds: +- sound = pygame.mixer.Sound(os.path.join('sound', '%s.ogg' % name)) ++ sound = pygame.mixer.Sound(os.path.join('@GENTOO_DATADIR@/sound', '%s.ogg' % name)) + sound.set_volume(volume) + LoadedSounds[name] = sound + return LoadedSounds[name] +--- util.py.old 2007-04-14 21:56:30.000000000 +0200 ++++ util.py 2007-04-14 21:56:48.000000000 +0200 +@@ -30,7 +30,7 @@ + LoadedTextures = weakref.WeakValueDictionary() + + def loadTexture(name): +- filename = os.path.join('textures', '%s.png' % name) ++ filename = os.path.join('@GENTOO_DATADIR@/textures', '%s.png' % name) + textureSurface = pygame.image.load(filename) + textureData = pygame.image.tostring(textureSurface, "RGBA", True) + texid = glGenTextures(1) +@@ -47,7 +47,7 @@ + + def getModel(name): + if name not in LoadedModels: +- model = wavefront.load(os.path.join('models', '%s.obj' % name), name) ++ model = wavefront.load(os.path.join('@GENTOO_DATADIR@/models', '%s.obj' % name), name) + LoadedModels[name] = model + return LoadedModels[name] + +--- hiscore.py.old 2007-04-14 22:04:04.000000000 +0200 ++++ hiscore.py 2007-04-14 22:04:25.000000000 +0200 +@@ -5,7 +5,7 @@ + # copy the highscores to the user's homedir + highscorefile = os.path.join(configdir, 'hiscores') + if not os.path.exists(highscorefile): +- oldpath = 'hiscores' ++ oldpath = '@GENTOO_DATADIR@/hiscores' + shutil.copy(oldpath, highscorefile) + + def write(score, name): +--- options.py.old 2007-04-14 22:05:23.000000000 +0200 ++++ options.py 2007-04-14 22:05:42.000000000 +0200 +@@ -5,7 +5,7 @@ + # copy the options to the user's homedir + optionfile = os.path.join(configdir, 'options.conf') + if not os.path.exists(optionfile): +- oldpath = 'options.conf' ++ oldpath = '@GENTOO_DATADIR@/options.conf' + shutil.copy(oldpath, optionfile) + + execfile(optionfile) diff --git a/games-arcade/triplexinvaders/metadata.xml b/games-arcade/triplexinvaders/metadata.xml new file mode 100644 index 000000000000..e60905ac4c14 --- /dev/null +++ b/games-arcade/triplexinvaders/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +In Triplex Invaders, the player pilots a spaceship against a never ending horde +of enemy ships. It has psychedelic 3d graphics (but 2d gameplay). +</longdescription> +</pkgmetadata> diff --git a/games-arcade/triplexinvaders/triplexinvaders-1.08.ebuild b/games-arcade/triplexinvaders/triplexinvaders-1.08.ebuild new file mode 100644 index 000000000000..6fdab3042115 --- /dev/null +++ b/games-arcade/triplexinvaders/triplexinvaders-1.08.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="An Alien Invaders style game with 3d graphics" +HOMEPAGE="http://triplexinvaders.infogami.com" +SRC_URI="http://acm.jhu.edu/~arthur/invaders/${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/unzip" +RDEPEND="dev-python/pygame + dev-python/pyopengl" + +src_prepare() { + epatch "${FILESDIR}/${P}"-gentoo.patch + sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + sound.py \ + util.py \ + hiscore.py \ + options.py || die "sed failed" +} + +src_install() { + local libdir=$(games_get_libdir) + + insinto "${libdir}/${PN}" + doins -r *.py + insinto "${GAMES_DATADIR}/${PN}" + doins -r models sound options.conf hiscores + games_make_wrapper ${PN} "python ./invaders.py" "${libdir}/${PN}" + dodoc README.txt TODO.txt + prepgamesdirs +} diff --git a/games-arcade/tuxanci/Manifest b/games-arcade/tuxanci/Manifest new file mode 100644 index 000000000000..b60c10355e16 --- /dev/null +++ b/games-arcade/tuxanci/Manifest @@ -0,0 +1 @@ +DIST tuxanci-20110429.tar.xz 4283540 SHA256 60dc0cc5d2eafd54874d193ae796758b387029ad8806758a8c0f2a76649023df SHA512 72305be823981699e9ac38c090dda2baafd45bd36554eba65bd438646e0b0b8a3ab17a7516610db17e225292c39e0cdabb383193f8b07d2d31d638483feafeea WHIRLPOOL 94a90ffc9cef732dbc64dc6c2f44253a5aa2859c74920363436f4e8e4584921ae794a42299188a008de953585c37e5a778b5dc561a09d732759da705f0215945 diff --git a/games-arcade/tuxanci/metadata.xml b/games-arcade/tuxanci/metadata.xml new file mode 100644 index 000000000000..66221545ba2f --- /dev/null +++ b/games-arcade/tuxanci/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<maintainer> + <email>scarabeus@gentoo.org</email> +</maintainer> +<use> + <flag name="sound">Enable sound</flag> + <flag name="physfs">Use <pkg>dev-games/physfs</pkg> instead of + <pkg>dev-libs/libzip</pkg> to load compressed data</flag> +</use> +</pkgmetadata> diff --git a/games-arcade/tuxanci/tuxanci-20110429.ebuild b/games-arcade/tuxanci/tuxanci-20110429.ebuild new file mode 100644 index 000000000000..f204b93dc846 --- /dev/null +++ b/games-arcade/tuxanci/tuxanci-20110429.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +[[ ${PV} = 9999* ]] && GIT="git-2" +EGIT_REPO_URI="git://repo.or.cz/tuxanci.git" + +inherit games cmake-utils ${GIT} + +DESCRIPTION="Tuxanci is first tux shooter inspired by game Bulanci" +HOMEPAGE="http://www.tuxanci.org/" +if [[ ${PV} = 9999* ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="http://dev.gentooexperimental.org/~scarabeus/${P}.tar.xz" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi +LICENSE="GPL-2" + +SLOT="0" +IUSE="debug dedicated +ipv6 nls opengl physfs +sound" + +# >=x11-libs/cairo-1.8.8[X,svg] +RDEPEND=" + !dedicated? ( + >=media-libs/fontconfig-2.7.0 + media-libs/libsdl[X,opengl?] + media-libs/sdl-ttf[X] + >=media-libs/sdl-image-1.2.10[png] + sound? ( + >=media-libs/sdl-mixer-1.2.11[vorbis] + ) + ) + physfs? ( dev-games/physfs[zip] ) + !physfs? ( >=dev-libs/libzip-0.9 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +src_configure() { + local mycmakeargs+=( + $(cmake-utils_use_with sound AUDIO) + $(cmake-utils_use_build dedicated SERVER) + $(cmake-utils_use_with nls) + $(cmake-utils_use_with physfs) + $(cmake-utils_use_with opengl) + $(cmake-utils_use_enable ipv6) + $(cmake-utils_use debug DEVELOPER) + ) + + mycmakeargs+=( + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DCMAKE_INSTALL_ICONDIR=${GAMES_DATADIR_BASE}/pixmaps/" + "-DCMAKE_INSTALL_DESKTOPDIR=${GAMES_DATADIR_BASE}/applications/" + "-DCMAKE_DATA_PATH=${GAMES_DATADIR}" + "-DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/" + "-DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/${PF}" + "-DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR}" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + prepgamesdirs +} diff --git a/games-arcade/tuxanci/tuxanci-99999999.ebuild b/games-arcade/tuxanci/tuxanci-99999999.ebuild new file mode 100644 index 000000000000..db6290cd595d --- /dev/null +++ b/games-arcade/tuxanci/tuxanci-99999999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +[[ ${PV} = 9999* ]] && GIT="git-2" +EGIT_REPO_URI="git://repo.or.cz/tuxanci.git" + +inherit games cmake-utils ${GIT} + +DESCRIPTION="Tuxanci is first tux shooter inspired by game Bulanci" +HOMEPAGE="http://www.tuxanci.org/" +if [[ ${PV} = 9999* ]]; then + SRC_URI="" + KEYWORDS="" +else + SRC_URI="http://download.${PN}.org/${P}.tar.bz2" + KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +fi +LICENSE="GPL-2" + +SLOT="0" +IUSE="debug dedicated +ipv6 nls opengl physfs +sound" + +# >=x11-libs/cairo-1.8.8[X,svg] +RDEPEND=" + !dedicated? ( + >=media-libs/fontconfig-2.7.0 + media-libs/libsdl[X,opengl?] + media-libs/sdl-ttf[X] + >=media-libs/sdl-image-1.2.10[png] + sound? ( + >=media-libs/sdl-mixer-1.2.11[vorbis] + ) + ) + physfs? ( dev-games/physfs[zip] ) + !physfs? ( >=dev-libs/libzip-0.9 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +src_configure() { + local mycmakeargs+=( + $(cmake-utils_use_with sound AUDIO) + $(cmake-utils_use_build dedicated SERVER) + $(cmake-utils_use_with nls) + $(cmake-utils_use_with physfs) + $(cmake-utils_use_with opengl) + $(cmake-utils_use_enable ipv6) + $(cmake-utils_use debug DEVELOPER) + ) + + mycmakeargs+=( + "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}" + "-DCMAKE_INSTALL_ICONDIR=${GAMES_DATADIR_BASE}/pixmaps/" + "-DCMAKE_INSTALL_DESKTOPDIR=${GAMES_DATADIR_BASE}/applications/" + "-DCMAKE_DATA_PATH=${GAMES_DATADIR}" + "-DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/" + "-DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/${PF}" + "-DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR}" + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + prepgamesdirs +} diff --git a/games-arcade/tuxdash/Manifest b/games-arcade/tuxdash/Manifest new file mode 100644 index 000000000000..56b1ff5505d8 --- /dev/null +++ b/games-arcade/tuxdash/Manifest @@ -0,0 +1 @@ +DIST tuxdash_src_0.8.tar.bz2 447560 SHA256 6d29dbd5fba3c72e86d2ab2c036b24577d4eee1761467ac13924a43f2bcdbc02 SHA512 5c42b89ce3121025801d78d35962a2aa3d10e4443f6c929e7df4b45673e6285f37ed353877aa33eaa0edf584f7a428a8f485301ba1476865a498ab699ee81f86 WHIRLPOOL 1351f99690710124691a0ce1bc29c61bc29a78e07e7204c8c04de1775c73888aeb44b764471eb2b396ae305f45bbb6ca490c59afc7ed646c39f6fb3d4a08ba0b diff --git a/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch b/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch new file mode 100644 index 000000000000..00d2afb55307 --- /dev/null +++ b/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch @@ -0,0 +1,8 @@ +--- src/Makefile.old 2010-09-30 06:24:36.000000000 +0200 ++++ src/Makefile 2010-09-30 06:25:02.000000000 +0200 +@@ -1,4 +1,4 @@ + all: +- g++ main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --libs --cflags` -lSDL_ttf -o ../tuxdash ++ $(CXX) main.cpp $(LDFLAGS) $(E_CXXFLAGS) `/usr/bin/sdl-config --libs --cflags` -lSDL_ttf -o ../tuxdash + static: + g++ -static main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --cflags --static-libs` -lSDL_ttf -lfreetype -lz -o ../tuxdash diff --git a/games-arcade/tuxdash/metadata.xml b/games-arcade/tuxdash/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/tuxdash/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/tuxdash/tuxdash-0.8.ebuild b/games-arcade/tuxdash/tuxdash-0.8.ebuild new file mode 100644 index 000000000000..cf7d4c125899 --- /dev/null +++ b/games-arcade/tuxdash/tuxdash-0.8.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A simple BoulderDash clone" +HOMEPAGE="http://www.tuxdash.de/index.php?language=EN" +SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[video] + media-libs/sdl-ttf" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -f GPL TuxDash + sed -i \ + -e '/^Fullscreen/ s/0/1/' \ + -e "/^theme/ s:themes:${GAMES_DATADIR}/${PN}/themes:" \ + config || die "sed failed" + sed -i \ + -e '/PWD/d' \ + -e '/CurrentDirectory;/d' \ + -e "s:CurrentDirectory:\"${GAMES_DATADIR}/${PN}\":" \ + src/main.cpp || die "sed failed" + sed -i \ + -e 's/-Wall/$(E_CXXFLAGS)/' \ + -e 's/TuxDash/tuxdash/g' \ + src/Makefile || die "sed failed" + epatch "${FILESDIR}"/${P}-ldflags.patch + find . -type f -print0 | xargs -0 chmod a-x +} + +src_compile() { + emake E_CXXFLAGS="${CXXFLAGS}" -C src +} + +src_install() { + dogamesbin tuxdash + dodir "${GAMES_DATADIR}/${PN}" + cp -r themes maps fonts savegames config "${D}/${GAMES_DATADIR}/${PN}" \ + || die "cp failed" + dodoc README* + prepgamesdirs +} diff --git a/games-arcade/tuxpuck/Manifest b/games-arcade/tuxpuck/Manifest new file mode 100644 index 000000000000..3e4371885eab --- /dev/null +++ b/games-arcade/tuxpuck/Manifest @@ -0,0 +1 @@ +DIST tuxpuck-0.8.2.tar.gz 384009 SHA256 62d9604ed69c27b9ca2be1312bc705b36de8ed509c539c6d81193e7846272f18 SHA512 875680f7fd9d4257884c58d8a5529082aac4dc10f1a9c9d08acd4e67ddb5e9c66dd84a4fbcc27e3673e329d845b0966ea683412ffe61f0a403d195eac0f32a46 WHIRLPOOL 04bcb512a7b83cea122e982ce5c9b0c73585305878a959a03e8821109e8786258f4eb1dbb9abc66cf2e08a228ad9663077059b5ef4eafed8df575cec4ff498bd diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch new file mode 100644 index 000000000000..28fcef48a7ec --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-10-05 10:34:57.000000000 +0200 ++++ Makefile 2010-10-05 10:35:28.000000000 +0200 +@@ -20,7 +20,7 @@ + + $(NAME) : $(OBJS) + cd data; $(MAKE) +- $(CC) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \ ++ $(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \ + -ljpeg -lz -lvorbisfile -lvorbis -logg -o $(NAME) + + w32icon.o : data/icons/tuxpuck.ico diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch new file mode 100644 index 000000000000..cdcdecc42c32 --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch @@ -0,0 +1,58 @@ +--- data/Makefile.old 2015-01-07 14:22:34.852150894 +0100 ++++ data/Makefile 2015-01-07 14:57:44.079822614 +0100 +@@ -15,20 +15,29 @@ + ar r libdata.a $(OBJS) + ranlib libdata.a + +-$(SOURCES): +- cd ../utils/; $(MAKE) ++monos_fnt.c: + ../utils/ttf2font ttfs/mono.ttf monos.fnt 30 30 + ../utils/data2c monos.fnt monos_fnt ++ rm monos.fnt ++monob_fnt.c: + ../utils/ttf2font ttfs/mono.ttf monob.fnt 45 45 + ../utils/data2c monob.fnt monob_fnt +- rm *.fnt ++ rm monob.fnt ++title_jpg.c: + ../utils/data2c jpgs/title.jpg title_jpg ++board_jpg.c: + ../utils/data2c jpgs/board.jpg board_jpg ++logo_jpg.c: + ../utils/data2c jpgs/logo.jpg logo_jpg ++pad_png.c: pngs/pad.png + ../utils/data2c pngs/pad.png pad_png ++puck_png.c: pngs/puck.png + ../utils/data2c pngs/puck.png puck_png ++scoreboard_png.c: + ../utils/data2c pngs/scoreboard.png scoreboard_png ++mousebar_png.c: + ../utils/data2c pngs/mousebar.png mousebar_png ++glass_png.c: + ../utils/data2c pngs/glass.png glass_png + ../utils/data2c pngs/piece1.png piece1_png + ../utils/data2c pngs/piece2.png piece2_png +@@ -37,15 +46,22 @@ + ../utils/data2c pngs/piece5.png piece5_png + mv glass_png.c temp; cat temp piece?_png.c > glass_png.c + rm piece?_png.c temp ++crash_ogg.c: + ../utils/data2c sounds/crash.ogg crash_ogg ++nock_ogg.c: + ../utils/data2c sounds/nock.ogg nock_ogg ++tux_eyes_spr.c: + # Tux + ../utils/anim tux/eyes.ac tux_eyes.spr + ../utils/data2c tux_eyes.spr tux_eyes_spr + rm tux_eyes.spr ++tux_png.c: tux/tux.png + ../utils/data2c tux/tux.png tux_png ++tux_apps_ogg.c: + ../utils/data2c tux/apps.ogg tux_apps_ogg ++tux_boos_ogg.c: + ../utils/data2c tux/boos.ogg tux_boos_ogg ++arcana_png.c: + # Arcana + ../utils/data2c arcana/arcana.png arcana_png + clean : diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch new file mode 100644 index 000000000000..ca9539f39e51 --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch @@ -0,0 +1,63 @@ +--- png.c.old 2011-09-14 16:25:54.415338149 +0200 ++++ png.c 2011-09-14 17:41:02.190803110 +0200 +@@ -38,6 +38,8 @@ + png_color_16 *transv; + SDL_RWops *src = NULL; + Uint32 size; ++ int num_palette; ++ png_colorp png_palette; + + memcpy(&size, data, sizeof(Uint32)); + if (memcounter) +@@ -74,7 +76,7 @@ + * the normal method of doing things with libpng). REQUIRED unless you + * set up your own error handlers in png_create_read_struct() earlier. + */ +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + SDL_SetError("Error reading the PNG file."); + goto done; + } +@@ -142,9 +144,9 @@ + Rmask = 0x000000FF; + Gmask = 0x0000FF00; + Bmask = 0x00FF0000; +- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0; ++ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0; + } else { +- int s = (info_ptr->channels == 4) ? 0 : 8; ++ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8; + Rmask = 0xFF000000 >> s; + Gmask = 0x00FF0000 >> s; + Bmask = 0x0000FF00 >> s; +@@ -152,7 +154,7 @@ + } + } + surface = SDL_AllocSurface(SDL_SWSURFACE, width, height, +- bit_depth * info_ptr->channels, Rmask, Gmask, ++ bit_depth * png_get_channels(png_ptr, info_ptr), Rmask, Gmask, + Bmask, Amask); + if (surface == NULL) { + SDL_SetError("Out of memory"); +@@ -197,12 +199,15 @@ + palette->colors[i].g = i; + palette->colors[i].b = i; + } +- } else if (info_ptr->num_palette > 0) { +- palette->ncolors = info_ptr->num_palette; +- for (i = 0; i < info_ptr->num_palette; ++i) { +- palette->colors[i].b = info_ptr->palette[i].blue; +- palette->colors[i].g = info_ptr->palette[i].green; +- palette->colors[i].r = info_ptr->palette[i].red; ++ } else { ++ png_get_PLTE(png_ptr, info_ptr, &png_palette, &num_palette); ++ if (num_palette > 0) { ++ palette->ncolors = num_palette; ++ for (i = 0; i < num_palette; ++i) { ++ palette->colors[i].b = png_palette[i].blue; ++ palette->colors[i].g = png_palette[i].green; ++ palette->colors[i].r = png_palette[i].red; ++ } + } + } + } diff --git a/games-arcade/tuxpuck/metadata.xml b/games-arcade/tuxpuck/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/tuxpuck/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild new file mode 100644 index 000000000000..863111f923b7 --- /dev/null +++ b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Hover hockey" +HOMEPAGE="http://home.no.net/munsuun/tuxpuck/" +SRC_URI="http://home.no.net/munsuun/tuxpuck/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ppc ~sparc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/libpng:0 + virtual/jpeg:0 + media-libs/libvorbis" +DEPEND="${RDEPEND} + media-libs/freetype:2" + +src_prepare() { + # Bug #376741 - Make unpack call compatible with both + # PMS and <sys-apps/portage-2.1.10.10. + cd man || die + unpack ./${PN}.6.gz + cd .. || die + sed -i \ + -e 's/-Werror//' \ + -e '/^CC/d' \ + Makefile \ + utils/Makefile \ + data/Makefile \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-png15.patch \ + "${FILESDIR}"/${P}-parallel.patch +} + +src_compile() { + emake -C utils + emake -C data + emake +} + +src_install() { + dogamesbin tuxpuck + doman man/tuxpuck.6 + dodoc *.txt + doicon data/icons/${PN}.ico + make_desktop_entry ${PN} "TuxPuck" /usr/share/pixmaps/${PN}.ico + prepgamesdirs +} diff --git a/games-arcade/vor/Manifest b/games-arcade/vor/Manifest new file mode 100644 index 000000000000..c17903091bbc --- /dev/null +++ b/games-arcade/vor/Manifest @@ -0,0 +1 @@ +DIST vor-0.5.5.tar.bz2 239291 SHA256 ead1b9786741e26d37ff7c5185b7fe1e91f90f76ebed3785225312e323b7c7da SHA512 a4de43699b78adfe28bbd773cd9f9d1e3ee50b51b4e1848ff1baf836f6242d8391a304445994ca669eab13acbd2dd3ae49f0665bdb07d19c7a1674e0dde9bfbd WHIRLPOOL d0a63aa4b0c42e234593ed9ba09017ef3ab1a00de8ba8580dffefcd88ea0d09c8bc4e1d7edf6ef10cee319d1c17db9fef024aa6ffb495462cc97bf90ad8dbc46 diff --git a/games-arcade/vor/files/vor-0.5.5-underlink.patch b/games-arcade/vor/files/vor-0.5.5-underlink.patch new file mode 100644 index 000000000000..0645c5695733 --- /dev/null +++ b/games-arcade/vor/files/vor-0.5.5-underlink.patch @@ -0,0 +1,26 @@ +--- Makefile.in ++++ Makefile.in +@@ -43,7 +43,7 @@ + SDL_CFLAGS := @SDL_CFLAGS@ + SDL_LIBS := @SDL_LIBS@ + +-ldflags := $(SDL_LIBS) -lSDL_image -lSDL_mixer $(LDFLAGS) ++ldflags := $(LIBS) $(SDL_LIBS) $(LDFLAGS) + cflags := -I. $(SDL_CFLAGS) $(paths) $(CFLAGS) + + my_objects := args.@OBJEXT@ dust.@OBJEXT@ file.@OBJEXT@ mt.@OBJEXT@ rocks.@OBJEXT@ score.@OBJEXT@ sprite.@OBJEXT@ sound.@OBJEXT@ autopilot.@OBJEXT@ + +--- configure.ac ++++ configure.ac +@@ -12,6 +12,11 @@ + AC_PROG_MAKE_SET + + # Checks for libraries. ++dnl Check for libm for sqrt() ++AC_SEARCH_LIBS([sqrt], [m], [], [ ++ AC_MSG_ERROR([unable to find the sqrt() function]) ++]) ++ + AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW]) + AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio]) + diff --git a/games-arcade/vor/metadata.xml b/games-arcade/vor/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/vor/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/vor/vor-0.5.5.ebuild b/games-arcade/vor/vor-0.5.5.ebuild new file mode 100644 index 000000000000..381a9c5eb497 --- /dev/null +++ b/games-arcade/vor/vor-0.5.5.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils gnome2-utils games + +DESCRIPTION="Variations on Rockdodger: Dodge the rocks until you die" +HOMEPAGE="http://jasonwoof.org/vor" +SRC_URI="http://qualdan.com/vor/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-image[png] + media-libs/sdl-mixer[mod]" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-underlink.patch" + eautoreconf +} + +src_install() { + dodir "${GAMES_BINDIR}" + DOCS="README* todo" default + newicon -s 48 data/icon.png ${PN}.png + make_desktop_entry ${PN} VoR + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} diff --git a/games-arcade/watermelons/Manifest b/games-arcade/watermelons/Manifest new file mode 100644 index 000000000000..a2557c231673 --- /dev/null +++ b/games-arcade/watermelons/Manifest @@ -0,0 +1 @@ +DIST melons-1.1.1.tgz 318692 SHA256 7433004460bf97a055d7c4c28fc274eeda920f30d5441e76020a7b8db223a336 SHA512 50bb66de9806fb1bbe946ad5063e68d3327d6184b3e95230573f71053426ed877fc9762ef2b44e6964c9d7b8dc5081e9c3015885800dd6644a1dd88c9c5dc357 WHIRLPOOL 8f9c5ecb7591949deaa83a60a7334cec3822c7116a4d3a66c069bcacc523b3f9c708ba276845f4a11df1e5e6642e144cce1eb74976c4a96e0609396d1feb6b32 diff --git a/games-arcade/watermelons/metadata.xml b/games-arcade/watermelons/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/watermelons/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild b/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild new file mode 100644 index 000000000000..f0541d5e2026 --- /dev/null +++ b/games-arcade/watermelons/watermelons-1.1.1-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +MY_PN="melons" +DESCRIPTION="A thrilling watermelon bouncing game" +HOMEPAGE="http://www.imitationpickles.org/melons/index.html" +SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tgz" +# No version upstream +#SRC_URI="http://www.imitationpickles.org/${MY_PN}/${MY_PN}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +DEPEND="dev-python/pygame[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +RDEPEND=${DEPEND} +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/${MY_PN} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + sed -i \ + -e "s:melons.hs:${GAMES_STATEDIR}/${PN}/&:" \ + main.py || die + + cat <<-EOF > "${PN}" || die + #!/bin/bash + cd "${GAMES_DATADIR}/${PN}" + exec ${EPYTHON} main.py +EOF +} + +src_install() { + dogamesbin ${PN} + insinto "${GAMES_DATADIR}/${PN}" + doins -r data pgu const.py game.py main.py melon.py melons.py menu.py trampoline.py + python_optimize "${D}${GAMES_DATADIR}/${PN}" + dodoc *.txt + dodir "${GAMES_STATEDIR}/${PN}" + touch "${D}${GAMES_STATEDIR}"/${PN}/melons.hs + fperms 664 "${GAMES_STATEDIR}"/${PN}/melons.hs + newicon data/mellon0013.png "${PN}.png" + make_desktop_entry ${PN} Watermelons + prepgamesdirs +} diff --git a/games-arcade/whichwayisup/Manifest b/games-arcade/whichwayisup/Manifest new file mode 100644 index 000000000000..03c5b3b29299 --- /dev/null +++ b/games-arcade/whichwayisup/Manifest @@ -0,0 +1 @@ +DIST whichwayisup_b079.zip 1001890 SHA256 bcc2b7fc8719a8e055969c8eac099b7c40b9d68f36ba1f83d690216bdcdd51f6 SHA512 49ac6b8224f3cf7b0711b297c9dd96ff2a0969f7c16fa1da500bef1ea5d793bd900be124a9b9874239c98db6fd2db92917b8ce2ee09b685e184cfd87bf519809 WHIRLPOOL 4558b17429c6680b39212bc584a18a78847e3845d3eea53889c1c24af09d43d9cfe4301151b89dec40d65e834f546e397466190e6dd0f6c62eb65ba7f33ce56f diff --git a/games-arcade/whichwayisup/files/whichwayisup-32.xpm b/games-arcade/whichwayisup/files/whichwayisup-32.xpm new file mode 100644 index 000000000000..f5a6ff33c0dc --- /dev/null +++ b/games-arcade/whichwayisup/files/whichwayisup-32.xpm @@ -0,0 +1,67 @@ +/* XPM */ +static char * whichwayisup_32_xpm[] = { +"32 32 32 1", +" c None", +". c #03151B", +"+ c #016C87", +"@ c #225361", +"# c #363636", +"$ c #387D9A", +"% c #0A2B35", +"& c #4E4F50", +"* c #ECEBEB", +"= c #9D866F", +"- c #E3D9D3", +"; c #A8947C", +"> c #CDCDCD", +", c #C5BDA7", +"' c #B2A38C", +") c #D0C9B4", +"! c #AEACAB", +"~ c #FDFDFD", +"{ c #020202", +"] c #856B5D", +"^ c #262524", +"/ c #6E6E6E", +"( c #888987", +"_ c #121111", +": c #9E9D9D", +"< c #4F6871", +"[ c #BCBDBD", +"} c #023B4A", +"| c #6E4C3B", +"1 c #7D5945", +"2 c #4F2C21", +"3 c #401D14", +" .+@@# ", +" ++++$ ", +" #%&@&@@@. ", +" *=-;>,'- ", +" )*=!~ ", +" {{#]]]#{{ ", +" {{^^%+@/(%_/#_ ", +" {{&:*>@+<&<<%[~[&{ ", +" _#:~~~~<+@/@&&(-~~/_ ", +" _#>~~[<^{}%%@{_&{<>~:{ ", +" _#-~>&{{ }}.+{ {^:~({ ", +" ^>~>_^(;>,:((((--,) {(~& ", +" {(~*#{ ,),))))))),,; _>[{ ", +" #^*~({ ;',,,,,),,,=| {&*# ", +" _/~~&{ ;;',)),)),=1] ^*/{ ", +" _(~*^_ =;;'),,))=|11 {>[_ ", +" _!~*_{ ====',,,=|1|2 {:-^ ", +" _:~*^{ ;;;';')=|]1## {:*^ ", +" {(~*^{ ;=;=;=]||12&2 {:~^ ", +" _&~~&{ ==;==|321^:/^ {[~^ ", +" _>~/{ =';;13222&~#3 {#~>_ ", +" {/~!{ =;=|3333_[~^# {:~(^ ", +" ^_>~^{ ''|3222_#~*^| {#~*^ ", +" {#~:{&'123232{/~*^^{_>~/{ ", +" {&*&^|323333{(~*&{#>~:{ ", +" {&!# {(~~[!*~:{{ ", +" {^#_ {/~*~~~:{{ ", +" __{{ {#~~~~~:^{ ", +" _>~~~~~-/_{ ", +" {#([*~~~~[&_{ ", +" {{^&(:[**!&{ ", +" {{_^&&#{"}; diff --git a/games-arcade/whichwayisup/metadata.xml b/games-arcade/whichwayisup/metadata.xml new file mode 100644 index 000000000000..d0b9efb23429 --- /dev/null +++ b/games-arcade/whichwayisup/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription>A traditional and challenging 2D platformer game with a + slight rotational twist. Help a mysterious big-eared salaryman named Guy + find his keys in a labyrinth of dangers and bad dialogue.</longdescription> +</pkgmetadata> diff --git a/games-arcade/whichwayisup/whichwayisup-0.7.9-r1.ebuild b/games-arcade/whichwayisup/whichwayisup-0.7.9-r1.ebuild new file mode 100644 index 000000000000..50d541b356ce --- /dev/null +++ b/games-arcade/whichwayisup/whichwayisup-0.7.9-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 games + +MY_PV=${PV//./} +MY_P=${PN}_b${MY_PV} +DESCRIPTION="A traditional and challenging 2D platformer game with a slight rotational twist" +HOMEPAGE="http://hectigo.net/puskutraktori/whichwayisup/" +SRC_URI="http://hectigo.net/puskutraktori/whichwayisup/${MY_P}.zip" + +LICENSE="GPL-2 CC-BY-3.0" +SLOT="0" +KEYWORDS="amd64 ppc x86" +IUSE="" + +RDEPEND="dev-python/pygame[${PYTHON_USEDEP}] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + app-arch/unzip" +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/${PN} + +pkg_setup() { + python-single-r1_pkg_setup + games_pkg_setup +} + +src_prepare() { + sed -i \ + -e "s:libdir\ =\ .*:libdir\ =\ \"$(games_get_libdir)/${PN}\":" \ + run_game.py || die + sed -i \ + -e "s:data_dir\ =\ .*:data_dir\ =\ \"${GAMES_DATADIR}/${PN}\":" \ + lib/data.py || die + rm data/pictures/Thumbs.db + python_fix_shebang . +} + +src_install() { + newgamesbin run_game.py ${PN} + + insinto "$(games_get_libdir)/${PN}" + doins lib/*.py + + python_optimize "${D}$(games_get_libdir)/${PN}" + + dodoc README.txt changelog.txt + + insinto "${GAMES_DATADIR}/${PN}" + doins -r data/* + + newicon "${FILESDIR}"/${PN}-32.xpm ${PN}.xpm + make_desktop_entry ${PN} "Which Way Is Up?" + prepgamesdirs +} diff --git a/games-arcade/wop/Manifest b/games-arcade/wop/Manifest new file mode 100644 index 000000000000..dc9bb7d31fd8 --- /dev/null +++ b/games-arcade/wop/Manifest @@ -0,0 +1,2 @@ +DIST wop-0.4.3-src.tar.bz2 280974 SHA256 7e7213e5e5f5af9154c255132ca772c8e6d7815a1a1915fc5faa443c8f40ff23 SHA512 259f9f455e6fbfae2ffb6e169dcf1661f1353e28a5e51b6e907f2868a50c5f54982b4d383dcfcec201c9a2d0429fb468c44c974695364c5fd28d25328e10c6b8 WHIRLPOOL 96c0f518f6b38cbfdc79e681a07cf70f5da2b97733cfd92f9ad8266491e5a841cb8fa59d873e80405c76cc3df75535b60945bb5546851f34d989e54ba18ce7fa +DIST wopdata-2005-12-21.tar.bz2 4217006 SHA256 cd6b8eb9f77f709d7a52b913d8a665bd202c53ceca9cf96b4c9f9adc17d8a6b2 SHA512 6ebc264d1811091550d664a77aeae68184a058c666db486e4ae411e0849abbd02dd2037a3a1a9a31a73774e5f616c21840b0c1de58636dde0e59bd0e952cb505 WHIRLPOOL cebc7aceea1fb2736d466baf903c373a1444879da58a551b5d553e8b989d50e5a26bc1e71ebb7d289c5c8253a47b004c5461e91f23527db615f627a23be327a9 diff --git a/games-arcade/wop/files/wop-0.4.3-Makefile.patch b/games-arcade/wop/files/wop-0.4.3-Makefile.patch new file mode 100644 index 000000000000..a7d2e67f9dc6 --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-Makefile.patch @@ -0,0 +1,54 @@ +--- Makefile.orig 2007-04-23 18:27:32 +0000 ++++ Makefile 2007-04-23 18:27:50 +0000 +@@ -3,22 +3,22 @@ + sinclude Makefile.local + + all: +- +cd sdlwidgets; make +- +cd src; make ++ +cd sdlwidgets; $(MAKE) ++ +cd src; $(MAKE) + runc: +- +cd src; make runc ++ +cd src; $(MAKE) runc + runs: +- +cd src; make runs ++ +cd src; $(MAKE) runs + doc: +- cd src; make doc ++ cd src; $(MAKE) doc + clean: +- cd sdlwidgets; make clean +- cd src; make clean ++ cd sdlwidgets; $(MAKE) clean ++ cd src; $(MAKE) clean + cd doc; rm -rf html + unison: +- cd src; make unison ++ cd src; $(MAKE) unison + gunison: +- cd src; make gunison ++ cd src; $(MAKE) gunison + snapshot-src: + ln -s . wop; \ + tar cjvf wop-`date +%F`.tar.bz2 \ +--- src/Makefile.orig 2006-02-13 10:14:01.000000000 +0100 ++++ src/Makefile 2007-04-27 18:36:22.000000000 +0200 +@@ -18,7 +18,7 @@ + -DUSE_SDL -DNEW=new\(std::nothrow\) \ + -I../sdlwidgets \ + $(shell sdl-config --cflags) # -g +-LDFLAGS = -L../sdlwidgets -lsdlwidgets -lz \ ++LIBS = -L../sdlwidgets -lsdlwidgets -lz \ + -lm -lSDL_net -lSDL_mixer -lSDL_ttf -lSDL_image \ + $(shell sdl-config --libs) # -g + +@@ -56,7 +56,7 @@ + + $(TARGET): $(OBJECT_FILES) Makefile ../sdlwidgets/libsdlwidgets.a + -mkdir ../bin +- $(CXX) $(OBJECT_FILES) -o $(TARGET) $(LDFLAGS) ++ $(CXX) $(LDFLAGS) $(OBJECT_FILES) -o $(TARGET) $(LIBS) + + %.o: %.cpp Makefile + $(CXX) $(CXXFLAGS) -c $< -o $@
\ No newline at end of file diff --git a/games-arcade/wop/files/wop-0.4.3-gcc43.patch b/games-arcade/wop/files/wop-0.4.3-gcc43.patch new file mode 100644 index 000000000000..903a97ba92ce --- /dev/null +++ b/games-arcade/wop/files/wop-0.4.3-gcc43.patch @@ -0,0 +1,32 @@ +--- src/scusibot.cpp.old 2010-01-05 15:41:23.000000000 +0100 ++++ src/scusibot.cpp 2010-01-05 15:41:46.000000000 +0100 +@@ -5,6 +5,7 @@ + #include "stationarygun.hpp" + #include "global.hpp" + #include <vector> ++#include <algorithm> + + ScusiBot::ScusiBot() + : m_event( Event::EMPTY ), m_count( 0 ), m_state( IDLE ) { +--- src/gameinfowindow.cpp.old 2010-01-05 15:45:09.000000000 +0100 ++++ src/gameinfowindow.cpp 2010-01-05 15:46:08.000000000 +0100 +@@ -10,6 +10,8 @@ + #include "avatarworm.hpp" + #include "wopsprites.hpp" + #include "wopsprites.cpp" ++#include "spriteset.cpp" ++#include "spritesequence.cpp" + #include "scorekeeper.hpp" + #include "wopgui.hpp" + +--- src/map.cpp.old 2010-01-05 15:46:35.000000000 +0100 ++++ src/map.cpp 2010-01-05 15:47:06.000000000 +0100 +@@ -9,6 +9,8 @@ + #include "world.hpp" + #include "wopsettings.hpp" + #include "objectpaths.hpp" ++#include "spriteset.cpp" ++#include "spritesequence.cpp" + + /**********************************************************/ + diff --git a/games-arcade/wop/metadata.xml b/games-arcade/wop/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/wop/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/wop/wop-0.4.3-r1.ebuild b/games-arcade/wop/wop-0.4.3-r1.ebuild new file mode 100644 index 000000000000..c8edd635a714 --- /dev/null +++ b/games-arcade/wop/wop-0.4.3-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit eutils toolchain-funcs games + +MY_DATA_V="2005-12-21" +MY_DATA_P="${PN}data-${MY_DATA_V}" +DESCRIPTION="Worms of Prey - A multi-player, real-time clone of Worms" +HOMEPAGE="http://wormsofprey.org/" +SRC_URI="http://wormsofprey.org/download/${P}-src.tar.bz2 + http://wormsofprey.org/download/${MY_DATA_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/sdl-net + media-libs/sdl-image + media-libs/sdl-mixer + media-libs/sdl-ttf" +DEPEND="${RDEPEND} + x11-misc/makedepend" + +MY_DATA_S=${WORKDIR}/${MY_DATA_P} + +src_prepare() { + # correct path to global woprc + sed -i \ + -e "s:/etc/woprc:${GAMES_SYSCONFDIR}/woprc:g" \ + src/wopsettings.cpp \ + || die "sed failed" + # patch global woprc with the correct data files location and install it + sed -i \ + -e "s:^data =.*$:data = ${GAMES_DATADIR}/${PN}:" \ + woprc \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-Makefile.patch \ + "${FILESDIR}"/${P}-gcc43.patch +} + +src_compile() { + emake CXX=$(tc-getCXX) +} + +src_install() { + dogamesbin bin/${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins -r "${MY_DATA_S}"/* + insinto "${GAMES_SYSCONFDIR}" + doins woprc + newicon "${MY_DATA_S}"/images/misc/icons/wop16.png ${PN}.png + make_desktop_entry wop "Worms of Prey" + dodoc AUTHORS ChangeLog README{,-Libraries.txt} REVIEWS + prepgamesdirs +} diff --git a/games-arcade/xbill/Manifest b/games-arcade/xbill/Manifest new file mode 100644 index 000000000000..8e9493fbe8ab --- /dev/null +++ b/games-arcade/xbill/Manifest @@ -0,0 +1 @@ +DIST xbill-2.1.tar.gz 77610 SHA256 0efdfff1ce2df70b7a15601cb488cd7b2eb918d21d78e877bd773f112945608d SHA512 127604d88258db0ec47084209c656f8817146d70b0fe16f5a1d79883415cf38200594834b39080d78c627104ae6d204f3c12caf127fa094108c4edfbfa98d966 WHIRLPOOL 2c3a68d4b5873f63d4f9f68507a1647692222aa0a04b95a416a07846d60e924059ebc8b614c148e5fedf255c52a4d3d273a0ebfa525ca1eca2704e9f54d0a1d2 diff --git a/games-arcade/xbill/files/xbill-2.1-gentoo.patch b/games-arcade/xbill/files/xbill-2.1-gentoo.patch new file mode 100644 index 000000000000..3446de74c92d --- /dev/null +++ b/games-arcade/xbill/files/xbill-2.1-gentoo.patch @@ -0,0 +1,353 @@ +diff -urN xbill-2.1.orig/bitmaps/gentoo.xbm xbill-2.1/bitmaps/gentoo.xbm +--- xbill-2.1.orig/bitmaps/gentoo.xbm 1970-01-01 01:00:00.000000000 +0100 ++++ xbill-2.1/bitmaps/gentoo.xbm 2008-08-23 00:48:57.000000000 +0200 +@@ -0,0 +1,11 @@ ++#define gentoo_width 28 ++#define gentoo_height 24 ++static unsigned char gentoo_bits[] = { ++ 0x00, 0x69, 0x00, 0x00, 0x20, 0x80, 0x03, 0x00, 0x10, 0x00, 0x0e, 0x00, ++ 0x08, 0x00, 0x18, 0x00, 0x04, 0x00, 0x70, 0x00, 0x02, 0xc0, 0xa5, 0x00, ++ 0x02, 0xf0, 0x69, 0x00, 0x02, 0xf8, 0xc1, 0x01, 0x06, 0xe0, 0x5a, 0x01, ++ 0x0c, 0x00, 0xa0, 0x03, 0x38, 0x00, 0x54, 0x01, 0xe0, 0x00, 0xa8, 0x09, ++ 0x00, 0x00, 0x52, 0x04, 0x00, 0x00, 0x2a, 0x06, 0x00, 0x00, 0x14, 0x03, ++ 0x00, 0x80, 0x82, 0x00, 0x00, 0x00, 0x61, 0x00, 0x00, 0x20, 0x38, 0x00, ++ 0x00, 0x00, 0x0e, 0x00, 0x00, 0x80, 0x03, 0x00, 0x01, 0xe0, 0x00, 0x00, ++ 0x02, 0x7c, 0x00, 0x00, 0xfe, 0x0f, 0x00, 0x00, 0xf8, 0x01, 0x00, 0x00 }; +diff -urN xbill-2.1.orig/gtk.c xbill-2.1/gtk.c +--- xbill-2.1.orig/gtk.c 2001-10-30 19:28:27.000000000 +0100 ++++ xbill-2.1/gtk.c 2008-08-23 00:57:55.000000000 +0200 +@@ -179,6 +179,7 @@ + #include "bitmaps/hand_down_mask.xbm" + #include "bitmaps/hand_up.xbm" + #include "bitmaps/hand_up_mask.xbm" ++#include "bitmaps/gentoo.xbm" + + typedef struct cursormap { + const char *name; +@@ -195,7 +196,7 @@ + static cursormap cursors[] = { + CURSOR_ADD(apple), CURSOR_ADD(bsd), CURSOR_ADD(hurd), + CURSOR_ADD(linux), CURSOR_ADD(next), CURSOR_ADD(os2), CURSOR_ADD(palm), +- CURSOR_ADD(redhat), CURSOR_ADD(sgi), CURSOR_ADD(sun), ++ CURSOR_ADD(redhat), CURSOR_ADD(sgi), CURSOR_ADD(sun), CURSOR_ADD(gentoo), + CURSOR_ADD(bucket), + CURSOR_ADD_MASKED(hand_up), CURSOR_ADD_MASKED(hand_down), + {NULL, 0, 0, NULL, NULL}, +diff -urN xbill-2.1.orig/Makefile.in xbill-2.1/Makefile.in +--- xbill-2.1.orig/Makefile.in 2001-10-30 19:31:09.000000000 +0100 ++++ xbill-2.1/Makefile.in 2008-08-23 00:50:05.000000000 +0200 +@@ -46,13 +46,13 @@ + pixmaps/palm.xpm pixmaps/palmcpu.xpm pixmaps/redhat.xpm \ + pixmaps/sgi.xpm pixmaps/sgicpu.xpm pixmaps/spark_0.xpm \ + pixmaps/spark_1.xpm pixmaps/sun.xpm pixmaps/suncpu.xpm \ +- pixmaps/toaster.xpm pixmaps/wingdows.xpm ++ pixmaps/toaster.xpm pixmaps/wingdows.xpm pixmaps/gentoo.xpm + + XBMS = bitmaps/apple.xbm bitmaps/bsd.xbm bitmaps/bucket.xbm \ + bitmaps/hand_down.xbm bitmaps/hand_down_mask.xbm bitmaps/hand_up.xbm \ + bitmaps/hand_up_mask.xbm bitmaps/hurd.xbm bitmaps/linux.xbm \ + bitmaps/next.xbm bitmaps/os2.xbm bitmaps/palm.xbm bitmaps/redhat.xbm \ +- bitmaps/sgi.xbm bitmaps/sun.xbm ++ bitmaps/sgi.xbm bitmaps/sun.xbm bitmaps/gentoo.xbm + + MANDIR = man6 + MAN = xbill.6 +diff -urN xbill-2.1.orig/OS.c xbill-2.1/OS.c +--- xbill-2.1.orig/OS.c 2001-10-30 19:28:27.000000000 +0100 ++++ xbill-2.1/OS.c 2008-08-23 00:50:26.000000000 +0200 +@@ -7,7 +7,7 @@ + #define MIN_PC 6 /* OS >= MIN_PC means the OS is a PC OS */ + + static const char *osname[] = {"wingdows", "apple", "next", "sgi", "sun", +- "palm", "os2", "bsd", "linux", "redhat", "hurd"}; ++ "palm", "os2", "bsd", "linux", "redhat", "hurd", "gentoo"}; + #define NUM_OS (sizeof(osname) / sizeof(osname[0])) + + static Picture *os[NUM_OS]; /* array of OS pictures*/ +diff -urN xbill-2.1.orig/pixmaps/gentoo.xpm xbill-2.1/pixmaps/gentoo.xpm +--- xbill-2.1.orig/pixmaps/gentoo.xpm 1970-01-01 01:00:00.000000000 +0100 ++++ xbill-2.1/pixmaps/gentoo.xpm 2008-08-23 00:49:01.000000000 +0200 +@@ -0,0 +1,283 @@ ++/* XPM */ ++static char * gentoo_xpm[] = { ++"28 24 256 2", ++" c None", ++". c #9B91FA", ++"+ c #998FFB", ++"@ c #9D97C7", ++"# c #958EC6", ++"$ c #FEFEFE", ++"% c #FFFFFF", ++"& c #FCFCFE", ++"* c #F3F3FC", ++"= c #C4C0EF", ++"- c #948BE3", ++"; c #958BF1", ++"> c #9992D1", ++", c #D8D6F0", ++"' c #F7F7FC", ++") c #EDEDFB", ++"! c #E4E3FA", ++"~ c #DAD9F8", ++"{ c #9185F7", ++"] c #9287F7", ++"^ c #948BE4", ++"/ c #FAFAFD", ++"( c #F0F0FC", ++"_ c #E7E6FA", ++": c #DCDCF7", ++"< c #D3D2F7", ++"[ c #C9C8F5", ++"} c #9D95F6", ++"| c #9184F7", ++"1 c #8F83F4", ++"2 c #FCFCFD", ++"3 c #F2F2FB", ++"4 c #E9E8FA", ++"5 c #DFDEF8", ++"6 c #D5D4F6", ++"7 c #CBCAF4", ++"8 c #C1C0F3", ++"9 c #BBBAF2", ++"0 c #AAA4F4", ++"a c #9388F8", ++"b c #CECDF5", ++"c c #9E95F6", ++"d c #E0E0F8", ++"e c #D6D5F7", ++"f c #CCCBF5", ++"g c #C2C1F2", ++"h c #BBB8F2", ++"i c #B5B2F4", ++"j c #B5B2F2", ++"k c #9084EF", ++"l c #8E82F8", ++"m c #EBE9FD", ++"n c #9184F2", ++"o c #9084F0", ++"p c #998FF6", ++"q c #908AB7", ++"r c #D5D5F5", ++"s c #CCCCF4", ++"t c #C3C2F3", ++"u c #BBB9F2", ++"v c #B5B2F3", ++"w c #AFABF3", ++"x c #C3C2F4", ++"y c #C6C6F4", ++"z c #8E81F4", ++"A c #9186ED", ++"B c #9287ED", ++"C c #9287EB", ++"D c #524C76", ++"E c #CCCBF4", ++"F c #BBB9F3", ++"G c #AFABF4", ++"H c #AAA5F5", ++"I c #D9D8F6", ++"J c #DADAF7", ++"K c #9085EF", ++"L c #C5C2F6", ++"M c #FEFEFF", ++"N c #9D97C9", ++"O c #8C86B3", ++"P c #938AE6", ++"Q c #514C76", ++"R c #CBCBF5", ++"S c #BAB9F2", ++"T c #B4B1F3", ++"U c #AFAAF4", ++"V c #A9A4F5", ++"W c #A59DF6", ++"X c #E0DEF9", ++"Y c #EFEFFC", ++"Z c #9388EA", ++"` c #BCBCF3", ++" . c #BCBBF2", ++".. c #BEBDF2", ++"+. c #FBFBFE", ++"@. c #FAFAFF", ++"#. c #E7E7F9", ++"$. c #DEDEF9", ++"%. c #D4D4F7", ++"&. c #CAC9F4", ++"*. c #C0BFF3", ++"=. c #BAB8F2", ++"-. c #B4B0F4", ++";. c #AEAAF4", ++">. c #A9A3F5", ++",. c #A39CF6", ++"'. c #9F96F5", ++"). c #958AE3", ++"!. c #D2D2F6", ++"~. c #D3D2F6", ++"{. c #D6D5F6", ++"]. c #F9F9FD", ++"^. c #EFEFFB", ++"/. c #E5E5F9", ++"(. c #DCDBF8", ++"_. c #D2D1F6", ++":. c #C8C7F4", ++"<. c #BFBEF3", ++"[. c #B9B7F2", ++"}. c #B3AFF4", ++"|. c #ADA9F3", ++"1. c #A9A1F5", ++"2. c #A29CF6", ++"3. c #9E95F7", ++"4. c #F3F2FE", ++"5. c #968DDE", ++"6. c #968EDD", ++"7. c #978DDC", ++"8. c #988EDB", ++"9. c #EAEAFA", ++"0. c #FFFFFE", ++"a. c #F5F5FD", ++"b. c #EBEBFB", ++"c. c #E2E2F8", ++"d. c #D8D8F8", ++"e. c #D0CEF6", ++"f. c #C6C5F4", ++"g. c #B7B4F3", ++"h. c #B1AEF4", ++"i. c #ADA8F5", ++"j. c #A7A1F5", ++"k. c #A19AF6", ++"l. c #9D93F7", ++"m. c #9890D6", ++"n. c #FBFBFD", ++"o. c #FAFAFE", ++"p. c #F1F1FB", ++"q. c #E8E7F9", ++"r. c #D5D5F7", ++"s. c #C2C1F3", ++"t. c #BBBAF3", ++"u. c #B5B3F2", ++"v. c #B1ACF4", ++"w. c #ABA6F4", ++"x. c #A69FF5", ++"y. c #A199F6", ++"z. c #9D96C8", ++"A. c #FDFDFD", ++"B. c #F5F5FC", ++"C. c #ECECFB", ++"D. c #E3E3F9", ++"E. c #D2D0F6", ++"F. c #C8C8F5", ++"G. c #BFBEF2", ++"H. c #B9B7F3", ++"I. c #AAA4F5", ++"J. c #9E96F5", ++"K. c #9B95C3", ++"L. c #9B95C2", ++"M. c #CDCCF4", ++"N. c #C4C3F3", ++"O. c #BCBAF2", ++"P. c #B1AEF3", ++"Q. c #ACA8F4", ++"R. c #958FBC", ++"S. c #948EBB", ++"T. c #F8F8FC", ++"U. c #F1F1FC", ++"V. c #E9E9FB", ++"W. c #E1E1F9", ++"X. c #D9D8F8", ++"Y. c #D0D0F6", ++"Z. c #C7C7F4", ++"`. c #B5B1F4", ++" + c #B0ABF4", ++".+ c #908AB8", ++"++ c #8E88B6", ++"@+ c #8E88B5", ++"#+ c #9892C2", ++"$+ c #FEFEFD", ++"%+ c #F1F0FB", ++"&+ c #EAE9FA", ++"*+ c #E2E2F9", ++"=+ c #DBDAF7", ++"-+ c #CBCAF5", ++";+ c #BCB9F2", ++">+ c #B6B4F2", ++",+ c #8A84B1", ++"'+ c #8983B0", ++")+ c #9791BE", ++"!+ c #F0EFFB", ++"~+ c #E8E9FB", ++"{+ c #E2E1F9", ++"]+ c #DBDAF8", ++"^+ c #D3D3F7", ++"/+ c #C5C4F4", ++"(+ c #D0CFF7", ++"_+ c #857FAB", ++":+ c #847EAA", ++"<+ c #837DA8", ++"[+ c #F6F6FD", ++"}+ c #F2F1FC", ++"|+ c #ECECFA", ++"1+ c #E6E7F9", ++"2+ c #E1E0F9", ++"3+ c #D4D3F6", ++"4+ c #C5C4F3", ++"5+ c #D1CFDF", ++"6+ c #7E78A5", ++"7+ c #7D77A4", ++"8+ c #F3F2FB", ++"9+ c #F0EFFC", ++"0+ c #E8E8FA", ++"a+ c #DFDEF9", ++"b+ c #D3D1F5", ++"c+ c #C3C3F3", ++"d+ c #FDFDFE", ++"e+ c #78729E", ++"f+ c #77719D", ++"g+ c #76709C", ++"h+ c #EAEAFB", ++"i+ c #E6E6FA", ++"j+ c #6B6594", ++"k+ c #736D99", ++"l+ c #736D98", ++"m+ c #726C97", ++"n+ c #7A749F", ++"o+ c #DADAF8", ++"p+ c #6F6995", ++"q+ c #6E6894", ++"r+ c #6C6693", ++"s+ c #6C6692", ++"t+ c #C7C4D5", ++"u+ c #6D6792", ++"v+ c #6B658F", ++"w+ c #6A648E", ++"x+ c #68628D", ++"y+ c #67618D", ++"z+ c #67618B", ++"A+ c #69638E", ++"B+ c #68628E", ++"C+ c #67618C", ++"D+ c #655F8A", ++"E+ c #645E89", ++"F+ c #645E88", ++"G+ c #635D88", ++" . + ", ++" @ # $ % % & * = - ; ", ++" > , % % % % % % ' ) ! ~ { ] ", ++" ^ % % % % % % % % / ( _ : < [ } | ", ++" 1 $ $ $ $ $ $ $ $ $ 2 3 4 5 6 7 8 9 0 ", ++" a % $ % $ % $ % $ % $ % b c d e f g h i j k ", ++" l % % % $ $ % % $ $ % m n o p q r s t u v w x y ", ++" z $ % % $ $ % % $ $ v A B C C D D E g F i G H I J ", ++" K G L % % % % % % % M N O P Q e R g S T U V W X Y ", ++" Z ` ...$ % % % $ % % +.@.#.$.%.&.*.=.-.;.>.,.'.$ $ ", ++" ).).!.~.{.% $ $ $ % ].^./.(._.:.<.[.}.|.1.2.3.4.$ ", ++" 5.6.7.8.9.) $ $ 0.a.b.c.d.e.f.` g.h.i.j.k.l.$ $ ", ++" m.n.$ % $ o.p.q.5 r.f s.t.u.v.w.x.y.$ % z.", ++" $ $ $ $ $ A.B.C.D.J E.F.G.H.T ;.I.J.$ $ K.L.", ++" $ $ % $ $ $ ' ^._ $.e M.N.O.g.P.Q.% % $ R.S. ", ++" $ $ % $ $ $ T.U.V.W.X.Y.Z.<.H.`. +$ % .+++@+ ", ++" #+$ $ $ $ $ $+T.%+&+*+=+!.-+t ;+>+% $ $ ,+'+ ", ++" )+$ % % $ $ / B.!+~+{+]+^+f /+ .(+$ % _+:+<+ ", ++" % $ % & ].[+}+|+1+2+=+3+s 4+9 % % 5+6+7+ ", ++"'+$ [+B.8+9+C.0+! a+X.b+f c+$ % d+e+f+g+ ", ++" $ $ h+~+i+c.a+~ e Y.$ % % j+k+l+m+ ", ++" n+% % ].J o+0.$ $ % % p+q+r+s+ ", ++" l+m+t+% $ $ % u+v+w+x+y+z+ ", ++" A+B+y+C+D+E+F+G+ "}; diff --git a/games-arcade/xbill/files/xbill-2.1-gtk2.patch b/games-arcade/xbill/files/xbill-2.1-gtk2.patch new file mode 100644 index 000000000000..70817b09c7ab --- /dev/null +++ b/games-arcade/xbill/files/xbill-2.1-gtk2.patch @@ -0,0 +1,18 @@ +--- configure.in.old 2007-12-05 22:37:57.000000000 +0100 ++++ configure.in 2007-12-05 22:54:57.000000000 +0100 +@@ -88,12 +88,11 @@ + [ --enable-gtk build with the GTK widget set]) + + if test "$enable_gtk" != "no"; then +- AC_CHECK_PROG(GTKCONFIG, gtk-config, yes, no) ++ PKG_CHECK_MODULES(GTK, gtk+-2.0) + +- if test "X$GTKCONFIG" = X"yes"; then ++ if test $pkg_failed = no; then + AC_DEFINE(USE_GTK) +- GTK_CFLAGS="`gtk-config --cflags`" +- WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`" ++ WIDGET_LIBS="$WIDGET_LIBS $GTK_LIBS" + WIDGET_OBJS="$WIDGET_OBJS gtk.o" + fi + fi diff --git a/games-arcade/xbill/metadata.xml b/games-arcade/xbill/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xbill/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xbill/xbill-2.1-r2.ebuild b/games-arcade/xbill/xbill-2.1-r2.ebuild new file mode 100644 index 000000000000..364b82ddb7a0 --- /dev/null +++ b/games-arcade/xbill/xbill-2.1-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="A game about an evil hacker called Bill!" +HOMEPAGE="http://www.xbill.org/" +SRC_URI="http://www.xbill.org/download/${P}.tar.gz" + +LICENSE="GPL-1" +SLOT="0" +KEYWORDS="alpha amd64 ppc x86" +IUSE="gtk" + +RDEPEND="gtk? ( x11-libs/gtk+:2 ) + !gtk? ( x11-libs/libXaw )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gtk2.patch \ + "${FILESDIR}"/${P}-gentoo.patch + eautoreconf +} + +src_configure() { + egamesconf \ + --disable-motif \ + $(use_enable gtk) \ + $(use_enable !gtk athena) +} + +src_install() { + default + newicon pixmaps/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} XBill ${PN} + prepgamesdirs +} diff --git a/games-arcade/xboing/Manifest b/games-arcade/xboing/Manifest new file mode 100644 index 000000000000..6314b2f1f84c --- /dev/null +++ b/games-arcade/xboing/Manifest @@ -0,0 +1,2 @@ +DIST xboing-2.4-debian.patch.bz2 7740 SHA256 14461b3684c8a651fb9cff864931f1e56600c373a16b8ea61a98f689173c893e SHA512 bffd9b747b1e8840aef872988f9ef8b341a56e63d390e386a8ca71358318ba9c0b37bebd91b1f036b52c56e70acf98ec35f92f4c0fa1e19e2f8c4fcc83c1e7d9 WHIRLPOOL cc90b0e81f828b34ebacd15fac7839db47a891d701a1c4cd942a0f1aace903f23f57764d2698b11a04b46cad23e5841816127bbe5248f43d1a3be220d25fac28 +DIST xboing2.4.tar.gz 588811 SHA256 67019cb8c8a4da0b1177dcc8bed063afe3b8f1853b18345dbc1deaca51d4a29a SHA512 4b6987329bfe79b3b9709ca02974d0043c6e35210aa73903940efbd09e94b1873ce09b1bea014646029b77e9bd063279935843adceb6635817f15c8025a0c454 WHIRLPOOL c2e1f6b6074c4db1afba7f52d4cb78203a980f3bbc1f4564397d864a01b977a25c27097b53957f80057d1445292a18bd5f4ae3913718c0c24a808eda32ba6b83 diff --git a/games-arcade/xboing/files/xboing-2.4-buffer.patch b/games-arcade/xboing/files/xboing-2.4-buffer.patch new file mode 100644 index 000000000000..381ae69982d9 --- /dev/null +++ b/games-arcade/xboing/files/xboing-2.4-buffer.patch @@ -0,0 +1,12 @@ +diff -ruN xboing.orig/init.c xboing/init.c +--- xboing.orig/init.c 1996-11-22 02:28:46.000000000 +0100 ++++ xboing/init.c 2013-02-02 19:57:55.000000000 +0100 +@@ -266,7 +266,7 @@ + #endif + { + /* Create all required font structures */ +- char str[80]; ++ char str[200]; + + /* Font used for titles */ + if (!(titleFont = XLoadQueryFont(display, TITLE_FONT))) diff --git a/games-arcade/xboing/files/xboing-2.4-sleep.patch b/games-arcade/xboing/files/xboing-2.4-sleep.patch new file mode 100644 index 000000000000..80723465185f --- /dev/null +++ b/games-arcade/xboing/files/xboing-2.4-sleep.patch @@ -0,0 +1,13 @@ +diff -ru xboing.debian/misc.c xboing/misc.c +--- xboing.debian/misc.c 2013-02-02 20:07:07.000000000 +0100 ++++ xboing/misc.c 2013-02-02 20:11:51.000000000 +0100 +@@ -116,9 +116,7 @@ + long SyncTime; + static unsigned long accu; + +-#ifdef __alpha__ + ms *= 1000; /* convert from milliseconds to microseconds for usleep */ +-#endif + + gettimeofday(&st, NULL); + XSync(display, False); diff --git a/games-arcade/xboing/metadata.xml b/games-arcade/xboing/metadata.xml new file mode 100644 index 000000000000..57c4c091b3ea --- /dev/null +++ b/games-arcade/xboing/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer><email>dilfridge@gentoo.org</email></maintainer> +</pkgmetadata> diff --git a/games-arcade/xboing/xboing-2.4-r2.ebuild b/games-arcade/xboing/xboing-2.4-r2.ebuild new file mode 100644 index 000000000000..a8a91df2292c --- /dev/null +++ b/games-arcade/xboing/xboing-2.4-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils games + +DESCRIPTION="blockout type game where you bounce a proton ball trying to destroy blocks" +HOMEPAGE="http://www.techrescue.org/xboing/" +SRC_URI="http://www.techrescue.org/xboing/${PN}${PV}.tar.gz + mirror://gentoo/xboing-${PV}-debian.patch.bz2" + +LICENSE="xboing" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +RDEPEND="x11-libs/libXpm" +DEPEND="${RDEPEND} + app-text/rman + x11-misc/gccmakedep + x11-misc/imake" + +S=${WORKDIR}/${PN} + +src_prepare() { + epatch "${WORKDIR}"/xboing-${PV}-debian.patch + epatch "${FILESDIR}"/xboing-${PV}-buffer.patch + epatch "${FILESDIR}"/xboing-${PV}-sleep.patch + sed -i '/^#include/s:xpm\.h:X11/xpm.h:' *.c +} + +src_configure() { + xmkmf -a || die + sed -i \ + -e "s:GENTOO_VER:${PF/${PN}-/}:" \ + Imakefile +} + +src_compile() { + emake \ + CXXOPTIONS="${CXXFLAGS}" \ + CDEBUGFLAGS="${CFLAGS}" \ + LOCAL_LDFLAGS="${LDFLAGS}" \ + XBOING_DIR="${GAMES_DATADIR}/${PN}" \ + || die +} + +src_install() { + make \ + PREFIX="${D}" \ + LOCAL_LDFLAGS="${LDFLAGS}" \ + XBOING_DIR="${GAMES_DATADIR}/${PN}" \ + install \ + || die + newman xboing.man xboing.6 + dodoc README docs/*.doc + prepgamesdirs + fperms 660 "${GAMES_STATEDIR}"/xboing.score +} diff --git a/games-arcade/xbubble/Manifest b/games-arcade/xbubble/Manifest new file mode 100644 index 000000000000..fe0ad96b1266 --- /dev/null +++ b/games-arcade/xbubble/Manifest @@ -0,0 +1 @@ +DIST xbubble-0.5.8.tar.gz 5544359 SHA256 91fc805f661f5fdc3ddca4cfcfc06670b948f4f80f01333372368a0be4743025 SHA512 132052d8e57218a2991ce0a0383f69f8818deafbf56046acaa3bc1c8ed7f31e5fb6b9b045df11eb3eaf77a8347b16ad663bb0f727823995e5df6d3adfcb75df2 WHIRLPOOL 94e2457b113cf9a1e19cc2a18793b74da68375b49a3a9e37d713953e31717f717ba639641fa46c63b38eb53463da84bcee06f57dfd393a3e26fb46b686389db9 diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch new file mode 100644 index 000000000000..ad689e29d739 --- /dev/null +++ b/games-arcade/xbubble/files/xbubble-0.5.8-libpng14.patch @@ -0,0 +1,13 @@ +http://bugs.gentoo.org/show_bug.cgi?id=308731 + +--- src/loadpng.c ++++ src/loadpng.c +@@ -55,7 +55,7 @@ unsigned char * load_png_file( const cha + } + /* ensure that we opened a PNG file */ + fread( header, 1, 8, fd ); +- if ( ! png_check_sig( header, 8 ) ) { ++ if ( png_sig_cmp( header, 0, 8 ) ) { + fclose(fd); + fprintf(stderr,_("File %s does not have a valid PNG signature.\n"), file); + return NULL; diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch b/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch new file mode 100644 index 000000000000..a83d36fbd911 --- /dev/null +++ b/games-arcade/xbubble/files/xbubble-0.5.8-locale.patch @@ -0,0 +1,10 @@ +--- src/gettext.h.orig 2008-10-07 12:01:37.000000000 -0400 ++++ src/gettext.h 2008-10-07 12:01:45.000000000 -0400 +@@ -24,6 +24,7 @@ + + /* Get declarations of GNU message catalog functions. */ + # include <libintl.h> ++# include <locale.h> + + #else + diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch b/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch new file mode 100644 index 000000000000..3a0a7d360efb --- /dev/null +++ b/games-arcade/xbubble/files/xbubble-0.5.8-png15.patch @@ -0,0 +1,20 @@ +--- src/loadpng.c.old 2011-09-14 09:58:40.503566961 +0200 ++++ src/loadpng.c 2011-09-14 10:03:39.708531447 +0200 +@@ -73,7 +73,7 @@ + return NULL; + } + /* libpng does a longjmp here when it encounters an error */ +- if ( setjmp( png_ptr->jmpbuf ) ) { ++ if ( setjmp( png_jmpbuf(png_ptr) ) ) { + png_destroy_read_struct( &png_ptr, &info_ptr, NULL); + fclose(fd); + return NULL; +@@ -95,7 +95,7 @@ + png_set_gray_to_rgb(png_ptr); + + /* detect alpha layer */ +- if (( info_ptr->color_type & PNG_COLOR_MASK_ALPHA )|| ++ if (( png_get_color_type(png_ptr, info_ptr) & PNG_COLOR_MASK_ALPHA )|| + ( png_get_valid( png_ptr, info_ptr, PNG_INFO_tRNS ))) + *has_alpha = 1; + else diff --git a/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch b/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch new file mode 100644 index 000000000000..c3dfa83cb5e3 --- /dev/null +++ b/games-arcade/xbubble/files/xbubble-0.5.8-xpaths.patch @@ -0,0 +1,11 @@ +the x_libraries variable isnt always defined +http://bugs.gentoo.org/92688 + +--- configure ++++ configure +@@ -4511,3 +4511,5 @@ + fi ++if test x"$x_libraries" != x; then + LIBS="-L$x_libraries $LIBS" ++fi + diff --git a/games-arcade/xbubble/metadata.xml b/games-arcade/xbubble/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xbubble/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xbubble/xbubble-0.5.8.ebuild b/games-arcade/xbubble/xbubble-0.5.8.ebuild new file mode 100644 index 000000000000..2b3417679e45 --- /dev/null +++ b/games-arcade/xbubble/xbubble-0.5.8.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="a Puzzle Bobble clone similar to Frozen-Bubble" +HOMEPAGE="http://www.nongnu.org/xbubble/" +SRC_URI="http://www.ibiblio.org/pub/mirrors/gnu/ftp/savannah/files/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc x86" +IUSE="nls" + +RDEPEND="x11-libs/libX11 + x11-libs/libXt + media-libs/libpng:0 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext )" +DOCS=( AUTHORS ChangeLog NEWS NetworkProtocol README TODO ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-xpaths.patch \ + "${FILESDIR}"/${P}-locale.patch \ + "${FILESDIR}"/${P}-libpng14.patch \ + "${FILESDIR}"/${P}-png15.patch + sed -i \ + -e '/^AM_CFLAGS/d' \ + src/Makefile.in || die + sed -i \ + -e '/^localedir/s:=.*:=/usr/share/locale:' \ + configure po/Makefile.in.in || die +} + +src_configure() { + egamesconf $(use_enable nls) +} + +src_install() { + default + newicon data/themes/fancy/Bubble_black_DEAD_01.png ${PN}.png + make_desktop_entry ${PN} XBubble + prepgamesdirs +} diff --git a/games-arcade/xevil/Manifest b/games-arcade/xevil/Manifest new file mode 100644 index 000000000000..4040c66206f1 --- /dev/null +++ b/games-arcade/xevil/Manifest @@ -0,0 +1,2 @@ +DIST xevil_2.02r2-7.diff.gz 31205 SHA256 7bd04cf75387779512105879682a2cdc3435a583a95d27a635a6968a9dbdc5c9 SHA512 03fbe2aa62b3856bef6af824444c484dced8a627087ba68ad946c3bfce7d0c0b5138902ea7668927d22ad37925daa07b489a2e70aa680cf477367c87833e1a58 WHIRLPOOL a1889bee53a530cde23d39698bb94c8af748a87f78d2f949234eb37770449f4f1224a0085c0826fca327102215d3835a4d01d207e709f180e50b014db8942af4 +DIST xevilsrc2.02r2.zip 1857315 SHA256 45a72def6f7532bd4b7193932df09c1ba4eada2433382c494b37d4733e743188 SHA512 ce9422da914234290797258f22fa5f8d6502dc5930eac1c3ce92d708196050ce5d75761c987e2d28b167699460b9c8fd72596242983a0b8ba6d2008c72b2354f WHIRLPOOL 5b96aa2a83ac9d1b753017c902ddfae701cb454e423985833d546e66b0a49f51984bf285265f5b010ad9db479362321d4712abeda2ed77a67c50d74065cb17c5 diff --git a/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch new file mode 100644 index 000000000000..5375f2208a0d --- /dev/null +++ b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch @@ -0,0 +1,20 @@ +diff -ur cmn.old/utils.h cmn/utils.h +--- cmn.old/utils.h 2009-08-22 02:16:21.000000000 +0300 ++++ cmn/utils.h 2009-08-22 02:26:33.000000000 +0300 +@@ -238,13 +238,13 @@ + same. */ + + static char* strchr(const char* cs,int c) +- {return ::strchr(cs,c);} ++ {return const_cast<char*>(::strchr(cs,c));} + + static char* strrchr(const char* cs,int c) +- {return ::strrchr(cs,c);} ++ {return const_cast<char*>(::strrchr(cs,c));} + + static char* strstr(const char* cs,const char* ct) +- {return ::strstr(cs,ct);} ++ {return const_cast<char*>(::strstr(cs,ct));} + + static void strcpy(char* s,const char* ct) + {::strcpy(s,ct);} diff --git a/games-arcade/xevil/metadata.xml b/games-arcade/xevil/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xevil/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xevil/xevil-2.02_p2-r1.ebuild b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild new file mode 100644 index 000000000000..60f1794397d9 --- /dev/null +++ b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DEB_PATCH=7 +MY_PV=${PV/_p/r} +DESCRIPTION="3rd person, side-view, fast-action, kill-them-before-they-kill-you game" +HOMEPAGE="http://www.xevil.com/" +SRC_URI="http://www.xevil.com/download/stable/xevilsrc${MY_PV}.zip + mirror://debian/pool/main/x/xevil/xevil_${MY_PV}-${DEB_PATCH}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="ppc x86" +IUSE="" + +RDEPEND="x11-libs/libXpm" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + edos2unix readme.txt x11/*.{cpp,h} cmn/*.{cpp,h} makefile config.mk + epatch "${WORKDIR}"/xevil_${MY_PV}-${DEB_PATCH}.diff + sed -i \ + -e 's:-static::' \ + -e 's/CC="g++"/CC=$(CXX)/' \ + -e "s:CFLAGS=\":CFLAGS=\"${CXXFLAGS} :g" \ + -e 's:-lXpm:-lXpm -lpthread:g' \ + -e "s:LINK_FLAGS=\":LINK_FLAGS=\"${LDFLAGS} :" \ + config.mk || die + epatch "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_install() { + dogamesbin x11/REDHAT_LINUX/xevil + newgamesbin x11/REDHAT_LINUX/serverping xevil-serverping + dodoc readme.txt + prepgamesdirs +} diff --git a/games-arcade/xgalaga/Manifest b/games-arcade/xgalaga/Manifest new file mode 100644 index 000000000000..28620488c563 --- /dev/null +++ b/games-arcade/xgalaga/Manifest @@ -0,0 +1 @@ +DIST xgalaga-2.1.1.0.tar.gz 331621 SHA256 adcfbfd04876f5197c60b37af0ad89a629e553d6e09314a4b3b5c70f6c634f9b SHA512 087db9e0501cedb042bb673a217f9de32640d3e4f4f529a29fd25ed682a1aece9ae1beacdc2ee77fc93ac931411a1051e2cd19873578ccffe5f03a083bffe513 WHIRLPOOL 819208cf935a161c7852b97126912f37b664babdf0108e6ebf05b7bd24fac933fb95f2645ef4c330614aa20e1452d03ea368f0d3462db48b820768a91c29a1f0 diff --git a/games-arcade/xgalaga/metadata.xml b/games-arcade/xgalaga/metadata.xml new file mode 100644 index 000000000000..a7e89402ccfe --- /dev/null +++ b/games-arcade/xgalaga/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">xgalaga</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild b/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild new file mode 100644 index 000000000000..7f4d32aff295 --- /dev/null +++ b/games-arcade/xgalaga/xgalaga-2.1.1.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="A clone of the classic game Galaga for the X Window System" +HOMEPAGE="http://sourceforge.net/projects/xgalaga" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ppc sparc x86" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXmu + x11-libs/libXpm + x11-libs/libXext + x11-libs/libXt" +DEPEND="${RDEPEND} + x11-proto/xproto" + +src_prepare() { + sed -i \ + -e "/LEVELDIR\|SOUNDDIR/ s:prefix:datadir/${PN}:" \ + -e "/\/scores/ s:prefix:localstatedir/${PN}:" \ + configure \ + || die "sed configure failed" + sed -i \ + -e "/SOUNDDEFS/ s:(SOUNDSRVDIR):(SOUNDSRVDIR)/bin:" \ + -e 's:make ;:$(MAKE) ;:' \ + Makefile.in \ + || die "sed Makefile.in failed" +} + +src_install() { + dogamesbin xgalaga xgal.sndsrv.oss xgalaga-hyperspace + dodoc README README.SOUND CHANGES + newman xgalaga.6x xgalaga.6 + + insinto "${GAMES_DATADIR}/${PN}/sounds" + doins sounds/*.raw + + insinto "${GAMES_DATADIR}/${PN}/levels" + doins levels/*.xgl + + make_desktop_entry ${PN} XGalaga + + dodir "${GAMES_STATEDIR}/${PN}" + touch "${D}${GAMES_STATEDIR}/${PN}/scores" + fperms 660 "${GAMES_STATEDIR}/${PN}/scores" + prepgamesdirs +} diff --git a/games-arcade/xjump/Manifest b/games-arcade/xjump/Manifest new file mode 100644 index 000000000000..c76f49d638d7 --- /dev/null +++ b/games-arcade/xjump/Manifest @@ -0,0 +1,2 @@ +DIST xjump_2.7.5-6.1.debian.tar.gz 9803 SHA256 f01891ca46a7e73a30080821b9cfc9759be6e5ffaed6e4e4aa4bd1bca5edd57c SHA512 c4962acd25c4cabef37acd3b5d39867a955f2fa769cc203fb00edfe37f37ce25369099b589a282189847e7bffeb874b4eaf8deea9320a9083da7e95425625cf8 WHIRLPOOL 33d4808eeec837a2423851221519135c3eb01608b9c55444496af8e9d36735b483ba4ada9fde00b328bc7056f9b0c77f36d9d656455b191268e8eaed7c6a366b +DIST xjump_2.7.5.orig.tar.gz 15940 SHA256 d96605e3aa6ca7751161d9bd19d53bb9d11fdcaf3901a14b4e2dce9b129f09b4 SHA512 6ce846d6681bf8b084edc06f8415a57f66d1778ec9af8b9b170f4f37292a8172b3507a08c85032a5b8588b50a7f2eefe205add4c779edd7c7ef8fb6d818d9300 WHIRLPOOL 5744480b08b4263cd84ce251b38cd1d84ba9f1ff4c8182d714eb6d2d433b749840b71056f5babba604aedd5930697e7bb3bdfcfb1c2677d39151492896a91266 diff --git a/games-arcade/xjump/files/xjump-2.7.5-ldflags.patch b/games-arcade/xjump/files/xjump-2.7.5-ldflags.patch new file mode 100644 index 000000000000..a30736811318 --- /dev/null +++ b/games-arcade/xjump/files/xjump-2.7.5-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-10-01 07:05:03.000000000 +0200 ++++ Makefile 2010-10-01 07:05:39.000000000 +0200 +@@ -28,7 +28,7 @@ + ########################################################## + + xjump : main.o game.o key.o misc.o record.o resource.o +- $(CC) $(CFLAGS) -o xjump \ ++ $(CC) $(LDFLAGS) $(CFLAGS) -o xjump \ + main.o game.o key.o misc.o record.o resource.o\ + -lXaw -lXmu -lXt -lXpm -lXext -lX11 $(LDIR) + diff --git a/games-arcade/xjump/metadata.xml b/games-arcade/xjump/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xjump/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xjump/xjump-2.7.5.ebuild b/games-arcade/xjump/xjump-2.7.5.ebuild new file mode 100644 index 000000000000..3588f67b6d63 --- /dev/null +++ b/games-arcade/xjump/xjump-2.7.5.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DEBIAN_PATCH="6.1" +DESCRIPTION="An X game where one tries to jump up as many levels as possible" +HOMEPAGE="http://packages.debian.org/stable/games/xjump" +SRC_URI="mirror://debian/pool/main/x/${PN}/${PN}_${PV}.orig.tar.gz + mirror://debian/pool/main/x/${PN}/${PN}_${PV}-${DEBIAN_PATCH}.debian.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86 ~x86-fbsd" +IUSE="" + +RDEPEND="x11-libs/libX11 + x11-libs/libXaw + x11-libs/libXpm + x11-libs/libXt" + +DEPEND="${RDEPEND} + x11-proto/xproto" + +S=${WORKDIR}/${P}.orig + +src_prepare() { + # Where we will keep the highscore file: + HISCORE_FILENAME=xjump.hiscores + HISCORE_FILE="${GAMES_STATEDIR}/${HISCORE_FILENAME}" + + epatch \ + "${WORKDIR}"/debian/patches/0*.patch \ + "${FILESDIR}"/${P}-ldflags.patch + + # set up where we will keep the highscores file: + sed -i \ + -e "/^CC/d" \ + -e "/^CFLAGS/d" \ + -e "s,/var/games/xjump,${GAMES_STATEDIR}," \ + -e "s,/record,/${HISCORE_FILENAME}," \ + Makefile || die +} + +src_install() { + dogamesbin xjump + dodoc README.euc + + # Set up the hiscores file: + dodir "${GAMES_STATEDIR}" + touch "${D}/${HISCORE_FILE}" + fperms 660 "${HISCORE_FILE}" + prepgamesdirs +} diff --git a/games-arcade/xrick/Manifest b/games-arcade/xrick/Manifest new file mode 100644 index 000000000000..c96d8ddf0bcf --- /dev/null +++ b/games-arcade/xrick/Manifest @@ -0,0 +1 @@ +DIST xrick-021212.tgz 1648538 SHA256 aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b SHA512 7a6547dfce586512c3c4aa7fd5aa0d7d8bd223dbec6a9211e858034bd73d44f168266441d8f3475cddbed8f3a19c7c0df31345b62e2ecfb860664e54facb48bf WHIRLPOOL 4706601639a622b75df0b1f6e6f93f39a00d0ba522487af7f0012833a27b3ba48cb9b0b5d660d4aaafae0931612b251c1529be7c687fa50b2aaf02603d11d7e9 diff --git a/games-arcade/xrick/files/xrick-021212-exit.patch b/games-arcade/xrick/files/xrick-021212-exit.patch new file mode 100644 index 000000000000..4486a969b346 --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-exit.patch @@ -0,0 +1,23 @@ +diff -ur xrick-021212/src/sysjoy.c xrick-021212.patched/src/sysjoy.c +--- xrick-021212/src/sysjoy.c 2010-10-23 00:33:33.000000000 +0400 ++++ xrick-021212.patched/src/sysjoy.c 2010-10-23 00:42:25.000000000 +0400 +@@ -56,6 +56,7 @@ + { + if (j) + SDL_JoystickClose(j); ++ j = NULL; + } + + #endif /* ENABLE_JOYSTICK */ +diff -ur xrick-021212/src/xrick.c xrick-021212.patched/src/xrick.c +--- xrick-021212/src/xrick.c 2010-10-23 00:33:33.000000000 +0400 ++++ xrick-021212.patched/src/xrick.c 2010-10-23 00:40:47.000000000 +0400 +@@ -29,7 +29,7 @@ + data_setpath("/usr/games/lib/xrick/data.zip"); + game_run(); + data_closepath(); +- sys_shutdown(); ++ /* sys_shutdown is called via atexit */ + return 0; + } + diff --git a/games-arcade/xrick/files/xrick-021212-fullscreen.patch b/games-arcade/xrick/files/xrick-021212-fullscreen.patch new file mode 100644 index 000000000000..97271a33a28e --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-fullscreen.patch @@ -0,0 +1,21 @@ +diff -ur xrick-021212/src/sysvid.c xrick-021212.patched/src/sysvid.c +--- xrick-021212/src/sysvid.c 2002-12-24 16:33:43.000000000 +0300 ++++ xrick-021212.patched/src/sysvid.c 2011-01-14 03:03:16.636668016 +0300 +@@ -145,10 +145,14 @@ + IFDEBUG_VIDEO(sys_printf("xrick/video: SDL says, use these modes:\n");); + for (i = 0; modes[i]; i++) { + IFDEBUG_VIDEO(sys_printf(" %dx%d\n", modes[i]->w, modes[i]->h);); +- if (modes[i]->w <= modes[mode]->w && modes[i]->w >= SYSVID_WIDTH && +- modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) { ++ if ((!fszoom && modes[i]->w <= modes[mode] && ++ modes[i]->w >= SYSVID_WIDTH) || ++ (fszoom && modes[i]->w > modes[mode]->w)) { + mode = i; +- fszoom = modes[mode]->w / SYSVID_WIDTH; ++ if (modes[i]->h * SYSVID_WIDTH >= modes[i]->w * SYSVID_HEIGHT) ++ fszoom = modes[mode]->w / SYSVID_WIDTH; ++ else ++ fszoom = modes[mode]->h / SYSVID_HEIGHT; + } + } + if (fszoom != 0) { diff --git a/games-arcade/xrick/files/xrick-021212-zlib.patch b/games-arcade/xrick/files/xrick-021212-zlib.patch new file mode 100644 index 000000000000..da09a46369d6 --- /dev/null +++ b/games-arcade/xrick/files/xrick-021212-zlib.patch @@ -0,0 +1,13 @@ +--- include/unzip.h.old 2012-03-24 16:13:16.012854948 +0100 ++++ include/unzip.h 2012-03-24 16:15:42.744346771 +0100 +@@ -49,6 +49,10 @@ + #include "zlib.h" + #endif + ++#ifdef _Z_OF ++#define OF _Z_OF ++#endif ++ + #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP) + /* like the STRICT of WIN32, we define a pointer that cannot be converted + from (void*) without cast */ diff --git a/games-arcade/xrick/metadata.xml b/games-arcade/xrick/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xrick/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xrick/xrick-021212-r1.ebuild b/games-arcade/xrick/xrick-021212-r1.ebuild new file mode 100644 index 000000000000..4522774011b9 --- /dev/null +++ b/games-arcade/xrick/xrick-021212-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Clone of the Rick Dangerous adventure game from the 80's" +HOMEPAGE="http://www.bigorno.net/xrick/" +SRC_URI="http://www.bigorno.net/xrick/${P}.tgz" + +LICENSE="GPL-1+ xrick" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" +IUSE="" +RESTRICT="mirror bindist" # bug #149097 + +DEPEND="media-libs/libsdl[video]" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./xrick.6.gz +} + +src_prepare() { + epatch "${FILESDIR}"/${P}*.patch + sed -i \ + -e "/^run from/d" \ + -e "/data.zip/ s:the directory where xrick is:$(games_get_libdir)/${PN}.:" \ + xrick.6 || die + + sed -i \ + -e "s:data.zip:$(games_get_libdir)/${PN}/data.zip:" \ + src/xrick.c || die + + sed -i \ + -e "s/-g -ansi -pedantic -Wall -W -O2/${CFLAGS}/" \ + -e '/LDFLAGS/s/=/+=/' \ + -e '/CC=/d' \ + -e "/CPP=/ { s/gcc/\$(CC)/; s/\"/'/g }" \ + Makefile || die +} + +src_install() { + dogamesbin xrick + insinto "$(games_get_libdir)"/${PN} + doins data.zip + newicon src/xrickST.ico ${PN}.ico + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico + dodoc README KeyCodes + doman xrick.6 + prepgamesdirs +} diff --git a/games-arcade/xscavenger/Manifest b/games-arcade/xscavenger/Manifest new file mode 100644 index 000000000000..da78c6bb1ba7 --- /dev/null +++ b/games-arcade/xscavenger/Manifest @@ -0,0 +1 @@ +DIST xscavenger-1.4.4.tgz 193346 SHA256 65c8d2224068151fcac704f34b91fb46056f77b708b1a60170a955d93751553e SHA512 5f200912b9114ea0c09f0bfcc3f06be2e7c2e1700a744319081f5f3a22c8b93663477076af27837326acf9830af6f597cf8f8fb44562db7d00128321487841ec WHIRLPOOL 1fe351967e379f1e4c4121595b216f4c7d27e127f0282ebcb3904b83437d5059f798db8a34ed0a5aab07633774b56baa27b9b3711ec0bfb8209546960952a853 diff --git a/games-arcade/xscavenger/files/1.4.4-gentoo.patch b/games-arcade/xscavenger/files/1.4.4-gentoo.patch new file mode 100644 index 000000000000..df5936ed3de8 --- /dev/null +++ b/games-arcade/xscavenger/files/1.4.4-gentoo.patch @@ -0,0 +1,200 @@ +diff -urN xscavenger-1.4.4.orig/src/Imakefile xscavenger-1.4.4/src/Imakefile +--- xscavenger-1.4.4.orig/src/Imakefile ++++ xscavenger-1.4.4/src/Imakefile +@@ -1,20 +1,36 @@ + # set this to the path where data files should be stored. LIBDIR + # is automatically defined by imake, usually to /usr/X11R6/lib/X11, so + # this should be a good default. +-LIBNAME = $(LIBDIR)/scavenger ++LIBNAME = GENTOO_DATADIR/scavenger + + SRCS = anim.c edit.c scav.c x.c sound.c + OBJS = $(SRCS:.c=.o) + ++# the "subst" hack below is because imake uses the C preprocessor, which ++# will interpret an unquoted "/*" as a comment beginning. ++#LIB_DATA = $(subst S,/,..SdataS*) + LIB_DATA = \ +- ../data/badguy.lbm ../data/brownblue.lbm ../data/death.raw \ +- ../data/dig.raw ../data/fall.raw ../data/levels.scl \ +- ../data/microman.lbm ../data/pop.raw ../data/redbrick.lbm \ +- ../data/reddevil.lbm ../data/regularguy.lbm ../data/spiralthing.lbm \ ++ ../data/badguy.lbm \ ++ ../data/brownblue.lbm \ ++ ../data/death.raw \ ++ ../data/dig.raw \ ++ ../data/fall.raw \ ++ ../data/flashspiral.lbm \ ++ ../data/gems.lbm \ ++ ../data/jungle.lbm \ ++ ../data/levels.scl \ ++ ../data/microman.lbm \ ++ ../data/pop.raw \ ++ ../data/redbrick.lbm \ ++ ../data/reddevil.lbm \ ++ ../data/regularguy.lbm \ ++ ../data/spiralthing.lbm \ + ../data/victory.raw + + LOCAL_LIBRARIES = $(XLIB) + EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\" + +-ComplexProgramTarget(scavenger) ++AllTarget(scavenger) ++NormalProgramTarget(scavenger,$(OBJS),,,$(XLIB)) ++InstallProgram(scavenger,GENTOO_BINDIR) + InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644) +diff -urN xscavenger-1.4.4.orig/src/scav.c xscavenger-1.4.4/src/scav.c +--- xscavenger-1.4.4.orig/src/scav.c ++++ xscavenger-1.4.4/src/scav.c +@@ -240,15 +240,19 @@ + + + ++/* 14 Dec 2002: re-wrote to be more portable - don't assume two's-complement ++ * representation for integers, and fix bug when sizeof(long) > 4. ++ */ + long readlong() + { +-long val1=0; +- +- val1=myci()<<24L; +- val1|=myci()<<16L; +- val1|=myci()<<8; +- val1|=myci(); ++ long val1=0; ++ int i,j; + ++ for (i=0; i<4; i++) { ++ j = myci(); ++ if (j==-1) return -1L; ++ val1 = (val1<<8) + j; ++ } + return val1; + } + int rbs() +@@ -309,7 +313,7 @@ + bmw=bmh=byteswide=0; + while( (type=readlong()) ) + { +- if(type==0xffffffffL) break; ++ if(type==-1L) break; + size=readlong(); + if(size&1) size++; + if(type==BMHD) +@@ -402,16 +406,16 @@ + input=open(resourcename,O_RDONLY); + if(input<0) return -1; + got=read(input,buff,8); +- if(got!=8) return -2; +- if (strncmp(buff,"SCAV",4)) return -3; ++ if(got!=8) {close(input);return -2;} ++ if (strncmp(buff,"SCAV",4)) {close(input);return -3;} + max=(buff[4]<<24) | (buff[5]<<16) | (buff[6]<<8) | buff[7]; +- if(num>=max) return 0; ++ if(num>=max) {close(input);return 0;} + lseek(input,(num+1)<<3,SEEK_SET); + got=read(input,buff,8); + offset=(buff[0]<<24) | (buff[1]<<16) | (buff[2]<<8) | buff[3]; + length=(buff[4]<<24) | (buff[5]<<16) | (buff[6]<<8) | buff[7]; + if(len>length) len=length; +- if(!offset || !len) return 0; ++ if(!offset || !len) {close(input);return 0;} + lseek(input,offset,SEEK_SET); + got=read(input,put,len); + close(input); +@@ -448,8 +452,8 @@ + input=open(resourcename,O_RDONLY); + if(input==-1) return -4; + got=read(input,buff,8); +- if(got!=8) return -2; +- if(strncmp(buff,"SCAV",4)) return -3; ++ if(got!=8) {close(input);return -2;} ++ if(strncmp(buff,"SCAV",4)) {close(input);return -3;} + output=creat(bakname,00600); + if(output==-1) {close(input);return -6;} + +@@ -473,12 +477,12 @@ + for(i=0;i<max;i++) + if(headers[i+i]) + headers[i+i]+=delta; +- if (write(output,"SCAV",4) != 4) return -200; +- if (!rlout(output,max)) return -200; ++ if (write(output,"SCAV",4) != 4) {close(input);close(output);return -200;} ++ if (!rlout(output,max)) {close(input);close(output);return -200;} + headers[num+num]=0; + headers[num+num+1]=len; + for(i=0;i<max+max;i++) +- if (!rlout(output,headers[i])) return -200; ++ if (!rlout(output,headers[i])) {close(input);close(output);return -200;} + + if(offset) + { +@@ -487,8 +491,8 @@ + while(count) + { + got=count>1024 ? 1024 : count; +- if (read(input,copybuff,got) != got) return -200; +- if (write(output,copybuff,got) != got) return -200; ++ if (read(input,copybuff,got) != got) {close(input);close(output);return -200;} ++ if (write(output,copybuff,got) != got) {close(input);close(output);return -200;} + count-=got; + } + lseek(input,length,SEEK_CUR); +@@ -498,17 +502,17 @@ + { + got=read(input, copybuff, 1024); + if (!got) break; +- if (write (output, copybuff, got) != got) return -200; ++ if (write (output, copybuff, got) != got) {close(input);close(output);return -200;} + offset += got; + } + if(len) + { +- if (write (output, take, len) != len) return -200; ++ if (write (output, take, len) != len) {close(input);close(output);return -200;} + lseek (output, (num+1) << 3, SEEK_SET); +- if (!rlout (output, offset)) return -200; ++ if (!rlout (output, offset)) {close(input);close(output);return -200;} + } + close (input); +- if (fsync(output)) return -200; ++ if (fsync(output)) {close(output);return -200;} + if (close(output)) return -200; + err=rename(bakname,resourcename); + if(err) return -1; +@@ -1382,6 +1386,7 @@ + break; + } + } ++ close(file); + } + + void remslash(char *str) +@@ -1416,6 +1421,8 @@ + return -3; + } + } while(len); ++ close(input); ++ close(output); + return 0; + } + +@@ -1448,7 +1455,7 @@ + printf("Failed to create directory %s, exiting\n",temp); + exit(1); + } +- } ++ } else close(file); + + sprintf(resourcename,"%s/%s/%s",localname,localdirname,LEVELSNAME); + file=open(resourcename,O_RDONLY); +@@ -1485,7 +1492,7 @@ + printf("Couldn't create %s\n",temp); + exit(1); + } +- } ++ } else close(file); + } + + void makercname(char *str) diff --git a/games-arcade/xscavenger/metadata.xml b/games-arcade/xscavenger/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-arcade/xscavenger/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-arcade/xscavenger/xscavenger-1.4.4.ebuild b/games-arcade/xscavenger/xscavenger-1.4.4.ebuild new file mode 100644 index 000000000000..f7eec1119489 --- /dev/null +++ b/games-arcade/xscavenger/xscavenger-1.4.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils toolchain-funcs games + +DESCRIPTION="Lode-Runner-like arcade game" +HOMEPAGE="http://www.xdr.com/dash/scavenger.html" +SRC_URI="http://www.xdr.com/dash/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND="x11-libs/libXext" +DEPEND="${RDEPEND} + x11-misc/imake" + +S=${WORKDIR}/${P}/src + +src_prepare() { + epatch "${FILESDIR}/${PV}-gentoo.patch" + sed -i \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}:" \ + -e "s:GENTOO_BINDIR:${GAMES_BINDIR}:" \ + Imakefile \ + || die +} + +src_configure() { + xmkmf || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CDEBUGFLAGS="${CFLAGS}" \ + EXTRA_LDOPTIONS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" install + dodoc ../{CREDITS,DOC,README,TODO,changelog} + prepgamesdirs +} diff --git a/games-arcade/xsfcave/Manifest b/games-arcade/xsfcave/Manifest new file mode 100644 index 000000000000..005aec3ea7ab --- /dev/null +++ b/games-arcade/xsfcave/Manifest @@ -0,0 +1 @@ +DIST xsfcave-0.5.tar.gz 88113 SHA256 afa5b52d2555ecf8fc331e3c86df7839a057ca9452039d221ae93d3c00f45577 SHA512 5dd5c7e581362b1d4faf2edd73f5ea6a068d05a94b6fac7813fa2cae323453ed3380c9e40b92a2ed9b3672ab931d5a2951d2ad7fc74cf64588e6e9fe7723f09a WHIRLPOOL 212492f0ca3b4faebb17a083867e405908ef1e895a9e9143ad5c0a12c4e25dae2ca3e9aade163dfbe1cecd3781400093840935e8768405919bcb4085b46fde9d diff --git a/games-arcade/xsfcave/metadata.xml b/games-arcade/xsfcave/metadata.xml new file mode 100644 index 000000000000..956df4cb2502 --- /dev/null +++ b/games-arcade/xsfcave/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription lang="en"> +xsfcave is a X11 sfcave clone. The game consist of surviving in a tunel by not +hitting in the walls and obstacles. The first versions of the game are greatly +influenced by the Java version of this game. +</longdescription> + <upstream> + <remote-id type="sourceforge">scrap</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/xsfcave/xsfcave-0.5.ebuild b/games-arcade/xsfcave/xsfcave-0.5.ebuild new file mode 100644 index 000000000000..10ae1f109c2a --- /dev/null +++ b/games-arcade/xsfcave/xsfcave-0.5.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ +EAPI=5 +inherit games + +DESCRIPTION="A X11 sfcave clone" +HOMEPAGE="http://xsfcave.idios.org" +SRC_URI="mirror://sourceforge/scrap/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +DEPEND="x11-libs/libXext + x11-libs/libSM" +RDEPEND="${DEPEND}" + +src_install() { + default + prepgamesdirs +} diff --git a/games-arcade/xtux/Manifest b/games-arcade/xtux/Manifest new file mode 100644 index 000000000000..0a910c2c4669 --- /dev/null +++ b/games-arcade/xtux/Manifest @@ -0,0 +1 @@ +DIST xtux-src-20030306.tar.gz 1640928 SHA256 3ef2c3d7615d05b1d6efa6a99358aa907c5cf635ffb017f5cad59c8d91c47670 SHA512 edb137b4d6b0fe7d673e8eedffbd9c521800a8e51aff0a36e5aa02d46a157d42142326b334b9c7358cfb5debf4b78a2a9951f82121dd538cfe288cf292a269d4 WHIRLPOOL dcb12892afadfedd99bfec15b1df1adb2c1c6b947f12366155832cd5303977dd79ae4f9434b4948e45a3b08ed12cbb4e7655741ec8b5add1e3f7e794a598aeae diff --git a/games-arcade/xtux/files/xtux-20030306-ldflags.patch b/games-arcade/xtux/files/xtux-20030306-ldflags.patch new file mode 100644 index 000000000000..d2c798d0795d --- /dev/null +++ b/games-arcade/xtux/files/xtux-20030306-ldflags.patch @@ -0,0 +1,22 @@ +--- src/client/Makefile.old 2010-09-30 18:08:16.000000000 +0200 ++++ src/client/Makefile 2010-09-30 18:08:41.000000000 +0200 +@@ -48,7 +48,7 @@ + + #Apps + client: $(OBJECTS) +- $(CC) -o $(BINARY) $(CFLAGS) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(X11LIB) $(XPMLIB) $(SOCKLIB) $(GGZLIB) ++ $(CC) -o $(BINARY) $(LDFLAGS) $(CFLAGS) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(X11LIB) $(XPMLIB) $(SOCKLIB) $(GGZLIB) + + # OBJECTS + .c.o: client.h $*.c +--- src/server/Makefile.old 2010-09-30 18:09:55.000000000 +0200 ++++ src/server/Makefile 2010-09-30 18:10:16.000000000 +0200 +@@ -41,7 +41,7 @@ + + #Apps + server: $(OBJECTS) +- $(CC) -o $(BINARY) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(SOCKLIB) $(GGZLIB) ++ $(CC) $(LDFLAGS) -o $(BINARY) $(OBJECTS) $(XTUXLIB) $(MATHLIB) $(SOCKLIB) $(GGZLIB) + + # OBJECTS + .c.o: server.h $*.h $*.c diff --git a/games-arcade/xtux/files/xtux-20030306-particles.patch b/games-arcade/xtux/files/xtux-20030306-particles.patch new file mode 100644 index 000000000000..9a340821dd6e --- /dev/null +++ b/games-arcade/xtux/files/xtux-20030306-particles.patch @@ -0,0 +1,30 @@ +diff -u -r xtux.old/src/client/particle.c xtux/src/client/particle.c +--- xtux.old/src/client/particle.c 2008-09-02 20:34:24.000000000 +0200 ++++ xtux/src/client/particle.c 2008-09-02 20:35:40.000000000 +0200 +@@ -340,11 +340,11 @@ + ptl->pos[i].y = src_y; + d = dir + 128; + d += i%SHARD_ANGLE - SHARD_ANGLE/2; +- ptl->vel[i].x = sin_lookup[dir + 64 + rand()%64] * SHARD_EXP_VEL; +- ptl->vel[i].y = -cos_lookup[dir + 64 + rand()%64] * SHARD_EXP_VEL; ++ ptl->vel[i].x = sin_lookup[(dir + 64 + rand()%64) % DEGREES] * SHARD_EXP_VEL; ++ ptl->vel[i].y = -cos_lookup[(dir + 64 + rand()%64) % DEGREES] * SHARD_EXP_VEL; + vel = SHARD_MIN_VEL + (SHARD_MAX_VEL*rand()/(RAND_MAX+SHARD_MIN_VEL)); +- ptl->vel[i].x += vel * sin_lookup[d] * 10; +- ptl->vel[i].y += vel * -cos_lookup[d] * 10; ++ ptl->vel[i].x += vel * sin_lookup[d % DEGREES] * 10; ++ ptl->vel[i].y += vel * -cos_lookup[d % DEGREES] * 10; + } + + ptl = particles_new(color2, PTL_TOP, num_sh2); +@@ -357,8 +357,8 @@ + ptl->vel[i].x = sin_lookup[rand()%256] * SHARD_EXP_VEL; + ptl->vel[i].y = -cos_lookup[rand()%256] * SHARD_EXP_VEL; + vel = SHARD_MIN_VEL + (SHARD_MAX_VEL*rand()/(RAND_MAX+SHARD_MIN_VEL)); +- ptl->vel[i].x += vel * sin_lookup[d] * 20; +- ptl->vel[i].y += vel * -cos_lookup[d] * 20; ++ ptl->vel[i].x += vel * sin_lookup[d % DEGREES] * 20; ++ ptl->vel[i].y += vel * -cos_lookup[d % DEGREES] * 20; + } + + /* "Extra" particles (ie bullet holes) */ diff --git a/games-arcade/xtux/metadata.xml b/games-arcade/xtux/metadata.xml new file mode 100644 index 000000000000..951624d07101 --- /dev/null +++ b/games-arcade/xtux/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <upstream> + <remote-id type="sourceforge">xtux</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/xtux/xtux-20030306.ebuild b/games-arcade/xtux/xtux-20030306.ebuild new file mode 100644 index 000000000000..2a474c3bb985 --- /dev/null +++ b/games-arcade/xtux/xtux-20030306.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="Multiplayer Gauntlet-style arcade game" +HOMEPAGE="http://xtux.sourceforge.net/" +SRC_URI="mirror://sourceforge/xtux/xtux-src-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +DEPEND="x11-libs/libXpm" +RDPENED="${DEPEND}" +S=${WORKDIR}/${PN} + +src_prepare() { + find data/ -type d -name .xvpics -exec rm -rf \{\} + + sed -i \ + -e "s:-g -Wall -O2:${CFLAGS}:" \ + src/{client,common,server}/Makefile \ + || die "sed failed" + sed -i \ + -e "s:./tux_serv:tux_serv:" \ + src/client/menu.c \ + || die "sed failed" + epatch "${FILESDIR}/${P}-particles.patch" \ + "${FILESDIR}"/${P}-ldflags.patch +} + +src_compile() { + # Not parallel-make friendly (bug #247332) + emake DATADIR="${GAMES_DATADIR}/xtux/data" common + emake DATADIR="${GAMES_DATADIR}/xtux/data" ggz + emake DATADIR="${GAMES_DATADIR}/xtux/data" server + emake DATADIR="${GAMES_DATADIR}/xtux/data" client +} + +src_install () { + dogamesbin xtux tux_serv + insinto "${GAMES_DATADIR}/xtux" + doins -r data/ + dodoc AUTHORS CHANGELOG README README.GGZ doc/* + newicon data/images/icon.xpm ${PN}.xpm + make_desktop_entry xtux "Xtux" + prepgamesdirs +} diff --git a/games-arcade/yarsrevenge/Manifest b/games-arcade/yarsrevenge/Manifest new file mode 100644 index 000000000000..2bbe8b25e3e1 --- /dev/null +++ b/games-arcade/yarsrevenge/Manifest @@ -0,0 +1 @@ +DIST yar-0.99.tar.gz 535043 SHA256 2aeb58bd1fedaf5d35f217dc0be13457edec48cf890a7684ae515b818b70662d SHA512 c520b9c6c7ff2c60c2e7e18e6c0d2ff376334706fb190ce0d015acba21815680029a30d7a573d0b4c41da2d9f932108417804141bf4557bc99550e30f699e8bb WHIRLPOOL 1eca4da5e0a3d1c0acefd3a4667e40a234ece78e957c36efd40a9b4faceb2c534943acb36f4df2bc515f5894521c050afa3add07e35bc07b84ef8f69938f8cfe diff --git a/games-arcade/yarsrevenge/files/0.99-math.patch b/games-arcade/yarsrevenge/files/0.99-math.patch new file mode 100644 index 000000000000..5d7d4619d9c5 --- /dev/null +++ b/games-arcade/yarsrevenge/files/0.99-math.patch @@ -0,0 +1,6 @@ +--- yar/graphics.cpp.orig 2004-06-02 14:14:38.174071320 -0400 ++++ yar/graphics.cpp 2004-06-02 14:14:50.352219960 -0400 +@@ -18,2 +18,3 @@ + #include "yar.hxx" ++#include <cmath> + diff --git a/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc43.patch b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc43.patch new file mode 100644 index 000000000000..fe32b6c74e6c --- /dev/null +++ b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc43.patch @@ -0,0 +1,10 @@ +--- yar/sgw.hxx ++++ yar/sgw.hxx +@@ -24,6 +24,7 @@ +
+ #include <iostream>
+ #include <string>
++#include <cstdlib>
+
+ #define DEFAULT_SCX (1024) // Default Screen Size and Depth
+ #define DEFAULT_SCY (768)
diff --git a/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc44.patch b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc44.patch new file mode 100644 index 000000000000..fca41cfbdf35 --- /dev/null +++ b/games-arcade/yarsrevenge/files/yarsrevenge-0.99-gcc44.patch @@ -0,0 +1,10 @@ +--- yar/game.cpp ++++ yar/game.cpp +@@ -15,6 +15,7 @@ + * * + ***************************************************************************/ + ++#include <cstdio> + #include "yar.hxx" + + diff --git a/games-arcade/yarsrevenge/metadata.xml b/games-arcade/yarsrevenge/metadata.xml new file mode 100644 index 000000000000..d5cb5faefdfd --- /dev/null +++ b/games-arcade/yarsrevenge/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <longdescription> +A rather wierd shoot-em-up game that originated on the Atari 2600. It's more fun +than it looks. Just released so might be tweaked. +</longdescription> + <upstream> + <remote-id type="freshmeat">yarsrevenge</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/yarsrevenge/yarsrevenge-0.99.ebuild b/games-arcade/yarsrevenge/yarsrevenge-0.99.ebuild new file mode 100644 index 000000000000..5d37d87c35b6 --- /dev/null +++ b/games-arcade/yarsrevenge/yarsrevenge-0.99.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils games + +DESCRIPTION="remake of the Atari 2600 classic Yar's Revenge" +HOMEPAGE="http://freshmeat.net/projects/yarsrevenge/" +SRC_URI="http://www.autismuk.freeserve.co.uk/yar-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~ppc sparc x86 ~x86-fbsd" +IUSE="" + +DEPEND="media-libs/libsdl[sound,joystick,video]" +RDEPEND="${DEPEND}" +S=${WORKDIR}/yar-${PV} + +PATCHES=( + "${FILESDIR}"/${PV}-math.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-gcc44.patch +) + +src_install() { + default + prepgamesdirs +} |