summaryrefslogtreecommitdiff
path: root/games-action/rrootage
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/rrootage
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/rrootage')
-rw-r--r--games-action/rrootage/Manifest7
-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
-rw-r--r--games-action/rrootage/rrootage-0.23a.ebuild68
5 files changed, 186 insertions, 0 deletions
diff --git a/games-action/rrootage/Manifest b/games-action/rrootage/Manifest
new file mode 100644
index 000000000000..7ea7554fddc2
--- /dev/null
+++ b/games-action/rrootage/Manifest
@@ -0,0 +1,7 @@
+AUX rrootage-0.23a-gcc41.patch 959 SHA256 0bf69bcf48f434a62b22a893c3e07bc3c9412deee756081b2626118af58b08cb SHA512 9eb927ad7389cc77823903b641608248330046034010551badd06be7dc0def5a04d2e1f78ef2e4631c97279d0eacae10006b1564c4ad21dae306a427a95972fc WHIRLPOOL f543a751c6af79a8f3eb2ff08219deb08462fdb9ccf72d85f366e199e7e4839ef06bfad5180e292b1f54d182473b0be1e5d640d1bef163178be23523d8f84c38
+DIST rRootage-0.23a.tar.gz 3910941 SHA256 964edbe21802e3e40d6a8da19b61132decacd13bf9a71bac86abce012379ff07 SHA512 29af79ef7bae46a103abf31696209b1ff5915caeb614d474b6a83f7e9657c19dea586e64a99437bba3e1121bfacc92c8d8b3c8a6831214d0d7da89927ca64f66 WHIRLPOOL 81a87e78e0baa1c252825977db3463be5ac7d00537373d937f938c200fe25f3a78c15ff0e380810cd0f47f9b4c135e48c2ed0cbff357b764c9dd155b47084d23
+EBUILD rrootage-0.23a-r1.ebuild 1589 SHA256 863efef146a5e45abbeb1d0d2b4b068e64a641eb76537c68408e35b533012405 SHA512 ec1980bab563671d7380e418d3a6842dbe8a6682d800b8b814780fea028a3fe9675fe2b85c6d4322f8309a88e6ed8f6bb1dd17f6cb4d8aac1b90c5acca218a94 WHIRLPOOL de9fa44aa7ea19a0c11b2f6d0eb7f5c38d6c1a3684815eee483a446e7dcbad88789003565f91a9a60ad4093149a5bf026889dfa4cf052950749614ebd56ff151
+EBUILD rrootage-0.23a.ebuild 1634 SHA256 954f1ecdac4e5545bb060962611c5ce746f6957b0a0fb5260bfa3fc2ccbda2c5 SHA512 a80580ed49923623c44387de444fc7da663cd022c793f4751a2595db3fe0c110b7ff13beecceeb3f419a480e9de626edbb32cab8059a5b1c37b251347968893e WHIRLPOOL 222d3981d071190e364e30737c5289a0c2384aac7735abfb5d1cc67f850dffebbd230e6f742b4688f1ed1ae6dacb64ec171b76ba6447c5ee11f4e700cc370598
+MISC ChangeLog 2607 SHA256 2f4662058083718fe3170c1931a42f17f99d44360ca7d439a1897d79ebddf945 SHA512 486e20a944132de17c458f39536446f501b73390675b5ef0eb2dbaf39303c7d26aafefb11dc30e82df06285789ae79440d385148bc1a59daecb4021b32699fd0 WHIRLPOOL d45c5e23845c9fff50b93088847b816b0f5e57fa90c8c315cd6c4dee04c725f5bf5758ddd1daab2be7e03f60c9558de8547653bf0a2e85765cf7430c10be3090
+MISC ChangeLog-2015 1668 SHA256 31d721ec7e765bdf61919d91ffe43a33bda65796ef017ade437287ecae379977 SHA512 64b740e0de76ced9702cbe77f8ee9b892e81d39e2a6a50d79a51af44da74ddc5c6c9fcd67d135336c3e0ed548170b1077e6b2ab20722ddff789e35e60ce394be WHIRLPOOL 69c9bdfff9d5dad0ce8b1db9929605ad30ed31d61efd2810da22e48abb8947c8049c0c663cb44c251c2c9860d0c98f5ffd8f1bc18f1f2297c1af64d31d0571fe
+MISC metadata.xml 331 SHA256 472d0296ea2f05bd8274868e06ff2b8f29b13b68e1e95f9820b9377a925f0dc9 SHA512 28663cb0e771cf17a0face9241359ca7eab7360b0dbcec162a3238c9fd89a81ea858cb3c66948b18ecca17cd26b6d855be24d955588aa4f38af54eaa6775278b WHIRLPOOL 08bf9283375c267c55fa776bbb3c24a929da080f0886ccc31afd8ad219c2ae22cc912a3d1edd46f9c84b7609a5d28447ef57534a975edcf5e1d0df24511bb009
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
+}
diff --git a/games-action/rrootage/rrootage-0.23a.ebuild b/games-action/rrootage/rrootage-0.23a.ebuild
new file mode 100644
index 000000000000..ace4ee1f5337
--- /dev/null
+++ b/games-action/rrootage/rrootage-0.23a.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+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="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[video]
+ media-libs/sdl-mixer[vorbis]
+ >=dev-libs/libbulletml-0.0.3"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${MY_PN}/src
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}"-gcc41.patch
+ 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:${GAMES_DATADIR}:" \
+ barragemanager.cc screen.c soundmanager.c || die
+}
+
+src_compile() {
+ emake \
+ MORE_CFLAGS="-DLINUX ${CFLAGS}" \
+ MORE_CXXFLAGS="-DLINUX ${CXXFLAGS}"
+}
+
+src_install() {
+ newgamesbin rr ${PN}
+ dodir "${GAMES_DATADIR}/${MY_PN}"
+ cp -r ../rr_share/* "${D}/${GAMES_DATADIR}/${MY_PN}" || die
+ dodoc ../readme*
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_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
+}