diff options
author | 2009-05-23 20:25:42 +0000 | |
---|---|---|
committer | 2009-05-23 20:25:42 +0000 | |
commit | 3019c61a31edc60d91178a3beb1131cbe2b0679b (patch) | |
tree | 62dec126c1084c5c2d6d3050fdf92d753f999e2d | |
parent | Bump to 2.26.2. Make configure more portage. Update translations. (diff) | |
download | historical-3019c61a31edc60d91178a3beb1131cbe2b0679b.tar.gz historical-3019c61a31edc60d91178a3beb1131cbe2b0679b.tar.bz2 historical-3019c61a31edc60d91178a3beb1131cbe2b0679b.zip |
Patch from Fedora to fix blitting error with pygame-1.8, bug #263854
Package-Manager: portage-2.2_rc33/cvs/Linux i686
-rw-r--r-- | games-puzzle/monsterz/ChangeLog | 12 | ||||
-rw-r--r-- | games-puzzle/monsterz/Manifest | 14 | ||||
-rw-r--r-- | games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch | 32 | ||||
-rw-r--r-- | games-puzzle/monsterz/monsterz-0.7.1-r2.ebuild | 40 |
4 files changed, 96 insertions, 2 deletions
diff --git a/games-puzzle/monsterz/ChangeLog b/games-puzzle/monsterz/ChangeLog index adeca40fd1c7..39382ebdadcb 100644 --- a/games-puzzle/monsterz/ChangeLog +++ b/games-puzzle/monsterz/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for games-puzzle/monsterz # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/monsterz/ChangeLog,v 1.22 2009/01/11 21:34:04 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/monsterz/ChangeLog,v 1.23 2009/05/23 20:25:42 nyhm Exp $ + + 23 May 2009; Tristan Heaven <nyhm@gentoo.org> +monsterz-0.7.1-r2.ebuild, + +files/monsterz-0.7.1-blit.patch: + Patch from Fedora to fix blitting error with pygame-1.8, bug #263854 + +*monsterz-0.7.1-r2 (23 May 2009) + + 23 May 2009; Tristan Heaven <nyhm@gentoo.org> +monsterz-0.7.1-r2.ebuild, + +files/monsterz-0.7.1-blit.patch: + Patch from Fedora to fix blitting error with pygame-1.8, bug #263854 11 Jan 2009; Michael Sterrett <mr_bones_@gentoo.org> monsterz-0.7.1-r1.ebuild: diff --git a/games-puzzle/monsterz/Manifest b/games-puzzle/monsterz/Manifest index dcbebcbdd31a..083a8abddadd 100644 --- a/games-puzzle/monsterz/Manifest +++ b/games-puzzle/monsterz/Manifest @@ -1,6 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX monsterz-0.7.1-64bit.patch 1093 RMD160 b1c027c2a40c2ff7de2823d9466a91dba31fa506 SHA1 efdf59ba9be1d9938f50479362fa22d2cef86688 SHA256 36a9a26de082b5a182a40cfc9af2a4e270ca335971896c51578b0e7887011661 +AUX monsterz-0.7.1-blit.patch 1294 RMD160 65fe92359e055d1b170f4f65846398a6b43de07c SHA1 129300f8a1bcbb6a816ed959963179c5e2b8d2b9 SHA256 1d1e5d017dba6a2527be70338a2d1eeb771462506572c857eab04e138aaa8d9d AUX monsterz-0.7.1-gentoo.patch 966 RMD160 526247e4a9a7e0a68f3e2855cc8b5056bf29c30a SHA1 f97eb2d59bdf29fe9ac12bb83630692c37a8f2c6 SHA256 76186ed8433d817de4876cb62da3e67bf8e18f2eeefcd68e427ae2254af37a1e DIST monsterz-0.7.1.tar.gz 1879537 RMD160 6497b3c561f4a7c31b903a380d916778e44de5b8 SHA1 8fb1933b7141a058e7b55f85537873e65568cb00 SHA256 50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d EBUILD monsterz-0.7.1-r1.ebuild 1078 RMD160 e7d8bda48ddb0988340a8a843f796b299fe00b5e SHA1 658a67f7fff43df598d2ee40c1dab8a76fc69928 SHA256 eda6ab2297da4c67b2ab5f4cc4e6b66534c68682d1a995751f8ff4d1b3500003 -MISC ChangeLog 3096 RMD160 cf261bd93c3a700f20c000ef07192ee0ce53d5d9 SHA1 3e07341d02eb314294e22f92b21949934d0f5068 SHA256 7d93397d3b1422a29e6105815896e856f48ec8cfb3f471f000a06d22830c9e38 +EBUILD monsterz-0.7.1-r2.ebuild 1122 RMD160 be7f4bed2c5294282dd8984505072b5262115c56 SHA1 0aeb676b530a3972864aa9e7b7df6596f0131152 SHA256 366b0d9b790011a1f64ed342f54d58de15583e03c134d6d1a3455c15ee7fa964 +MISC ChangeLog 3491 RMD160 5923607379fd5d6a36c18617c91be57b008e7a70 SHA1 70542fe156690179a2f841686741e45af2ebcdff SHA256 1c16946336f841ec25834dc7d6bcd69b8f1a5ab68988b34b4a700266c8310c6d MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAkoYW8wACgkQdz7hIScOUREdBACguDAtcLDSELyPwOxUV9ksske7 +i4QAnjL9QKMSfVjP8KMHDC9AXrd1eVWe +=cP6N +-----END PGP SIGNATURE----- diff --git a/games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch b/games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch new file mode 100644 index 000000000000..8e55b23a327c --- /dev/null +++ b/games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch @@ -0,0 +1,32 @@ +--- monsterz.py ++++ monsterz.py +@@ -829,10 +829,10 @@ + pass + else: + for x in range(4): +- for y, p in enumerate(alpha[x]): +- alpha[x][y] = p * x / 4 +- for y, p in enumerate(alpha[406 - x - 1]): +- alpha[406 - x - 1][y] = p * x / 4 ++ for y in range(len(alpha[x])): ++ alpha[x][y] = alpha[x][y] * x / 4 ++ for y in range(len(alpha[406 - x - 1])): ++ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 4 + for col in alpha: + l = len(col) + for y in range(4): +@@ -1287,10 +1287,10 @@ + pass + else: + for x in range(10): +- for y, p in enumerate(alpha[x]): +- alpha[x][y] = p * x / 12 +- for y, p in enumerate(alpha[406 - x - 1]): +- alpha[406 - x - 1][y] = p * x / 12 ++ for y in range(len(alpha[x])): ++ alpha[x][y] = alpha[x][y] * x / 12 ++ for y in range(len(alpha[406 - x - 1])): ++ alpha[406 - x - 1][y] = alpha[406 - x - 1][y] * x / 12 + del alpha + scroll.unlock() + system.blit(scroll, (13, 437)) diff --git a/games-puzzle/monsterz/monsterz-0.7.1-r2.ebuild b/games-puzzle/monsterz/monsterz-0.7.1-r2.ebuild new file mode 100644 index 000000000000..5ff7df929f21 --- /dev/null +++ b/games-puzzle/monsterz/monsterz-0.7.1-r2.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/monsterz/monsterz-0.7.1-r2.ebuild,v 1.1 2009/05/23 20:25:42 nyhm Exp $ + +EAPI=2 +inherit eutils games + +DESCRIPTION="a little puzzle game, similar to the famous Bejeweled or Zookeeper" +HOMEPAGE="http://sam.zoy.org/projects/monsterz/" +SRC_URI="http://sam.zoy.org/projects/monsterz/${P}.tar.gz" + +LICENSE="WTFPL-2" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="dev-python/pygame + media-libs/sdl-image[png] + media-libs/sdl-mixer[mikmod]" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-gentoo.patch \ + "${FILESDIR}"/${P}-64bit.patch \ + "${FILESDIR}"/${P}-blit.patch + sed -i \ + -e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}:" \ + monsterz.py || die "sed failed" + rm -f Makefile +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r graphics sound || die "doins failed" + newgamesbin monsterz.py ${PN} || die "newgamesbin failed" + newicon graphics/icon.png ${PN}.png + make_desktop_entry ${PN} Monsterz + dodoc README AUTHORS TODO + prepgamesdirs +} |