summaryrefslogtreecommitdiff
path: root/games-action/rrootage
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-action/rrootage
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/rrootage')
-rw-r--r--games-action/rrootage/Manifest4
-rw-r--r--games-action/rrootage/files/rrootage-0.23a-gcc41.patch28
-rw-r--r--games-action/rrootage/metadata.xml11
-rw-r--r--games-action/rrootage/rrootage-0.23a-r1.ebuild72
4 files changed, 115 insertions, 0 deletions
diff --git a/games-action/rrootage/Manifest b/games-action/rrootage/Manifest
new file mode 100644
index 000000000000..4df38bd56370
--- /dev/null
+++ b/games-action/rrootage/Manifest
@@ -0,0 +1,4 @@
+AUX rrootage-0.23a-gcc41.patch 959 BLAKE2B 121e1a5b9a39306badb614c9fdb0da6c6c55f6a26f43d095a38404f54a5958875735d35a543c4518d8bc5250ee17dcc21355aad3d96e3370fd7f9e51199fb660 SHA512 9eb927ad7389cc77823903b641608248330046034010551badd06be7dc0def5a04d2e1f78ef2e4631c97279d0eacae10006b1564c4ad21dae306a427a95972fc
+DIST rRootage-0.23a.tar.gz 3910941 BLAKE2B ac5e2e3f0966e3d99cee5e7b90fcfe088a11453e71a120db66ddabf5092a4c6b128b98ce73dce7b9f599c3627f065c3b205bc7599161671d6a4647fcdb161e4f SHA512 29af79ef7bae46a103abf31696209b1ff5915caeb614d474b6a83f7e9657c19dea586e64a99437bba3e1121bfacc92c8d8b3c8a6831214d0d7da89927ca64f66
+EBUILD rrootage-0.23a-r1.ebuild 1589 BLAKE2B cef955c65bce4de4ff696c083707ffddfe13f30650f63cd63cc54aa092ea225b217e77378e608993e7c1a62eb4cd26e0d0f80586cf76ce60a76af4ad724e3813 SHA512 ec1980bab563671d7380e418d3a6842dbe8a6682d800b8b814780fea028a3fe9675fe2b85c6d4322f8309a88e6ed8f6bb1dd17f6cb4d8aac1b90c5acca218a94
+MISC metadata.xml 331 BLAKE2B 6235455dffd3d6687832c55e58c0151c35f9f44dd006a83fb57b81f27ecbdd7832bad0b207acf9214061259543668d57ec231bfb58da1f543e23178e25a9d854 SHA512 28663cb0e771cf17a0face9241359ca7eab7360b0dbcec162a3238c9fd89a81ea858cb3c66948b18ecca17cd26b6d855be24d955588aa4f38af54eaa6775278b
diff --git a/games-action/rrootage/files/rrootage-0.23a-gcc41.patch b/games-action/rrootage/files/rrootage-0.23a-gcc41.patch
new file mode 100644
index 000000000000..1e6e50e683fd
--- /dev/null
+++ b/games-action/rrootage/files/rrootage-0.23a-gcc41.patch
@@ -0,0 +1,28 @@
+--- src/foecommand.h.old 2006-04-21 23:26:03.000000000 +0200
++++ src/foecommand.h 2006-04-21 23:26:26.000000000 +0200
+@@ -39,10 +39,10 @@
+
+ virtual void doChangeDirection(double d);
+ virtual void doChangeSpeed(double s);
+- virtual void FoeCommand::doAccelX(double ax);
+- virtual void FoeCommand::doAccelY(double ay);
+- virtual double FoeCommand::getBulletSpeedX();
+- virtual double FoeCommand::getBulletSpeedY();
++ virtual void doAccelX(double ax);
++ virtual void doAccelY(double ay);
++ virtual double getBulletSpeedX();
++ virtual double getBulletSpeedY();
+
+ private:
+ struct foe *foe;
+--- src/screen.c.old 2006-04-21 23:50:01.000000000 +0200
++++ src/screen.c 2006-04-21 23:50:30.000000000 +0200
+@@ -73,7 +73,7 @@
+ void loadGLTexture(char *fileName, GLuint *texture) {
+ SDL_Surface *surface;
+
+- char name[32];
++ char name[128];
+ strcpy(name, SHARE_LOC);
+ strcat(name, "images/");
+ strcat(name, fileName);
diff --git a/games-action/rrootage/metadata.xml b/games-action/rrootage/metadata.xml
new file mode 100644
index 000000000000..dbea52d36fff
--- /dev/null
+++ b/games-action/rrootage/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">rrootage</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/rrootage/rrootage-0.23a-r1.ebuild b/games-action/rrootage/rrootage-0.23a-r1.ebuild
new file mode 100644
index 000000000000..a36a0047c48b
--- /dev/null
+++ b/games-action/rrootage/rrootage-0.23a-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_PN="rRootage"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="Abstract shooter - defeat auto-created huge battleships"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/rr_e.html
+ http://rrootage.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/libbulletml-0.0.3
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_PN}/src
+
+PATCHES=(
+ "${FILESDIR}/${P}"-gcc41.patch
+)
+
+src_prepare() {
+ default
+
+ sed \
+ -e "s/-lglut/-lGL -lGLU -lm/" \
+ -e "/^CC/d" \
+ -e "/^CXX/d" \
+ -e "/^LDFLAGS/s/=/+=/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "/^CPPFLAGS/s/MORE_CFLAGS/MORE_CXXFLAGS/" \
+ -e "s/ -mwindows//" \
+ -e "s:-I./bulletml/:-I/usr/include/bulletml:" \
+ makefile.lin > Makefile || die
+
+ sed -i \
+ -e "s:/usr/share/games:/usr/share:" \
+ barragemanager.cc screen.c soundmanager.c || die
+}
+
+src_compile() {
+ emake \
+ MORE_CFLAGS="-DLINUX ${CFLAGS}" \
+ MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
+}
+
+src_install() {
+ newbin rr ${PN}
+ dodir "/usr/share/${MY_PN}"
+ cp -r ../rr_share/* "${D}/usr/share/${MY_PN}" || die
+ dodoc ../readme*
+}
+
+pkg_postinst() {
+ if ! has_version "media-libs/sdl-mixer[vorbis]" ; then
+ elog "${PN} will not have sound since sdl-mixer"
+ elog "is built with USE=-vorbis"
+ elog "Please emerge sdl-mixer with USE=vorbis"
+ elog "if you want sound support"
+ fi
+}