Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/fretsonfire/files/, games-arcade/fretsonfire/
Date: Thu, 06 Feb 2020 21:22:46
Message-Id: 1581024037.9a6752a91f2f8b4a52c0a71d1320055de78899d1.winterheart@gentoo
1 commit: 9a6752a91f2f8b4a52c0a71d1320055de78899d1
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 6 19:00:20 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Thu Feb 6 21:20:37 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9a6752a9
7
8 games-arcade/fretsonfire: remove ebuild
9
10 Python 2.7, dependencies being removed or masked
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 games-arcade/fretsonfire/ChangeLog | 20 -----
14 .../files/fretsonfire-1.3.110-PIL.patch | 26 ------
15 .../fretsonfire/fretsonfire-1.3.110.ebuild | 96 ----------------------
16 games-arcade/fretsonfire/metadata.xml | 8 --
17 4 files changed, 150 deletions(-)
18
19 diff --git a/games-arcade/fretsonfire/ChangeLog b/games-arcade/fretsonfire/ChangeLog
20 deleted file mode 100644
21 index be336d6..0000000
22 --- a/games-arcade/fretsonfire/ChangeLog
23 +++ /dev/null
24 @@ -1,20 +0,0 @@
25 -# ChangeLog for games-misc/fretsonfire
26 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: $
28 -
29 - 13 Aug 2010; Thomas Sachau (Tommy[D]) <tommy@g.o>
30 - fretsonfire-1.3.110.ebuild:
31 - NEED_PYTHON -> PYTHON_DEPEND, restrict to python-2 for now
32 -
33 - 03 Jun 2010; Markos Chandras <hwoarang@g.o>
34 - fretsonfire-1.3.110.ebuild:
35 - Remove numeric dependency as it is not needed
36 -
37 - 20 Jan 2009; Mounir Lamouri (volkmar) <mounir.lamouri@×××××.com>
38 - fretsonfire-1.3.110.ebuild, metadata.xml:
39 - Updating dependency
40 -
41 - 20 Jan 2009; Mounir Lamouri (volkmar) <mounir.lamouri@×××××.com>
42 - +fretsonfire-1.3.110.ebuild, +metadata.xml:
43 - New Ebuild for bug 143388
44 -
45
46 diff --git a/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch b/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch
47 deleted file mode 100644
48 index 8e8cee4..0000000
49 --- a/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch
50 +++ /dev/null
51 @@ -1,26 +0,0 @@
52 ---- src/Font.py
53 -+++ src/Font.py
54 -@@ -206,7 +206,7 @@ class Font:
55 -
56 - # Draw outlines
57 - """
58 -- import Image, ImageFilter
59 -+ from PIL import Image, ImageFilter
60 - srcImg = Image.fromstring("RGBA", s.get_size(), pygame.image.tostring(s, "RGBA"))
61 - img = Image.fromstring("RGBA", s.get_size(), pygame.image.tostring(s, "RGBA"))
62 - for y in xrange(img.size[1]):
63 ---- src/Texture.py
64 -+++ src/Texture.py
65 -@@ -24,10 +24,10 @@ from __future__ import division
66 -
67 - import Log
68 - import Config
69 --import Image
70 -+from PIL import Image
71 - import pygame
72 - import StringIO
73 --import PngImagePlugin
74 -+from PIL import PngImagePlugin
75 - from OpenGL.GL import *
76 - from OpenGL.GLU import *
77 - from Queue import Queue, Empty
78
79 diff --git a/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild b/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild
80 deleted file mode 100644
81 index fa666f4..0000000
82 --- a/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild
83 +++ /dev/null
84 @@ -1,96 +0,0 @@
85 -# Copyright 1999-2015 Gentoo Foundation
86 -# Distributed under the terms of the GNU General Public License v2
87 -# $Header: $
88 -
89 -EAPI="5"
90 -
91 -#PYTHON_DPEEND="2:2.4"
92 -PYTHON_COMPAT=( python2_7 )
93 -
94 -inherit base eutils distutils-r1 games
95 -
96 -MY_PN="Frets on Fire"
97 -MY_PN_URI="FretsOnFire"
98 -DESCRIPTION="A game of musical skill and fast fingers"
99 -HOMEPAGE="http://fretsonfire.sourceforge.net/"
100 -SRC_URI="mirror://sourceforge/${PN}/${MY_PN_URI}-${PV}.tar.gz"
101 -
102 -LICENSE="GPL-2"
103 -SLOT="0"
104 -KEYWORDS="~amd64 ~ppc ~x86"
105 -IUSE="doc guitarhero"
106 -
107 -DEPEND=""
108 -RDEPEND="dev-python/pygame
109 - >=dev-python/pyopengl-2.0.1.09-r1
110 - dev-python/numpy
111 - media-libs/sdl-mixer[vorbis]
112 - virtual/python-imaging
113 - doc? ( >=dev-python/epydoc-3.0.1 )
114 - guitarhero? ( media-sound/vorbis-tools )"
115 -
116 -S=${WORKDIR}/${MY_PN}-${PV}
117 -
118 -DOCS="readme.txt todo.txt"
119 -
120 -src_prepare() {
121 - # change main game executable path
122 - sed \
123 - -e "s:\(FretsOnFire.py\):$(games_get_libdir)/${PN}/\1:" \
124 - -i src/FretsOnFire.py || die "patching src/FretsOnFire.py failed"
125 -
126 - # change data path
127 - sed \
128 - -e "s:os.path.join(\"..\", \"\(data\)\"):\"${GAMES_DATADIR}/${PN}/\1\":" \
129 - -i src/Version.py || die "patching src/Version.py failed"
130 -
131 - sed \
132 - -e 's/sdist:/dist:/' \
133 - -i Makefile
134 -
135 - sed -r \
136 - -e 's/^(PYTHON).*/\1=python2/' \
137 - -i 'data/Makefile'
138 -
139 - epatch "${FILESDIR}/${P}-PIL.patch"
140 -# distutils-r1_src_prepare;
141 -}
142 -
143 -src_compile() {
144 - python_setup;
145 - emake graphics translations killscores;
146 -
147 - if use doc; then
148 - epydoc --html -o "doc/html" -n "Frets on Fire" src/*.py src/midi/*.py \
149 - || die "documentation generation failed"
150 - fi
151 -}
152 -
153 -src_install() {
154 - insinto "$(games_get_libdir)/${PN}"
155 - doins src/*.py src/*.pot || die "installation failed"
156 -
157 - insinto "$(games_get_libdir)/${PN}/midi"
158 - doins src/midi/*.py || die "installation failed"
159 -
160 - insinto "${GAMES_DATADIR}/${PN}"
161 - rm -fr data/win32 data/translations/*.po
162 - doins -r data || die "data installation failed"
163 -
164 - games_make_wrapper \
165 - ${PN} "python2 FretsOnFire.py" "$(games_get_libdir)/${PN}" \
166 - || die "games wrapper installation failed"
167 - if use doc; then
168 - dohtml -r doc/html/* || die "documentation installation failed"
169 - fi
170 - base_src_install_docs
171 - newicon data/icon.png ${PN}.png
172 - make_desktop_entry ${PN} "Frets on Fire"
173 - python_optimize "${D}$(games_get_libdir)/${PN}"
174 - prepgamesdirs
175 -}
176 -
177 -pkg_postinst() {
178 - games_pkg_postinst
179 -}
180 -
181
182 diff --git a/games-arcade/fretsonfire/metadata.xml b/games-arcade/fretsonfire/metadata.xml
183 deleted file mode 100644
184 index 04142da..0000000
185 --- a/games-arcade/fretsonfire/metadata.xml
186 +++ /dev/null
187 @@ -1,8 +0,0 @@
188 -<?xml version="1.0" encoding="UTF-8"?>
189 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
190 -<pkgmetadata>
191 - <maintainer><email>maintainer-wanted@g.o</email></maintainer>
192 - <use>
193 - <flag name='guitarhero'>Enable Guitar Hero song importer</flag>
194 - </use>
195 -</pkgmetadata>