summaryrefslogtreecommitdiff
path: root/games-action/noiz2sa
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/noiz2sa')
-rw-r--r--games-action/noiz2sa/Manifest8
-rw-r--r--games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch17
-rw-r--r--games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch31
-rw-r--r--games-action/noiz2sa/metadata.xml11
-rw-r--r--games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild42
-rw-r--r--games-action/noiz2sa/noiz2sa-0.51a.ebuild44
6 files changed, 153 insertions, 0 deletions
diff --git a/games-action/noiz2sa/Manifest b/games-action/noiz2sa/Manifest
new file mode 100644
index 000000000000..925a652233c4
--- /dev/null
+++ b/games-action/noiz2sa/Manifest
@@ -0,0 +1,8 @@
+AUX noiz2sa-0.51a-gcc41.patch 621 SHA256 a570c14514f583187584018108eee8e50593e2237dd8415dc1825b0a275c3b7c SHA512 895c81865aefd54a20f9b22b07f6a1dd8a11034a20c62f08888d73cba5e106c30a78c4b11575a991e2c34d84911614e1b5a1d34231b52f8d55ff9751d5d18bdc WHIRLPOOL 524740592b378588f2decefe98d15f53a41e97755a9e4e6bd692cc674fca86445d21ac7f60b2b768f14aaef6ff1dbed86b722df1c127eea4f2081520e4fea115
+AUX noiz2sa-0.51a-underlink.patch 971 SHA256 a0b40253459193e4329358d29bf201629ea200ea95eca6a86c9b3d8d4320ef42 SHA512 fcc3bc67fe1d06fdb8466112f6c3bd15b681ba3da83a0b70b09ebc734c53f390eb1f380cffb0d2753a7c42ca2d483255a39b1979e7b745ee9e63fbb0a65e506b WHIRLPOOL 43fdb4b5d2968dac0e53b6ff9d3174df63a76605c2a4558f43cb6d28d87764eeed1c61cf7103415fc11033166a2e00662ce1bcdca259978c7f25b45fda0405ea
+DIST noiz2sa-0.51a.tar.gz 8861907 SHA256 a7e2b689a320b49cd87a5666b38b934528c65d5a212efca81a21fdd45c9f88e6 SHA512 be0893f96240c00c15073d99e0c73667f65bd4aa98a303d6b4e0b7d5ac9fa510843b37841f9cf6c98f602cb7a70c518107272df1f42682a74ec52a3221e10174 WHIRLPOOL c9e48b9619c23e5bc38b5e48d8b2ebf6e14e8103a9d8420f328c7a58d334b0412a3b13249c0353e44a77dce4e44075b2f2e72536be8d6fc97f0367b26b231683
+EBUILD noiz2sa-0.51a-r1.ebuild 826 SHA256 c4078dfe092880d22a6996928fed49873b5e06fd668042d1212e613dfe565446 SHA512 09a03012f3ebf0ecefe7b4a3385a9e7ad73a2bfe7a43148af2c4afc56043e57e239518e92cfc2fcd00b582e22667a300d6f5ee2381013525d06ad874a33c936f WHIRLPOOL 62f2ab9771ce9cbe4249c447017d482d3c0d774ae37472a8385e63a5a4f0b27b77196d5bfaac2f272168dd28b69fd026969096a14cc7a30184d2f177e9488254
+EBUILD noiz2sa-0.51a.ebuild 1060 SHA256 4026ca2cfc5143f3eccb9ceaf346ca41fc959263661e4555aac8605606b02f33 SHA512 833441829b7a03f48984fb651990ae25696e294a019062e2db1754d5b2fde32d4ddb332d2de8db78f3dd9e649db555cfd6e6f98718aecb3e28999a534586a551 WHIRLPOOL 8313ee864c01ea46133cb1bc6d1ea90b81f6ccc26e337334a5bafa5fca5c9598a1a113fde0e233806c270c316f8303a32bb56f9cdb593fa99ea43fb078604604
+MISC ChangeLog 3072 SHA256 bed9fb03109e22a40c0a65564653dea91b4256d28c7d2bc4f2cf8188c623dc17 SHA512 0278181a58d23b8ea08e1176cc7dad7527a4a0bea2ba74ab08d8e90ac3170cda5ecd07b5eeee8cc6bc40ed51efc6d7f60c133a43d5f2e6d85713c0d581a6c898 WHIRLPOOL 28df291017a51b6262b56b4b661f0675b2651f222e17b93b1333a712797dbbd3b3888d7c6620d4bf1c7b8426585b50b88917832fd87037e9f5594b327c56c0d9
+MISC ChangeLog-2015 1747 SHA256 b7b89509baefbd79c74b134ec7f7a803f93155a850f32ffae2ec6014e21f6c3e SHA512 d883c113fd3189c9869baa6b181078429613c8931592a23da881247c8159cbe0b7dfa93b3d2177b7a568c1e4c2f266178ac6acc3637ced8af7f0f80d68cdfbe5 WHIRLPOOL ea69943f633c09a2d2fa046b1a16a55897e232716a9a9c2728315bfc37f4c479a66d1d2d9f8ff2408450f5235a9a633ab3177bae25a8decb944a4da0ad66d138
+MISC metadata.xml 330 SHA256 a3fb98162c9f4239fdaf9b2a9446c01d9429d0b78807eb1f481f973531473cec SHA512 420c33888091af44a7fa2b8d8763cb1ab3748a23485d1c987cea2ea6d03589880d4a9d9b10ede7395e232b19c6be135755c6a495dfbf77b45482f5c85c36a9a9 WHIRLPOOL e80d125b3b625af7c011ebdf3397ee9731ec2c4651938dd8984c688d0b01e3094230621928faa3d6e096a81cefa1a93b89720c38dab703154233616ee121609d
diff --git a/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch b/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch
new file mode 100644
index 000000000000..9f4f4fe2f1c0
--- /dev/null
+++ b/games-action/noiz2sa/files/noiz2sa-0.51a-gcc41.patch
@@ -0,0 +1,17 @@
+--- src/foecommand.h.old 2006-04-21 20:06:35.000000000 +0200
++++ src/foecommand.h 2006-04-21 20:06:57.000000000 +0200
+@@ -36,10 +36,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;
diff --git a/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch b/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch
new file mode 100644
index 000000000000..6d6ab9f18636
--- /dev/null
+++ b/games-action/noiz2sa/files/noiz2sa-0.51a-underlink.patch
@@ -0,0 +1,31 @@
+--- a/makefile.lin 2011-06-14 08:03:28.928366818 +0200
++++ b/makefile.lin 2011-06-14 08:07:43.199113541 +0200
+@@ -4,18 +4,13 @@
+ NAME = noiz2sa
+ O = o
+ RM = rm -f
+-CC = gcc
+-CXX = g++
+
+ PROG = $(NAME)
+
+ DEFAULT_CFLAGS = `sdl-config --cflags`
+-LDFLAGS = `sdl-config --libs` -L. -lglut -lbulletml -lSDL_mixer -mwindows -lstdc++
++LDLIBS = `sdl-config --libs` -lGL -lbulletml -lSDL_mixer -lstdc++ -lm
+
+-MORE_CFLAGS = -O3
+-
+-CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS)
+-CPPFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -I./bulletml/
++CPPFLAGS = $(DEFAULT_CFLAGS) -I./bulletml/
+
+ OBJS = $(NAME).$(O) ship.$(O) shot.$(O) frag.$(O) bonus.$(O) \
+ foe.$(O) foecommand.$(O) barragemanager.$(O) attractmanager.$(O) \
+@@ -23,7 +19,6 @@
+ screen.$(O) clrtbl.$(O) vector.$(O) degutil.$(O) rand.$(O) soundmanager.$(O)
+
+ $(PROG): $(OBJS)
+- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+
+ clean:
+ $(RM) $(PROG) *.$(O)
diff --git a/games-action/noiz2sa/metadata.xml b/games-action/noiz2sa/metadata.xml
new file mode 100644
index 000000000000..953ec64f1e61
--- /dev/null
+++ b/games-action/noiz2sa/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">noiz2sa</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild b/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild
new file mode 100644
index 000000000000..785ff242ac91
--- /dev/null
+++ b/games-action/noiz2sa/noiz2sa-0.51a-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils user
+
+DESCRIPTION="Abstract Shooting Game"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/noiz2sa_e.html https://sourceforge.net/projects/noiz2sa/"
+SRC_URI="mirror://sourceforge/noiz2sa/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ >=dev-libs/libbulletml-0.0.3
+ media-libs/sdl-mixer[vorbis]
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}/src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gcc41.patch
+ "${FILESDIR}"/${P}-underlink.patch
+)
+
+src_prepare(){
+ default
+ cp makefile.lin Makefile || die
+}
+
+src_install(){
+ local datadir="/usr/share/games/${PN}"
+
+ dobin ${PN}
+ dodir "${datadir}"
+ dodoc ../readme*
+
+ cp -r ../noiz2sa_share/* "${D}/${datadir}" || die
+}
diff --git a/games-action/noiz2sa/noiz2sa-0.51a.ebuild b/games-action/noiz2sa/noiz2sa-0.51a.ebuild
new file mode 100644
index 000000000000..83359c5159c5
--- /dev/null
+++ b/games-action/noiz2sa/noiz2sa-0.51a.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="Abstract Shooting Game"
+HOMEPAGE="http://www.asahi-net.or.jp/~cs8k-cyu/windows/noiz2sa_e.html https://sourceforge.net/projects/noiz2sa/"
+SRC_URI="mirror://sourceforge/noiz2sa/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/sdl-mixer[vorbis]
+ >=dev-libs/libbulletml-0.0.3
+ virtual/opengl"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}/src
+
+src_prepare(){
+ epatch "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+ sed -i \
+ -e "s:/.noiz2sa.prf:/noiz2sa.prf:" \
+ -e "s:getenv(\"HOME\"):\"${GAMES_STATEDIR}\":" \
+ attractmanager.c || die
+
+ cp makefile.lin Makefile || die
+}
+
+src_install(){
+ local datadir="${GAMES_DATADIR}/${PN}"
+
+ dogamesbin ${PN}
+ dodir "${datadir}" "${GAMES_STATEDIR}"
+ cp -r ../noiz2sa_share/* "${D}/${datadir}" || die
+ dodoc ../readme*
+ touch "${D}${GAMES_STATEDIR}/${PN}.prf"
+ fperms 660 "${GAMES_STATEDIR}/${PN}.prf"
+ prepgamesdirs
+}