diff options
author | 2005-05-13 02:06:58 +0000 | |
---|---|---|
committer | 2005-05-13 02:06:58 +0000 | |
commit | b8a3d38d80b460757e496129bcf58921b46f74c8 (patch) | |
tree | aaa87bdc71a0c706528370a72d878202f6880a42 /games-simulation | |
parent | old (diff) | |
download | historical-b8a3d38d80b460757e496129bcf58921b46f74c8.tar.gz historical-b8a3d38d80b460757e496129bcf58921b46f74c8.tar.bz2 historical-b8a3d38d80b460757e496129bcf58921b46f74c8.zip |
Add x-include fix by Jason Bucata and amd64 fix by Bernard Cafarelli #84187.
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'games-simulation')
5 files changed, 51 insertions, 18 deletions
diff --git a/games-simulation/cannonsmash/ChangeLog b/games-simulation/cannonsmash/ChangeLog index df00ac19434a..f1cabbc0b20a 100644 --- a/games-simulation/cannonsmash/ChangeLog +++ b/games-simulation/cannonsmash/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for games-simulation/cannonsmash -# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/cannonsmash/ChangeLog,v 1.10 2004/12/28 23:35:13 ciaranm Exp $ +# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-simulation/cannonsmash/ChangeLog,v 1.11 2005/05/13 02:06:58 vapier Exp $ + + 13 May 2005; Mike Frysinger <vapier@gentoo.org> + +files/cannonsmash-0.6.6-sizeof-cast.patch, + +files/cannonsmash-0.6.6-x-inc.patch, cannonsmash-0.6.6.ebuild: + Add x-include fix by Jason Bucata and amd64 fix by Bernard Cafarelli #84187. 28 Dec 2004; Ciaran McCreesh <ciaranm@gentoo.org> : Change encoding to UTF-8 for GLEP 31 compliance diff --git a/games-simulation/cannonsmash/Manifest b/games-simulation/cannonsmash/Manifest index 937a1b6db5aa..8d8048eb9d41 100644 --- a/games-simulation/cannonsmash/Manifest +++ b/games-simulation/cannonsmash/Manifest @@ -1,7 +1,7 @@ -MD5 e464f826aa024185a8fa1aa3148eef00 cannonsmash-0.6.6.ebuild 1400 -MD5 5907144e953994344ebf42b7103c2955 ChangeLog 1803 -MD5 4b819a835be0a8ef63c9b89f18e20221 cannonsmash-0.6.5.ebuild 1337 +MD5 96331c76488d9f38d30828be06d00584 ChangeLog 2044 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 e82483f8829d68c4582a2b5ea52ba427 files/digest-cannonsmash-0.6.6 134 -MD5 fbc7d2161999a96e4c8cd035592ba8d5 files/digest-cannonsmash-0.6.5 134 +MD5 5a859f0b6ab0e22e34c238312e6f42a9 cannonsmash-0.6.6.ebuild 1418 MD5 2ca70e3856451ca1226bb3461a653895 files/0.6.5-loadparts.patch 348 +MD5 e82483f8829d68c4582a2b5ea52ba427 files/digest-cannonsmash-0.6.6 134 +MD5 76dd644fdfc4521c420f0f63d3365f29 files/cannonsmash-0.6.6-x-inc.patch 305 +MD5 112758236b8f2e754e515d821380787e files/cannonsmash-0.6.6-sizeof-cast.patch 358 diff --git a/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild b/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild index 404f4ae4ffc3..643ac5162c80 100644 --- a/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild +++ b/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild,v 1.6 2004/12/16 15:55:43 josejx Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-simulation/cannonsmash/cannonsmash-0.6.6.ebuild,v 1.7 2005/05/13 02:06:58 vapier Exp $ inherit games @@ -12,26 +12,25 @@ SRC_URI="mirror://sourceforge/cannonsmash/csmash-${PV}.tar.gz LICENSE="GPL-2" SLOT="0" -KEYWORDS="x86 ppc" +KEYWORDS="amd64 ppc x86" IUSE="oggvorbis nls" -RDEPEND="virtual/libc - virtual/x11 +DEPEND="virtual/x11 virtual/opengl >=media-libs/libsdl-1.2.4 >=media-libs/sdl-mixer-1.2.3 >=media-libs/sdl-image-1.2.2 =x11-libs/gtk+-1.2*" -DEPEND="${RDEPEND} - oggvorbis? ( >=sys-apps/sed-4 )" -S="${WORKDIR}/csmash-${PV}" +S=${WORKDIR}/csmash-${PV} src_unpack() { unpack csmash-${PV}.tar.gz cd "${S}" + epatch "${FILESDIR}"/${P}-x-inc.patch + epatch "${FILESDIR}"/${P}-sizeof-cast.patch if use oggvorbis ; then - cp "${DISTDIR}/${MY_OGG}" "${S}/" || die "cp failed" + cp "${DISTDIR}"/${MY_OGG} "${S}"/ || die "cp failed" sed -i \ -e "s:${MY_OGG}:${GAMES_DATADIR}/csmash/${MY_OGG}:" ttinc.h \ || die "setting ogg loc" @@ -51,8 +50,8 @@ src_compile() { src_install() { make DESTDIR="${D}" install || die "make install failed" if use oggvorbis ; then - insinto "${GAMES_DATADIR}/csmash" - doins "${MY_OGG}" + insinto "${GAMES_DATADIR}"/csmash + doins ${MY_OGG} fi dodoc AUTHORS CREDITS README* prepgamesdirs 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" + |