debian/0000755000000000000000000000000011355416112007165 5ustar debian/copyright0000644000000000000000000000344111355415474011134 0ustar This is Ghextris, packaged for Debian by Mikko Rauhala . Original author is also Mikko Rauhala. Copyright 2004 Mikko Rauhala 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. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. In 2009 this package was reworked largely by Christoph Egger. These parts are © 2009 Christoph Egger And available either under the GPL Version2 or later as quoted above or alternatively under the following conditions: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from anydebian/postrm.debhelper0000644000000000000000000000021711355411560012367 0ustar # Automatically added by dh_installmenu if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi # End automatically added section debian/dirs0000644000000000000000000000001211355411560010044 0ustar usr/games debian/source/0000755000000000000000000000000011355411560010467 5ustar debian/source/format0000644000000000000000000000001411355416112011673 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000015011355411560010243 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_install: /bin/bash install.sh debian/ghextris/usr /usr debian/compat0000644000000000000000000000000211355411560010365 0ustar 7 debian/postinst.debhelper0000644000000000000000000000025011355411560012723 0ustar # Automatically added by dh_installmenu if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then update-menus fi # End automatically added section debian/control0000644000000000000000000000167711355412555010612 0ustar Source: ghextris Maintainer: Debian Games Team Uploaders: Christoph Egger Section: games Priority: optional Standards-Version: 3.8.4 Vcs-Git: git://git.debian.org/git/pkg-games/ghextris.git Vcs-Browser: http://git.debian.org/?p=pkg-games/ghextris.git Build-Depends: gettext, debhelper (>= 7.0.50~) Homepage: http://mjr.iki.fi/software/ghextris Package: ghextris Architecture: all Depends: ${misc:Depends}, python, python-glade2 (>= 2.2.0-1), python-gnome2 (>= 2.0.2-1), python-gtk2 (>= 2.2.0-1) Description: A Tetris-like game on a hexagonal grid The object of the game is basically the same as in Tetris; use the pieces that fall down from the top of the game area to construct fully filled lines, which will then disappear to make room for more pieces. The twist is that the pieces are composed of hexagonal blocks, so your visualization skills will get an extra workout. debian/changelog0000644000000000000000000000334711355412565011056 0ustar ghextris (0.9.0-3) unstable; urgency=low * Rename Build-Depends-Indep to Build-Depends (Policy 7.6) * Change my E-Mail Address * Add Vcs: Headers -- Christoph Egger Fri, 02 Apr 2010 18:04:05 +0200 ghextris (0.9.0-2) unstable; urgency=low * Adopt package for the Debian Games Team (Closes: #543736, #553486) * Add patch from Peter de Wachter to fix crash on any-i386 (Closes: #555491) * Keeping all NMU Patches (Closes: #379318) * Make package non-native based on -1 debian tarball * Port to dh 7 from manual Style * Drop encoding key from Desktop File * Convert to Source 3.0 (quilt), nicely avoids repacking for the debian/ in »upstream« tarball -- Christoph Egger Wed, 11 Nov 2009 13:39:56 +0100 ghextris (0.9.0-1.3) unstable; urgency=high [ Jason Harrison ] * Non-maintainer upload. * Renamed #!/usr/bin/python2.3 to #!/usr/bin/python. Closes: #403874 * Changed program to use random instead of whrandom which is depreciated. -- Andreas Barth Tue, 26 Dec 2006 11:13:20 +0000 ghextris (0.9.0-1.2) unstable; urgency=low * NMU. * Remove explicit dependency on python2.3. -- Matthias Klose Fri, 27 Oct 2006 05:25:53 +0200 ghextris (0.9.0-1.1) unstable; urgency=medium * Non-maintainer upload. * Rename dependencies for python transition (Closes: 377080). * Fix some deprecation warnings. * Add French translation (Closes: #334483). * Add Swedish translation (Closes: #343301, #345175). -- Luk Claes Sat, 22 Jul 2006 20:01:33 +0200 ghextris (0.9.0-1) unstable; urgency=low * New upstream version, new Debian packaging. -- Mikko Rauhala Thu, 13 May 2004 04:37:00 +0300 debian/ghextris.menu0000644000000000000000000000023611355411560011713 0ustar ?package(ghextris):needs="X11" section="Games/Blocks" \ title="Ghextris" command="/usr/games/ghextris" \ icon="/usr/share/games/ghextris/ghextris-icon.xpm" debian/docs0000644000000000000000000000000711355411560010037 0ustar README debian/patches/0000755000000000000000000000000011355411560010616 5ustar debian/patches/series0000644000000000000000000000006311355411560012032 0ustar encoding-key.patch translations.patch source.patch debian/patches/translations.patch0000644000000000000000000000415111355411560014361 0ustar Adding a French and a Swedish translation for ghextris --- /dev/null +++ ghextris-0.9.0/po/fr.po @@ -0,0 +1,36 @@ +# translation of fr.po to French +# Julien Rosal , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: ghextris_0.9.0-1 fr\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-05-13 02:07+0300\n" +"PO-Revision-Date: 2005-09-20 19:10+0100\n" +"Last-Translator: Julien Rosal \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" + +#: ghextris.glade.h:1 +msgid "Ghextris" +msgstr "Ghextris" + +#: ghextris.glade.h:2 +msgid "translator_credits" +msgstr "Traduction française proposée par Julien Rosal et debian-l10n-french" + +#: ghextris.glade.h:3 +msgid "© 2004 Mikko Rauhala " +msgstr "© 2004 Mikko Rauhala " + +#: ghextris.py:336 +msgid "Score" +msgstr "Score" + +#: ghextris.py:337 +msgid "High score" +msgstr "Meilleur score" --- /dev/null +++ ghextris-0.9.0/po/sv.po @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: ghextris\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2004-05-13 02:07+0300\n" +"PO-Revision-Date: 2005-12-14 09:58+0100\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ghextris.glade.h:1 +msgid "Ghextris" +msgstr "Ghextris" + +#: ghextris.glade.h:2 +msgid "translator_credits" +msgstr "Daniel Nylander " + +#: ghextris.glade.h:3 +msgid "© 2004 Mikko Rauhala " +msgstr "© 2004 Mikko Rauhala " + +#: ghextris.py:336 +msgid "Score" +msgstr "Rekord" + +#: ghextris.py:337 +msgid "High score" +msgstr "Högsta rekord" + debian/patches/source.patch0000644000000000000000000002626011355411560013145 0ustar Some source changes accumulated over time to keep the software up to the status of the archive Index: ghextris-0.9.0/ghextris.py =================================================================== --- ghextris-0.9.0.orig/ghextris.py 2009-11-11 13:38:39.000000000 +0100 +++ ghextris-0.9.0/ghextris.py 2009-11-11 13:39:05.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/python2.3 +#!/usr/bin/python # Gnome-hextris; a free rewrite of the xhextris game in Python for Gnome # Copyright 2004 Mikko Rauhala @@ -29,14 +29,15 @@ pygtk.require("2.0") import gtk -import gnome.canvas +import gnomecanvas import gnome +import gnome.ui import gobject import gtk.glade import gettext -import whrandom +import random class Hextris: def __init__(self): @@ -119,17 +120,17 @@ self.speed_orig = 400 self.speed = 400 self.speed_ratio = 0.99 - self.speed_reset = gtk.FALSE - self.paused = gtk.FALSE - self.lost = gtk.TRUE + self.speed_reset = False + self.paused = False + self.lost = True self.score = 0 self.hiscore = 0 self.nextnum = 0 - self.running = gtk.FALSE + self.running = False - self.nextpiece = gtk.FALSE - self.board = gtk.FALSE + self.nextpiece = False + self.board = False self.rowgroups = [] def draw_hexagon(self, group, color): @@ -196,12 +197,12 @@ self.speed = self.speed_orig self.score = 0 self.attitude = 0 - self.lost = gtk.FALSE - self.paused = gtk.FALSE + self.lost = False + self.paused = False self.update_appbar() - if self.board != gtk.FALSE: + if self.board != False: self.board.destroy() self.board = self.canvas.root().add("GnomeCanvasGroup", x = 0, y = 0) @@ -216,32 +217,32 @@ self.rowgroups.append(self.board.add("GnomeCanvasGroup", x = 0, y = i * self.pieceheight)) - self.nextnum = whrandom.randint(0, 9) + self.nextnum = random.randint(0, 9) self.next_piece() - if self.running == gtk.FALSE: + if self.running == False: gobject.timeout_add(self.speed, self.timer_handler) - self.running = gtk.TRUE + self.running = True else: - self.speed_reset = gtk.TRUE + self.speed_reset = True - return gtk.TRUE + return True def on_about_activate(self, event): aTree = gtk.glade.XML(self.glade, "about") about = aTree.get_widget("about") about.set_property("name", "Ghextris") about.set_property("version", VERSION) - return gtk.TRUE + return True def on_pause_game_activate(self, event): - if self.lost == gtk.TRUE: - return gtk.FALSE - if self.paused == gtk.TRUE: - self.paused = gtk.FALSE + if self.lost == True: + return False + if self.paused == True: + self.paused = False else: - self.paused = gtk.TRUE - return gtk.TRUE + self.paused = True + return True def on_quit_activate(self, event): gtk.main_quit() @@ -277,7 +278,7 @@ win.connect("key-press-event", self.key_handler) self.init_board() - whrandom.seed() + random.seed() self.update_appbar() @@ -285,7 +286,7 @@ def next_piece(self): self.piecenum = self.nextnum - self.nextnum = whrandom.randint(0, 9) + self.nextnum = random.randint(0, 9) self.attitude = 0 self.piece_x = (self.cols/2)-1 + self.deltax[self.piecenum] self.piece_y = -3 + self.deltax[self.piecenum] @@ -293,7 +294,7 @@ self.colors[self.piecenum%(len(self.colors)+1)], self.piece_x, self.piece_y) - if self.nextpiece != gtk.FALSE: + if self.nextpiece != False: self.nextpiece.destroy() self.nextpiece = self.place_piece(self.preview, self.pieces[self.nextnum][0], @@ -302,35 +303,35 @@ self.deltay[self.nextnum]) def timer_handler(self): - if self.lost == gtk.TRUE: - self.running = gtk.FALSE - return gtk.FALSE + if self.lost == True: + self.running = False + return False - if self.paused == gtk.TRUE: - return gtk.TRUE + if self.paused == True: + return True self.piece_y += 1 - if self.check_collisions() == gtk.TRUE: + if self.check_collisions() == True: self.piece_y -= 1 self.update_field() - if self.top_occupied() != gtk.TRUE: + if self.top_occupied() != True: self.next_piece() else: - self.lost = gtk.TRUE + self.lost = True if self.hiscore < self.score: self.hiscore = self.score self.update_appbar() - self.running = gtk.FALSE - return gtk.FALSE + self.running = False + return False else: self.piece.move(0, self.pieceheight) - if self.speed_reset == gtk.TRUE: - self.speed_reset = gtk.FALSE + if self.speed_reset == True: + self.speed_reset = False gobject.timeout_add(int(self.speed), self.timer_handler) - return gtk.FALSE + return False - return gtk.TRUE + return True def update_appbar(self): self.appbar.set_text("%s: %d | %s: %d" % (_("Score"), self.score, @@ -338,18 +339,18 @@ self.hiscore)) def key_handler(self, widget, event=None): - if self.lost == gtk.TRUE: - return gtk.FALSE + if self.lost == True: + return False - if event.keyval == gtk.keysyms.p and self.lost == gtk.FALSE: - if self.paused == gtk.TRUE: - self.paused = gtk.FALSE + if event.keyval == gtk.keysyms.p and self.lost == False: + if self.paused == True: + self.paused = False else: - self.paused = gtk.TRUE - return gtk.TRUE + self.paused = True + return True - if self.paused == gtk.TRUE: - return gtk.FALSE + if self.paused == True: + return False if event.keyval == gtk.keysyms.Up or event.keyval == gtk.keysyms.Down: if event.keyval == gtk.keysyms.Up: @@ -360,16 +361,16 @@ self.attitude = ((self.attitude + attitude_change + len(self.pieces[self.piecenum])) % len(self.pieces[self.piecenum])) - if self.check_collisions() == gtk.TRUE: + if self.check_collisions() == True: self.attitude = old_attitude - return gtk.TRUE + return True self.piece.destroy() self.piece = self.place_piece(self.board, self.pieces[self.piecenum][self.attitude], self.colors[self.piecenum%(len(self.colors)+1)], self.piece_x, self.piece_y); - return gtk.TRUE + return True if event.keyval == gtk.keysyms.Left or event.keyval == gtk.keysyms.Right: if event.keyval == gtk.keysyms.Left: @@ -384,23 +385,23 @@ else: deltay -= self.pieceheight/2 - if self.check_collisions() == gtk.TRUE: + if self.check_collisions() == True: if deltay > 0: self.piece_x -= deltax - return gtk.TRUE + return True self.piece_y += 1 deltay += self.pieceheight - if self.check_collisions() == gtk.TRUE: + if self.check_collisions() == True: self.piece_x -= deltax self.piece_y -= 1 - return gtk.TRUE + return True self.piece.move(deltax*(self.piecewidth+self.piecenarrow)/2, deltay) - return gtk.TRUE + return True if event.keyval == gtk.keysyms.space: orig_piece_y = self.piece_y - while self.check_collisions() == gtk.FALSE: + while self.check_collisions() == False: self.piece_y += 1 self.piece_y -= 1 self.piece.move(0, self.pieceheight*(self.piece_y - orig_piece_y)) @@ -408,17 +409,17 @@ if self.score > self.hiscore: self.hiscore = self.score self.update_field() - if self.top_occupied() != gtk.TRUE: + if self.top_occupied() != True: self.next_piece() else: - self.lost = gtk.TRUE + self.lost = True if self.hiscore < self.score: self.hiscore = self.score self.update_appbar() - return gtk.TRUE + return True - return gtk.FALSE + return False def check_collisions(self): for i in range(len(self.pieces[self.piecenum][self.attitude])): @@ -429,12 +430,12 @@ else: deltay = 0 if j + self.piece_x < 0 or j + self.piece_x >= self.cols: - return gtk.TRUE + return True if ((i + self.piece_y + deltay > 0) and (i + self.piece_y + deltay >= self.rows or self.field[i + self.piece_y + deltay][j + self.piece_x] != 0)): - return gtk.TRUE - return gtk.FALSE + return True + return False def update_field(self): for i in range(len(self.pieces[self.piecenum][self.attitude])): @@ -456,16 +457,16 @@ def collapse_rows(self): row_points = 50 for i in range(self.rows): - row_full = gtk.TRUE + row_full = True for j in range(self.cols): if self.field[i][j] == 0: - row_full = gtk.FALSE + row_full = False break - if row_full == gtk.TRUE: + if row_full == True: row_points *= 2 self.speed *= self.speed_ratio - self.speed_reset = gtk.TRUE + self.speed_reset = True self.rowgroups[i].destroy() for j in range(i-1, -1, -1): self.rowgroups[j].move(0, self.pieceheight) @@ -485,8 +486,8 @@ def top_occupied(self): for i in range(self.cols): if self.field[0][i] != 0: - return gtk.TRUE - return gtk.FALSE + return True + return False if __name__ == '__main__': h = Hextris() debian/patches/encoding-key.patch0000644000000000000000000000046311355411560014216 0ustar Endocing=UTF-8 is assumed as default and the encoding key expected to disappear nowadays --- ghextris-0.9.0.orig/ghextris.desktop +++ ghextris-0.9.0/ghextris.desktop @@ -1,5 +1,4 @@ [Desktop Entry] -Encoding=UTF-8 Name=Ghextris Name[fi]=Ghextris Comment=Fit falling blocks together on a hexagonal grid debian/debhelper.log0000644000000000000000000000117411355411560011627 0ustar dh_auto_configure dh_auto_build dh_auto_test dh_prep dh_installdirs dh_auto_install dh_install dh_installdocs dh_installchangelogs dh_installexamples dh_installman dh_installcatalogs dh_installcron dh_installdebconf dh_installemacsen dh_installifupdown dh_installinfo dh_pysupport dh_installinit dh_installmenu dh_installmime dh_installmodules dh_installlogcheck dh_installlogrotate dh_installpam dh_installppp dh_installudev dh_installwm dh_installxfonts dh_bugfiles dh_lintian dh_gconf dh_icons dh_perl dh_usrlocal dh_link dh_compress dh_fixperms dh_strip dh_makeshlibs dh_shlibdeps dh_installdeb dh_gencontrol dh_md5sums dh_builddeb