Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7aae3809378f5fc793fd80e0c429bda4e85a21c4

commit 7aae3809378f5fc793fd80e0c429bda4e85a21c4
Author: Marius Cirsta <[email protected]>
Date:   Sun Mar 18 23:46:46 2012 +0000

kananoquiz-1.9.5-1-x86_64

* changed m8r
* version bump

diff --git a/source/games-extra/kananoquiz/FrugalBuild 
b/source/games-extra/kananoquiz/FrugalBuild
index c746a45..9da6f66 100644
--- a/source/games-extra/kananoquiz/FrugalBuild
+++ b/source/games-extra/kananoquiz/FrugalBuild
@@ -1,18 +1,30 @@
# Compiling Time: 0.01 SBU
-# Maintainer: bouleetbil <[email protected]>
-# Contributor: jedifox <[email protected]>
+# Maintainer: Marius Cirsta <[email protected]>

pkgname=kananoquiz
-pkgver=1.9
-pkgrel=4
+pkgver=1.9.5
+pkgrel=1
pkgdesc="Kana no quiz is a little tool to memorize japanese kana (katakana & 
hiragana) presented as a quiz"
+_F_sourceforge_ext=".tar.bz2"
_F_sourceforge_dirname="kana-no-quiz"
-_F_sourceforge_name="Kana-no-quiz"
+_F_sourceforge_name="Kana_no_quiz"
Finclude sourceforge
depends=('python>=2.7.2-1' 'pygtk' 'sdl' 'pygame')
options=('scriptlet')
groups=('games-extra')
archs=('i686' 'x86_64')
-sha1sums=('235c726ed735b86ae6fd88c2d75f802042f54632')
+source=("${source[@]}" 'setup-fix.patch' 'kana-no-quiz')
+sha1sums=('d5ceebe9e48004c9895437944216ee5245f5042b' \
+          'a77b630a516e36ce9222c83e034e99f09a12384d' \
+          'b6f40d66f416f3d21d9cb9b0cb77d5b05e91158a')
_F_desktop_filename="kana-no-quiz.desktop"
-_F_cd_path="Kana no quiz-$pkgver"
+_F_cd_path='Kana no quiz-'"$pkgver"
+
+build()
+{
+       Fcd
+       # copy missing script
+       mkdir -p data/script
+       cp ../kana-no-quiz ./data/script
+       Fbuild
+}
diff --git a/source/games-extra/kananoquiz/kana-no-quiz 
b/source/games-extra/kananoquiz/kana-no-quiz
new file mode 100644
index 0000000..602cfbd
--- /dev/null
+++ b/source/games-extra/kananoquiz/kana-no-quiz
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+"""Kana no quiz!
+
+   Copyleft 2003, 2004, 2005, 2006, 2007 Choplair-network.
+   $Id: kana-no-quiz,v 1.2 2007/06/17 09:27:25 pachilor Exp $
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License
+   as published by the Free Software Foundation; either version 2
+   of the License, or (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+
+"""
+
+# Launching Kana no quiz.
+from kananoquiz import *
diff --git a/source/games-extra/kananoquiz/setup-fix.patch 
b/source/games-extra/kananoquiz/setup-fix.patch
new file mode 100644
index 0000000..759a048
--- /dev/null
+++ b/source/games-extra/kananoquiz/setup-fix.patch
@@ -0,0 +1,43 @@
+--- Kana no quiz-1.9.5/setup.py        2009-07-17 17:04:20.000000000 +0000
++++ Kana no quiz-1.9.5.new/setup.py    2012-03-18 23:40:33.000000000 +0000
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python
+ """Kana no quiz!
+
+    Copyleft 2003, 2004, 2005, 2006, 2007, 2008, 2009 Choplair-network.
+@@ -26,11 +26,7 @@
+ try: import py2exe
+ except: pass
+
+-if 'bdist_wininst' in sys.argv:
+-   scriptfiles = glob.glob(os.path.join('data', 'script', '*.py*'))
+-elif "install" in sys.argv:
+-   scriptfiles = [os.path.join("data", "script", "kana-no-quiz")]
+-else: scriptfiles = []
++scriptfiles = [os.path.join("data", "script", "kana-no-quiz")]
+
+ # Common data files.
+ datafiles = [
+@@ -115,20 +111,7 @@
+    packages   =   ['kananoquiz'],
+    package_dir   =   {'kananoquiz': 'data/py'},
+    scripts      =   scriptfiles,
+-   data_files   =   datafiles,
+-   # The following is for py2exe...
+-   windows    =   [{
+-            'script': os.path.join("data", "script", "kana-no-quiz"),
+-            'icon_resources': [(1, os.path.join("data", "img",
+-               "icon.ico"))]
+-            }],
+-   options      =   {
+-            'py2exe': {
+-               'packages':'encodings',
+-               'includes': 'cairo, pango, pangocairo, atk, '\
+-                  'gobject, psyco, random, sets, gettext',
+-               'compressed': 1, 'optimize': 1
+-            }}
++   data_files   =   datafiles
+    )
+
+ if "install" in sys.argv:
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to