public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Vadim A. Misbakh-Soloviov" <mva@mva.name>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/fretsonfire/files/, games-arcade/fretsonfire/
Date: Mon,  4 May 2015 16:56:58 +0000 (UTC)	[thread overview]
Message-ID: <1430758536.f304a2d1c898f9cdfea09a7cedc06beeddfeac57.mva@gentoo> (raw)

commit:     f304a2d1c898f9cdfea09a7cedc06beeddfeac57
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Mon May  4 16:55:36 2015 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Mon May  4 16:55:36 2015 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=f304a2d1

[games-arcade/fretsonfire] Added

 games-arcade/fretsonfire/ChangeLog                 | 20 +++++
 .../files/fretsonfire-1.3.110-PIL.patch            | 26 ++++++
 .../fretsonfire/fretsonfire-1.3.110.ebuild         | 96 ++++++++++++++++++++++
 games-arcade/fretsonfire/metadata.xml              |  8 ++
 4 files changed, 150 insertions(+)

diff --git a/games-arcade/fretsonfire/ChangeLog b/games-arcade/fretsonfire/ChangeLog
new file mode 100644
index 0000000..be336d6
--- /dev/null
+++ b/games-arcade/fretsonfire/ChangeLog
@@ -0,0 +1,20 @@
+# ChangeLog for games-misc/fretsonfire
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  13 Aug 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
+  fretsonfire-1.3.110.ebuild:
+  NEED_PYTHON -> PYTHON_DEPEND, restrict to python-2 for now
+
+  03 Jun 2010; Markos Chandras <hwoarang@gentoo.org>
+  fretsonfire-1.3.110.ebuild:
+  Remove numeric dependency as it is not needed
+
+  20 Jan 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com>
+  fretsonfire-1.3.110.ebuild, metadata.xml:
+  Updating dependency
+
+  20 Jan 2009; Mounir Lamouri (volkmar) <mounir.lamouri@gmail.com>
+  +fretsonfire-1.3.110.ebuild, +metadata.xml:
+  New Ebuild for bug 143388
+

diff --git a/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch b/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch
new file mode 100644
index 0000000..8e8cee4
--- /dev/null
+++ b/games-arcade/fretsonfire/files/fretsonfire-1.3.110-PIL.patch
@@ -0,0 +1,26 @@
+--- src/Font.py
++++ src/Font.py
+@@ -206,7 +206,7 @@ class Font:
+ 
+       # Draw outlines
+       """
+-      import Image, ImageFilter
++      from PIL import Image, ImageFilter
+       srcImg = Image.fromstring("RGBA", s.get_size(), pygame.image.tostring(s, "RGBA"))
+       img    = Image.fromstring("RGBA", s.get_size(), pygame.image.tostring(s, "RGBA"))
+       for y in xrange(img.size[1]):
+--- src/Texture.py
++++ src/Texture.py
+@@ -24,10 +24,10 @@ from __future__ import division
+ 
+ import Log
+ import Config
+-import Image
++from PIL import Image
+ import pygame
+ import StringIO
+-import PngImagePlugin
++from PIL import PngImagePlugin
+ from OpenGL.GL import *
+ from OpenGL.GLU import *
+ from Queue import Queue, Empty

diff --git a/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild b/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild
new file mode 100644
index 0000000..fa666f4
--- /dev/null
+++ b/games-arcade/fretsonfire/fretsonfire-1.3.110.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+#PYTHON_DPEEND="2:2.4"
+PYTHON_COMPAT=( python2_7 )
+
+inherit base eutils distutils-r1 games
+
+MY_PN="Frets on Fire"
+MY_PN_URI="FretsOnFire"
+DESCRIPTION="A game of musical skill and fast fingers"
+HOMEPAGE="http://fretsonfire.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_PN_URI}-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc guitarhero"
+
+DEPEND=""
+RDEPEND="dev-python/pygame
+	>=dev-python/pyopengl-2.0.1.09-r1
+	dev-python/numpy
+	media-libs/sdl-mixer[vorbis]
+	virtual/python-imaging
+	doc? ( >=dev-python/epydoc-3.0.1 )
+	guitarhero? ( media-sound/vorbis-tools )"
+
+S=${WORKDIR}/${MY_PN}-${PV}
+
+DOCS="readme.txt todo.txt"
+
+src_prepare() {
+	# change main game executable path
+	sed \
+		-e "s:\(FretsOnFire.py\):$(games_get_libdir)/${PN}/\1:" \
+		-i src/FretsOnFire.py || die "patching src/FretsOnFire.py failed"
+
+	# change data path
+	sed \
+		-e "s:os.path.join(\"..\", \"\(data\)\"):\"${GAMES_DATADIR}/${PN}/\1\":" \
+		-i src/Version.py || die "patching src/Version.py failed"
+
+	sed \
+		-e 's/sdist:/dist:/' \
+		-i Makefile
+
+	sed -r \
+		-e 's/^(PYTHON).*/\1=python2/' \
+		-i 'data/Makefile'
+
+	epatch "${FILESDIR}/${P}-PIL.patch"
+#	distutils-r1_src_prepare;
+}
+
+src_compile() {
+	python_setup;
+	emake graphics translations killscores;
+
+	if use doc; then
+		epydoc --html -o "doc/html" -n "Frets on Fire" src/*.py src/midi/*.py \
+			|| die "documentation generation failed"
+	fi
+}
+
+src_install() {
+    insinto "$(games_get_libdir)/${PN}"
+    doins src/*.py src/*.pot || die "installation failed"
+
+    insinto "$(games_get_libdir)/${PN}/midi"
+    doins src/midi/*.py || die "installation failed"
+
+    insinto "${GAMES_DATADIR}/${PN}"
+    rm -fr data/win32 data/translations/*.po
+    doins -r data || die "data installation failed"
+
+	games_make_wrapper \
+		${PN} "python2 FretsOnFire.py" "$(games_get_libdir)/${PN}" \
+		|| die "games wrapper installation failed"
+	if use doc; then
+		dohtml -r doc/html/* || die "documentation installation failed"
+	fi
+	base_src_install_docs
+	newicon data/icon.png ${PN}.png
+	make_desktop_entry ${PN} "Frets on Fire"
+	python_optimize "${D}$(games_get_libdir)/${PN}"
+	prepgamesdirs
+}
+
+pkg_postinst() {
+	games_pkg_postinst
+}
+

diff --git a/games-arcade/fretsonfire/metadata.xml b/games-arcade/fretsonfire/metadata.xml
new file mode 100644
index 0000000..04142da
--- /dev/null
+++ b/games-arcade/fretsonfire/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer>
+	<use>
+		<flag name='guitarhero'>Enable Guitar Hero song importer</flag>
+	</use>
+</pkgmetadata>


             reply	other threads:[~2015-05-04 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 16:56 Vadim A. Misbakh-Soloviov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-02-06 21:22 [gentoo-commits] proj/gamerlay:master commit in: games-arcade/fretsonfire/files/, games-arcade/fretsonfire/ Azamat H. Hackimov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1430758536.f304a2d1c898f9cdfea09a7cedc06beeddfeac57.mva@gentoo \
    --to=mva@mva.name \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox