summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2006-07-01 23:10:09 +0000
committerTiziano Müller <dev-zero@gentoo.org>2006-07-01 23:10:09 +0000
commitf50862e2043ab0bcbf70f7c35b507101f60d54d9 (patch)
treeccd309f666a46d97732ecc7d971dcefdb5861959 /games-puzzle
parentsys-devel/scratchbox-toolchain-cs2005q3_2-glibc: sys-devel/scratchbox-toolcha... (diff)
downloadsunrise-f50862e2043ab0bcbf70f7c35b507101f60d54d9.tar.gz
sunrise-f50862e2043ab0bcbf70f7c35b507101f60d54d9.tar.bz2
sunrise-f50862e2043ab0bcbf70f7c35b507101f60d54d9.zip
games-puzzle/pythonsudoku - bug 113932
svn path=/sunrise/; revision=414
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/pythonsudoku/ChangeLog7
-rw-r--r--games-puzzle/pythonsudoku/Manifest20
-rw-r--r--games-puzzle/pythonsudoku/files/0.12-pysdk_cfg-manual_install.patch37
-rw-r--r--games-puzzle/pythonsudoku/files/0.12-setup_py-various_fix.patch29
-rw-r--r--games-puzzle/pythonsudoku/files/digest-pythonsudoku-0.123
-rw-r--r--games-puzzle/pythonsudoku/pythonsudoku-0.12.ebuild36
6 files changed, 132 insertions, 0 deletions
diff --git a/games-puzzle/pythonsudoku/ChangeLog b/games-puzzle/pythonsudoku/ChangeLog
new file mode 100644
index 000000000..620b44d0d
--- /dev/null
+++ b/games-puzzle/pythonsudoku/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for games-puzzle/pythonsudoku
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 01 Jul 2006; Tiziano Müller <gentoo@dev-zero.ch> ChangeLog:
+ New ebuild for bug 113932, thanks to Nick Devito for the initial
+
diff --git a/games-puzzle/pythonsudoku/Manifest b/games-puzzle/pythonsudoku/Manifest
new file mode 100644
index 000000000..9d2b0947d
--- /dev/null
+++ b/games-puzzle/pythonsudoku/Manifest
@@ -0,0 +1,20 @@
+AUX 0.12-pysdk_cfg-manual_install.patch 1457 RMD160 eb308e5b88a612210cfb9c95cd09e3fc2550a6bc SHA1 26054688f8af40f241edfa754b043ddfeb4335e8 SHA256 f5141860ab0e1882590798b8d191b275c9e1da106cbc8c8f78f37e7812f843e6
+MD5 655b939fb85cbde3de2fa35699db49f0 files/0.12-pysdk_cfg-manual_install.patch 1457
+RMD160 eb308e5b88a612210cfb9c95cd09e3fc2550a6bc files/0.12-pysdk_cfg-manual_install.patch 1457
+SHA256 f5141860ab0e1882590798b8d191b275c9e1da106cbc8c8f78f37e7812f843e6 files/0.12-pysdk_cfg-manual_install.patch 1457
+AUX 0.12-setup_py-various_fix.patch 1101 RMD160 6dd2fd12626c3dcf5b6776b96730efe98f75f703 SHA1 3c5fd4ae50eba4c47354b18789d42229a1095394 SHA256 f6740787793ce2e6026c5d94c6a9ea8f42aea1db6dfde0c92b658f8c216f42bc
+MD5 7ce5842924946357c44d23d015a3c79c files/0.12-setup_py-various_fix.patch 1101
+RMD160 6dd2fd12626c3dcf5b6776b96730efe98f75f703 files/0.12-setup_py-various_fix.patch 1101
+SHA256 f6740787793ce2e6026c5d94c6a9ea8f42aea1db6dfde0c92b658f8c216f42bc files/0.12-setup_py-various_fix.patch 1101
+DIST pythonsudoku-0.12.zip 413249 RMD160 7e7371b2f4fb3fd8a1fb3750efa107f5ad939849 SHA1 bb5f7d525272394637458c11af47ebcb8e9ad2dc SHA256 bd7c0ba0c79a21d8702edb2d30f2feecb6f22945efad14c123ab6db340301eb4
+EBUILD pythonsudoku-0.12.ebuild 849 RMD160 a1eeba19f939330c09a5593f0d72362c3edb2a93 SHA1 9739d7cf4bf7877cbc00bc2abaf3f3370da0c759 SHA256 c68b4a1bd3907dc061fbeeae4f5005ce468b7d39120079de3edfaa41acef74e2
+MD5 91b64e5b925875a9182be09bb40360ff pythonsudoku-0.12.ebuild 849
+RMD160 a1eeba19f939330c09a5593f0d72362c3edb2a93 pythonsudoku-0.12.ebuild 849
+SHA256 c68b4a1bd3907dc061fbeeae4f5005ce468b7d39120079de3edfaa41acef74e2 pythonsudoku-0.12.ebuild 849
+MISC ChangeLog 257 RMD160 8f4ffa720f5f3cd74de9d41a60d76df1756b719b SHA1 e5c1ff2d049938cb594ba28eb499339ac566cf5a SHA256 a7150d393696501024021eab6d22e75daa2c98512414dccfd30396a5435df160
+MD5 3388bd3560d8f2b34a3f783f8b70c11a ChangeLog 257
+RMD160 8f4ffa720f5f3cd74de9d41a60d76df1756b719b ChangeLog 257
+SHA256 a7150d393696501024021eab6d22e75daa2c98512414dccfd30396a5435df160 ChangeLog 257
+MD5 61686e288e1b2bb6a7df256b69bc2632 files/digest-pythonsudoku-0.12 244
+RMD160 ca7a76cd541e0cae18d7c456e48d55e0f96c7902 files/digest-pythonsudoku-0.12 244
+SHA256 2508876359537e0d3a8c8e3e42bc69c19556f13b4629c815a1fdfc130c2ce53e files/digest-pythonsudoku-0.12 244
diff --git a/games-puzzle/pythonsudoku/files/0.12-pysdk_cfg-manual_install.patch b/games-puzzle/pythonsudoku/files/0.12-pysdk_cfg-manual_install.patch
new file mode 100644
index 000000000..e016d0eed
--- /dev/null
+++ b/games-puzzle/pythonsudoku/files/0.12-pysdk_cfg-manual_install.patch
@@ -0,0 +1,37 @@
+diff -Naur pythonsudoku-0.12/setup.py pythonsudoku-0.12.new/setup.py
+--- pythonsudoku-0.12/setup.py 2006-05-31 14:10:57.000000000 +0200
++++ pythonsudoku-0.12.new/setup.py 2006-07-01 22:23:09.000000000 +0200
+@@ -31,7 +31,7 @@
+
+ # TODO: check for OS to set the default values
+ if self.syscfg is None:
+- self.syscfg = "/etc/pysdk.cfg"
++ self.syscfg = "/etc/games/pythonsudoku/pysdk.cfg"
+ if self.usercfg is None:
+ self.usercfg = "~/.pysdk.cfg"
+ if self.localedir is None:
+@@ -83,8 +83,6 @@
+ # searched
+ data_files.append((get_python_lib(plat_specific=False) + "/pythonsudoku",
+ ["pythonsudoku/platform.cfg"]))
+- data_files.append((os.path.dirname(config.get("paths", "syscfg")),
+- ["pysdk.cfg"]))
+ data_files.append(("pythonsudoku", ["data/FreeSans.ttf"]))
+
+ for lingua in linguas():
+diff -Naur pythonsudoku-0.12/test.sdk pythonsudoku-0.12.new/test.sdk
+--- pythonsudoku-0.12/test.sdk 1970-01-01 01:00:00.000000000 +0100
++++ pythonsudoku-0.12.new/test.sdk 2006-07-01 22:01:58.000000000 +0200
+@@ -0,0 +1,12 @@
++# boardsize 3 x 3
++ 1 0 0 0 0 8 0 9 0
++ 0 0 0 0 0 0 0 0 8
++ 0 0 0 0 2 0 7 6 0
++
++ 8 0 0 0 1 0 0 0 0
++ 0 0 0 0 4 0 0 0 0
++ 0 2 7 5 0 6 4 0 0
++
++ 0 0 3 2 0 0 0 0 5
++ 5 0 0 4 0 0 0 0 6
++ 0 8 9 0 0 0 3 2 0
diff --git a/games-puzzle/pythonsudoku/files/0.12-setup_py-various_fix.patch b/games-puzzle/pythonsudoku/files/0.12-setup_py-various_fix.patch
new file mode 100644
index 000000000..3a133d07d
--- /dev/null
+++ b/games-puzzle/pythonsudoku/files/0.12-setup_py-various_fix.patch
@@ -0,0 +1,29 @@
+diff -Naur pythonsudoku-0.12/setup.py pythonsudoku-0.12.new/setup.py
+--- pythonsudoku-0.12/setup.py 2006-05-31 14:10:57.000000000 +0200
++++ pythonsudoku-0.12.new/setup.py 2006-07-01 22:29:22.000000000 +0200
+@@ -31,7 +31,7 @@
+
+ # TODO: check for OS to set the default values
+ if self.syscfg is None:
+- self.syscfg = "/etc/pysdk.cfg"
++ self.syscfg = "/etc/games/pythonsudoku/pysdk.cfg"
+ if self.usercfg is None:
+ self.usercfg = "~/.pysdk.cfg"
+ if self.localedir is None:
+@@ -83,8 +83,6 @@
+ # searched
+ data_files.append((get_python_lib(plat_specific=False) + "/pythonsudoku",
+ ["pythonsudoku/platform.cfg"]))
+- data_files.append((os.path.dirname(config.get("paths", "syscfg")),
+- ["pysdk.cfg"]))
+ data_files.append(("pythonsudoku", ["data/FreeSans.ttf"]))
+
+ for lingua in linguas():
+@@ -105,7 +103,6 @@
+ url="http://pythonsudoku.sf.net",
+ download_url="",
+
+- scripts=["pysdk.py"],
+ packages=["pythonsudoku"],
+ data_files=get_data_files(),
+
diff --git a/games-puzzle/pythonsudoku/files/digest-pythonsudoku-0.12 b/games-puzzle/pythonsudoku/files/digest-pythonsudoku-0.12
new file mode 100644
index 000000000..25d99ddc9
--- /dev/null
+++ b/games-puzzle/pythonsudoku/files/digest-pythonsudoku-0.12
@@ -0,0 +1,3 @@
+MD5 e93718ec6576849081a8a5d2b00c8ec6 pythonsudoku-0.12.zip 413249
+RMD160 7e7371b2f4fb3fd8a1fb3750efa107f5ad939849 pythonsudoku-0.12.zip 413249
+SHA256 bd7c0ba0c79a21d8702edb2d30f2feecb6f22945efad14c123ab6db340301eb4 pythonsudoku-0.12.zip 413249
diff --git a/games-puzzle/pythonsudoku/pythonsudoku-0.12.ebuild b/games-puzzle/pythonsudoku/pythonsudoku-0.12.ebuild
new file mode 100644
index 000000000..32b6b46f9
--- /dev/null
+++ b/games-puzzle/pythonsudoku/pythonsudoku-0.12.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit games distutils
+
+DESCRIPTION="A graphical and text-based sudoku game"
+HOMEPAGE="http://pythonsudoku.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-python/pygtk
+ dev-python/reportlab
+ dev-python/imaging"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}/${PV}-setup_py-various_fix.patch"
+ sed -i -e 's#syscfg = pysdk.cfg#syscfg = /etc/games/pythonsudoku/pysdk.cfg#' "${S}/pythonsudoku/platform.cfg" || die "fixing configfile path failed"
+}
+
+src_install() {
+ newgamesbin pysdk.py pythonsudoku || die "newgamesbin failed"
+ distutils_src_install
+ dohtml -r doc/*
+ prepgamesdirs
+
+ insinto /etc/games/pythonsudoku
+ doins pysdk.cfg
+
+}