From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- games-puzzle/monsterz/Manifest | 8 ++++ .../monsterz/files/monsterz-0.7.1-64bit.patch | 26 +++++++++++++ .../monsterz/files/monsterz-0.7.1-blit.patch | 32 ++++++++++++++++ .../monsterz/files/monsterz-0.7.1-gentoo.patch | 20 ++++++++++ games-puzzle/monsterz/metadata.xml | 8 ++++ games-puzzle/monsterz/monsterz-0.7.1-r3.ebuild | 44 ++++++++++++++++++++++ 6 files changed, 138 insertions(+) create mode 100644 games-puzzle/monsterz/Manifest create mode 100644 games-puzzle/monsterz/files/monsterz-0.7.1-64bit.patch create mode 100644 games-puzzle/monsterz/files/monsterz-0.7.1-blit.patch create mode 100644 games-puzzle/monsterz/files/monsterz-0.7.1-gentoo.patch create mode 100644 games-puzzle/monsterz/metadata.xml create mode 100644 games-puzzle/monsterz/monsterz-0.7.1-r3.ebuild (limited to 'games-puzzle/monsterz') diff --git a/games-puzzle/monsterz/Manifest b/games-puzzle/monsterz/Manifest new file mode 100644 index 000000000000..24aac6263bdf --- /dev/null +++ b/games-puzzle/monsterz/Manifest @@ -0,0 +1,8 @@ +AUX monsterz-0.7.1-64bit.patch 1093 SHA256 36a9a26de082b5a182a40cfc9af2a4e270ca335971896c51578b0e7887011661 SHA512 3098e5a287c2b3e5e415a06e9e671fb4e56ebd4405a4580c5bb3529c1708ada9efdb40b1369040c7dba50ee1e0c33b6f088da898a8eec7f2997e4d376b67dea4 WHIRLPOOL 48bf50c9e29bc518a6d301b7b9bedc3c5787f549213a86a9653d401f74cd3ae2bd1cec7fe9de23f52f577ef2a0f95776a63457b7ebe2caa64707478ddcf5c3a8 +AUX monsterz-0.7.1-blit.patch 1294 SHA256 1d1e5d017dba6a2527be70338a2d1eeb771462506572c857eab04e138aaa8d9d SHA512 aa7e63d7a67afea475f1c26976da46828232075231f939d4e478f1975bd192de8ee7b848a914567f915ef3c1394a11acb183a84b548732ed55389d3cd764614f WHIRLPOOL 123c2c31cb4ed3d4314b9da35a01579b9101483b715a7e78dacf1aff90a090c099c03f5e5055cef20adf18635c9e0d1ed6ff1b5c166b1254d3a43ade5fdef785 +AUX monsterz-0.7.1-gentoo.patch 966 SHA256 76186ed8433d817de4876cb62da3e67bf8e18f2eeefcd68e427ae2254af37a1e SHA512 69cea5fef337a6a2f8105dfc1cf6e308569852ead7701b6898582c51b5a740ff80f9900956e3fa0325a37fd963e62acc62a4c385b7669b4cf634a90136a484a7 WHIRLPOOL 5d5f43b1e981086e9cd106c22ed19f58cbb4359236e4d318007e01345c8988a1d2ea0151213227943210edd86f981c8dd0dbd6876905eb7d4cf47d58bdb806f1 +DIST monsterz-0.7.1.tar.gz 1879537 SHA256 50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d SHA512 62de125251a74e7ff237c90ad88e10a4953b8841251dfec45cc6b77f416677ef6d68cf4308c3190f65896b5bb1312934abd5e438f0341f08c02884585f0e4787 WHIRLPOOL d2aa08ae267f0ba7c57e62a25d54a670934498048d3cf4420e558564c1e1132e687051bfbc4175bd667d2f21411641ccc28820fbbab5d6f1348152cef4749585 +EBUILD monsterz-0.7.1-r3.ebuild 1144 SHA256 6ad4b39b216a527d8e127cc020ee871bcf48b753e4da4ea9183e424c4b379721 SHA512 d33fc5c7e0ff03d45d98893cf4159d40e620e59f560130ffa55eab69c580db9d7587c00a66fd4505f9c5a2f97da46644e85188e35f6bb693cd6015287811dc5c WHIRLPOOL d2c0e9f81a7b4c12fdb0872ba86aefe4c575f21fe5e005a72bdd54f2ac3777a5dca3c98528e456db5df46ee8797575ef90496defda19d6d3eca4c5a7529d1061 +MISC ChangeLog 2549 SHA256 c0e7fbe4785c9f8eac566ab930200f367664a0205e7694f74c51e7edd344edca SHA512 d67674d9bbb971be76840fec101d862b1bbd70b9dc4e30b3274de4beea6a3a81be372d00dedffaa91cbb45e8767b6928e48c2a9b2844f36db0823500693137b3 WHIRLPOOL 565292785dc361ed8c964f24b634889ac7a35e6e4fbb1f7b09133fc3e087b34268377484b5590295b9aef1881c558ff7445b5ddbc70b2764cd4dd1d1d0198a3c +MISC ChangeLog-2015 4963 SHA256 6e658e8973eff5d979313288f53c9cb9c79b41bdd005cc5ae31375f88eb9a3dc SHA512 4c368b60feac27afdfaa1bf76f7d13d51928d4342df747d363b2ddc3a0c81798375a8fa0410e359073bb85e78458c1cab6fd84217bce1d8a09e9d1fc63cc303b WHIRLPOOL e4d72dd88cc7f4c991eeb12dbf717ffb0bf1fc62d865dddecaecec32d106f55811b53be4c9a447e44807e414984efc7083f3d125fc7aa46bb3caf9c119b966cd +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-puzzle/monsterz/files/monsterz-0.7.1-64bit.patch b/games-puzzle/monsterz/files/monsterz-0.7.1-64bit.patch new file mode 100644 index 000000000000..64d6527768f8 --- /dev/null +++ b/games-puzzle/monsterz/files/monsterz-0.7.1-64bit.patch @@ -0,0 +1,26 @@ +Index: monsterz-0.7.1/monsterz.py +=================================================================== +--- monsterz-0.7.1.orig/monsterz.py 2008-05-09 16:35:25.000000000 +0000 ++++ monsterz-0.7.1/monsterz.py 2008-05-09 16:35:33.000000000 +0000 +@@ -108,7 +108,9 @@ + M = int(max(r, g, b)) + m = int(min(r, g, b)) + val = (2 * M + r + g + b) / 5 +- p[:] = (val + r) / 2, (val + g) / 2, (val + b) / 2 ++ p[0] = (val + r) / 2 ++ p[1] = (val + g) / 2 ++ p[2] = (val + b) / 2 + if alpha[y][x] >= 250: + alpha[y][x] = 255 - (M - m) * 3 / 4 + del pixels +@@ -129,7 +131,9 @@ + r, g, b = p + M = int(max(r, g, b)) + m = int(min(r, g, b)) +- p[:] = (m + r) / 2, (m + g) / 2, (m + b) / 2 ++ p[0] = (m + r) / 2 ++ p[1] = (m + g) / 2 ++ p[2] = (m + b) / 2 + if alpha[y][x] >= 250: + alpha[y][x] = 255 - M * 2 / 3 + del pixels 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/files/monsterz-0.7.1-gentoo.patch b/games-puzzle/monsterz/files/monsterz-0.7.1-gentoo.patch new file mode 100644 index 000000000000..652450bf190b --- /dev/null +++ b/games-puzzle/monsterz/files/monsterz-0.7.1-gentoo.patch @@ -0,0 +1,20 @@ +--- monsterz.py.orig 2006-05-12 18:55:51.000000000 -0400 ++++ monsterz.py 2006-05-12 18:57:44.000000000 -0400 +@@ -1907,7 +1906,7 @@ + print ' (C) Mike Kershaw ' + + print 'This program is free software; you can redistribute it and/or modify it under' +- print 'the terms of the Do What The Fuck You Want To Public License, Version 2, as' ++ print 'the terms of the WTFPL, Version 2, as' + print 'published by Sam Hocevar. See http://sam.zoy.org/wtfpl/ for more details.' + print 'The sound effects are released under their own licences: applause.wav and' + print 'pop.wav are covered by the LGPL, the others are covered by the GPL.' +@@ -1932,7 +1931,7 @@ + global system, data, settings, fonter, monsterz + override = {} + scorefile = None +- sharedir = dirname(argv[0]) ++ sharedir = "GENTOO_DATADIR" + outfd = None + try: + long = ['help', 'version', 'music', 'sound', 'fullscreen', diff --git a/games-puzzle/monsterz/metadata.xml b/games-puzzle/monsterz/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-puzzle/monsterz/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-puzzle/monsterz/monsterz-0.7.1-r3.ebuild b/games-puzzle/monsterz/monsterz-0.7.1-r3.ebuild new file mode 100644 index 000000000000..7086b507fb09 --- /dev/null +++ b/games-puzzle/monsterz/monsterz-0.7.1-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-r1 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="GPL-1+ LGPL-2+ WTFPL-2" +SLOT="0" +KEYWORDS="amd64 hppa x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + dev-python/pygame[${PYTHON_USEDEP}] + media-libs/sdl-image[png] + media-libs/sdl-mixer[mod]" +DEPEND="${RDEPEND}" + +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 Makefile || die +} + +src_install() { + insinto "${GAMES_DATADIR}"/${PN} + doins -r graphics sound + newgamesbin monsterz.py ${PN} + newicon graphics/icon.png ${PN}.png + make_desktop_entry ${PN} Monsterz + dodoc README AUTHORS TODO + python_replicate_script "${ED%/}${GAMES_BINDIR}"/monsterz + prepgamesdirs +} -- cgit v1.2.3