summaryrefslogtreecommitdiff
path: root/games-simulation/cannonsmash
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-simulation/cannonsmash
reinit the tree, so we can have metadata
Diffstat (limited to 'games-simulation/cannonsmash')
-rw-r--r--games-simulation/cannonsmash/Manifest10
-rw-r--r--games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild68
-rw-r--r--games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch21
-rw-r--r--games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch22
-rw-r--r--games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch11
-rw-r--r--games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch18
-rw-r--r--games-simulation/cannonsmash/metadata.xml11
7 files changed, 161 insertions, 0 deletions
diff --git a/games-simulation/cannonsmash/Manifest b/games-simulation/cannonsmash/Manifest
new file mode 100644
index 000000000000..0b2b0b3ac822
--- /dev/null
+++ b/games-simulation/cannonsmash/Manifest
@@ -0,0 +1,10 @@
+AUX cannonsmash-0.6.6-flags.patch 520 SHA256 a63c6d3ebb8407899e19f624a9e5c41b6a8a3f2b22270d8b10c910eaf9e3a115 SHA512 017f3117755e907438b923813e7df9864f8f6c8f5c917afde9f67ca87262402ca6b643551541374e8389f133993d51d4819fec2bd3d70a11cc4a2c0b2301b5a6 WHIRLPOOL 60f44d332ae510fcc13b01a4862c33b1cf00fa07b7bbf5d3d9f8aca6ff8104d01f8cfb893e3c7eb4e67a769d3d9dde5995c971edc6d5aeac56f6c6e125bd1a6a
+AUX cannonsmash-0.6.6-gcc41.patch 586 SHA256 8f8f53f8eb715984fd65409d178bc586e9610842a4f2a2a9249e3bf6adeacf62 SHA512 b93042c728ce93a515fd43e0b1fb9306ca83da697fde932da7c1c0536bc560fd8bcb17d7a306f51ef20a058690354b2bd19cfc62ca413398e318e0a39f6c26b9 WHIRLPOOL 3c46bf3e590f54b56c0ddbee1dfcd57d05a29ba7e937693a15f870a74a8ecda43c71733c6b53d6942f8d2f999cf78ff9d361ce9198798eff4be5639b7ea939f0
+AUX cannonsmash-0.6.6-sizeof-cast.patch 358 SHA256 a896a7f05317080500663aa49a6f61642c41e690b5889095f1f193a82cd4cbe6 SHA512 23d8764c900e78a6c3205b4fa444bd94a4a50990edfb45ef2dc764871b1d9f2359a8ee38da25ba8c392ef0000fd2da1340ce41093b4e4b8bdb818a1363941b90 WHIRLPOOL 38c79db58da57010a823d211d10f08443d5b1435daa28e1ca61b5f4cfd466e11ca547ee2423a8123b0dd63c00d4e05dc04b3970bee90a4a32591347c8a71e8df
+AUX cannonsmash-0.6.6-x-inc.patch 305 SHA256 29a261f5a92764061870fcafc84d4517f6d80249453a4daa2cfdb898833a2b7b SHA512 b7dcd8415a7f5ad773141a7b9fe048121e4f93862d8354bfde9637137858948d6791a87a3f44d53f69246fb3d539a9f5f6bd3fb667b48be8c147dcccb810d692 WHIRLPOOL 3b10c3a453d2106ca6d3d77848bd24a40aa4e332250df08fb15de1bca402c3ec13ea2c0cfa920df086a4f0ffecd088a62899ee9e9e57b9fdc6506c51a7996705
+DIST csmash-0.6.6.tar.gz 1989943 SHA256 1be0b27dac46ba891b955bf8f122151baea6ee05b3c29616a09423250cfd9d3d SHA512 e8406eb17adf6c6cc4454b7d0a432ad1b071e1f72d9867fd46e458ade2d1dc1e927a7f2a336c80988b97051b9d188c3027dd8207f89f7e1fa60e1d0a6a5e8916 WHIRLPOOL 0b0af9343bdf47fdca52b3f91b7cd137c5731c41ee00b077e86efcfc13057cdc66bfc5601124bc983813ad9cfc3fbe3e0da101cc62de6b2cb3a0428cb8a535ba
+DIST danslatristesse2-48.ogg 1070787 SHA256 aab5b276bc55ecad65c4b2e17f11daa6d173fc077e982e42997f10695f070bfe SHA512 5cbc457d511bdc736f3b359a8ddd3a514bd0d14418f2dbd68409394baadfcd9fd7630b228e4e9654b14b513e158e9a46b67bc58c5c04bfe382ee6e624dd16834 WHIRLPOOL dc87627a79900c9747ae620d3339a809cc72d7fc3b8a9fa05ab6b2423c02531600a4761c966b29bda5f531de96a68f58978d269f96c9603aae82ed87a0f52924
+EBUILD cannonsmash-0.6.6.ebuild 1422 SHA256 eac6065f08072fb5c79f614722e73115847626d38bd325c3adb5302cf63188a5 SHA512 17d6b3229a6aa70f89f67c5bfae0eaa462b1e2705edc4941cef0875b6081ec0878bdf878d92dfb56c3ca27b897879ce3f1dd34207f17b6700fdbbdf7b629e6e6 WHIRLPOOL faee13ea6aefd521722de3a6bb4ed63e5372020626d43506625af753fb59d6f16c2bbb8d0d733266e1e6f2fe80e23ac49a89bc05cbcf6ac0906befa907efeb78
+MISC ChangeLog 2611 SHA256 f10224389aef15ef7bc57724270732b5194c9c834122c712346aad78c49f4870 SHA512 167928b3fbe1b7178f8617cf04915cbe480450a2aa46a8d7778c9e6f4aab59200b65a6e5ef90bc6f5e1e44150f27ae83e0083f7f95e4ea2e2874a6d6f9c54410 WHIRLPOOL 74931306a2f66996278af0b5acc36e06d2d2bb7ddf6ddfc42b36a1a8b91b205656a88e8f7958a16bd113c90ab7af287be2f61606604790afec88cae5058ea290
+MISC ChangeLog-2015 3673 SHA256 e3e3b36e3e7a367252d64ca8399d4245e5d2a933ce568b05ebb0cd1e3fa5c748 SHA512 4d72c375c72e54157fcf6a9349aa89f75a98692333cba50b3ab785b8350a1458e41466cc90138473445f6de875f1604c1bb28e65ea396bfd951b64aae9dd5a8d WHIRLPOOL bb1b0351c135a0bea021e9162c0d5fbef3bbeb389e409acfb6d3e50bd89b918c8c015fe9781d06cb9d926f5ee582148ba73a0d82d87362cfdcfa59fa0a269c3e
+MISC metadata.xml 334 SHA256 1eeff58590bd5a18c7f0062b9ffdcf5c9251120099dda9ce7e6b01235ebf4532 SHA512 feb36e586e7e460e47a342dccf7cc812319860809033b31a8597c8df12f7c09e725af4e5536933a50341e22e921009557600801bcf64d9bf13e88b24d4b53e34 WHIRLPOOL 2f00a182a9ae6e84603377a11d27a76c9f68b308b370f8cccd9bf8bbaa8c3859df610a16d6d8e41bbfb3b139278f6102d06b6886bf893ab062fe19d4726a2aa1
diff --git a/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild b/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild
new file mode 100644
index 000000000000..689ff819dff4
--- /dev/null
+++ b/games-simulation/cannonsmash/cannonsmash-0.6.6.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_OGG=danslatristesse2-48.ogg
+DESCRIPTION="3D tabletennis game"
+HOMEPAGE="http://cannonsmash.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/csmash-${PV}.tar.gz
+ vorbis? ( http://nan.p.utmc.or.jp/${MY_OGG} )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="vorbis nls"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/libsdl[sound,video]
+ media-libs/sdl-mixer[vorbis?]
+ media-libs/sdl-image[jpeg,png]
+ x11-libs/gtk+:2
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/csmash-${PV}
+
+src_unpack() {
+ unpack csmash-${PV}.tar.gz
+}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-x-inc.patch \
+ "${FILESDIR}"/${P}-sizeof-cast.patch \
+ "${FILESDIR}"/${P}-gcc41.patch \
+ "${FILESDIR}"/${P}-flags.patch
+ if use vorbis ; then
+ sed -i \
+ -e "s:${MY_OGG}:${GAMES_DATADIR}/csmash/${MY_OGG}:" ttinc.h \
+ || die "sed failed"
+ fi
+}
+
+src_configure() {
+ egamesconf \
+ $(use_enable nls) \
+ --datadir="${GAMES_DATADIR_BASE}"
+}
+
+src_compile() {
+ emake \
+ localedir="/usr/share"
+}
+
+src_install() {
+ default
+ if use vorbis ; then
+ insinto "${GAMES_DATADIR}"/csmash
+ doins "${DISTDIR}"/${MY_OGG}
+ fi
+ newicon win32/orange.ico ${PN}.ico
+ make_desktop_entry csmash "Cannon Smash" /usr/share/pixmaps/${PN}.ico
+ prepgamesdirs
+}
diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch
new file mode 100644
index 000000000000..85612b929c59
--- /dev/null
+++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-flags.patch
@@ -0,0 +1,21 @@
+--- configure.old 2010-10-18 15:05:02.000000000 +0200
++++ configure 2010-10-18 15:05:31.000000000 +0200
+@@ -5516,12 +5516,12 @@
+
+
+ if test "x$x_includes" != "x"; then
+- CFLAGS="-I $x_includes"
+-else
+- CFLAGS=""
+-fi
+-LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir"
+-CXXFLAGS="$CFLAGS -Wall"
++ CFLAGS="${CFLAGS} -I $x_includes"
++else
++ CFLAGS="${CFLAGS}"
++fi
++LDFLAGS="${LDFLAGS} -L/usr/local/lib -L$x_libraries -L$libdir"
++CXXFLAGS="${CXXFLAGS} -Wall"
+
+
+ echo "$as_me:$LINENO: checking for main in -lXmu" >&5
diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch
new file mode 100644
index 000000000000..0f3e511f09cc
--- /dev/null
+++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-gcc41.patch
@@ -0,0 +1,22 @@
+--- BallView.h.old 2006-04-11 00:10:37.000000000 +0200
++++ BallView.h 2006-04-11 00:10:53.000000000 +0200
+@@ -32,7 +32,7 @@
+
+ static GLuint m_number[10];
+ private:
+- void BallView::DrawTargetCircle();
++ void DrawTargetCircle();
+ GLUquadricObj *m_quad;
+
+ void DrawBall();
+--- matrix.old 2006-04-11 00:13:18.000000000 +0200
++++ matrix 2006-04-11 00:19:34.000000000 +0200
+@@ -42,7 +42,7 @@
+
+ /* __BEGIN__BEGIN__ */
+ //__NAMESPACE_BEGIN(ese);
+-#if (!defined __GNUG__) || (__GNUC__ == 3)
++#if (!defined __GNUG__) || (__GNUC__ >= 3)
+ template<typename T>
+ void swap(T& a, T& b)
+ {
diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch
new file mode 100644
index 000000000000..9237f95978ef
--- /dev/null
+++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-sizeof-cast.patch
@@ -0,0 +1,11 @@
+Don't typecast otherwise C++ will fail to match on some arches.
+
+http://bugs.gentoo.org/84187
+
+--- loadparts.cpp
++++ loadparts.cpp
+@@ -247,3 +247,3 @@
+ // concat next line(s)
+- int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
++ int bufsize = clamp((size_t)0, sizeof(line)-l, sizeof(line)-1);
+ fgets(&line[l-2], bufsize, fp);
diff --git a/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch
new file mode 100644
index 000000000000..99c1e2f944fa
--- /dev/null
+++ b/games-simulation/cannonsmash/files/cannonsmash-0.6.6-x-inc.patch
@@ -0,0 +1,18 @@
+Patch by Jason Bucata.
+http://bugs.gentoo.org/84187
+
+--- configure
++++ configure
+@@ -5515,7 +5515,11 @@
+ fi
+
+
+-CFLAGS="-I $x_includes"
++if test "x$x_includes" != "x"; then
++ CFLAGS="-I $x_includes"
++else
++ CFLAGS=""
++fi
+ LDFLAGS="-L/usr/local/lib -L$x_libraries -L$libdir"
+ CXXFLAGS="$CFLAGS -Wall"
+
diff --git a/games-simulation/cannonsmash/metadata.xml b/games-simulation/cannonsmash/metadata.xml
new file mode 100644
index 000000000000..a7e14e54406d
--- /dev/null
+++ b/games-simulation/cannonsmash/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">cannonsmash</remote-id>
+ </upstream>
+</pkgmetadata>