diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/pathological |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/pathological')
5 files changed, 166 insertions, 0 deletions
diff --git a/games-puzzle/pathological/Manifest b/games-puzzle/pathological/Manifest new file mode 100644 index 000000000000..00b3b0729c4d --- /dev/null +++ b/games-puzzle/pathological/Manifest @@ -0,0 +1,7 @@ +AUX pathological-1.1.3-build.patch 527 SHA256 93d4c806d11896a46d31b71fc81799141084cdde1323cc933c748b80f6ac4a3f SHA512 d18b8e55d3f40fa69d0a551749b1242ba055ba8eb5bde517d7df8a46414d81232836bf232b28e77b1dcab8f0d049b3ee46ef666621674ac1be68e343e53f1c34 WHIRLPOOL 09787923fdbe184610a2e5c5d5d3b7208af93a0a080e7e95dc4763b5849df8326dc5bfed2a61d77133ebfcd05ac4219e2166cda7cd7c4c73f1ed068e7261b1c5 +AUX pathological-1.1.3-music-py.patch 475 SHA256 35938ac1f96dad12c74fd57e0002fcf523fe573b269e03992d3ae006880819c0 SHA512 4a96a35d299f10ba90ff979ec77c7b117228d6e593be0b5858233fd44a0c746ad3abd52fe2751496e2ace813afc95ae7ee76c2e3d940678236de973cdae7aa87 WHIRLPOOL e12596733e095da808572b3b558dcf09798e347a8ad2399385c5107c8475bd745c216332c44a2e49c30348806a7b258cb77fa5168f9f025ec17b5734a5305129 +DIST pathological-1.1.3.tar.gz 6995274 SHA256 813ef0812ba6b3218b35c2ddea423c9c6ee912925824497f52d5310bc76f85de SHA512 a64e0ca9a3bf86ade4a1abdd4f471c341838f690b2471f21c488471b7800da55f89f42c62a51c9be380cb9f265432db904a5de6f6bb3a9a7dde835da94baf566 WHIRLPOOL 65f2f62c4d9991c3d0e69a9408e17e8c80a06575f38233ca4697054272b17bd3056cf681d40318786b6546ab7a43c34ce3d60bdaae08570457332bdaa0bee8da +EBUILD pathological-1.1.3-r3.ebuild 1963 SHA256 1631d00c28307968d51bf0a19ec8703c54ee6bcff95fc0c2421b11ed2fb65d8d SHA512 5ad4674b54dd249ec76f31d401efff322142ec51332a9bdfed7b1c9f84541165b0d86db53dc6daf2072e32477eea2ebb17ded296b8ce9eca9ce0ef0486875f5a WHIRLPOOL d97faa949e654e281ff6eeb9978de6fa448e1a1adf80f1cc84dec913623cd11b7b61338a6d4479d42faaa370143e6a44f7a7be483b0e9d212104274c636d43b1 +MISC ChangeLog 2537 SHA256 05ef96a2d3a7b9a9fe9fbc911bf862017e4fc856ac70f380939719aa4aaf0d93 SHA512 bd69067fc2fbe7418efc22856b4ced0b5a81ad417f9873c069238272510d725f91acda9679652c9f465b66846b8d32004ed49ddf6e97d569bbd4446cd45749b8 WHIRLPOOL d69887f810570dff847304083775c0c6921734744e712553784fb356eb4fe278f2e2e40d9b5f97550a18f997652d83a4a331a1a0f40d08936a5365b7d305cb00 +MISC ChangeLog-2015 4243 SHA256 582f476b394542c8141780114e50ab2db1d3645736cce46f886c093d6130300e SHA512 477ed28d698517d74cb8c1ad0ffb8efb075fe9b9160bcbd05bc8c0da921051f5415477367f8ba5eaed0de1006f2c3d41cb365c4890f8330e43c2853aee521a7d WHIRLPOOL f8dd62879600e90eb9db75714b2951c25454baea9b008f53960a7d676fe4cd5851731e555bf2333c84687a0526e783b72f121dba94aa58bcb565cf82bd8692ea +MISC metadata.xml 416 SHA256 9d7278eea88916ea41d783dd828e9813e9bf616fa1e9efd0f71a004f51849af1 SHA512 4928d2fce7738795beccf39352732b0a94838c436cc26816dfde9b27f64378788a2ef74cb054219fb0e0cc20fd93f43621227f851262775dfb8b255dc4ca15e5 WHIRLPOOL d7276f5045b55f0f0b70dcc9fff68f40ee1abd3ddc7cc33dc1ecb33c60e4cb27a23cc02b93e4506c9ed5f105a7f98faab0b387a6debdc2b607bc79ba38b990af diff --git a/games-puzzle/pathological/files/pathological-1.1.3-build.patch b/games-puzzle/pathological/files/pathological-1.1.3-build.patch new file mode 100644 index 000000000000..d8793a6aef6e --- /dev/null +++ b/games-puzzle/pathological/files/pathological-1.1.3-build.patch @@ -0,0 +1,27 @@ +Use implicit rules to build write-highscores so we dont have to worry +about CC/CFLAGS/LDFLAGS/etc... + +Include stdlib.h to get exit() prototype + +--- write-highscores.c ++++ write-highscores.c +@@ -25,6 +25,7 @@ + #include <sys/stat.h> + #include <unistd.h> + #include <fcntl.h> ++#include <stdlib.h> + + #define BUFFER_SIZE 1024 + +--- Makefile ++++ Makefile +@@ -4,9 +4,6 @@ + + all: write-highscores html/wheel.png + +-write-highscores: write-highscores.c +- gcc -s -o write-highscores write-highscores.c +- + html/wheel.png: + ./makehtml + diff --git a/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch b/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch new file mode 100644 index 000000000000..9d67085dd13a --- /dev/null +++ b/games-puzzle/pathological/files/pathological-1.1.3-music-py.patch @@ -0,0 +1,23 @@ +Make sure music_pending_song is defined before we try using it + +http://bugs.gentoo.org/109272 + +--- pathological.py ++++ pathological.py +@@ -28,6 +28,7 @@ + colorblind = 0 + sound_on = 1 + music_on = 1 ++music_pending_song = 0 + for arg in sys.argv[1:]: + if arg == '-s': + screenshot = 1 +@@ -194,7 +195,7 @@ + sound_on = sound_on ^ 1 + + def toggle_music(): +- global music_on ++ global music_pending_song, music_on + music_on = music_on ^ 1 + if music_on: + if music_pending_song: diff --git a/games-puzzle/pathological/metadata.xml b/games-puzzle/pathological/metadata.xml new file mode 100644 index 000000000000..1f00431ea125 --- /dev/null +++ b/games-puzzle/pathological/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mr_bones_@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">pathological</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-puzzle/pathological/pathological-1.1.3-r3.ebuild b/games-puzzle/pathological/pathological-1.1.3-r3.ebuild new file mode 100644 index 000000000000..7d829c07ed80 --- /dev/null +++ b/games-puzzle/pathological/pathological-1.1.3-r3.ebuild @@ -0,0 +1,95 @@ +# 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-single-r1 games + +DESCRIPTION="An enriched clone of the game 'Logical' by Rainbow Arts" +HOMEPAGE="http://pathological.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="doc" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + app-shells/bash + >=dev-python/pygame-1.5.5[${PYTHON_USEDEP}]" +DEPEND="${PYTHON_DEPS} + doc? ( media-libs/netpbm )" + +pkg_setup() { + games_pkg_setup + python-single-r1_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" || die + unpack ./${PN}.6.gz +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-build.patch \ + "${FILESDIR}"/${P}-music-py.patch + + if use doc ; then + sed -i -e '5,$ s/=/ /g' makehtml || die + else + echo "#!/bin/sh" > makehtml + fi + + sed -i \ + -e "s:/usr/share/games:${GAMES_DATADIR}:" \ + -e "s:/var/games:${GAMES_STATEDIR}:" \ + -e "s:exec:exec ${EPYTHON}:" \ + ${PN} || die + + sed -i \ + -e 's:\xa9:(C):' \ + -e "s:/usr/lib/${PN}/bin:$(games_get_libdir)/${PN}:" \ + ${PN}.py || die + + python_fix_shebang ${PN}.py +} + +src_install() { + dogamesbin ${PN} + + exeinto "$(games_get_libdir)"/${PN} + doexe write-highscores + + insinto "${GAMES_DATADIR}"/${PN} + doins -r circuits graphics music sounds ${PN}.py + + insinto "${GAMES_STATEDIR}" + doins ${PN}_scores + fperms 660 "${GAMES_STATEDIR}"/${PN}_scores + + dodoc changelog README TODO + doman ${PN}.6 + use doc && dohtml -r html/* + + doicon ${PN}.xpm + make_desktop_entry ${PN} Pathological ${PN} + + # remove some unneeded resource files + rm -f "${D}/${GAMES_DATADIR}"/${PN}/graphics/*.xcf + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + if ! has_version "media-libs/sdl-mixer[mod]" ; then + echo + elog "Since you have turned off the 'mod' use flag for media-libs/sdl-mixer" + elog "no background music will be played." + echo + fi + +} |